Base class for widgets. More...
#include <widget.hh>
Inherits PyQt4::QtGui::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 |
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.
Widget | ( | QWidget * | widget, | |
QWidget * | parent = NULL | |||
) |
bool DestroyOnClose | ( | ) | const |
whether the widget should be destroyed upon receiving a close event
virtual ActionList GetActions | ( | ) | [virtual] |
get Widget specific actions
Reimplemented in FileBrowser, MessageWidget, and SequenceViewer.
QWidget* GetInternalWidget | ( | ) |
virtual bool Restore | ( | const QString & | prefix | ) | [pure virtual] |
Implemented in FileBrowser, GLWin, MessageWidget, ButtonBar, ButtonBox, DropBox, PanelBar, PanelManager, SplitterPanelBar, TabbedPanelBar, PythonShell, SceneWin, SequenceViewer, and ToolOptionsWin.
virtual bool Save | ( | const QString & | prefix | ) | [pure virtual] |
Implemented in FileBrowser, GLWin, MessageWidget, ButtonBar, ButtonBox, DropBox, PanelBar, PanelManager, SplitterPanelBar, TabbedPanelBar, PythonShell, SceneWin, SequenceViewer, and ToolOptionsWin.
void SetDestroyOnClose | ( | bool | flag | ) |
set whether the widget should be destroyed when closed
void SetInternalWidget | ( | QWidget * | widget | ) |