2022-08-28 23:28:36 +02:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QGraphicsScene>
|
|
|
|
|
2022-08-30 00:44:02 +02:00
|
|
|
#include "maphandler.h"
|
|
|
|
|
|
|
|
class CMap;
|
|
|
|
|
2022-08-28 23:28:36 +02:00
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_actionOpen_triggered();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
|
|
|
|
QGraphicsScene * scene;
|
2022-08-30 00:44:02 +02:00
|
|
|
|
|
|
|
std::unique_ptr<CMap> map;
|
|
|
|
|
|
|
|
MapHandler mapHandler;
|
2022-08-28 23:28:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|