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 /ToolSelector.h | |
parent | 9a1bbf4b9ae00bfe6ef7c5c251bae0da9b624d9c (diff) | |
download | zoomedit-d25becbaceab79809cb57fafaece151cecee3f69.tar zoomedit-d25becbaceab79809cb57fafaece151cecee3f69.zip |
zoomedit: Generalized Tool objects.
Diffstat (limited to 'ToolSelector.h')
-rw-r--r-- | ToolSelector.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ToolSelector.h b/ToolSelector.h index 1692bf3..b88c861 100644 --- a/ToolSelector.h +++ b/ToolSelector.h @@ -10,8 +10,6 @@ class ToolSelector : public Tool { EditManager *editManager; - static const gchar* name; - // prevent shallow copy ToolSelector(const ToolSelector &t); const ToolSelector& operator=(const ToolSelector &t); @@ -20,15 +18,21 @@ class ToolSelector : public Tool { ToolSelector(EditManager *editManager); virtual ~ToolSelector(); - virtual const gchar *getName() { - return name; + virtual const char *getType() const { + return "ToolSelector"; + } + + virtual const char *getName() const { + return "Select"; } bool isSensitive() { return TRUE; } - virtual GtkWidget *getImage(); + virtual GtkWidget *getImage() { + return image; + } }; #endif /*TOOLSELECTOR_H_*/ |