OpenStructure
Public Member Functions
PanelWidgetContainer Class Referenceabstract

#include <panel_widget_container.hh>

Inherits 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 ()
 
- Public Member Functions inherited from Widget
 Widget (QWidget *widget, QWidget *parent=NULL)
 
void SetDestroyOnClose (bool flag)
 
bool DestroyOnClose () const
 
virtual ActionList GetActions ()
 
QWidget * GetInternalWidget ()
 
void SetInternalWidget (QWidget *widget)
 
const QString & GetUniqueID () const
 
void SetUniqueID (const QString &id)
 
virtual bool Restore (const QString &prefix)=0
 
virtual bool Save (const QString &prefix)=0
 

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

Member Function Documentation

◆ EndDrag()

virtual void EndDrag ( )
virtual

Stop dragging widgets This method is initially called in the PanelManager class in the PanelManager::EndDrag() method.

◆ GetName()

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 TabbedPanelBar, and SplitterPanelBar.

◆ GetPanelBar()

PanelBar* GetPanelBar ( )

Get the PanelBar.

Returns
Returns the PanelBar in which this PanelWidgetContainer is being displayed.

◆ ShowWidget()

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
widgetwidget to be moved to the position.
posindex of the given widget. If the index is out of range add the widget will be added to the front or at the end.
showif show if false hide the widget even the position is not correct.

◆ StartDrag()

virtual void StartDrag ( )
virtual

Begin with dragging widgets This method is initially called in the PanelManager class in the PanelManager::StartDrag() method.

◆ WidgetMoved()

virtual void WidgetMoved ( Widget widget,
int  index 
)
pure virtual

move widget to given position Move the given widget to the index position.

Parameters
widgetwidget to be moved to the position.
indexnew 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 TabbedPanelBar, and SplitterPanelBar.


The documentation for this class was generated from the following file: