#include <panel_bar.hh>
Inherits ost::gui::Widget.
Inherited by BottomBar, and SideBar.
Public Slots | |
| void | InsertWidget (Widget *widget, int index, bool is_hidden=false) |
| void | ToggleViewMode () |
| void | ToggleHide () |
| void | RemoveWidget (Widget *widget) |
Public Member Functions | |
| PanelBar (QWidget *parent) | |
| virtual bool | Save (const QString &prefix) |
| virtual bool | Restore (const QString &prefix) |
| virtual void | AddWidget (Widget *widget, bool hidden) |
| void | AddViewMode (PanelWidgetContainer *pwc) |
| QMenu * | GetViewModeMenu () |
| int | GetIndex (Widget *widget) |
| void | DragEnter () |
| void | EndDrag () |
| QAction * | GetShowAction () |
Definition at line 53 of file panel_bar.hh.
| PanelBar | ( | QWidget * | parent | ) |
| void AddViewMode | ( | PanelWidgetContainer * | pwc | ) |
| virtual void AddWidget | ( | Widget * | widget, | |
| bool | hidden | |||
| ) | [virtual] |
Add a widget to this widget Puts a widget at the end of the current PanelWidgetContainer.
| widget | Which should be added | |
| hidden | if this is true widget will not be shown |
| void DragEnter | ( | ) |
Begin with dragging widgets This method is called by the PanelManager class. Read more about this method at PanelManager::StartDrag() .
| void EndDrag | ( | ) |
Stop dragging widgets This method is called by the PanelManager class. Read more about this method at PanelManager::EndDrag() .
| int GetIndex | ( | Widget * | widget | ) |
| QAction* GetShowAction | ( | ) |
Get action which changes the visibility of this widget The returned action can be used for example in a MenuBar to allow hiding / showing this class.
| QMenu* GetViewModeMenu | ( | ) |
Get QMenu with view modes The returned menu can be used for exmaple in the menubar to allow the user choose the view mode.
| void InsertWidget | ( | Widget * | widget, | |
| int | index, | |||
| bool | is_hidden = false | |||
| ) | [slot] |
This slot adds a given widget at the given position The Widget will be added at the given index. If the widget is already in this panel, it will be moved to the given index.
| widget | Which should be inserted | |
| index | the position where the widget will be inserted | |
| is_hidden | marks if the widget will be inserted hidden or visible. true = widget is visible. |
| void RemoveWidget | ( | Widget * | widget | ) | [slot] |
| virtual bool Restore | ( | const QString & | prefix | ) | [virtual] |
Implements Widget.
| virtual bool Save | ( | const QString & | prefix | ) | [virtual] |
Implements Widget.
| void ToggleHide | ( | ) | [slot] |
Toggle the visibility of all Panels.
| void ToggleViewMode | ( | ) | [slot] |
Change to the next view mode This method changes the view mode to the next view mode. If the view mode reaches the end of the list, the first one will be displayed.
1.5.8