summaryrefslogtreecommitdiffstats
path: root/Tool.h
diff options
context:
space:
mode:
Diffstat (limited to 'Tool.h')
-rw-r--r--Tool.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/Tool.h b/Tool.h
index b1e3731..8cabfdf 100644
--- a/Tool.h
+++ b/Tool.h
@@ -2,6 +2,9 @@
#define TOOL_H_
#include "Object.h"
+#include "EventHandler.h"
+#include "Sidebar.h"
+#include "Renderer.h"
#include <gtk/gtk.h>
@@ -12,12 +15,16 @@ class Tool : public Object {
virtual void activate() {};
virtual void deactivate() {};
- virtual const char *getName() const {
+ virtual const char* getName() const {
return getType();
}
- virtual GtkWidget *getImage() = 0;
+ virtual GtkWidget* getImage() = 0;
virtual bool isSensitive() = 0;
+
+ virtual EventHandler* getEventHandler() = 0;
+ virtual Sidebar* getSidebar() = 0;
+ virtual Renderer* getRenderer() {return NULL;}
};
#endif /*TOOL_H_*/