-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
28 lines (24 loc) · 819 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
#include "mainwindow.h"
#include <QApplication>
#include <memory>
#include <stdexcept>
#include <iostream>
#include "controller.h"
#include "qgraphicsview.h"
#include "protagonistview.h"
#include <QGraphicsScene>
#include <QGraphicsRectItem>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Controller controller{":/world_images/worldmap.png", 40, 40, 0.5, 0.2};
ModelView *modelview = controller.getModelView();
Model *model= controller.getModel();
TextScene * textItem = controller.getTextScene();
//textItem->setController(&controller);
ModelView * twoScene = modelview;
MainWindow w(twoScene,textItem,model,&controller);
// w.connect(&w, SIGNAL(fileEntered(QString, int, int)), &controller, SLOT(openFile(QString,int,int)));
w.show();
return a.exec();
}