diff options
Diffstat (limited to 'ToolRotate.h')
-rw-r--r-- | ToolRotate.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ToolRotate.h b/ToolRotate.h index 419eb6a..27491fb 100644 --- a/ToolRotate.h +++ b/ToolRotate.h @@ -3,8 +3,9 @@ #include "Tool.h" #include "SidebarView.h" +#include "Renderer.h" -class ToolRotate : public Tool, EventHandler { +class ToolRotate : public Tool, private EventHandler, private Renderer { private: GtkWidget *image; @@ -12,12 +13,14 @@ class ToolRotate : public Tool, EventHandler { SidebarView sidebar; - bool pressed; + bool pressed, valid; float angle; + Vertex v0, v; // prevent shallow copy ToolRotate(const ToolRotate &t); const ToolRotate& operator=(const ToolRotate &t); + public: ToolRotate(EditManager *editManager); virtual ~ToolRotate(); @@ -48,6 +51,12 @@ class ToolRotate : public Tool, EventHandler { virtual bool buttonRelease(unsigned int button); virtual bool motion(); + virtual Renderer *getRenderer() { + return this; + } + + virtual void render(const Level &level, const Rectangle &rect, float scale); + virtual Sidebar* getSidebar() { return &sidebar; } |