diff options
author | neoraider <devnull@localhost> | 2007-12-14 23:03:00 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-12-14 23:03:00 +0100 |
commit | d25becbaceab79809cb57fafaece151cecee3f69 (patch) | |
tree | a0d3973343ccd658e8d73f64dcb402b193c424c3 /Tool.h | |
parent | 9a1bbf4b9ae00bfe6ef7c5c251bae0da9b624d9c (diff) | |
download | zoomedit-d25becbaceab79809cb57fafaece151cecee3f69.tar zoomedit-d25becbaceab79809cb57fafaece151cecee3f69.zip |
zoomedit: Generalized Tool objects.
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; }; |