summaryrefslogtreecommitdiffstats
path: root/Tool.h
diff options
context:
space:
mode:
Diffstat (limited to 'Tool.h')
-rw-r--r--Tool.h8
1 files changed, 6 insertions, 2 deletions
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 <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;
};