diff options
author | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
commit | 356efaf89afdad141b313767e1a2b89de3c08d0a (patch) | |
tree | 37edb2a0fc0ea15f4f60e45ed411cbea7b4c12c5 /ToolRotate.h | |
parent | 258eb984bafe0f667d1e76de61c8afaa23f39ef4 (diff) | |
download | zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.tar zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.zip |
zoomedit: Recreated ZoomEdit based on Glademm.
Diffstat (limited to 'ToolRotate.h')
-rw-r--r-- | ToolRotate.h | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/ToolRotate.h b/ToolRotate.h deleted file mode 100644 index 92aeab7..0000000 --- a/ToolRotate.h +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef TOOLROTATE_H_ -#define TOOLROTATE_H_ - -#include "Tool.h" -#include "SidebarView.h" -#include "Renderer.h" - -class ToolRotate : public Tool, private EventHandler, private Renderer { - private: - GtkWidget *image; - - EditManager *editManager; - - SidebarView sidebar; - - bool pressed, valid; - float angle; - Vertex vertexRot, vertex; - - // prevent shallow copy - ToolRotate(const ToolRotate &t); - const ToolRotate& operator=(const ToolRotate &t); - - public: - ToolRotate(EditManager *editManager); - virtual ~ToolRotate(); - - virtual void activate(); - - virtual const char *getType() const { - return "ToolRotate"; - } - - virtual const char *getName() const { - return "Rotate"; - } - - virtual GtkWidget *getImage() { - return image; - } - - virtual bool hoverFilter(const LevelObject &object) const { - return object.canRotate(); - } - - virtual EventHandler* getEventHandler() { - return this; - } - - virtual bool buttonPress(unsigned int button, const Vertex *v); - virtual bool buttonRelease(unsigned int button, const Vertex *v); - virtual bool motion(const Vertex *v, float scale); - - virtual Renderer *getRenderer() { - return this; - } - - virtual void render(const Level &level, const Rectangle &rect, float scale); - - virtual Sidebar* getSidebar() { - return &sidebar; - } -}; - -#endif /*TOOLROTATE_H_*/ |