Back to index

salome-gui  6.5.0
Public Types | Public Slots | Signals | Public Member Functions | Protected Types | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
STD_EXPORT Protocol Reference

#include <STD_Application.h>

Inheritance diagram for STD_EXPORT:
Inheritance graph
[legend]
Collaboration diagram for STD_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  MenuFileId, FileNewId, FileOpenId, FileReopenId,
  FileCloseId, FileSaveId, FileSaveAsId, FileExitId,
  MenuViewId, ViewWindowsId, ViewToolBarsId, ViewStatusBarId,
  NewWindowId, MenuEditId, EditCutId, EditCopyId,
  EditPasteId, MenuHelpId, HelpAboutId, UserID
}
enum  { Cascade, Tile, HTile, VTile }
enum  { SplitVertical, SplitHorizontal }

Public Slots

virtual void onNewDoc ()
virtual bool onNewDoc (const QString &)
virtual void onCloseDoc (bool ask=true)
virtual void onSaveDoc ()
virtual bool onSaveAsDoc ()
virtual void onOpenDoc ()
virtual bool onOpenDoc (const QString &)
virtual bool onReopenDoc ()
virtual void onExit ()
virtual void onCopy ()
virtual void onPaste ()
virtual void onViewStatusBar (bool)
virtual void onHelpAbout ()
virtual void onDesktopClosing (SUIT_Desktop *, QCloseEvent *)
virtual void onConnectPopupRequest (SUIT_PopupClient *, QContextMenuEvent *)

Signals

void viewManagerAdded (SUIT_ViewManager *)
 emit that view manager added
void viewManagerRemoved (SUIT_ViewManager *)
 emit that view manager removed
void viewManagerActivated (SUIT_ViewManager *)
 emit that view manager activated

Public Member Functions

 STD_Application ()
virtual ~STD_Application ()
virtual QString applicationName () const
virtual bool isPossibleToClose (bool &)
virtual bool useFile (const QString &)
virtual void createEmptyStudy ()
void setEditEnabled (const bool)
bool isEditEnabled () const
void clearViewManagers ()
virtual void addViewManager (SUIT_ViewManager *)
virtual void removeViewManager (SUIT_ViewManager *)
SUIT_ViewManager * activeViewManager () const
SUIT_ViewManager * viewManager (const QString &) const
bool containsViewManager (SUIT_ViewManager *) const
ViewManagerList viewManagers () const
void viewManagers (ViewManagerList &) const
void viewManagers (const QString &, ViewManagerList &) const
virtual int viewManagerId (const SUIT_ViewManager *) const
virtual QString getFileFilter () const
virtual QString getFileName (bool open, const QString &initial, const QString &filters, const QString &caption, QWidget *parent)
QString getDirectory (const QString &initial, const QString &caption, QWidget *parent)
virtual void start ()
virtual void closeApplication ()
virtual void contextMenuPopup (const QString &, QMenu *, QString &)
bool exitConfirmation () const
void setExitConfirmation (const bool)
virtual void updateDesktopTitle ()
 STD_MDIDesktop ()
virtual ~STD_MDIDesktop ()
virtual SUIT_ViewWindowactiveWindow () const
virtual QList< SUIT_ViewWindow * > windows () const
void windowOperation (const int)
void setWindowOperations (const int,...)
void setWindowOperations (const QList< int > &)
QtxWorkspaceworkspace () const
 STD_SDIDesktop ()
virtual ~STD_SDIDesktop ()
virtual SUIT_ViewWindowactiveWindow () const
virtual QList< SUIT_ViewWindow * > windows () const
 STD_TabDesktop ()
virtual ~STD_TabDesktop ()
virtual SUIT_ViewWindowactiveWindow () const
virtual QList< SUIT_ViewWindow * > windows () const
void windowOperation (const int)
void setWindowOperations (const int,...)
void setWindowOperations (const QList< int > &)
QtxWorkstackworkstack () const

Protected Types

enum  { OpenCancel, OpenNew, OpenExist }
enum  { CloseCancel, CloseSave, CloseDiscard }

Protected Member Functions

virtual void createActions ()
virtual void updateCommandsStatus ()
virtual void setDesktop (SUIT_Desktop *)
virtual void loadPreferences ()
virtual void savePreferences ()
virtual void studySaved (SUIT_Study *)
virtual void studyOpened (SUIT_Study *)
virtual void studyCreated (SUIT_Study *)
virtual void beforeCloseDoc (SUIT_Study *theDoc)
virtual void afterCloseDoc ()
virtual void setActiveViewManager (SUIT_ViewManager *)
virtual int openChoice (const QString &)
virtual bool openAction (const int, const QString &)
virtual int closeChoice (const QString &)
virtual bool closeAction (const int, bool &)
void createActions ()
virtual void addWindow (QWidget *)
virtual void addWindow (QWidget *)
void createActions ()
virtual void addWindow (QWidget *)

