blob: 4982502f69cec027120ea88b69efa67e3088cc9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef SIDEBARTOOLBOX_H_
#define SIDEBARTOOLBOX_H_
#include <gtk/gtk.h>
#include <list>
#include <set>
#include "Sidebar.h"
#include "Tool.h"
class SidebarToolbox : Sidebar
{
private:
GtkWidget *widget;
std::list<GtkWidget*> buttonBoxes;
std::set<Tool*> tools;
// prevent shallow copy
SidebarToolbox(const SidebarToolbox &w);
const SidebarToolbox& operator=(const SidebarToolbox &w);
public:
SidebarToolbox();
virtual ~SidebarToolbox();
GtkWidget* getWidget() {
return widget;
}
void update();
bool addTool(Tool *tool);
bool removeTool(Tool *tool);
};
#endif /*SIDEBARTOOLBOX_H_*/
|