zoomedit: Made edges and vertices grabbable and rotatable again.

This commit is contained in:
neoraider 2008-02-19 21:03:02 +00:00
parent efb78cdf51
commit 2687501f21
2 changed files with 8 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);
}