initial commit
This commit is contained in:
46
MainController.h
Normal file
46
MainController.h
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef MAINCONTROLLER_H
|
||||
#define MAINCONTROLLER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QModelIndex>
|
||||
#include "MainWindow.h"
|
||||
|
||||
class MapTreeModel;
|
||||
class MapModelElement;
|
||||
class MapModel;
|
||||
|
||||
class MainController : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MainController();
|
||||
|
||||
void show() {mw->show();}
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
/** MapLayer selection changed */
|
||||
void layerSelected(QModelIndex idx);
|
||||
|
||||
/** MapElement selection has changed */
|
||||
void mapElementSelected(MapModelElement* el);
|
||||
|
||||
void onLoad();
|
||||
|
||||
void onSave();
|
||||
|
||||
void onMapModelAboutToReset();
|
||||
void onMapModelReset();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
MainWindow* mw;
|
||||
MapTreeModel* mapTreeModel;
|
||||
MapModel* mapModel;
|
||||
|
||||
};
|
||||
|
||||
#endif // MAINCONTROLLER_H
|
||||
Reference in New Issue
Block a user