19 #ifndef OST_GUI_PANEL_BAR_PANEL_BAR
20 #define OST_GUI_PANEL_BAR_PANEL_BAR
31 #include <QStackedLayout>
35 #include <QActionGroup>
36 namespace ost {
namespace gui {
38 class PanelWidgetContainer;
59 virtual bool Save(
const QString& prefix);
60 virtual bool Restore(
const QString& prefix);
115 void ChangeViewMode(QAction*
action);
116 void ToggleVisibility(
Widget*);
117 void ShowActionTrigger();
118 void SetViewMode(
int index);
122 QStackedLayout* layout_;
123 QActionGroup* view_modes_;
124 QMenu* view_mode_menu_;
126 QList<WidgetState> widget_states_;
128 QAction* show_action_;
Panel Bar which may contain other Widgets A PanelBar might have different ViewModes which are PanelWi...
void ToggleHide()
Toggle the visibility of all Panels.
virtual bool Save(const QString &prefix)
PanelBar(QWidget *parent)
void RemoveWidget(Widget *widget)
Remove a Widget The widget will be removed if it is in this PanelBar.
int GetIndex(Widget *widget)
Get the index of a given widget The index of a widget is the position number. This method can be used...
virtual void AddWidget(Widget *widget, bool hidden)
Add a widget to this widget Puts a widget at the end of the current PanelWidgetContainer.
void EndDrag()
Stop dragging widgets This method is called by the PanelManager class. Read more about this method at...
void DragEnter()
Begin with dragging widgets This method is called by the PanelManager class. Read more about this met...
QMenu * GetViewModeMenu()
Get QMenu with view modes The returned menu can be used for exmaple in the menubar to allow the user ...
void ToggleViewMode()
Change to the next view mode This method changes the view mode to the next view mode....
QAction * GetShowAction()
Get action which changes the visibility of this widget The returned action can be used for example in...
virtual bool Restore(const QString &prefix)
void AddViewMode(PanelWidgetContainer *pwc)
void InsertWidget(Widget *widget, int index, bool is_hidden=false)
This slot adds a given widget at the given position The Widget will be added at the given index....
#define DLLEXPORT_OST_GUI