PanelWidgetContainer Class Reference

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 ()
PanelBarGetPanelBar ()

Detailed Description

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.


Constructor & Destructor Documentation

PanelWidgetContainer ( PanelBar parent  ) 

Member Function Documentation

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.

Returns:
Returns the PanelBar in which this PanelWidgetContainer is being displayed.
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.

Parameters:
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.

Parameters:
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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 20 Jun 2016 for OpenStructure by  doxygen 1.6.1