summaryrefslogtreecommitdiffstats
path: root/Tool.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-12-14 23:03:00 +0100
committerneoraider <devnull@localhost>2007-12-14 23:03:00 +0100
commitd25becbaceab79809cb57fafaece151cecee3f69 (patch)
treea0d3973343ccd658e8d73f64dcb402b193c424c3 /Tool.h
parent9a1bbf4b9ae00bfe6ef7c5c251bae0da9b624d9c (diff)
downloadzoomedit-d25becbaceab79809cb57fafaece151cecee3f69.tar
zoomedit-d25becbaceab79809cb57fafaece151cecee3f69.zip
zoomedit: Generalized Tool objects.
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;
};