This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoomedit/SidebarToolbox.h

37 lines
677 B
C
Raw Normal View History

2007-11-30 15:04:01 +00:00
#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_*/