-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
57 lines (46 loc) · 1.03 KB
/
main.cpp
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
// Targeter - target identification software for EUCALL workpackage 6
// Licensed under the GPL License. See LICENSE file in the project root for full license information.
// Copyright(C) 2017 David Watts
#include "mainwindow.h"
#include "TargeterApplication.h"
#ifdef _HAVE_IMAGEMAGICK
#include <Magick++.h>
#endif
#include <exception>
/*
void customHandler(QtMsgType type, const char* msg) {
fprintf(stderr, msg);
fflush(stderr);
}
*/
/**
*
* main entry function of targeter
*
* @author David Watts
* @since 2017/03/07
*
* FullName main
* Qualifier
* @param int argc
* @param char * argv[]
* @return int
* Access public
*/
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
#ifdef _HAVE_IMAGEMAGICK
Magick::InitializeMagick(*argv);
#endif
#ifdef _DEBUG
cv::setBreakOnError(true);
#endif
a.setOrganizationName("European XFEL");
a.setOrganizationDomain("xfel.eu");
a.setApplicationName("Targeter");
MainWindow w;
//a.setMainWindow(&w);
w.show();
return a.exec();
}