diff options
author | neoraider <devnull@localhost> | 2007-10-18 21:18:01 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-10-18 21:18:01 +0200 |
commit | 2bc9bb15dcc9691f6946eaa7a03370814bad0b8e (patch) | |
tree | a0b45181788dd17bd580374fd4a3fdc04ae8bd17 /EditManager.h | |
parent | b660b965bcb679e53cc89e7b8903190d2d162ff6 (diff) | |
download | zoomedit-2bc9bb15dcc9691f6946eaa7a03370814bad0b8e.tar zoomedit-2bc9bb15dcc9691f6946eaa7a03370814bad0b8e.zip |
zoomedit: edit.c in den EditManager integriert
Diffstat (limited to 'EditManager.h')
-rw-r--r-- | EditManager.h | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/EditManager.h b/EditManager.h index a1561eb..6b52389 100644 --- a/EditManager.h +++ b/EditManager.h @@ -2,6 +2,7 @@ #define EDITMANAGER_H_ #include "Room.h" +#include "IdManager.h" class Window; @@ -16,9 +17,19 @@ class EditManager { private: Mode mode; + IdManager idManager; + Window *window; - //Room newRoom; + Room newRoom; + Room *activeRoom; + + Room *hoveredRoom; + + Vertex hoveredVertex; + bool hasHoveredVertex; + + bool lineOk(const Line& l) const; public: EditManager(Window *window); @@ -28,9 +39,25 @@ class EditManager { void addVertex(const Vertex &v); - Mode getMode() { + Mode getMode() const { return mode; } + + Room* getActiveRoom() { + return activeRoom; + } + + Room* getHoveredRoom() { + return hoveredRoom; + } + + Vertex* getHoveredVertex(); + void setHoveredVertex(Vertex *v); + + void buttonPress(unsigned int button); + + bool vertexOk(const Vertex& v) const; + bool polygonOk(const Polygon& polygon) const; }; #endif /*EDITMANAGER_H_*/ |