OpenStructure
Public Member Functions
Widget Class Referenceabstract

#include <widget.hh>

Inherits QWidget.

Inherited by ButtonBar, ButtonBox, DropBox, FileBrowser, GLWin, MessageWidget, PanelBar, PanelManager, PanelWidgetContainer, PythonShell, SceneWin, SequenceViewer, and ToolOptionsWin.

Public Member Functions

 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

Base class for widgets.

The base class defines an interface for restoring and saving the state of the internal widget.

Definition at line 40 of file widget.hh.

Constructor & Destructor Documentation

◆ Widget()

Widget ( QWidget *  widget,
QWidget *  parent = NULL 
)

Member Function Documentation

◆ DestroyOnClose()

bool DestroyOnClose ( ) const

whether the widget should be destroyed upon receiving a close event

◆ GetActions()

virtual ActionList GetActions ( )
virtual

get Widget specific actions

Reimplemented in SequenceViewer, MessageWidget, and FileBrowser.

◆ GetInternalWidget()

QWidget* GetInternalWidget ( )

◆ GetUniqueID()

const QString& GetUniqueID ( ) const
inline

Definition at line 60 of file widget.hh.

◆ Restore()

virtual bool Restore ( const QString &  prefix)
pure virtual

◆ Save()

virtual bool Save ( const QString &  prefix)
pure virtual

◆ SetDestroyOnClose()

void SetDestroyOnClose ( bool  flag)

set whether the widget should be destroyed when closed

◆ SetInternalWidget()

void SetInternalWidget ( QWidget *  widget)

◆ SetUniqueID()

void SetUniqueID ( const QString &  id)
inline

Definition at line 68 of file widget.hh.


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