From dca2aea57957c6af1af535f23ae392e7517ebd51 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 15 Mar 2015 19:27:55 -0400 Subject: Fixed functionality of quit menu item in map editor --- tools/mapedit/src/frame.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools/mapedit/src/frame.h') 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 @@ #include "map.h" #include "widget.h" #include "tile_widget.h" +#include class MapeditFrame : public wxFrame { public: - MapeditFrame() : MapeditFrame(Map(), "") {} + MapeditFrame() {} MapeditFrame(Map map, std::string filename); MapeditWidget* GetMapEditor(); + + static void NewMap(); + static void OpenMap(const char* filename); + + std::list::iterator closer; private: + static void LaunchWindow(Map map, const char* filename); + void ZoomIn(wxCommandEvent& event); void ZoomOut(wxCommandEvent& event); void OnNew(wxCommandEvent& event); -- cgit 1.4.1