This class describes a window. More...
Public Types | |
enum | WindowOption { NoOptions, Citable, Lockable, Resizable, Savable } |
Window options. More... | |
Signals | |
void | closed () |
Emitted when the window is closed by the user. | |
void | locked (bool) |
Emitted when the window is locked or unlocked. | |
void | shown (bool) |
Emitted when the window is shown or hidden. | |
Constructors and destructor | |
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. | |
virtual | ~SBGWindow () |
Destructs the SAMSON window. | |
Settings | |
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) | |
bool | getLockedFlag () const |
Returns whether the widget is locked (on top) | |
Identity | |
SBUUID | getUUID () const |
Returns the UUID of the window. | |
QPixmap | getLogo () const |
Returns the logo of the window. | |
int | getFormat () const |
Returns the format of the window. | |
QString | getName () const |
Returns the name of the window. | |
void | setName (const QString &name) |
Sets the name of the window. | |
Geometry | |
int | height () const |
Returns the height of the window. | |
int | width () const |
Returns the width of the window. | |
QSize | size () const |
Returns the size of the window. | |