diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-19 11:42:54 -0400 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-19 11:42:54 -0400 |
| commit | 281bdf956a646fd8c9944e9a44f867c984792216 (patch) | |
| tree | ba0297d2125ac22d22c873e012a8f0604e9e3a86 /tools/mapedit/src/undo.h | |
| parent | 103587c2d5f9deb20e549a86cdf5023b429cc6a1 (diff) | |
| download | therapy-281bdf956a646fd8c9944e9a44f867c984792216.tar.gz therapy-281bdf956a646fd8c9944e9a44f867c984792216.tar.bz2 therapy-281bdf956a646fd8c9944e9a44f867c984792216.zip | |
Map editor can now edit properties for objects (breaks main game build)
Diffstat (limited to 'tools/mapedit/src/undo.h')
| -rw-r--r-- | tools/mapedit/src/undo.h | 30 |
1 files changed, 29 insertions, 1 deletions
| diff --git a/tools/mapedit/src/undo.h b/tools/mapedit/src/undo.h index 794f993..621f42c 100644 --- a/tools/mapedit/src/undo.h +++ b/tools/mapedit/src/undo.h | |||
| @@ -32,7 +32,7 @@ class Undoable { | |||
| 32 | class UndoableTextBox : public wxTextCtrl { | 32 | class UndoableTextBox : public wxTextCtrl { |
| 33 | public: | 33 | public: |
| 34 | UndoableTextBox(); | 34 | UndoableTextBox(); |
| 35 | UndoableTextBox(wxWindow* parent, wxWindowID id, wxString startText, std::string undoType, MapeditFrame* realParent, wxPoint pos = wxDefaultPosition, wxSize size = wxDefaultSize, long style = 0); | 35 | UndoableTextBox(wxWindow* parent, wxWindowID id, wxString startText, std::string undoType, MapeditFrame* realParent, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); |
| 36 | 36 | ||
| 37 | private: | 37 | private: |
| 38 | class Undo : public Undoable { | 38 | class Undo : public Undoable { |
| @@ -60,4 +60,32 @@ class UndoableTextBox : public wxTextCtrl { | |||
| 60 | wxDECLARE_EVENT_TABLE(); | 60 | wxDECLARE_EVENT_TABLE(); |
| 61 | }; | 61 | }; |
| 62 | 62 | ||
| 63 | class UndoableChoice : public wxChoice { | ||
| 64 | public: | ||
| 65 | UndoableChoice(); | ||
| 66 | UndoableChoice(wxWindow* parent, wxWindowID id, MapeditFrame* realParent, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, int n = 0, const wxString choices[] = NULL, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxChoiceNameStr); | ||
| 67 | |||
| 68 | protected: | ||
| 69 | void Init(); | ||
| 70 | void OnChoose(wxCommandEvent& event); | ||
| 71 | |||
| 72 | private: | ||
| 73 | MapeditFrame* realParent; | ||
| 74 | }; | ||
| 75 | |||
| 76 | class UndoableSlider : public wxSlider { | ||
| 77 | public: | ||
| 78 | UndoableSlider(); | ||
| 79 | UndoableSlider(wxWindow* parent, wxWindowID id, MapeditFrame* realParent, int value, int minvalue, int maxvalue, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxSliderNameStr); | ||
| 80 | |||
| 81 | protected: | ||
| 82 | void Init(); | ||
| 83 | void OnSlide(wxScrollEvent& event); | ||
| 84 | |||
| 85 | private: | ||
| 86 | MapeditFrame* realParent; | ||
| 87 | |||
| 88 | wxDECLARE_EVENT_TABLE(); | ||
| 89 | }; | ||
| 90 | |||
| 63 | #endif | 91 | #endif |
