19 #ifndef OST_GUI_BOTTOM_BAR_BUTTON_BOX
20 #define OST_GUI_BOTTOM_BAR_BUTTON_BOX
30 #include <QGridLayout>
33 namespace ost {
namespace gui {
39 ButtonBox(
const QString& label, QWidget* parent=NULL);
41 virtual bool Save(
const QString& prefix);
42 virtual bool Restore(
const QString& prefix);
43 virtual void AddButton(
const QString& name,
Widget* widget,
bool pressed);
48 virtual void dropEvent(QDropEvent* event);
49 virtual void dragEnterEvent (QDragEnterEvent* event );
52 void ToggleWidget(
Widget* widget);
53 void Removed(
Widget* widget);
54 void Inserted(
Widget* widget,
int pos,
bool isHidden);
59 void ButtonPressed(
Widget* widget);
63 QHBoxLayout* buttons_layout_;
65 QList<EventButton *>* buttons_;
#define DLLEXPORT_OST_GUI