From d25becbaceab79809cb57fafaece151cecee3f69 Mon Sep 17 00:00:00 2001 From: neoraider Date: Fri, 14 Dec 2007 22:03:00 +0000 Subject: zoomedit: Generalized Tool objects. --- ToolSelector.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'ToolSelector.h') 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_*/ -- cgit v1.2.3