From 2687501f215ec7ffd939801f171d25ea30b02c55 Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 19 Feb 2008 21:03:02 +0000 Subject: zoomedit: Made edges and vertices grabbable and rotatable again. --- LevelEdge.h | 4 ++++ LevelVertex.h | 4 ++++ 2 files changed, 8 insertions(+) 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); } -- cgit v1.2.3