diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-17 13:58:32 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-17 13:58:32 -0400 |
commit | e882367d80a0bcdd09b5412d908b0fdb6b6bfe34 (patch) | |
tree | e5a023fc51f02cf37b97bfbb9ef09d2ddfc6591e /tools/mapedit/src/widget.h | |
parent | 29f818c314f86f9a842840c20d9634f0711507a6 (diff) | |
download | therapy-e882367d80a0bcdd09b5412d908b0fdb6b6bfe34.tar.gz therapy-e882367d80a0bcdd09b5412d908b0fdb6b6bfe34.tar.bz2 therapy-e882367d80a0bcdd09b5412d908b0fdb6b6bfe34.zip |
Implemented undo/redo framework in map editor
Diffstat (limited to 'tools/mapedit/src/widget.h')
-rw-r--r-- | tools/mapedit/src/widget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/mapedit/src/widget.h b/tools/mapedit/src/widget.h index 67ebc01..4ae22c7 100644 --- a/tools/mapedit/src/widget.h +++ b/tools/mapedit/src/widget.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #include "tile_widget.h" | 11 | #include "tile_widget.h" |
12 | #include <list> | 12 | #include <list> |
13 | #include <memory> | 13 | #include <memory> |
14 | #include <utility> | ||
15 | #include <set> | ||
14 | 16 | ||
15 | class MapeditFrame; | 17 | class MapeditFrame; |
16 | 18 | ||
@@ -58,8 +60,10 @@ class MapeditWidget : public wxScrolledWindow { | |||
58 | EditMode editMode = EditTiles; | 60 | EditMode editMode = EditTiles; |
59 | int currentPlayer = 0; | 61 | int currentPlayer = 0; |
60 | bool isSettingPos = false; | 62 | bool isSettingPos = false; |
63 | std::set<std::pair<int,int>> changeBuffer; | ||
61 | 64 | ||
62 | MapObject* addingEntity = nullptr; | 65 | MapObject* addingEntity = nullptr; |
66 | MapObjectEntry* movingEntity = nullptr; | ||
63 | std::shared_ptr<MapObjectEntry> selectedEntity; | 67 | std::shared_ptr<MapObjectEntry> selectedEntity; |
64 | 68 | ||
65 | DECLARE_DYNAMIC_CLASS(MapeditWidget) | 69 | DECLARE_DYNAMIC_CLASS(MapeditWidget) |