summary refs log tree commit diff stats
path: root/tools/mapedit/src/widget.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-16 16:53:05 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-16 16:53:05 -0400
commit0d30e9b57229905f78e7bd60fe5d3cde72851f28 (patch)
tree4ca2abff9fb1933685f570e97a8b9e88a976c95f /tools/mapedit/src/widget.h
parent36536297aac5c07e3d5fb96abed74570fc7615e9 (diff)
downloadtherapy-0d30e9b57229905f78e7bd60fe5d3cde72851f28.tar.gz
therapy-0d30e9b57229905f78e7bd60fe5d3cde72851f28.tar.bz2
therapy-0d30e9b57229905f78e7bd60fe5d3cde72851f28.zip
Rewrote map editor so a single file contains all maps
Maps are viewed in a tree control on the left. They can be dragged and dropped. Maps are bolded when they are dirty. Saving saves expansion status and order of maps in tree.
Diffstat (limited to 'tools/mapedit/src/widget.h')
-rw-r--r--tools/mapedit/src/widget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mapedit/src/widget.h b/tools/mapedit/src/widget.h index a660f82..34627bc 100644 --- a/tools/mapedit/src/widget.h +++ b/tools/mapedit/src/widget.h
@@ -29,6 +29,7 @@ class MapeditWidget : public wxScrolledWindow {
29 void SetEditMode(EditMode editMode); 29 void SetEditMode(EditMode editMode);
30 void StartAddingEntity(MapObject* object); 30 void StartAddingEntity(MapObject* object);
31 void CancelAddingEntity(); 31 void CancelAddingEntity();
32 void SetMap(Map* map);
32 33
33 MapeditFrame* frame; 34 MapeditFrame* frame;
34 35
@@ -46,7 +47,7 @@ class MapeditWidget : public wxScrolledWindow {
46 void SetTile(wxPoint pos); 47 void SetTile(wxPoint pos);
47 void SetZoomSize(int zoom); 48 void SetZoomSize(int zoom);
48 49
49 Map* const map = nullptr; 50 Map* map = nullptr;
50 wxBitmap tiles; 51 wxBitmap tiles;
51 TileWidget* tileWidget; 52 TileWidget* tileWidget;
52 bool mouseIsDown = false; 53 bool mouseIsDown = false;