-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.h
49 lines (39 loc) · 1013 Bytes
/
MainWindow.h
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
// MapMaker (c) 2016 Andrey Fidrya. MIT license. See LICENSE for more information.
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
class QGraphicsScene;
class Settings;
class MapView;
class LevelWidget;
class PropertyBrowser;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
void closeEvent(QCloseEvent *event) override;
protected slots:
void loadImages();
void updateWindowTitle();
void onNew();
void onOpen();
void onSave();
void onSaveAs();
void onReloadImages();
void onPreferences();
void loadLevel();
void onSceneCreated(QGraphicsScene *scene);
protected:
void loadWindowSettings();
void saveWindowSettings();
void createFileMenu();
void createEditMenu();
void createMapMenu();
void createViewMenu();
Settings *settings_ = nullptr;
MapView *mapView_ = nullptr;
PropertyBrowser *propertyBrowser_ = nullptr;
};
#endif // MAINWINDOW_H