summary refs log tree commit diff stats
path: root/tools/mapedit/src/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mapedit/src/widget.h')
-rw-r--r--tools/mapedit/src/widget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/mapedit/src/widget.h b/tools/mapedit/src/widget.h index 9de5b02..a660f82 100644 --- a/tools/mapedit/src/widget.h +++ b/tools/mapedit/src/widget.h
@@ -9,6 +9,8 @@
9 9
10#include "map.h" 10#include "map.h"
11#include "tile_widget.h" 11#include "tile_widget.h"
12#include <list>
13#include <memory>
12 14
13class MapeditFrame; 15class MapeditFrame;
14 16
@@ -35,6 +37,7 @@ class MapeditWidget : public wxScrolledWindow {
35 virtual wxSize DoGetBestSize() const; 37 virtual wxSize DoGetBestSize() const;
36 void OnPaint(wxPaintEvent& event); 38 void OnPaint(wxPaintEvent& event);
37 void OnClick(wxMouseEvent& event); 39 void OnClick(wxMouseEvent& event);
40 void OnRightClick(wxMouseEvent& event);
38 void OnMouseMove(wxMouseEvent& event); 41 void OnMouseMove(wxMouseEvent& event);
39 void OnMouseUp(wxMouseEvent& event); 42 void OnMouseUp(wxMouseEvent& event);
40 void OnMouseOut(wxMouseEvent& event); 43 void OnMouseOut(wxMouseEvent& event);
@@ -53,6 +56,7 @@ class MapeditWidget : public wxScrolledWindow {
53 EditMode editMode = EditTiles; 56 EditMode editMode = EditTiles;
54 57
55 MapObject* addingEntity = nullptr; 58 MapObject* addingEntity = nullptr;
59 std::shared_ptr<MapObjectEntry> selectedEntity;
56 60
57 DECLARE_DYNAMIC_CLASS(MapeditWidget) 61 DECLARE_DYNAMIC_CLASS(MapeditWidget)
58 DECLARE_EVENT_TABLE() 62 DECLARE_EVENT_TABLE()