#include <SUIT_Desktop.h>

Data Structures | |
| class | ReparentEvent |
Signals | |
| void | activated () |
| void | deactivated () |
| void | windowActivated (SUIT_ViewWindow *) |
| void | closing (SUIT_Desktop *, QCloseEvent *) |
| void | message (const QString &) |
Public Member Functions | |
| SUIT_Desktop () | |
| virtual | ~SUIT_Desktop () |
| QtxActionMenuMgr * | menuMgr () const |
| QtxActionToolMgr * | toolMgr () const |
| QtxLogoMgr * | logoMgr () const |
| virtual SUIT_ViewWindow * | activeWindow () const =0 |
| virtual QList< SUIT_ViewWindow * > | windows () const =0 |
| int | logoCount () const |
| void | logoClear () |
| void | logoRemove (const QString &) |
| void | logoInsert (const QString &, QMovie *, const int=-1) |
| void | logoInsert (const QString &, const QPixmap &, const int=-1) |
| void | emitActivated () |
| void | emitMessage (const QString &) |
| bool | isOpaqueResize () const |
| void | setOpaqueResize (bool) |
| bool | isDockableMenuBar () const |
| Check if the menu bar is dockable. | |
| void | setDockableMenuBar (const bool) |
| Set menu bar dockable/undockable. | |
| bool | isDockableStatusBar () const |
| Check if the status bar is dockable. | |
| void | setDockableStatusBar (const bool) |
| Set status bar dockable/undockable. | |
| QString | storeGeometry () const |
| Dump main window geometry to the string. | |
| void | retrieveGeometry (const QString &) |
| Restore main window geometry from the string. | |
Protected Member Functions | |
| virtual bool | event (QEvent *) |
| virtual void | customEvent (QEvent *) |
| virtual void | closeEvent (QCloseEvent *) |
| virtual void | childEvent (QChildEvent *) |
| virtual void | addWindow (QWidget *)=0 |
Private Types | |
| enum | { Reparent = QEvent::User } |
Private Attributes | |
| QtxActionMenuMgr * | myMenuMgr |
| QtxActionToolMgr * | myToolMgr |
| QtxLogoMgr * | myLogoMgr |
Provide desktop management:
Provides standard desktop: main window with main menu manager, toolbars manager and logo.
| SUIT_Desktop::~SUIT_Desktop | ( | ) | [virtual] |
Destructor.
| QtxActionMenuMgr * SUIT_Desktop::menuMgr | ( | ) | const |
Gets menu manager.
References myMenuMgr.
| QtxActionToolMgr * SUIT_Desktop::toolMgr | ( | ) | const |
Gets tool manager.
References myToolMgr.
| QtxLogoMgr * SUIT_Desktop::logoMgr | ( | ) | const |
Gets logo manager.
References myLogoMgr.
| virtual SUIT_ViewWindow* SUIT_Desktop.activeWindow | ( | ) | const [pure virtual] |
Implemented in STD_MDIDesktop, STD_SDIDesktop, and STD_TabDesktop.
| virtual QList<SUIT_ViewWindow*> SUIT_Desktop.windows | ( | ) | const [pure virtual] |
Implemented in STD_MDIDesktop, STD_SDIDesktop, and STD_TabDesktop.
| int SUIT_Desktop::logoCount | ( | ) | const |
Returns the count of the existed logos.
References QtxLogoMgr.count(), and myLogoMgr.
| void SUIT_Desktop::logoClear | ( | ) |
Removes all logos
References QtxLogoMgr.clear(), and myLogoMgr.
| void SUIT_Desktop::logoRemove | ( | const QString & | logoID | ) |
Removes a logo
References myLogoMgr, and QtxLogoMgr.remove().
| void SUIT_Desktop::logoInsert | ( | const QString & | logoID, |
| QMovie * | logo, | ||
| const int | idx = -1 |
||
| ) |
Adds new logo to the menu bar area
References QtxLogoMgr.insert(), and myLogoMgr.
| void SUIT_Desktop::logoInsert | ( | const QString & | logoID, |
| const QPixmap & | logo, | ||
| const int | idx = -1 |
||
| ) |
Adds new logo to the menu bar area
References QtxLogoMgr.insert(), and myLogoMgr.
| void SUIT_Desktop::emitActivated | ( | ) |
Emits activated signal
References activated().
| void SUIT_Desktop::emitMessage | ( | const QString & | theMessage | ) |
Emits message signal
References message().
| void SUIT_Desktop.activated | ( | ) | [signal] |
| void SUIT_Desktop.deactivated | ( | ) | [signal] |
| void SUIT_Desktop.windowActivated | ( | SUIT_ViewWindow * | ) | [signal] |
| void SUIT_Desktop.closing | ( | SUIT_Desktop * | , |
| QCloseEvent * | |||
| ) | [signal] |
| void SUIT_Desktop.message | ( | const QString & | ) | [signal] |
| bool SUIT_Desktop::event | ( | QEvent * | e | ) | [protected, virtual] |
| void SUIT_Desktop::customEvent | ( | QEvent * | e | ) | [protected, virtual] |
References addWindow(), SUIT_Desktop.ReparentEvent.object(), and Reparent.
| void SUIT_Desktop::closeEvent | ( | QCloseEvent * | e | ) | [protected, virtual] |
Close event e.
References closing().
| void SUIT_Desktop::childEvent | ( | QChildEvent * | e | ) | [protected, virtual] |
Child event.
References Reparent.
| virtual void SUIT_Desktop.addWindow | ( | QWidget * | ) | [protected, pure virtual] |
Implemented in STD_MDIDesktop, STD_SDIDesktop, and STD_TabDesktop.
| bool QtxMainWindow::isOpaqueResize | ( | ) | const [inherited] |
References QtxMainWindow.myOpaque.
| void QtxMainWindow::setOpaqueResize | ( | bool | on | ) | [inherited] |
References QtxMainWindow.myOpaque.
| bool QtxMainWindow::isDockableMenuBar | ( | ) | const [inherited] |
true if dockable menu bar exists References QtxMainWindow.myMenuBar.
| void QtxMainWindow::setDockableMenuBar | ( | const bool | on | ) | [inherited] |
| on | if true, make menu bar dockable, otherwise make menu bar undockable |
References QtxMainWindow.isDockableMenuBar(), QtxMainWindow.myMenuBar, and QtxMainWindow.onDestroyed().
| bool QtxMainWindow::isDockableStatusBar | ( | ) | const [inherited] |
true if dockable status bar exists References QtxMainWindow.myStatusBar.
| void QtxMainWindow::setDockableStatusBar | ( | const bool | on | ) | [inherited] |
| on | if true, make status bar dockable, otherwise make status bar undockable |
References QtxMainWindow.isDockableStatusBar(), QtxMainWindow.myStatusBar, and QtxMainWindow.onDestroyed().
| QString QtxMainWindow::storeGeometry | ( | ) | const [inherited] |
| void QtxMainWindow::retrieveGeometry | ( | const QString & | str | ) | [inherited] |
| str | string represenation of the window geometry |
References QtxMainWindow.geometryValue().
QtxActionMenuMgr* SUIT_Desktop.myMenuMgr [private] |
QtxActionToolMgr* SUIT_Desktop.myToolMgr [private] |
QtxLogoMgr* SUIT_Desktop.myLogoMgr [private] |