summaryrefslogtreecommitdiffstats
path: root/SidebarToolbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'SidebarToolbox.h')
-rw-r--r--SidebarToolbox.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/SidebarToolbox.h b/SidebarToolbox.h
index 49bfec4..8e8a1f2 100644
--- a/SidebarToolbox.h
+++ b/SidebarToolbox.h
@@ -9,10 +9,16 @@
#include "Tool.h"
#include "ToolSelector.h"
+
+class Window;
+
+
class SidebarToolbox : Sidebar {
private:
GtkWidget *widget;
+ Window *window;
+
std::list<Tool*> tools;
std::map<Tool*, GtkWidget*> buttons;
std::map<GtkWidget*, Tool*> buttonsRev;
@@ -34,13 +40,17 @@ class SidebarToolbox : Sidebar {
static void sizeAllocate(GtkWidget *widget, GtkAllocation *allocation, SidebarToolbox *toolbox);
public:
- SidebarToolbox(EditManager *editManager);
+ SidebarToolbox(Window *window);
virtual ~SidebarToolbox();
GtkWidget* getWidget() {
return widget;
}
+ Tool *getActiveTool() {
+ return activeTool;
+ }
+
void addTool(Tool *tool);
void removeTool(Tool *tool);