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 /ToolAddPolygon.h | |
parent | 258eb984bafe0f667d1e76de61c8afaa23f39ef4 (diff) | |
download | zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.tar zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.zip |
zoomedit: Recreated ZoomEdit based on Glademm.
Diffstat (limited to 'ToolAddPolygon.h')
-rw-r--r-- | ToolAddPolygon.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/ToolAddPolygon.h b/ToolAddPolygon.h deleted file mode 100644 index 2237a65..0000000 --- a/ToolAddPolygon.h +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef TOOLADDPOLYGON_H_ -#define TOOLADDPOLYGON_H_ - -#include "Tool.h" -#include "EditManager.h" -#include "SidebarAdd.h" -#include "LevelVertex.h" - - -class ToolAddPolygon : public Tool, private EventHandler, private Renderer { - private: - GtkWidget *image; - - EditManager *editManager; - - SidebarAdd sidebar; - - Room newRoom; - - // prevent shallow copy - ToolAddPolygon(const ToolAddPolygon &t); - const ToolAddPolygon& operator=(const ToolAddPolygon &t); - - public: - ToolAddPolygon(EditManager *editManager); - virtual ~ToolAddPolygon(); - - virtual void activate(); - virtual void deactivate(); - - virtual const char *getType() const { - return "ToolAddPolygon"; - } - - virtual const char *getName() const { - return "Add polygonal room"; - } - - virtual GtkWidget *getImage() { - return image; - } - - virtual bool hoverFilter(const LevelObject &object) const { - if(!object.isOfType("LevelVertex")) - return false; - - return ((LevelVertex*)&object)->canConnect(); - } - - virtual EventHandler* getEventHandler() { - return this; - } - - virtual Renderer *getRenderer() { - return this; - } - - virtual void render(const Level &level, const Rectangle &rect, float scale); - - virtual bool buttonPress(unsigned int button, const Vertex *v); - - virtual Sidebar* getSidebar() { - return &sidebar; - } -}; - -#endif /*TOOLADDPOLYGON_H_*/ |