summaryrefslogtreecommitdiffstats
path: root/src/View/TopView.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-01-09 03:18:25 +0100
committerMatthias Schiffer <matthias@gamezock.de>2010-01-09 03:18:25 +0100
commitb4adc20ef08257124a01499436f2b8b447adcb33 (patch)
tree2d5440ccce94c464baf9869ceaf6b833b45ce51e /src/View/TopView.h
parent2bd663e0db1f365595aa9f04a8423ca85b9a1063 (diff)
downloadzoomedit-b4adc20ef08257124a01499436f2b8b447adcb33.tar
zoomedit-b4adc20ef08257124a01499436f2b8b447adcb33.zip
Use room list
Diffstat (limited to 'src/View/TopView.h')
-rw-r--r--src/View/TopView.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/View/TopView.h b/src/View/TopView.h
index c164f31..085d244 100644
--- a/src/View/TopView.h
+++ b/src/View/TopView.h
@@ -27,6 +27,8 @@
namespace ZoomEdit {
+class Instance;
+
namespace Data {
class Level;
class Room;
@@ -45,7 +47,7 @@ class TopView : public View {
bool operator<(const Edge &e) const;
};
- Data::Level *level;
+ Instance *instance;
float viewWidth, viewHeight;
@@ -54,14 +56,14 @@ class TopView : public View {
int zoomLevel;
float scale;
- Data::Room *selectedRoom;
-
void drawGrid();
public:
- TopView(Data::Level *level0 = 0)
- : level(level0), viewWidth(0), viewHeight(0), xCenter(0), yCenter(0), zoomLevel(0), scale(100), selectedRoom(0) {}
+ TopView(Instance *instance0)
+ : instance(instance0), viewWidth(0), viewHeight(0), xCenter(0), yCenter(0), zoomLevel(0), scale(100) {}
+ Instance* getInstance() {return instance;}
+
float getWidth() const {return viewWidth;}
float getHeight() const {return viewHeight;}
@@ -72,11 +74,6 @@ class TopView : public View {
float getScale() const {return scale;}
- Data::Room* getSelectedRoom() {return selectedRoom;}
-
- Data::Level* getLevel() {return level;}
- void setLevel(Data::Level *level0) {level = level0; signalUpdate().emit();}
-
virtual void init();
virtual void resize(float width, float height);