#include <STD_MDIDesktop.h>
Public Types | |
enum | { Cascade, Tile, HTile, VTile } |
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 |
Public Member Functions inherited from SUIT_Desktop | |
SUIT_Desktop () | |
virtual | ~SUIT_Desktop () |
QtxActionMenuMgr * | menuMgr () const |
QtxActionToolMgr * | toolMgr () const |
QtxLogoMgr * | logoMgr () const |
virtual void | setActiveWindow (SUIT_ViewWindow *) |
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 &) |
Public Member Functions inherited from QtxMainWindow | |
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 | |
void | createActions () |
virtual void | addWindow (QWidget *) |
Protected Member Functions inherited from SUIT_Desktop | |
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 |
Additional Inherited Members | |
Signals inherited from SUIT_Desktop | |
void | activated () |
void | deactivated () |
void | windowActivated (SUIT_ViewWindow *) |
void | closing (SUIT_Desktop *, QCloseEvent *) |
void | message (const QString &) |
STD_MDIDesktop::STD_MDIDesktop | ( | ) |
Constructor.
References createActions(), main(), myWorkspace, onWindowActivated(), and SUIT_Desktop::windowActivated().
|
virtual |
Destructor.
|
virtual |
SUIT_ViewWindow | - return const active window. |
Implements SUIT_Desktop.
References myWorkspace.
|
protectedvirtual |
|
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().
|
privateslot |
Emit window activated.
References SUIT_Desktop::windowActivated().
|
private |
Convert STD_MDIDesktop enumerations to QtxWorkspaceAction.
References Cascade, QtxWorkspaceAction::Cascade, HTile, QtxWorkspaceAction::HTile, Tile, QtxWorkspaceAction::Tile, VTile, and QtxWorkspaceAction::VTile.
void STD_MDIDesktop::setWindowOperations | ( | const int | first, |
... | |||
) |
Sets window operations by first ... parameters.
Sets window operations by variable opList - operation list.
References myWorkspaceAction, operationFlag(), and QtxWorkspaceAction::setMenuActions().
void STD_MDIDesktop::windowOperation | ( | const int | type | ) |
Call method perform for operation type.
References myWorkspaceAction, operationFlag(), and QtxWorkspaceAction::perform().
|
virtual |
QList<SUIT_ViewWindow> | - return const active window list. |
Implements SUIT_Desktop.
References myWorkspace.
QtxWorkspace * STD_MDIDesktop::workspace | ( | ) | const |
QtxWorkspace | pointer - work space. |
References myWorkspace.
|
private |
|
private |