summaryrefslogtreecommitdiffstats
path: root/src/View/TopView.h
diff options
context:
space:
mode:
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);