Widget Class Reference

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

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 ( QWidget *  widget,
QWidget *  parent = NULL 
)

Member Function Documentation

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 (  ) 
const QString& GetUniqueID (  )  const [inline]

Definition at line 60 of file widget.hh.

virtual bool Restore ( const QString &  prefix  )  [pure virtual]
virtual bool Save ( const QString &  prefix  )  [pure virtual]
void SetDestroyOnClose ( bool  flag  ) 

set whether the widget should be destroyed when closed

void SetInternalWidget ( QWidget *  widget  ) 
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:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 6 Dec 2017 for OpenStructure by  doxygen 1.6.1