Walls And Holes  1
mapviewcontainer.h
Go to the documentation of this file.
1 #ifndef MAPVIEWCONTAINER_H
2 #define MAPVIEWCONTAINER_H
3 
4 #include "mapview.h"
5 #include "mapcellgraphicsitem.h"
6 
7 #include <QWidget>
8 #include <QAction>
9 
10 class MapViewContainer : public QWidget
11 {
12  Q_OBJECT
13 
14 public:
15  MapViewContainer(QWidget *parent);
16 
17  MapView *mapView() { return mMapView; }
18 
19 private slots:
20  void modeChanged();
21  void noViewToggled(bool state);
22 
23 private:
24  MapView *mMapView;
25 
26  QAction *mNoViewAction;
27  QVector<QPair<QAction *, MapViewMode>> mMapModeActions;
28 };
29 
30 #endif // MAPVIEWCONTAINER_H
Definition: mapviewcontainer.h:10
MapViewContainer(QWidget *parent)
Definition: mapviewcontainer.cpp:7
MapView * mapView()
Definition: mapviewcontainer.h:17
The MapView class Handles display of TileMap.
Definition: mapview.h:20