diff options
Diffstat (limited to 'tools/mapedit/src/frame.h')
| -rw-r--r-- | tools/mapedit/src/frame.h | 10 |
1 files changed, 9 insertions, 1 deletions
| diff --git a/tools/mapedit/src/frame.h b/tools/mapedit/src/frame.h index 11990b1..5e119f3 100644 --- a/tools/mapedit/src/frame.h +++ b/tools/mapedit/src/frame.h | |||
| @@ -10,15 +10,23 @@ | |||
| 10 | #include "map.h" | 10 | #include "map.h" |
| 11 | #include "widget.h" | 11 | #include "widget.h" |
| 12 | #include "tile_widget.h" | 12 | #include "tile_widget.h" |
| 13 | #include <list> | ||
| 13 | 14 | ||
| 14 | class MapeditFrame : public wxFrame { | 15 | class MapeditFrame : public wxFrame { |
| 15 | public: | 16 | public: |
| 16 | MapeditFrame() : MapeditFrame(Map(), "") {} | 17 | MapeditFrame() {} |
| 17 | MapeditFrame(Map map, std::string filename); | 18 | MapeditFrame(Map map, std::string filename); |
| 18 | 19 | ||
| 19 | MapeditWidget* GetMapEditor(); | 20 | MapeditWidget* GetMapEditor(); |
| 21 | |||
| 22 | static void NewMap(); | ||
| 23 | static void OpenMap(const char* filename); | ||
| 24 | |||
| 25 | std::list<wxWindow*>::iterator closer; | ||
| 20 | 26 | ||
| 21 | private: | 27 | private: |
| 28 | static void LaunchWindow(Map map, const char* filename); | ||
| 29 | |||
| 22 | void ZoomIn(wxCommandEvent& event); | 30 | void ZoomIn(wxCommandEvent& event); |
| 23 | void ZoomOut(wxCommandEvent& event); | 31 | void ZoomOut(wxCommandEvent& event); |
| 24 | void OnNew(wxCommandEvent& event); | 32 | void OnNew(wxCommandEvent& event); |
