#include <STD_MDIDesktop.h>

Public Types | |
| enum | { Cascade, Tile, HTile, VTile } |
Signals | |
| void | activated () |
| void | deactivated () |
| void | windowActivated (SUIT_ViewWindow *) |
| void | closing (SUIT_Desktop *, QCloseEvent *) |
| void | message (const QString &) |
Public Member Functions | |
| STD_MDIDesktop () | |
| virtual | ~STD_MDIDesktop () |
| virtual SUIT_ViewWindow * | activeWindow () const |
| virtual QList< SUIT_ViewWindow * > | windows () const |
| void | windowOperation (const int) |
| void | setWindowOperations (const int,...) |
| void | setWindowOperations (const QList< int > &) |
| QtxWorkspace * | workspace () const |
| QtxActionMenuMgr * | menuMgr () const |
| QtxActionToolMgr * | toolMgr () const |
| QtxLogoMgr * | logoMgr () const |
| 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 | |
| void | createActions () |
| virtual void | addWindow (QWidget *) |
| virtual bool | event (QEvent *) |
| virtual void | customEvent (QEvent *) |
| virtual void | closeEvent (QCloseEvent *) |
| virtual void | childEvent (QChildEvent *) |
Private Slots | |
| void | onWindowActivated (QWidget *) |
Private Member Functions | |
| int | operationFlag (const int) const |
Private Attributes | |
| QtxWorkspace * | myWorkspace |
| QtxWorkspaceAction * | myWorkspaceAction |
| STD_MDIDesktop::STD_MDIDesktop | ( | ) |
Constructor.
References createActions(), main(), myWorkspace, onWindowActivated(), and SUIT_Desktop.windowActivated().
| STD_MDIDesktop::~STD_MDIDesktop | ( | ) | [virtual] |
Destructor.
| SUIT_ViewWindow * STD_MDIDesktop::activeWindow | ( | ) | const [virtual] |
| SUIT_ViewWindow | - return const active window. |
Implements SUIT_Desktop.
References myWorkspace.
| QList< SUIT_ViewWindow * > STD_MDIDesktop::windows | ( | ) | const [virtual] |
| QList<SUIT_ViewWindow> | - return const active window list. |
Implements SUIT_Desktop.
References myWorkspace.
| void STD_MDIDesktop::windowOperation | ( | const int | type | ) |
Call method perform for operation type.
References myWorkspaceAction, operationFlag(), and QtxWorkspaceAction.perform().
| void STD_MDIDesktop::setWindowOperations | ( | const int | first, |
| ... | |||
| ) |
Sets window operations by first ... parameters.
| void STD_MDIDesktop::setWindowOperations | ( | const QList< int > & | opList | ) |
Sets window operations by variable opList - operation list.
References myWorkspaceAction, operationFlag(), and QtxWorkspaceAction.setMenuActions().
| QtxWorkspace * STD_MDIDesktop::workspace | ( | ) | const |
| QtxWorkspace | pointer - work space. |
References myWorkspace.
| void STD_MDIDesktop::onWindowActivated | ( | QWidget * | w | ) | [private, slot] |
Emit window activated.
References SUIT_Desktop.windowActivated().
| void STD_MDIDesktop::createActions | ( | ) | [protected] |
Create actions: cascade, Tile, Tile Horizontal, Tile Vertical
References QtxWorkspaceAction.Cascade, QtxWorkspaceAction.HTile, QtxActionMenuMgr.insert(), QtxResourceMgr.loadPixmap(), SUIT_Desktop.menuMgr(), myWorkspaceAction, SUIT_Session.resourceMgr(), QtxActionMgr.separator(), SUIT_Session.session(), QtxWorkspaceAction.setIcon(), QtxWorkspaceAction.setMenuActions(), QtxWorkspaceAction.setStatusTip(), QtxWorkspaceAction.setText(), QtxWorkspaceAction.Tile, QtxWorkspaceAction.VTile, QtxWorkspaceAction.Windows, and workspace().
| void STD_MDIDesktop::addWindow | ( | QWidget * | w | ) | [protected, virtual] |
| int STD_MDIDesktop::operationFlag | ( | const int | type | ) | const [private] |
Convert STD_MDIDesktop enumerations to QtxWorkspaceAction.
| QtxActionMenuMgr * SUIT_Desktop::menuMgr | ( | ) | const [inherited] |
Gets menu manager.
References SUIT_Desktop.myMenuMgr.
| QtxActionToolMgr * SUIT_Desktop::toolMgr | ( | ) | const [inherited] |
Gets tool manager.
References SUIT_Desktop.myToolMgr.
| QtxLogoMgr * SUIT_Desktop::logoMgr | ( | ) | const [inherited] |
Gets logo manager.
References SUIT_Desktop.myLogoMgr.
| int SUIT_Desktop::logoCount | ( | ) | const [inherited] |
Returns the count of the existed logos.
References QtxLogoMgr.count(), and SUIT_Desktop.myLogoMgr.
| void SUIT_Desktop::logoClear | ( | ) | [inherited] |
Removes all logos
References QtxLogoMgr.clear(), and SUIT_Desktop.myLogoMgr.
| void SUIT_Desktop::logoRemove | ( | const QString & | logoID | ) | [inherited] |
Removes a logo
References SUIT_Desktop.myLogoMgr, and QtxLogoMgr.remove().
| void SUIT_Desktop::logoInsert | ( | const QString & | logoID, |
| QMovie * | logo, | ||
| const int | idx = -1 |
||
| ) | [inherited] |
Adds new logo to the menu bar area
References QtxLogoMgr.insert(), and SUIT_Desktop.myLogoMgr.
| void SUIT_Desktop::logoInsert | ( | const QString & | logoID, |
| const QPixmap & | logo, | ||
| const int | idx = -1 |
||
| ) | [inherited] |
Adds new logo to the menu bar area
References QtxLogoMgr.insert(), and SUIT_Desktop.myLogoMgr.
| void SUIT_Desktop::emitActivated | ( | ) | [inherited] |
Emits activated signal
References SUIT_Desktop.activated().
| void SUIT_Desktop::emitMessage | ( | const QString & | theMessage | ) | [inherited] |
Emits message signal
References SUIT_Desktop.message().
| void SUIT_Desktop.activated | ( | ) | [signal, inherited] |
| void SUIT_Desktop.deactivated | ( | ) | [signal, inherited] |
| void SUIT_Desktop.windowActivated | ( | SUIT_ViewWindow * | ) | [signal, inherited] |
| void SUIT_Desktop.closing | ( | SUIT_Desktop * | , |
| QCloseEvent * | |||
| ) | [signal, inherited] |
| void SUIT_Desktop.message | ( | const QString & | ) | [signal, inherited] |
| bool SUIT_Desktop::event | ( | QEvent * | e | ) | [protected, virtual, inherited] |
Emit on event e.
Reimplemented from QtxMainWindow.
References SUIT_Desktop.activated(), and SUIT_Desktop.deactivated().
| void SUIT_Desktop::customEvent | ( | QEvent * | e | ) | [protected, virtual, inherited] |
References SUIT_Desktop.addWindow(), SUIT_Desktop.ReparentEvent.object(), and SUIT_Desktop.Reparent.
| void SUIT_Desktop::closeEvent | ( | QCloseEvent * | e | ) | [protected, virtual, inherited] |
Close event e.
References SUIT_Desktop.closing().
| void SUIT_Desktop::childEvent | ( | QChildEvent * | e | ) | [protected, virtual, inherited] |
Child event.
References SUIT_Desktop.Reparent.
| 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().
QtxWorkspace* STD_MDIDesktop.myWorkspace [private] |