diff options
author | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
commit | 356efaf89afdad141b313767e1a2b89de3c08d0a (patch) | |
tree | 37edb2a0fc0ea15f4f60e45ed411cbea7b4c12c5 /SidebarToolbox.h | |
parent | 258eb984bafe0f667d1e76de61c8afaa23f39ef4 (diff) | |
download | zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.tar zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.zip |
zoomedit: Recreated ZoomEdit based on Glademm.
Diffstat (limited to 'SidebarToolbox.h')
-rw-r--r-- | SidebarToolbox.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/SidebarToolbox.h b/SidebarToolbox.h deleted file mode 100644 index 1be8b6a..0000000 --- a/SidebarToolbox.h +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef SIDEBARTOOLBOX_H_ -#define SIDEBARTOOLBOX_H_ - -#include <gtk/gtk.h> -#include <map> -#include <list> -#include "EditManager.h" -#include "Sidebar.h" -#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; - - Tool *activeTool; - - ToolSelector toolSelector; - - int cols, rows; - - void updateRows(bool changed); - void activateTool(Tool *tool); - - // prevent shallow copy - SidebarToolbox(const SidebarToolbox &w); - const SidebarToolbox& operator=(const SidebarToolbox &w); - - static void buttonToggled(GtkWidget *button, SidebarToolbox *toolbox); - static void sizeAllocate(GtkWidget *widget, GtkAllocation *allocation, SidebarToolbox *toolbox); - - public: - SidebarToolbox(Window *window); - virtual ~SidebarToolbox(); - - GtkWidget* getWidget() { - return widget; - } - - void resetTool() { - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(buttons[&toolSelector]), TRUE); - } - - Tool& getActiveTool() { - return *activeTool; - } - - void addTool(Tool *tool); - void removeTool(Tool *tool); - - void update(); -}; - -#endif /*SIDEBARTOOLBOX_H_*/ |