summary refs log tree commit diff stats
path: root/tools/mapedit/src/frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mapedit/src/frame.h')
-rw-r--r--tools/mapedit/src/frame.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/mapedit/src/frame.h b/tools/mapedit/src/frame.h index e5d8562..4d6c3dc 100644 --- a/tools/mapedit/src/frame.h +++ b/tools/mapedit/src/frame.h
@@ -8,16 +8,26 @@
8#endif 8#endif
9 9
10#include "map.h" 10#include "map.h"
11#include "widget.h"
12#include "tile_widget.h"
11 13
12class MapeditFrame : public wxFrame { 14class MapeditFrame : public wxFrame {
13 public: 15 public:
14 MapeditFrame() : MapeditFrame(Map()) {} 16 MapeditFrame() : MapeditFrame(Map()) {}
15 MapeditFrame(Map map); 17 MapeditFrame(Map map);
16 18
19 MapeditWidget* GetMapEditor();
20
21 protected:
22 void ZoomIn(wxCommandEvent& event);
23 void ZoomOut(wxCommandEvent& event);
24
17 private: 25 private:
18 void OnExit(wxCommandEvent& event); 26 void OnExit(wxCommandEvent& event);
19 27
20 Map map; 28 Map map;
29 MapeditWidget* mapEditor;
30 TileWidget* tileEditor;
21 31
22 wxDECLARE_EVENT_TABLE(); 32 wxDECLARE_EVENT_TABLE();
23}; 33};