Enhanced main window which supports dockable menubar and status bar plus geometry saving/restoring.
#include <QtxMainWindow.h>

Classes | |
| class | Filter |
| Internal object used to filter child removal events for specified widget from parent widget. More... | |
| class | Resizer |
| Internal object used to resize dock widgets. More... | |
Public Member Functions | |
| QtxMainWindow (QWidget *=0, Qt::WindowFlags=0) | |
| Constructor. More... | |
| virtual | ~QtxMainWindow () |
| Destructor. More... | |
| bool | isOpaqueResize () const |
| void | setOpaqueResize (bool) |
| bool | isDockableMenuBar () const |
| Check if the menu bar is dockable. More... | |
| void | setDockableMenuBar (const bool) |
| Set menu bar dockable/undockable. More... | |
| bool | isDockableStatusBar () const |
| Check if the status bar is dockable. More... | |
| void | setDockableStatusBar (const bool) |
| Set status bar dockable/undockable. More... | |
| QString | storeGeometry () const |
| Dump main window geometry to the string. More... | |
| void | retrieveGeometry (const QString &) |
| Restore main window geometry from the string. More... | |
| bool | isFullScreenAllowed () const |
| FullScreenAllowed flag allowed dump in the main window geometry Qt::WindowFullScreen parameter. More... | |
| void | setFullScreenAllowed (const bool) |
| Set FullScreenAllowed flag. The default value is true. More... | |
| bool | isMinimizeAllowed () const |
| MinimizeAllowed flag allowed dump in the main window geometry Qt::WindowMinimized parameter. More... | |
| void | setMinimizeAllowed (const bool) |
| Set MinimizeAllowed flag. The default value is true. More... | |
Protected Member Functions | |
| virtual bool | event (QEvent *) |
Private Slots | |
| void | onDestroyed (QObject *) |
| Called when child object (menu bar, status bar) is destroyed. More... | |
Private Member Functions | |
| int | geometryValue (const QString &, int &, bool &) const |
| Retrieve numerical value from the string. More... | |
Private Attributes | |
| QToolBar * | myMenuBar |
| dockable menu bar More... | |
| QToolBar * | myStatusBar |
| dockable status bar More... | |
| bool | myFullScreenAllowed |
| bool | myMinimizeAllowed |
| bool | myOpaque |
| Resizer * | myResizer |
| QMouseEvent * | myMouseMove |
| QtxMainWindow::QtxMainWindow | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
| parent | parent widget |
| f | widget flags (Qt::WindowFlags) |
|
virtual |
References setDockableMenuBar(), and setDockableStatusBar().
|
protectedvirtual |
Reimplemented in SUIT_Desktop.
References Horizontal, isOpaqueResize(), myMouseMove, myResizer, QtxMainWindow::Resizer::setFinalEvent(), QtxMainWindow::Resizer::setPosition(), and Vertical.
|
private |
Numerical value in the string have the structure [+|-]*[%], that is one or more digits which can start from "+" or "-" and can end with "%" symbol.
| str | string being converted |
| num | returning value (> 0) |
| percent | if string ends with "%" this parameter is equal to true after returning from the function |
| bool QtxMainWindow::isDockableMenuBar | ( | ) | const |
true if dockable menu bar exists References myMenuBar.
| bool QtxMainWindow::isDockableStatusBar | ( | ) | const |
true if dockable status bar exists References myStatusBar.
| bool QtxMainWindow::isFullScreenAllowed | ( | ) | const |
FullScreenAllowed flag. References myFullScreenAllowed.
| bool QtxMainWindow::isMinimizeAllowed | ( | ) | const |
MinimizeAllowed flag. References myMinimizeAllowed.
| bool QtxMainWindow::isOpaqueResize | ( | ) | const |
References myOpaque.
|
privateslot |
Clears internal pointer to prevent crashes.
| obj | signal sender (object being destroyed) |
References myMenuBar, and myStatusBar.
| void QtxMainWindow::retrieveGeometry | ( | const QString & | str | ) |
| str | string represenation of the window geometry |
References geometryValue(), isFullScreenAllowed(), and isMinimizeAllowed().
| void QtxMainWindow::setDockableMenuBar | ( | const bool | on | ) |
| on | if true, make menu bar dockable, otherwise make menu bar undockable |
References isDockableMenuBar(), myMenuBar, and onDestroyed().
| void QtxMainWindow::setDockableStatusBar | ( | const bool | on | ) |
| on | if true, make status bar dockable, otherwise make status bar undockable |
References isDockableStatusBar(), myStatusBar, and onDestroyed().
| void QtxMainWindow::setFullScreenAllowed | ( | const bool | f | ) |
| f | value of the FullScreenAllowed flag. |
References myFullScreenAllowed.
| void QtxMainWindow::setMinimizeAllowed | ( | const bool | f | ) |
| f | value of the MinimizeAllowed flag. |
References myMinimizeAllowed.
| void QtxMainWindow::setOpaqueResize | ( | bool | on | ) |
References myOpaque.
| QString QtxMainWindow::storeGeometry | ( | ) | const |
References isFullScreenAllowed(), and isMinimizeAllowed().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |