summary refs log tree commit diff stats
path: root/tools/mapedit/src/mapselect_combo.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mapedit/src/mapselect_combo.h')
-rw-r--r--tools/mapedit/src/mapselect_combo.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/mapedit/src/mapselect_combo.h b/tools/mapedit/src/mapselect_combo.h new file mode 100644 index 0000000..9f0fe25 --- /dev/null +++ b/tools/mapedit/src/mapselect_combo.h
@@ -0,0 +1,36 @@
1#ifndef MAPSELECT_COMBO_H
2#define MAPSELECT_COMBO_H
3
4#include <wx/wxprec.h>
5
6#ifndef WX_PRECOMP
7#include <wx/wx.h>
8#endif
9
10#include <wx/combo.h>
11#include <wx/treectrl.h>
12
13class MapeditFrame;
14
15class MapSelectComboPopup : public wxTreeCtrl, public wxComboPopup {
16 public:
17 MapSelectComboPopup(wxTreeCtrl* mapTree, int initial);
18 void Init();
19 bool Create(wxWindow* parent);
20 wxWindow* GetControl();
21 wxString GetStringValue() const;
22 void OnPopup();
23 void OnMouseClick(wxMouseEvent& event);
24 int GetSelectedMapID() const;
25 void SetSelectedMapID(int id);
26
27 private:
28 void CopyNodes(wxTreeItemId from, wxTreeItemId to);
29
30 wxTreeCtrl* mapTree;
31 int lastSelected = 0;
32
33 wxDECLARE_EVENT_TABLE();
34};
35
36#endif