diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-15 17:20:42 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-15 17:20:42 -0400 |
commit | 91640f2f35d703898edb14abaae7dd63f5346027 (patch) | |
tree | 35bdcfd4a61fa54f70c5b44d567a0fdd665e0129 /tools/mapedit/src/frame.h | |
parent | 3d24adb1162c4ce1b5030b73ea72873a2b14f6f9 (diff) | |
download | therapy-91640f2f35d703898edb14abaae7dd63f5346027.tar.gz therapy-91640f2f35d703898edb14abaae7dd63f5346027.tar.bz2 therapy-91640f2f35d703898edb14abaae7dd63f5346027.zip |
Added file management to map editor (only edits environment at current time)
Diffstat (limited to 'tools/mapedit/src/frame.h')
-rw-r--r-- | tools/mapedit/src/frame.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tools/mapedit/src/frame.h b/tools/mapedit/src/frame.h index 4d6c3dc..53d8998 100644 --- a/tools/mapedit/src/frame.h +++ b/tools/mapedit/src/frame.h | |||
@@ -13,21 +13,25 @@ | |||
13 | 13 | ||
14 | class MapeditFrame : public wxFrame { | 14 | class MapeditFrame : public wxFrame { |
15 | public: | 15 | public: |
16 | MapeditFrame() : MapeditFrame(Map()) {} | 16 | MapeditFrame() : MapeditFrame(Map(), "") {} |
17 | MapeditFrame(Map map); | 17 | MapeditFrame(Map map, std::string filename); |
18 | 18 | ||
19 | MapeditWidget* GetMapEditor(); | 19 | MapeditWidget* GetMapEditor(); |
20 | 20 | ||
21 | protected: | 21 | private: |
22 | void ZoomIn(wxCommandEvent& event); | 22 | void ZoomIn(wxCommandEvent& event); |
23 | void ZoomOut(wxCommandEvent& event); | 23 | void ZoomOut(wxCommandEvent& event); |
24 | 24 | void OnNew(wxCommandEvent& event); | |
25 | private: | 25 | void OnOpen(wxCommandEvent& event); |
26 | void OnExit(wxCommandEvent& event); | 26 | void OnSave(wxCommandEvent& event); |
27 | void OnClose(wxCommandEvent& event); | ||
28 | void OnExit(wxCloseEvent& event); | ||
29 | void OnQuit(wxCommandEvent& event); | ||
27 | 30 | ||
28 | Map map; | 31 | Map map; |
29 | MapeditWidget* mapEditor; | 32 | MapeditWidget* mapEditor; |
30 | TileWidget* tileEditor; | 33 | TileWidget* tileEditor; |
34 | std::string filename; | ||
31 | 35 | ||
32 | wxDECLARE_EVENT_TABLE(); | 36 | wxDECLARE_EVENT_TABLE(); |
33 | }; | 37 | }; |