From 2bc9bb15dcc9691f6946eaa7a03370814bad0b8e Mon Sep 17 00:00:00 2001 From: neoraider Date: Thu, 18 Oct 2007 19:18:01 +0000 Subject: zoomedit: edit.c in den EditManager integriert --- EditManager.h | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'EditManager.h') 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_*/ -- cgit v1.2.3