Class SBGWindowWidget#
This class describes a widget. More...
#include <SBGWindowWidget.hpp>
Inherits the following classes: QWidget
Inherited by the following classes: SBGApp, SBGAssistant, SBGDataGraphNodeFactory, SBGDataGraphNodeProperties, SBGEditor
Public Slots#
Type | Name |
---|---|
slot void | stopHighlighting |
Public Signals#
Type | Name |
---|---|
signal void | shown (bool) Emitted when the widget is shown or hidden. |
Public Functions#
Type | Name |
---|---|
SB_DECLARE_DATA (SBGWindowWidget) |
|
virtual QString | getCitation () const Returns the citation information. |
SBGWindowDock * | getDockWindow () const Returns the pointer to the embedding dock window, if any. |
virtual int | getFormat () const Returns the format. |
bool | getHighlightingFlag () const Returns the highlighting flag. |
bool | getLockedFlag () const Returns whether the widget is locked (on top) |
virtual QPixmap | getLogo () const Returns the pixmap logo. |
virtual QString | getName () const Returns the widget name (used as a title for the embedding window) |
virtual SBUUID | getUUID () const Returns the widget UUID. |
SBGWindow * | getWindow () const Returns the pointer to the embedding window, if any. |
void | highlight (const SBQuantity::second & duration=SBQuantity::second(1.0)) Highlights the widget for a moment. |
void | loadDefaultSettings () Loads default settings. |
virtual void | loadSettings (SBGSettings * settings) Loads settings . |
void | saveDefaultSettings () Saves default settings. |
virtual void | saveSettings (SBGSettings * settings) Saves settings . |
void | setHighlightingFlag (bool highlightingFlag) Sets the highlighting flag. |
void | setLockedFlag (bool lockedFlag) Sets whether the widget is locked (on top) |
virtual | ~SBGWindowWidget () Destructor. |
Protected Attributes#
Type | Name |
---|---|
SBGWindowWidgetData * | dataPointer |
Protected Functions#
Type | Name |
---|---|
SBGWindowWidget () |
|
SBGWindowWidget (SBGWindowWidgetData * dataPointer) |
|
void | changeEvent (QEvent * event) |
void | hideEvent (QHideEvent * event) |
void | showEvent (QShowEvent * event) |
Detailed Description#
This class describes a widget that can be embedded into a window, to display it in SAMSON's GUI and ensure that it has the appropriate SAMSON style. SBGWindowWidget derives from QWidget. Many SAMSON GUI classes derive from SBGWindowWidget, and SAMSON Extensions implement GUIs by deriving directly or indirectly from it. For example, SAMSON Extensions implements GUIs of apps by deriving from the SBGApp class, which derives from SBGWindowWidget.
Public Slots Documentation#
slot stopHighlighting#
Public Signals Documentation#
signal shown#
Emitted when the widget is shown or hidden.
Public Functions Documentation#
function SB_DECLARE_DATA#
function getCitation#
Returns the citation information.
function getDockWindow#
Returns the pointer to the embedding dock window, if any.
function getFormat#
Returns the format.
function getHighlightingFlag#
Returns the highlighting flag.
function getLockedFlag#
Returns whether the widget is locked (on top)
function getLogo#
Returns the pixmap logo.
function getName#
Returns the widget name (used as a title for the embedding window)
function getUUID#
Returns the widget UUID.
function getWindow#
Returns the pointer to the embedding window, if any.
function highlight#
Highlights the widget for a moment.
function loadDefaultSettings#
Loads default settings.
function loadSettings#
Loads settings
.
function saveDefaultSettings#
Saves default settings.
function saveSettings#
Saves settings
.
function setHighlightingFlag#
Sets the highlighting flag.
function setLockedFlag#
Sets whether the widget is locked (on top)
function ~SBGWindowWidget#
Destructor.