-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.cpp
32 lines (23 loc) · 1016 Bytes
/
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
#include "IgssMainWindow.h"
#include "SystemDispatcher.h"
#include "SystemDataBase.h"
#include <QApplication>
#include <QTimer>
int main(int argc, char *argv[]){
QApplication analyser(argc, argv);
analyser.setOrganizationName("CAS - SIAT");
analyser.setApplicationName("igss");
analyser.setWindowIcon(QIcon(":/images/icon.png"));
//! TODO: global timer to be defined....
SystemDataBase* database = new SystemDataBase();
SystemDispatcher* dispatcher = new SystemDispatcher();
IgssMainWindow* igssMainWindow = new IgssMainWindow(dispatcher);
ImageProcessingFactory *imageProcessingFactory = new ImageProcessingFactory();
igssMainWindow->setSystemDispatecher(dispatcher);
dispatcher->setSystemDataBase(database);
dispatcher->setImageProcessingFactory(imageProcessingFactory);
database->setImageProcessingFactory(imageProcessingFactory);
igssMainWindow->findPatientExisted();
igssMainWindow->display();
return analyser.exec();
}