Private Slots

virtual void onViewManagerActivated (SUIT_ViewManager *)
void onWindowActivated (QWidget *)
void onWindowActivated (QWidget *)

Private Member Functions

int operationFlag (const int) const
int operationFlag (const int) const

Private Attributes

ViewManagerList myViewMgrs
SUIT_ViewManager * myActiveViewMgr
bool myExitConfirm
bool myEditEnabled
QtxWorkspacemyWorkspace
QtxWorkspaceActionmyWorkspaceAction
QFrame * myMainWidget
QtxWorkstackmyWorkstack
QtxWorkstackActionmyWorkstackAction

Detailed Description

Definition at line 51 of file STD_Application.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
MenuFileId 
FileNewId 
FileOpenId 
FileReopenId 
FileCloseId 
FileSaveId 
FileSaveAsId 
FileExitId 
MenuViewId 
ViewWindowsId 
ViewToolBarsId 
ViewStatusBarId 
NewWindowId 
MenuEditId 
EditCutId 
EditCopyId 
EditPasteId 
MenuHelpId 
HelpAboutId 
UserID 

Definition at line 56 of file STD_Application.h.

anonymous enum [protected]
Enumerator:
OpenCancel 
OpenNew 
OpenExist 

Definition at line 144 of file STD_Application.h.

anonymous enum [protected]
Enumerator:
CloseCancel 
CloseSave 
CloseDiscard 

Definition at line 145 of file STD_Application.h.

anonymous enum
Enumerator:
Cascade 
Tile 
HTile 
VTile 

Definition at line 42 of file STD_MDIDesktop.h.

anonymous enum
Enumerator:
SplitVertical 
SplitHorizontal 

Definition at line 42 of file STD_TabDesktop.h.


Constructor & Destructor Documentation

virtual STD_EXPORT::~STD_Application ( ) [virtual]
virtual STD_EXPORT::~STD_MDIDesktop ( ) [virtual]
virtual STD_EXPORT::~STD_SDIDesktop ( ) [virtual]
virtual STD_EXPORT::~STD_TabDesktop ( ) [virtual]

Member Function Documentation

SUIT_ViewManager* STD_EXPORT::activeViewManager ( ) const
virtual SUIT_ViewWindow* STD_EXPORT::activeWindow ( ) const [virtual]
virtual SUIT_ViewWindow* STD_EXPORT::activeWindow ( ) const [virtual]
virtual SUIT_ViewWindow* STD_EXPORT::activeWindow ( ) const [virtual]
virtual void STD_EXPORT::addViewManager ( SUIT_ViewManager *  ) [virtual]
virtual void STD_EXPORT::addWindow ( QWidget *  ) [protected, virtual]
virtual void STD_EXPORT::addWindow ( QWidget *  ) [protected, virtual]
virtual void STD_EXPORT::addWindow ( QWidget *  ) [protected, virtual]
virtual void STD_EXPORT::afterCloseDoc ( ) [protected, virtual]
virtual QString STD_EXPORT::applicationName ( ) const [virtual]
virtual void STD_EXPORT::beforeCloseDoc ( SUIT_Study theDoc) [protected, virtual]
virtual bool STD_EXPORT::closeAction ( const int  ,
bool &   
) [protected, virtual]
virtual void STD_EXPORT::closeApplication ( ) [virtual]
virtual int STD_EXPORT::closeChoice ( const QString &  ) [protected, virtual]
bool STD_EXPORT::containsViewManager ( SUIT_ViewManager *  ) const
virtual void STD_EXPORT::contextMenuPopup ( const QString &  ,
QMenu *  ,
QString &   
) [inline, virtual]

Definition at line 100 of file STD_Application.h.

{}
virtual void STD_EXPORT::createActions ( ) [protected, virtual]
virtual void STD_EXPORT::createEmptyStudy ( ) [virtual]
QString STD_EXPORT::getDirectory ( const QString &  initial,
const QString &  caption,
QWidget *  parent 
)
virtual QString STD_EXPORT::getFileFilter ( ) const [inline, virtual]

Definition at line 91 of file STD_Application.h.

{ return QString(); }
virtual QString STD_EXPORT::getFileName ( bool  open,
const QString &  initial,
const QString &  filters,
const QString &  caption,
QWidget *  parent 
) [virtual]
bool STD_EXPORT::isEditEnabled ( ) const [inline]

Definition at line 75 of file STD_Application.h.

