A PanelWidgetContainer can display various widgets A PanelWidgetContainer is a abstract class which is used by the PanelBar class as view mode. More...
#include <panel_widget_container.hh>
Inherits ost::gui::Widget.
Inherited by SplitterPanelBar, and TabbedPanelBar.
Public Member Functions | |
PanelWidgetContainer (PanelBar *parent) | |
virtual QString | GetName ()=0 |
virtual void | WidgetMoved (Widget *widget, int index)=0 |
virtual void | ShowWidget (Widget *widget, int pos, bool show=true)=0 |
virtual void | StartDrag () |
virtual void | EndDrag () |
PanelBar * | GetPanelBar () |
A PanelWidgetContainer can display various widgets A PanelWidgetContainer is a abstract class which is used by the PanelBar class as view mode.
Definition at line 37 of file panel_widget_container.hh.
PanelWidgetContainer | ( | PanelBar * | parent | ) |
virtual void EndDrag | ( | ) | [virtual] |
Stop dragging widgets This method is initially called in the PanelManager class in the PanelManager::EndDrag() method.
virtual QString GetName | ( | ) | [pure virtual] |
Get readable name This method must return a QString which identifies this WidgetContainer. This String will be visible in the gui to select the view mode of a PanelBar .
Implemented in SplitterPanelBar, and TabbedPanelBar.
PanelBar* GetPanelBar | ( | ) |
Get the PanelBar.
virtual void ShowWidget | ( | Widget * | widget, | |
int | pos, | |||
bool | show = true | |||
) | [pure virtual] |
display a widget at the given position Display the given widget at the index position.
widget | widget to be moved to the position. | |
pos | index of the given widget. If the index is out of range add the widget will be added to the front or at the end. | |
show | if show if false hide the widget even the position is not correct. |
virtual void StartDrag | ( | ) | [virtual] |
Begin with dragging widgets This method is initially called in the PanelManager class in the PanelManager::StartDrag() method.
virtual void WidgetMoved | ( | Widget * | widget, | |
int | index | |||
) | [pure virtual] |
move widget to given position Move the given widget to the index position.
widget | widget to be moved to the position. | |
index | new index of the given widget. If the index is out of range add the widget will be added to the front or at the end. |
Implemented in SplitterPanelBar, and TabbedPanelBar.