diff options
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 | }; |