diff options
author | neoraider <devnull@localhost> | 2008-02-19 22:03:02 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-02-19 22:03:02 +0100 |
commit | 2687501f215ec7ffd939801f171d25ea30b02c55 (patch) | |
tree | 58208c48108159c675e7c742ea526f87e078bc9e | |
parent | efb78cdf51117c76ceacae1f65ce258cf97a8d22 (diff) | |
download | zoomedit-2687501f215ec7ffd939801f171d25ea30b02c55.tar zoomedit-2687501f215ec7ffd939801f171d25ea30b02c55.zip |
zoomedit: Made edges and vertices grabbable and rotatable again.
-rw-r--r-- | LevelEdge.h | 4 | ||||
-rw-r--r-- | LevelVertex.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/LevelEdge.h b/LevelEdge.h index 768f725..b2977f1 100644 --- a/LevelEdge.h +++ b/LevelEdge.h @@ -47,10 +47,14 @@ class LevelEdge : public LevelObject { return "LevelEdge"; } + virtual bool canMove() const {return true;} + virtual void move(float x, float y) { provider->moveEdge(id, x, y); } + virtual bool canRotate() const {return true;} + virtual void rotate(Vertex m, float a) { provider->rotateEdge(id, m, a); } diff --git a/LevelVertex.h b/LevelVertex.h index 2203bf4..b409ecf 100644 --- a/LevelVertex.h +++ b/LevelVertex.h @@ -26,10 +26,14 @@ class LevelVertex : public LevelObject { return 1000; } + virtual bool canMove() const {return true;} + virtual void move(float x, float y) { provider->moveVertex(id, x, y); } + virtual bool canRotate() const {return true;} + virtual void rotate(Vertex m, float a) { provider->rotateVertex(id, m, a); } |