Class SBGWindow#
This class describes a window. More...
#include <SBGWindow.hpp>
Inherits the following classes: QWidget
Public Types#
Type | Name |
---|---|
enum | WindowOption Window options. |
Public Signals#
Type | Name |
---|---|
signal void | closed Emitted when the window is closed by the user. |
signal void | locked (bool) Emitted when the window is locked or unlocked. |
signal void | shown (bool) Emitted when the window is shown or hidden. |
Public Functions#
Type | Name |
---|---|
SBGWindow (QWidget * parent, SBGWindowDialog * dialog) Constructs a SAMSON window that wraps a SAMSON dialog. |
|
SBGWindow (QWidget * parent, SBGWindowWidget * widget) Constructs a SAMSON window that wraps a SAMSON widget. |
|
SBGWindow (QWidget * parent, QDialog * dialog, QString name="", int format=SBGWindow::NoOptions, QPixmap logo=QPixmap(), SBUUID uuid=SBUUID("")) Constructs a SAMSON window that wraps a Qt dialog. |
|
SBGWindow (QWidget * parent, QWidget * widget, QString name="", int format=SBGWindow::NoOptions, QPixmap logo=QPixmap(), SBUUID uuid=SBUUID("")) Constructs a SAMSON window that wraps a Qt widget. |
|
SB_DECLARE_DATA (SBGWindow) |
|
void | center () centers the window on screen |
int | getFormat () const Returns the format of the window. |
bool | getLockedFlag () const Returns whether the widget is locked (on top) |
QPixmap | getLogo () const Returns the logo of the window. |
QString | getName () const Returns the name of the window. |
SBUUID | getUUID () const Returns the UUID of the window. |
int | height () const Returns the height of the window. |
void | loadDefaultSettings () Loads the default settings of the window. |
void | saveDefaultSettings () Saves the default settings of the window. |
void | setLockedFlag (bool lockedFlag) Sets whether the widget is locked (on top) |
void | setName (const QString & name) Sets the name of the window. |
QSize | size () const Returns the size of the window. |
int | width () const Returns the width of the window. |
virtual | ~SBGWindow () Destructs the SAMSON window. |
Protected Attributes#
Type | Name |
---|---|
SBGWindowData * | dataPointer |
Protected Functions#
Type | Name |
---|---|
void | changeEvent (QEvent * event) |
void | closeEvent (QCloseEvent * event) |
void | hideEvent (QHideEvent * event) |
void | paintEvent (QPaintEvent * event) |
void | resizeEvent (QResizeEvent * event) |
void | showEvent (QShowEvent * event) |
void | wheelEvent (QWheelEvent * event) |
Detailed Description#
This class describes a window in the GUI of SAMSON.
Short name: SBWindow
See also: SBGWindowDialog, SBGWindowWidget
Public Types Documentation#
enum WindowOption#
Window options.
enum SBGWindow::WindowOption {
NoOptions = 0,
Citable = 1,
Lockable = 2,
Resizable = 4,
Savable = 8
};
Public Signals Documentation#
signal closed#
Emitted when the window is closed by the user.
signal locked#
Emitted when the window is locked or unlocked.
signal shown#
Emitted when the window is shown or hidden.
Public Functions Documentation#
function SBGWindow [1/4]#
Constructs a SAMSON window that wraps a SAMSON dialog.
function SBGWindow [2/4]#
Constructs a SAMSON window that wraps a SAMSON widget.
function SBGWindow [3/4]#
Constructs a SAMSON window that wraps a Qt dialog.
SBGWindow::SBGWindow (
QWidget * parent,
QDialog * dialog,
QString name="",
int format=SBGWindow::NoOptions,
QPixmap logo=QPixmap(),
SBUUID uuid=SBUUID ("")
)
function SBGWindow [4/4]#
Constructs a SAMSON window that wraps a Qt widget.
SBGWindow::SBGWindow (
QWidget * parent,
QWidget * widget,
QString name="",
int format=SBGWindow::NoOptions,
QPixmap logo=QPixmap(),
SBUUID uuid=SBUUID ("")
)
function SB_DECLARE_DATA#
function center#
centers the window on screen
function getFormat#
Returns the format of the window.
function getLockedFlag#
Returns whether the widget is locked (on top)
function getLogo#
Returns the logo of the window.
function getName#
Returns the name of the window.
function getUUID#
Returns the UUID of the window.
function height#
Returns the height of the window.
function loadDefaultSettings#
Loads the default settings of the window.
function saveDefaultSettings#
Saves the default settings of the window.
function setLockedFlag#
Sets whether the widget is locked (on top)
function setName#
Sets the name of the window.
function size#
Returns the size of the window.
function width#
Returns the width of the window.
function ~SBGWindow#
Destructs the SAMSON window.