summaryrefslogtreecommitdiffstats
path: root/ToolSelector.h
diff options
context:
space:
mode:
Diffstat (limited to 'ToolSelector.h')
-rw-r--r--ToolSelector.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/ToolSelector.h b/ToolSelector.h
index b88c861..5ba2bcd 100644
--- a/ToolSelector.h
+++ b/ToolSelector.h
@@ -3,13 +3,17 @@
#include "Tool.h"
#include "EditManager.h"
+#include "SidebarView.h"
-class ToolSelector : public Tool {
+
+class ToolSelector : public Tool, public EventHandler {
private:
GtkWidget *image;
EditManager *editManager;
+ SidebarView sidebar;
+
// prevent shallow copy
ToolSelector(const ToolSelector &t);
const ToolSelector& operator=(const ToolSelector &t);
@@ -26,13 +30,23 @@ class ToolSelector : public Tool {
return "Select";
}
- bool isSensitive() {
+ virtual bool isSensitive() {
return TRUE;
}
virtual GtkWidget *getImage() {
return image;
}
+
+ virtual EventHandler *getEventHandler() {
+ return this;
+ }
+
+ virtual bool buttonPress(unsigned int button);
+
+ virtual Sidebar* getSidebar() {
+ return &sidebar;
+ }
};
#endif /*TOOLSELECTOR_H_*/