{ return myEditEnabled; }
virtual bool STD_EXPORT::isPossibleToClose ( bool &  ) [virtual]
virtual void STD_EXPORT::loadPreferences ( ) [protected, virtual]
virtual void STD_EXPORT::onCloseDoc ( bool  ask = true) [virtual, slot]
virtual void STD_EXPORT::onConnectPopupRequest ( SUIT_PopupClient ,
QContextMenuEvent *   
) [virtual, slot]
virtual void STD_EXPORT::onCopy ( ) [virtual, slot]
virtual void STD_EXPORT::onDesktopClosing ( SUIT_Desktop ,
QCloseEvent *   
) [virtual, slot]
virtual void STD_EXPORT::onExit ( ) [virtual, slot]
virtual void STD_EXPORT::onHelpAbout ( ) [virtual, slot]
virtual void STD_EXPORT::onNewDoc ( ) [virtual, slot]
virtual bool STD_EXPORT::onNewDoc ( const QString &  ) [virtual, slot]
virtual void STD_EXPORT::onOpenDoc ( ) [virtual, slot]
virtual bool STD_EXPORT::onOpenDoc ( const QString &  ) [virtual, slot]
virtual void STD_EXPORT::onPaste ( ) [virtual, slot]
virtual bool STD_EXPORT::onReopenDoc ( ) [virtual, slot]
virtual bool STD_EXPORT::onSaveAsDoc ( ) [virtual, slot]
virtual void STD_EXPORT::onSaveDoc ( ) [virtual, slot]
virtual void STD_EXPORT::onViewManagerActivated ( SUIT_ViewManager *  ) [private, virtual, slot]
virtual void STD_EXPORT::onViewStatusBar ( bool  ) [virtual, slot]
void STD_EXPORT::onWindowActivated ( QWidget *  ) [private, slot]
void STD_EXPORT::onWindowActivated ( QWidget *  ) [private, slot]
virtual bool STD_EXPORT::openAction ( const int  ,
const QString &   
) [protected, virtual]
virtual int STD_EXPORT::openChoice ( const QString &  ) [protected, virtual]
int STD_EXPORT::operationFlag ( const int  ) const [private]
int STD_EXPORT::operationFlag ( const int  ) const [private]
virtual void STD_EXPORT::removeViewManager ( SUIT_ViewManager *  ) [virtual]
virtual void STD_EXPORT::savePreferences ( ) [protected, virtual]
virtual void STD_EXPORT::setActiveViewManager ( SUIT_ViewManager *  ) [protected, virtual]
virtual void STD_EXPORT::setDesktop ( SUIT_Desktop ) [protected, virtual]
void STD_EXPORT::setEditEnabled ( const bool  )
void STD_EXPORT::setWindowOperations ( const int  ,
  ... 
)
void STD_EXPORT::setWindowOperations ( const int  ,
  ... 
)
void STD_EXPORT::setWindowOperations ( const QList< int > &  )
void STD_EXPORT::setWindowOperations ( const QList< int > &  )
virtual void STD_EXPORT::start ( ) [virtual]
virtual void STD_EXPORT::studyCreated ( SUIT_Study ) [protected, virtual]
virtual void STD_EXPORT::studyOpened ( SUIT_Study ) [protected, virtual]
virtual void STD_EXPORT::studySaved ( SUIT_Study ) [protected, virtual]
virtual void STD_EXPORT::updateCommandsStatus ( ) [protected, virtual]
virtual void STD_EXPORT::updateDesktopTitle ( ) [virtual]
virtual bool STD_EXPORT::useFile ( const QString &  ) [virtual]
SUIT_ViewManager* STD_EXPORT::viewManager ( const QString &  ) const
void STD_EXPORT::viewManagerActivated ( SUIT_ViewManager *  ) [signal]

emit that view manager activated

void STD_EXPORT::viewManagerAdded ( SUIT_ViewManager *  ) [signal]

emit that view manager added

virtual int STD_EXPORT::viewManagerId ( const SUIT_ViewManager *  ) const [virtual]
void STD_EXPORT::viewManagerRemoved ( SUIT_ViewManager *  ) [signal]

emit that view manager removed

void STD_EXPORT::viewManagers ( const QString &  ,
ViewManagerList  
) const
virtual QList<SUIT_ViewWindow*> STD_EXPORT::windows ( ) const [virtual]
virtual QList<SUIT_ViewWindow*> STD_EXPORT::windows ( ) const [virtual]
virtual QList<SUIT_ViewWindow*> STD_EXPORT::windows ( ) const [virtual]

Member Data Documentation

SUIT_ViewManager* STD_EXPORT::myActiveViewMgr [private]

Definition at line 173 of file STD_Application.h.

bool STD_EXPORT::myEditEnabled [private]

Definition at line 177 of file STD_Application.h.

bool STD_EXPORT::myExitConfirm [private]

Definition at line 176 of file STD_Application.h.

QFrame* STD_EXPORT::myMainWidget [private]

Definition at line 47 of file STD_SDIDesktop.h.

Definition at line 172 of file STD_Application.h.

Definition at line 69 of file STD_MDIDesktop.h.

Definition at line 70 of file STD_MDIDesktop.h.

Definition at line 69 of file STD_TabDesktop.h.

Definition at line 70 of file STD_TabDesktop.h.


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