summary refs log tree commit diff stats
path: root/tools/mapedit/src/undo.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mapedit/src/undo.h')
-rw-r--r--tools/mapedit/src/undo.h30
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 {
32class UndoableTextBox : public wxTextCtrl { 32class 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
63class 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
76class 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