text: #ifndef MAINWINDOW_H
  #define MAINWINDOW_H
  
  #include <QMainWindow>
  #include "layoutitem.h"
  #include "gamemapgrid.h"
  #include <QFileDialog>
  #include "newmapwindow.h"
  
  
  QT_BEGIN_NAMESPACE
  namespace Ui { class MainWindow; }
  QT_END_NAMESPACE
  
  class MainWindow : public QMainWindow
  {
      Q_OBJECT
  
  public:
      MainWindow(QWidget *parent = nullptr);
      ~MainWindow();
  
  private slots:
  
        void on_wallList_currentIndexChanged(int index);
        void on_actionNew_triggered();
        void on_actionOpen_triggered();
        //void on_actionSave_triggered();
        void on_actionSaveAs_triggered();
        void on_newMapCreated();
  
  
  private:
      int currentMapWidth;
      int currentMapHeight;
      int currentMapMinPlayers;
      int currentMapMaxPlayers;
      //GameMapGrid* currentMapGrid;
      MapServer* currentMap;
      Ui::MainWindow *ui;
      //MapServer currentMap;
      AppStatus appStatus;
      void openFile();
      void saveFile();
      void newFile();
      //void mousePressEvent(QMouseEvent *event);
  };
  #endif // MAINWINDOW_H
  