diff options
author | neoraider <devnull@localhost> | 2007-12-14 23:03:00 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-12-14 23:03:00 +0100 |
commit | d25becbaceab79809cb57fafaece151cecee3f69 (patch) | |
tree | a0d3973343ccd658e8d73f64dcb402b193c424c3 /ToolAddPolygon.h | |
parent | 9a1bbf4b9ae00bfe6ef7c5c251bae0da9b624d9c (diff) | |
download | zoomedit-d25becbaceab79809cb57fafaece151cecee3f69.tar zoomedit-d25becbaceab79809cb57fafaece151cecee3f69.zip |
zoomedit: Generalized Tool objects.
Diffstat (limited to 'ToolAddPolygon.h')
-rw-r--r-- | ToolAddPolygon.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ToolAddPolygon.h b/ToolAddPolygon.h index d3ec2d3..b3c7856 100644 --- a/ToolAddPolygon.h +++ b/ToolAddPolygon.h @@ -10,8 +10,6 @@ class ToolAddPolygon : public Tool { EditManager *editManager; - static const gchar* name; - // prevent shallow copy ToolAddPolygon(const ToolAddPolygon &t); const ToolAddPolygon& operator=(const ToolAddPolygon &t); @@ -23,15 +21,21 @@ class ToolAddPolygon : public Tool { virtual void activate(); virtual void deactivate(); - virtual const gchar *getName() { - return name; + virtual const char *getType() const { + return "ToolAddPolygon"; + } + + virtual const char *getName() const { + return "Add polygonal room"; } bool isSensitive() { return TRUE; } - virtual GtkWidget *getImage(); + virtual GtkWidget *getImage() { + return image; + } }; #endif /*TOOLADDPOLYGON_H_*/ |