summary refs log tree commit diff stats
path: root/tools/mapedit/src/frame.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-15 15:50:04 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-15 15:50:04 -0400
commit8702c11db08f78b6c91ef950ce280f2289b1a6e6 (patch)
treeed0f093974c07cfd0a7b1d7fd24573662c05d5f3 /tools/mapedit/src/frame.h
parent3e989517ec46c40a82671620577c40765c94a41f (diff)
downloadtherapy-8702c11db08f78b6c91ef950ce280f2289b1a6e6.tar.gz
therapy-8702c11db08f78b6c91ef950ce280f2289b1a6e6.tar.bz2
therapy-8702c11db08f78b6c91ef950ce280f2289b1a6e6.zip
Added scrolling and zooming to map editor
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};