diff options
author | neoraider <devnull@localhost> | 2008-01-16 17:11:00 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-01-16 17:11:00 +0100 |
commit | 8b4b9845d657970b920667f2c2ca64a4974463e9 (patch) | |
tree | 4c7d1d09cce705118c220967dc94873852d1669c /EditManager.cpp | |
parent | e9d27f488c8653967c9a5b86c94801367253444c (diff) | |
download | zoomedit-8b4b9845d657970b920667f2c2ca64a4974463e9.tar zoomedit-8b4b9845d657970b920667f2c2ca64a4974463e9.zip |
zoomedit: Let tools decide wether to highlight hovered objects.
Diffstat (limited to 'EditManager.cpp')
-rw-r--r-- | EditManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/EditManager.cpp b/EditManager.cpp index 9c44a27..0052c8f 100644 --- a/EditManager.cpp +++ b/EditManager.cpp @@ -31,6 +31,7 @@ EditManager::EditManager(Window *window) { this->window = window; hoveredObject = NULL; + highlightedObject = NULL; selectedObject = NULL; hasHoveredVertex = false; @@ -56,12 +57,12 @@ bool EditManager::addRoom(const Room &newRoom) { return false; } -Vertex* EditManager::getHoveredVertex() { +const Vertex* EditManager::getHoveredVertex() const { if(hasHoveredVertex) return &hoveredVertex; else return NULL; } -void EditManager::setHoveredVertex(Vertex *v) { +void EditManager::setHoveredVertex(const Vertex *v) { if(v) { hasHoveredVertex = true; hoveredVertex = *v; |