#include <STD_TabDesktop.h>

Public Types | |
| enum | { SplitVertical, SplitHorizontal } |
Signals | |
| void | activated () |
| void | deactivated () |
| void | windowActivated (SUIT_ViewWindow *) |
| void | closing (SUIT_Desktop *, QCloseEvent *) |
| void | message (const QString &) |
Public Member Functions | |
| STD_TabDesktop () | |
| virtual | ~STD_TabDesktop () |
| virtual SUIT_ViewWindow * | activeWindow () const |
| virtual QList< SUIT_ViewWindow * > | windows () const |
| void | windowOperation (const int) |
| void | setWindowOperations (const int,...) |
| void | setWindowOperations (const QList< int > &) |
| QtxWorkstack * | workstack () 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 | |
| QtxWorkstack * | myWorkstack |
| QtxWorkstackAction * | myWorkstackAction |
| STD_TabDesktop::STD_TabDesktop | ( | ) |
Constructor.Create new instances of QVBox and QtxWorkstack.
References QtxWorkstack.Close, createActions(), QtxResourceMgr.loadPixmap(), main(), myWorkstack, onWindowActivated(), SUIT_Session.resourceMgr(), SUIT_Session.session(), QtxWorkstack.setAccel(), QtxWorkstack.setIcon(), QtxWorkstack.SplitHorizontal, QtxWorkstack.SplitVertical, and SUIT_Desktop.windowActivated().
| STD_TabDesktop::~STD_TabDesktop | ( | ) | [virtual] |
Destructor.
| SUIT_ViewWindow * STD_TabDesktop::activeWindow | ( | ) | const [virtual] |
| SUIT_ViewWindow | - return const active window. |
Implements SUIT_Desktop.
References QtxWorkstack.activeWindow(), and myWorkstack.
| QList< SUIT_ViewWindow * > STD_TabDesktop::windows | ( | ) | const [virtual] |
| QPtrList<SUIT_ViewWindow> | - return const active window list. |
Implements SUIT_Desktop.
References myWorkstack, and QtxWorkstack.windowList().
| void STD_TabDesktop::windowOperation | ( | const int | type | ) |
Call method perform for operation type.
References myWorkstackAction, operationFlag(), and QtxWorkstackAction.perform().
| void STD_TabDesktop::setWindowOperations | ( | const int | first, |
| ... | |||
| ) |
Sets window operations by first ... parameters.
| void STD_TabDesktop::setWindowOperations | ( | const QList< int > & | opList | ) |
Sets window operations by variable opList - operation list.
References operationFlag().
| QtxWorkstack * STD_TabDesktop::workstack | ( | ) | const |
| QtxWorkstack | pointer - Qt work stack. |
References myWorkstack.
| void STD_TabDesktop::onWindowActivated | ( | QWidget * | w | ) | [private, slot] |
Emit window activated.
References SUIT_Desktop.windowActivated().
| void STD_TabDesktop::createActions | ( | ) | [protected] |
Create actions for window.
References QtxActionMenuMgr.insert(), QtxResourceMgr.loadPixmap(), SUIT_Desktop.menuMgr(), myWorkstackAction, SUIT_Session.resourceMgr(), QtxActionMgr.separator(), SUIT_Session.session(), QtxWorkstackAction.setAccel(), QtxWorkstackAction.setIcon(), QtxWorkstackAction.setMenuActions(), QtxWorkstackAction.setStatusTip(), QtxWorkstackAction.setText(), QtxWorkstackAction.Split, QtxWorkstackAction.SplitHorizontal, QtxWorkstackAction.SplitVertical, QtxWorkstackAction.Windows, and workstack().
| void STD_TabDesktop::addWindow | ( | QWidget * | w | ) | [protected, virtual] |
Insert new widget into desktop.
Implements SUIT_Desktop.
References QtxWorkstack.addWindow(), and workstack().
| int STD_TabDesktop::operationFlag | ( | const int | type | ) | const [private] |
Convert STD_TabDesktop enumerations to QtxWorkstackAction
References SplitHorizontal, and SplitVertical.
| 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().
QtxWorkstack* STD_TabDesktop.myWorkstack [private] |