diff options
Diffstat (limited to 'Tool.h')
-rw-r--r-- | Tool.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,17 +1,21 @@ #ifndef TOOL_H_ #define TOOL_H_ +#include "Object.h" #include <gtk/gtk.h> -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; }; |