-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·66 lines (58 loc) · 2.29 KB
/
main.cpp
File metadata and controls
executable file
·66 lines (58 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*******************************************************************************
* File: main.cpp
* Created: 23. October 2020
* Author: Timo Hueser
* Contact: timo.hueser@gmail.com
* Copyright: 2021 Timo Hueser
* License: LGPL v3.0
******************************************************************************/
#include "DarkStyle.hpp"
#include "camerainterface.hpp"
#include "flirconfigbackend.hpp"
#include "globals.hpp"
#include "mainwindow.hpp"
#include "triggerinterface.hpp"
#include <QApplication>
#include <QImage>
#include <QSettings>
#include <QSplashScreen>
#include <iostream>
Q_DECLARE_METATYPE(QList<int>)
Q_DECLARE_METATYPE(statusType)
int main(int argc, char **argv) {
qSetMessagePattern(QStringLiteral("%{time}"
//"%{appname}"
": ["
"%{if-debug}D%{endif}"
"%{if-info}I%{endif}"
"%{if-warning}W%{endif}"
"%{if-critical}C%{endif}"
"%{if-fatal}F%{endif}"
"] "
"%{message}"));
QCoreApplication::setOrganizationName("Test");
QCoreApplication::setOrganizationDomain("test");
QCoreApplication::setApplicationName("Camera Controller");
// qRegisterMetaTypeStreamOperators<QList<QString>>("QList<QString>");
// qRegisterMetaTypeStreamOperators<QVector<QPoint>>("QVector<QPoint>");
qRegisterMetaType<statusType>();
QApplication app(argc, argv);
app.setStyle(new DarkStyle);
QStringList themeSearchPaths = {
"/home/trackingsetup/Documents/AnnotationToolbox/IconThemes",
"IconThemes", "../IconThemes",
"/usr/local/share/JARVIS-AcquisitionTool/icons"};
QIcon::setThemeSearchPaths(themeSearchPaths);
QIcon::setThemeName("DarkIconTheme");
// QPixmap pixmap("/home/trackingsetup/Pictures/Screenshot from 2021-04-21
// 15-58-12.png");
// QSplashScreen splash(pixmap);
// splash.show();
app.processEvents();
// delayl(100);
FlirConfigBackend::getInstance();
MainWindow m_window;
m_window.show();
// splash.finish(&m_window);
return app.exec();
}