Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SUIT_Desktop Class Referenceabstract

#include <SUIT_Desktop.h>

Inheritance diagram for SUIT_Desktop:
Inheritance graph

Classes

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 ()
 
QtxActionMenuMgrmenuMgr () const
 
QtxActionToolMgrtoolMgr () const
 
QtxLogoMgrlogoMgr () const
 
virtual SUIT_ViewWindowactiveWindow () const =0
 
virtual void setActiveWindow (SUIT_ViewWindow *)
 
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 &)
 
- 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

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

QtxActionMenuMgrmyMenuMgr
 
QtxActionToolMgrmyToolMgr
 
QtxLogoMgrmyLogoMgr
 

Detailed Description

Provide desktop management:

  • menu manager
  • tool manager
  • windows

Provides standard desktop: main window with main menu manager, toolbars manager and logo.

Member Enumeration Documentation

anonymous enum
private
Enumerator
Reparent 

Constructor & Destructor Documentation

SUIT_Desktop::SUIT_Desktop ( )

Constructor.

References myLogoMgr, myMenuMgr, and myToolMgr.

SUIT_Desktop::~SUIT_Desktop ( )
virtual

Destructor.

Member Function Documentation

void SUIT_Desktop::activated ( )
signal
virtual SUIT_ViewWindow* SUIT_Desktop::activeWindow ( ) const
pure virtual
virtual void SUIT_Desktop::addWindow ( QWidget )
protectedpure virtual
void SUIT_Desktop::childEvent ( QChildEvent *  e)
protectedvirtual

Child event.

References Reparent.

void SUIT_Desktop::closeEvent ( QCloseEvent *  e)
protectedvirtual

Close event e.

References closing().

void SUIT_Desktop::closing ( SUIT_Desktop ,
QCloseEvent *   
)
signal
void SUIT_Desktop::customEvent ( QEvent e)
protectedvirtual
void SUIT_Desktop::deactivated ( )
signal
void SUIT_Desktop::emitActivated ( )

Emits activated signal

References activated().

void SUIT_Desktop::emitMessage ( const QString &  theMessage)

Emits message signal

References message().

bool SUIT_Desktop::event ( QEvent e)
protectedvirtual

Emit on event e.

Reimplemented from QtxMainWindow.

References activated(), deactivated(), and QtxMainWindow::event().

void SUIT_Desktop::logoClear ( )

Removes all logos

References QtxLogoMgr::clear(), and myLogoMgr.

int SUIT_Desktop::logoCount ( ) const

Returns the count of the existed logos.

References QtxLogoMgr::count(), and myLogoMgr.

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.

QtxLogoMgr * SUIT_Desktop::logoMgr ( ) const

Gets logo manager.

References myLogoMgr.

void SUIT_Desktop::logoRemove ( const QString &  logoID)

Removes a logo

References myLogoMgr, and QtxLogoMgr::remove().

QtxActionMenuMgr * SUIT_Desktop::menuMgr ( ) const

Gets menu manager.

References myMenuMgr.

void SUIT_Desktop::message ( const QString &  )
signal
void SUIT_Desktop::setActiveWindow ( SUIT_ViewWindow wnd)
virtual

Activate window (default implementation just sets focus to the window.

Reimplemented in STD_TabDesktop.

QtxActionToolMgr * SUIT_Desktop::toolMgr ( ) const

Gets tool manager.

References myToolMgr.

void SUIT_Desktop::windowActivated ( SUIT_ViewWindow )
signal
virtual QList<SUIT_ViewWindow*> SUIT_Desktop::windows ( ) const
pure virtual

Member Data Documentation

QtxLogoMgr* SUIT_Desktop::myLogoMgr
private
QtxActionMenuMgr* SUIT_Desktop::myMenuMgr
private
QtxActionToolMgr* SUIT_Desktop::myToolMgr
private

The documentation for this class was generated from the following files: