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 /ToolGrab.h | |
parent | 258eb984bafe0f667d1e76de61c8afaa23f39ef4 (diff) | |
download | zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.tar zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.zip |
zoomedit: Recreated ZoomEdit based on Glademm.
Diffstat (limited to 'ToolGrab.h')
-rw-r--r-- | ToolGrab.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/ToolGrab.h b/ToolGrab.h deleted file mode 100644 index fc9f582..0000000 --- a/ToolGrab.h +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef TOOLGRAB_H_ -#define TOOLGRAB_H_ - -#include "Tool.h" -#include "EditManager.h" -#include "SidebarView.h" - - -class ToolGrab : public Tool, private EventHandler { - private: - GtkWidget *image; - - EditManager *editManager; - - SidebarView sidebar; - - bool pressed; - Vertex grabbedVertex; - - // prevent shallow copy - ToolGrab(const ToolGrab &t); - const ToolGrab& operator=(const ToolGrab &t); - - public: - ToolGrab(EditManager *editManager); - virtual ~ToolGrab(); - - virtual void activate(); - - virtual const char *getType() const { - return "ToolGrab"; - } - - virtual const char *getName() const { - return "Grab"; - } - - virtual GtkWidget *getImage() { - return image; - } - - virtual bool hoverFilter(const LevelObject &object) const { - return object.canMove(); - } - - 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); - - virtual Sidebar* getSidebar() { - return &sidebar; - } -}; - -#endif /*TOOLGRAB_H_*/ |