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. --- Tool.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Tool.h') diff --git a/Tool.h b/Tool.h index b958ddf..b1e3731 100644 --- a/Tool.h +++ b/Tool.h @@ -1,17 +1,21 @@ #ifndef TOOL_H_ #define TOOL_H_ +#include "Object.h" #include -class Tool { +class Tool : public Object { public: virtual ~Tool() {} virtual void activate() {}; virtual void deactivate() {}; - virtual const gchar *getName() = 0; + virtual const char *getName() const { + return getType(); + } + virtual GtkWidget *getImage() = 0; virtual bool isSensitive() = 0; }; -- cgit v1.2.3