Application containing SalomeApp module or LightApp module.
#include <SalomeApp_Application.h>

Public Types | |
| enum | { MenuToolsId = 5 } |
| enum | { DumpStudyId = LightApp_Application::UserID, LoadScriptId, PropertiesId, CatalogGenId, RegDisplayId, SaveGUIStateId, FileLoadId, NoteBookId, UserID } |
| enum | WindowTypes { WT_ObjectBrowser, WT_PyConsole, WT_LogWindow, WT_User } |
| enum | { MenuWindowId = 6 } |
| enum | { RenameId = CAM_Application::UserID, CloseId, CloseAllId, GroupAllId, PreferencesId, MRUId, ModulesListId, NewGLViewId, NewPlot2dId, NewOCCViewId, NewVTKViewId, NewQxGraphViewId, NewQxSceneViewId = NewQxGraphViewId, StyleId, UserID } |
| typedef QList< CAM_Module * > | ModuleList |
| enum | { MenuFileId, FileNewId, FileOpenId, FileReopenId, FileCloseId, FileSaveId, FileSaveAsId, FileExitId, MenuViewId, ViewWindowsId, ViewToolBarsId, ViewStatusBarId, NewWindowId, MenuEditId, EditCutId, EditCopyId, EditPasteId, MenuHelpId, HelpAboutId, UserID } |
Public Slots | |
| virtual void | onLoadDoc () |
| virtual void | onNewWithScript () |
| virtual bool | onLoadDoc (const QString &) |
| virtual void | onCloseDoc (bool ask=true) |
| virtual void | onExit () |
| Close application. | |
| virtual void | onCopy () |
| virtual void | onPaste () |
| void | onSaveGUIState () |
| virtual void | onHelpContentsModule () |
| virtual void | onHelpContextModule (const QString &, const QString &, const QString &=QString()) |
| virtual void | onNewDoc () |
| virtual bool | onNewDoc (const QString &) |
| virtual void | onOpenDoc () |
| virtual bool | onOpenDoc (const QString &) |
| virtual void | onHelpAbout () |
| virtual void | onSaveDoc () |
| virtual bool | onSaveAsDoc () |
| virtual bool | onReopenDoc () |
| virtual void | onViewStatusBar (bool) |
| virtual void | onDesktopClosing (SUIT_Desktop *, QCloseEvent *) |
| virtual void | onConnectPopupRequest (SUIT_PopupClient *, QContextMenuEvent *) |
Signals | |
| void | studyOpened () |
| void | studySaved () |
| void | studyClosed () |
| void | preferenceChanged (const QString &, const QString &, const QString &) |
| void | viewManagerAdded (SUIT_ViewManager *) |
| void | viewManagerRemoved (SUIT_ViewManager *) |
| void | viewManagerActivated (SUIT_ViewManager *) |
| void | applicationClosed (SUIT_Application *) |
| void | activated (SUIT_Application *) |
| void | infoChanged (QString) |
Public Member Functions | |
| SalomeApp_Application () | |
| virtual | ~SalomeApp_Application () |
| virtual void | updateObjectBrowser (const bool=true) |
| virtual QString | getFileFilter () const |
| virtual void | start () |
| virtual void | contextMenuPopup (const QString &, QMenu *, QString &) |
| virtual bool | checkDataObject (LightApp_DataObject *theObj) |
| virtual void | setDesktop (SUIT_Desktop *) |
| SUIT_ViewManager * | newViewManager (const QString &) |
| void | updateSavePointDataObjects (SalomeApp_Study *) |
| virtual bool | isPossibleToClose (bool &) |
| virtual bool | useStudy (const QString &) |
| virtual void | updateDesktopTitle () |
| virtual void | setNoteBook (SalomeApp_NoteBookDlg *theNoteBook) |
| virtual SalomeApp_NoteBookDlg * | getNoteBook () const |
| void | updateVisibilityState (DataObjectList &theList, SUIT_ViewModel *theViewModel) |
| update visibility state of objects | |
| virtual bool | renameAllowed (const QString &) const |
Return true if object can be renamed. | |
| virtual bool | renameObject (const QString &, const QString &) |
Return true if rename operation finished successfully, false otherwise. | |
| virtual QString | applicationName () const |
| virtual QString | applicationVersion () const |
| virtual CAM_Module * | loadModule (const QString &, const bool=true) |
| virtual bool | activateModule (const QString &) |
| LightApp_SelectionMgr * | selectionMgr () const |
| LogWindow * | logWindow () |
| SUIT_DataBrowser * | objectBrowser () |
| PyConsole_Console * | pythonConsole () |
| LightApp_Preferences * | preferences () const |
| virtual QString | getFileName (bool open, const QString &initial, const QString &filters, const QString &caption, QWidget *parent) |
| virtual QString | getDirectory (const QString &initial, const QString &caption, QWidget *parent) |
| virtual QStringList | getOpenFileNames (const QString &initial, const QString &filters, const QString &caption, QWidget *parent) |
| void | updateActions () |
| SUIT_ViewManager * | getViewManager (const QString &, const bool) |
| virtual void | addViewManager (SUIT_ViewManager *) |
| virtual void | removeViewManager (SUIT_ViewManager *) |
| virtual SUIT_ViewManager * | createViewManager (const QString &vmType) |
| virtual SUIT_ViewManager * | createViewManager (const QString &vmType, QWidget *w) |
| QWidget * | getWindow (const int, const int=-1) |
| QWidget * | dockWindow (const int) const |
| void | removeDockWindow (const int) |
| void | insertDockWindow (const int, QWidget *) |
| void | placeDockWindow (const int, Qt::DockWidgetArea) |
| virtual void | createEmptyStudy () |
| SUIT_Accel * | accel () const |
| void | setDefaultStudyName (const QString &theName) |
| virtual bool | event (QEvent *) |
| QStringList | viewManagersTypes () const |
| Returns list of view manager types which are supported by this application. | |
| virtual void | clearKnownViewManagers () |
| Removes ViewManagers only of known type. | |
| virtual QString | browseObjects (const QStringList &theEntryList, const bool theIsApplyAndClose=true, const bool theIsOptimizedBrowsing=false) |
| virtual SUIT_DataObject * | findObject (const QString &) const |
| CAM_Module * | activeModule () const |
| Get active module. | |
| CAM_Module * | module (const QString &) const |
| Get the module with specified name. | |
| ModuleList | modules () const |
| Get all loaded modules. | |
| void | modules (ModuleList &) const |
| Get all loaded modules. | |
| void | modules (QStringList &, const bool loaded=true) const |
| Get names of all modules. | |
| virtual void | addModule (CAM_Module *) |
| Add module mod to the modules list. | |
| virtual void | loadModules () |
| Load modules from the modules information list. | |
| QString | moduleName (const QString &) const |
| Get module name by its title (user name). | |
| QString | moduleTitle (const QString &) const |
| Get module title (user name) by its name. | |
| QString | moduleIcon (const QString &) const |
| Get module icon name. | |
| bool | isModuleAccessible (const QString &) const |
Returns true if module is accessible for the current application. Singleton module can be loaded only in one application object. In other application objects this module will be unavailable. | |
| virtual bool | useFile (const QString &) |
| void | setEditEnabled (const bool) |
| bool | isEditEnabled () const |
| void | clearViewManagers () |
| 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 void | closeApplication () |
| bool | exitConfirmation () const |
| void | setExitConfirmation (const bool) |
| virtual SUIT_Desktop * | desktop () |
| Returns main widget (Desktop) of the application (if it exists) | |
| virtual SUIT_Study * | activeStudy () const |
| Returns active Study. If Application supports wirking with several studies this method should be redefined. | |
| virtual int | getNbStudies () const |
| SUIT_ResourceMgr * | resourceMgr () const |
| SUIT_ShortcutMgr * | shortcutMgr () const |
| Get access to shortcut manager. | |
| void | putInfo (const QString &, const int=0) |
| Puts the message to the status bar. | |
Static Public Member Functions | |
| static CORBA::ORB_var | orb () |
| static SALOMEDSClient_StudyManager * | studyMgr () |
| static SALOME_NamingService * | namingService () |
| static SALOME_LifeCycleCORBA * | lcc () |
| static QString | defaultEngineIOR () |
| static int | studyId () |
Protected Types | |
| enum | { OpenRefresh = LightApp_Application::OpenReload + 1 } |
| enum | { CloseUnload = LightApp_Application::CloseDiscard + 1 } |
| enum | { LoadStudyId = LightApp_Application::OpenStudyId + 1, NewAndScriptId } |
| enum | { NewStudyId = 1, OpenStudyId } |
| enum | BrowsePolicy { BP_Never = 0, BP_ApplyAndClose, BP_Always } |
| enum | { OpenReload = CAM_Application::OpenExist + 1 } |
| typedef QPointer< QWidget > | WinPtr |
| typedef QMap< int, WinPtr > | WinMap |
| typedef QMap< QString, QByteArray > | WinVis |
| typedef QMap< QString, QByteArray > | WinGeom |
| enum | { OpenCancel, OpenNew, OpenExist } |
| enum | { CloseCancel, CloseSave, CloseDiscard } |
Protected Slots | |
| void | onStudyCreated (SUIT_Study *) |
| void | onStudySaved (SUIT_Study *) |
| void | onStudyOpened (SUIT_Study *) |
| void | onDesktopMessage (const QString &) |
| void | onStudyClosed (SUIT_Study *) |
| void | onViewManagerRemoved (SUIT_ViewManager *) |
| virtual void | onDesktopActivated () |
| void | onNewWindow () |
| void | onModuleActivation (const QString &) |
| void | onCloseView (SUIT_ViewManager *) |
| void | onWCDestroyed (QObject *) |
| void | onMRUActivated (const QString &) |
| void | onStylePreferences () |
Protected Member Functions | |
| virtual void | createActions () |
| virtual SUIT_Study * | createNewStudy () |
| virtual QWidget * | createWindow (const int) |
| virtual void | updateCommandsStatus () |
| virtual void | onSelectionChanged () |
| virtual void | createPreferences (LightApp_Preferences *) |
| virtual bool | closeAction (const int, bool &) |
| virtual int | closeChoice (const QString &) |
| virtual int | openChoice (const QString &) |
| virtual bool | openAction (const int, const QString &) |
| virtual QMap< int, QString > | activateModuleActions () const |
| Get map of the operations which can be performed on the module activation. | |
| virtual void | moduleActionSelected (const int) |
| Called when the used selectes required operation chosen from "Activate module" dialog box. | |
| void | objectBrowserColumnsVisibility () |
| virtual bool | activateModule (CAM_Module *=0) |
| LightApp_Preferences * | preferences (const bool) const |
| virtual void | studyOpened (SUIT_Study *) |
| virtual void | studySaved (SUIT_Study *) |
| virtual void | createActionForViewer (const int id, const int parentId, const QString &suffix, const int accel) |
| virtual void | defaultWindows (QMap< int, int > &) const |
| void | defaultViewManagers (QStringList &) const |
| virtual void | setActiveStudy (SUIT_Study *) |
| virtual void | beforeCloseDoc (SUIT_Study *) |
| virtual void | afterCloseDoc () |
| virtual void | moduleAdded (CAM_Module *) |
| virtual void | preferencesChanged (const QString &, const QString &) |
| virtual void | loadPreferences () |
| virtual void | savePreferences () |
| void | updateWindows () |
| void | updateViewManagers () |
| void | updateModuleActions () |
| void | removeModuleAction (const QString &) |
| void | loadDockWindowsState () |
| void | saveDockWindowsState () |
| virtual void | studyCreated (SUIT_Study *) |
| void | updatePreference (const QString &, const QString &, const QString &) |
| QString | defaultModule () const |
| void | currentWindows (QMap< int, int > &) const |
| void | currentViewManagers (QStringList &) const |
| void | moduleIconNames (QMap< QString, QString > &) const |
| bool | isLibExists (const QString &) const |
| QDockWidget * | windowDock (QWidget *) const |
| QByteArray | dockWindowsState (const QMap< QString, bool > &, const QMap< QString, bool > &) const |
| void | dockWindowsState (const QByteArray &, QMap< QString, bool > &, QMap< QString, bool > &) const |
| void | showPreferences (const QString &=QString()) |
| QString | moduleLibrary (const QString &, const bool=true) const |
| Get module library name by its title (user name). | |
| virtual void | setActiveViewManager (SUIT_ViewManager *) |
| SUIT_Application * | startApplication (int, char **) const |
| SUIT_Application * | startApplication (const QString &, int, char **) const |
| void | setActionShown (QAction *, const bool) |
| void | setActionShown (const int, const bool) |
| QAction * | action (const int) const |
| int | actionId (const QAction *) const |
| QList< QAction * > | actions () const |
| QList< int > | actionIds () const |
| int | registerAction (const int, QAction *) |
| QAction * | createAction (const int, const QString &, const QIcon &, const QString &, const QString &, const int, QObject *=0, const bool=false, QObject *=0, const char *=0, const QString &=QString()) |
Create tool functions | |
| int | createTool (const QString &) |
| int | createTool (const int, const int, const int=-1) |
| int | createTool (const int, const QString &, const int=-1) |
| int | createTool (QAction *, const int, const int=-1, const int=-1) |
| int | createTool (QAction *, const QString &, const int=-1, const int=-1) |
Create menu functions | |
| int | createMenu (const QString &, const int, const int=-1, const int=-1, const int=-1) |
| int | createMenu (const QString &, const QString &, const int=-1, const int=-1, const int=-1) |
| int | createMenu (const int, const int, const int=-1, const int=-1) |
| int | createMenu (const int, const QString &, const int=-1, const int=-1) |
| int | createMenu (QAction *, const int, const int=-1, const int=-1, const int=-1) |
| int | createMenu (QAction *, const QString &, const int=-1, const int=-1, const int=-1) |
Set menu shown functions | |
| void | setMenuShown (QAction *, const bool) |
| void | setMenuShown (const int, const bool) |
Set tool shown functions | |
| void | setToolShown (QAction *, const bool) |
| void | setToolShown (const int, const bool) |
Static Protected Member Functions | |
| static QAction * | separator () |
Protected Attributes | |
| LightApp_Preferences * | myPrefs |
| LightApp_SelectionMgr * | mySelMgr |
| WinMap | myWin |
| WinVis | myWinVis |
| WinGeom | myWinGeom |
| SUIT_Accel * | myAccel |
| QTimer * | myAutoSaveTimer |
| QStringList | myUserWmTypes |
Static Protected Attributes | |
| static LightApp_Preferences * | _prefs_ = 0 |
| static int | lastStudyId = 0 |
Private Slots | |
| void | onDeleteInvalidReferences () |
| void | onDblClick (SUIT_DataObject *) |
| void | onProperties () |
| void | onDumpStudy () |
| void | onNoteBook () |
| void | onLoadScript () |
| void | onDeleteGUIState () |
| void | onRestoreGUIState () |
| void | onCatalogGen () |
| void | onRegDisplay () |
| void | onOpenWith () |
| void | onExtAction () |
| void | onWindowActivated (SUIT_ViewWindow *theViewWindow) |
Private Member Functions | |
| void | createExtraActions () |
Private Attributes | |
| SalomeApp_NoteBookDlg * | myNoteBook |
| QMap< QString, QAction * > | myExtActions |
typedef QPointer<QWidget> LightApp_Application.WinPtr [protected, inherited] |
typedef QMap<int, WinPtr> LightApp_Application.WinMap [protected, inherited] |
typedef QMap<QString, QByteArray> LightApp_Application.WinVis [protected, inherited] |
typedef QMap<QString, QByteArray> LightApp_Application.WinGeom [protected, inherited] |
typedef QList<CAM_Module*> CAM_Application.ModuleList [inherited] |
| anonymous enum |
enum LightApp_Application::WindowTypes [inherited] |
anonymous enum [inherited] |
enum LightApp_Application::BrowsePolicy [protected, inherited] |
anonymous enum [inherited] |
| SalomeApp_Application::SalomeApp_Application | ( | ) |
Constructor.
References SUIT_Application.desktop(), onDesktopMessage(), onWindowActivated(), and setNoteBook().
| SalomeApp_Application::~SalomeApp_Application | ( | ) | [virtual] |
Destructor.
| void SalomeApp_Application::updateObjectBrowser | ( | const bool | updateModels = true | ) | [virtual] |
Update obect browser: 1.if 'updateModels' true, update existing data models; 2. update "non-existing" (not loaded yet) data models; 3. update object browser if it exists
Reimplemented from LightApp_Application.
References _PTR(), SUIT_Application.activeStudy(), SUIT_DataBrowser.autoUpdate(), LightApp_Study.getVisualComponentName(), LightApp_Application.getWindow(), LightApp_Application.objectBrowser(), SUIT_DataBrowser.setAutoUpdate(), synchronize(), updateSavePointDataObjects(), and LightApp_Application.WT_ObjectBrowser.
| QString SalomeApp_Application::getFileFilter | ( | ) | const [virtual] |
| void SalomeApp_Application::start | ( | ) | [virtual] |
Start application.
Reimplemented from LightApp_Application.
References _PTR(), SUIT_Application.activeStudy(), TestSalomeApp.command, PyConsole_Console.exec(), SALOME_EventFilter.Init(), LightApp_Application.onNewDoc(), LightApp_Application.onOpenDoc(), and LightApp_Application.pythonConsole().
| void SalomeApp_Application::contextMenuPopup | ( | const QString & | type, |
| QMenu * | thePopup, | ||
| QString & | title | ||
| ) | [virtual] |
Insert items in popup, which necessary for current application
Reimplemented from LightApp_Application.
References _PTR(), CAM_Application.activeModule(), SUIT_Application.activeStudy(), SALOME_ListIO.Clear(), SALOME_ListIO.Extent(), SALOME_ListIO.First(), Handle(), CAM_Module.moduleName(), CAM_Application.moduleTitle(), SALOME_ListIteratorOfListIO.More(), myExtActions, LightApp_Application.objectBrowser(), onDeleteGUIState(), onDeleteInvalidReferences(), onOpenWith(), onRestoreGUIState(), SUIT_DataBrowser.RenameShortcut, LightApp_SelectionMgr.selectedObjects(), and LightApp_Application.selectionMgr().
| bool SalomeApp_Application::checkDataObject | ( | LightApp_DataObject * | theObj | ) | [virtual] |
Check data object
Reimplemented from LightApp_Application.
| void SalomeApp_Application::setDesktop | ( | SUIT_Desktop * | desk | ) | [virtual] |
Set desktop:
Reimplemented from STD_Application.
References SUIT_Application.desktop(), onDesktopMessage(), and onWindowActivated().
| CORBA::ORB_var SalomeApp_Application::orb | ( | ) | [static] |
Gets CORBA.ORB_var
| SALOMEDSClient_StudyManager * SalomeApp_Application::studyMgr | ( | ) | [static] |
Create and return SALOMEDS_StudyManager.
References _PTR().
| SALOME_NamingService * SalomeApp_Application::namingService | ( | ) | [static] |
Create and return SALOME_NamingService.
References orb().
| SALOME_LifeCycleCORBA * SalomeApp_Application::lcc | ( | ) | [static] |
Create and return SALOME_LifeCycleCORBA.
References namingService().
| QString SalomeApp_Application::defaultEngineIOR | ( | ) | [static] |
Return default engine IOR for light modules
Look for a default module engine (needed for CORBAless modules to use SALOMEDS persistence)
References namingService(), and orb().
| SUIT_ViewManager * SalomeApp_Application::newViewManager | ( | const QString & | type | ) |
Creates new view manager
| type | - type of view manager |
References LightApp_Application.createViewManager().
| void SalomeApp_Application::updateSavePointDataObjects | ( | SalomeApp_Study * | study | ) |
updateSavePointDataObjects: syncronize data objects that correspond to save points (gui states)
References SUIT_DataObject.appendChild(), SUIT_DataBrowser.autoUpdate(), SUIT_DataObject.children(), SUIT_SelectionMgr.clearSelected(), SalomeApp_SavePointObject.getId(), SalomeApp_Study.getSavePoints(), SUIT_DataObject.nextBrother(), LightApp_Application.objectBrowser(), SUIT_DataObject.removeChild(), SUIT_Study.root(), LightApp_Application.selectionMgr(), and SUIT_DataBrowser.setAutoUpdate().
| bool SalomeApp_Application::isPossibleToClose | ( | bool & | closePermanently | ) | [virtual] |
Check the application on closing.
| true | if possible, else false |
Reimplemented from STD_Application.
| bool SalomeApp_Application::useStudy | ( | const QString & | theName | ) | [virtual] |
Opens other study into active Study. If Study is empty - creates it.
| theName | - name of study |
References SUIT_Application.activeStudy(), LightApp_Application.createEmptyStudy(), SalomeApp_Study.loadDocument(), updateCommandsStatus(), and updateDesktopTitle().
| void SalomeApp_Application::updateDesktopTitle | ( | ) | [virtual] |
Update desktop title.
Reimplemented from LightApp_Application.
References _PTR(), SUIT_Application.activeStudy(), LightApp_Application.applicationName(), LightApp_Application.applicationVersion(), SUIT_Application.desktop(), and Qtx.file().
| void SalomeApp_Application::setNoteBook | ( | SalomeApp_NoteBookDlg * | theNoteBook | ) | [virtual] |
Set SalomeApp_NoteBookDlg pointer
References myNoteBook.
| SalomeApp_NoteBookDlg * SalomeApp_Application::getNoteBook | ( | ) | const [virtual] |
Return SalomeApp_NoteBookDlg pointer
References myNoteBook.
| void SalomeApp_Application::updateVisibilityState | ( | DataObjectList & | theList, |
| SUIT_ViewModel * | theViewModel | ||
| ) |
Update visibility state of given objects
References SUIT_Application.activeStudy(), LightApp_Displayer.canBeDisplayed(), LightApp_Module.displayer(), LightApp_DataObject.entry(), SUIT_ViewModel.getType(), Qtx.HiddenState, LightApp_Study.isComponent(), LightApp_Displayer.IsDisplayed(), CAM_DataObject.module(), PyInterp.obj, LightApp_Study.setVisibilityState(), Qtx.ShownState, and Qtx.UnpresentableState.
| bool SalomeApp_Application::renameAllowed | ( | const QString & | entry | ) | const [virtual] |
Checks that an object can be renamed.
| entry | entry of the object |
Reimplemented from LightApp_Application.
| bool SalomeApp_Application::renameObject | ( | const QString & | entry, |
| const QString & | name | ||
| ) | [virtual] |
Rename object by entry.
| entry | entry of the object |
| name | new name of the object |
Reimplemented from LightApp_Application.
References SUIT_Application.activeStudy(), getSelectedSavePoint(), SalomeApp_Study.Modified(), LightApp_Application.selectionMgr(), SalomeApp_Study.setNameOfSavePoint(), and updateSavePointDataObjects().
| void SalomeApp_Application::onLoadDoc | ( | ) | [virtual, slot] |
SLOT. Load document.
References SUIT_Application.activeStudy(), SUIT_Session.applications(), SUIT_Application.desktop(), SalomeApp_LoadStudiesDlg.selectStudy(), SUIT_Session.session(), studyMgr(), SUIT_Study.studyName(), updateObjectBrowser(), LightApp_Application.updateViewManagers(), and LightApp_Application.updateWindows().
| void SalomeApp_Application::onNewWithScript | ( | ) | [virtual, slot] |
SLOT. Create new study and load script
References TestSalomeApp.command, SUIT_Application.desktop(), PyConsole_Console.exec(), LightApp_Application.getFileName(), SUIT_FileDlg.getLastVisitedPath(), LightApp_Application.onNewDoc(), and LightApp_Application.pythonConsole().
| bool SalomeApp_Application::onLoadDoc | ( | const QString & | aName | ) | [virtual, slot] |
SLOT. Load document with aName.
References SUIT_Application.activeStudy(), test_big_table.aName, SUIT_Session.applications(), SUIT_Application.desktop(), SUIT_Session.session(), SUIT_Application.startApplication(), SUIT_Study.studyName(), and useStudy().
| void SalomeApp_Application::onCloseDoc | ( | bool | ask = true | ) | [virtual, slot] |
Check if the study is locked
Reimplemented from STD_Application.
References _PTR(), SUIT_Application.activeStudy(), SUIT_Application.desktop(), myNoteBook, and SUIT_MessageBox.question().
| void SalomeApp_Application::onExit | ( | ) | [virtual, slot] |
Reimplemented from STD_Application.
References SUIT_Session.ASK, SUIT_Session.closeSession(), SUIT_Application.desktop(), STD_Application.exitConfirmation(), SalomeApp_ExitDlg.isServersShutdown(), and SUIT_Session.session().
| void SalomeApp_Application::onCopy | ( | ) | [virtual, slot] |
SLOT. Copy objects to study maneger from selection maneger..
Reimplemented from LightApp_Application.
References _PTR(), SUIT_Application.activeStudy(), SALOME_ListIteratorOfListIO.More(), onSelectionChanged(), LightApp_SelectionMgr.selectedObjects(), LightApp_Application.selectionMgr(), studyMgr(), and SALOME_ListIteratorOfListIO.Value().
| void SalomeApp_Application::onPaste | ( | ) | [virtual, slot] |
SLOT. Paste objects to study maneger from selection manager.
Reimplemented from LightApp_Application.
References _PTR(), SUIT_Application.activeStudy(), SUIT_Application.desktop(), SALOME_ListIteratorOfListIO.More(), LightApp_SelectionMgr.selectedObjects(), LightApp_Application.selectionMgr(), studyMgr(), LightApp_Application.updateActions(), updateObjectBrowser(), SALOME_ListIteratorOfListIO.Value(), and SUIT_MessageBox.warning().
| void SalomeApp_Application::onSaveGUIState | ( | ) | [slot] |
Private SLOT. On save GUI state.
References SUIT_Application.activeStudy(), SalomeApp_VisualState.storeState(), LightApp_Application.updateActions(), updateObjectBrowser(), and updateSavePointDataObjects().
| void SalomeApp_Application::onStudyCreated | ( | SUIT_Study * | study | ) | [protected, slot] |
Called on New study operation
Reimplemented from LightApp_Application.
References objectBrowserColumnsVisibility(), onViewManagerRemoved(), and STD_Application.viewManagerRemoved().
| void SalomeApp_Application::onStudySaved | ( | SUIT_Study * | study | ) | [protected, slot] |
Called on Save study operation
Reimplemented from LightApp_Application.
| void SalomeApp_Application::onStudyOpened | ( | SUIT_Study * | study | ) | [protected, slot] |
Called on Open study operation
Reimplemented from LightApp_Application.
References objectBrowserColumnsVisibility(), onViewManagerRemoved(), and STD_Application.viewManagerRemoved().
| void SalomeApp_Application::onDesktopMessage | ( | const QString & | message | ) | [protected, slot] |
Process standard messages from desktop
References updateObjectBrowser().
| void SalomeApp_Application::onStudyClosed | ( | SUIT_Study * | theStudy | ) | [protected, slot] |
Called then study closed
Reimplemented from LightApp_Application.
References onViewManagerRemoved(), and STD_Application.viewManagerRemoved().
| void SalomeApp_Application::onViewManagerRemoved | ( | SUIT_ViewManager * | ) | [protected, slot] |
Called then view manager removed
References SUIT_Application.activeStudy(), LightApp_Study.setVisibilityStateForAll(), Qtx.UnpresentableState, and STD_Application.viewManagers().
| void SalomeApp_Application::createActions | ( | ) | [protected, virtual] |
Create actions:
Save GUI state
Dump study
NoteBook
Load script
Properties
Catalog Generator
Registry Display
Reimplemented from LightApp_Application.
References CatalogGenId, SUIT_Application.createAction(), createExtraActions(), SUIT_Application.createMenu(), SUIT_Application.desktop(), DumpStudyId, FileLoadId, LoadScriptId, MenuToolsId, NoteBookId, onCatalogGen(), onDumpStudy(), onLoadDoc(), onLoadScript(), onNoteBook(), onProperties(), onRegDisplay(), PropertiesId, RegDisplayId, SUIT_Application.resourceMgr(), and SUIT_Application.separator().
| SUIT_Study * SalomeApp_Application::createNewStudy | ( | ) | [protected, virtual] |
Creates new study
Reimplemented from LightApp_Application.
References onStudyClosed(), onStudyCreated(), onStudyOpened(), and onStudySaved().
| QWidget * SalomeApp_Application::createWindow | ( | const int | flag | ) | [protected, virtual] |
Create window.
Reimplemented from LightApp_Application.
References QtxResourceMgr.booleanValue(), SUIT_PopupClient.connectPopupRequest(), SUIT_Application.desktop(), LightApp_DataObject.EntryId, SalomeApp_DataObject.IORId, OB_Browser.model(), STD_Application.onConnectPopupRequest(), onDblClick(), SalomeApp_DataObject.RefEntryId, SUIT_AbstractModel.registerColumn(), SUIT_Application.resourceMgr(), SUIT_AbstractModel.setAppropriate(), SUIT_DataBrowser.setAutoSizeColumns(), SUIT_DataBrowser.setAutoSizeFirstColumn(), SUIT_DataBrowser.setAutoUpdate(), PyConsole_Console.setFont(), PyConsole_Console.setIsShowBanner(), SUIT_DataBrowser.setResizeOnExpandItem(), SUIT_DataBrowser.setUpdateModified(), Qtx.Toggled, SalomeApp_DataObject.ValueId, LightApp_Application.WT_ObjectBrowser, and LightApp_Application.WT_PyConsole.
| void SalomeApp_Application::updateCommandsStatus | ( | ) | [protected, virtual] |
Enable/Disable menu items and toolbar buttons. Rebuild menu
Reimplemented from LightApp_Application.
References test_table.a, SUIT_Application.action(), SUIT_Application.activeStudy(), DumpStudyId, LoadScriptId, NoteBookId, onSelectionChanged(), PropertiesId, and SaveGUIStateId.
| void SalomeApp_Application::onSelectionChanged | ( | ) | [protected, virtual] |
Sets enable or disable some actions on selection changed.
Reimplemented from LightApp_Application.
References _PTR(), SUIT_Application.action(), SUIT_Application.activeStudy(), STD_Application.EditCopyId, STD_Application.EditPasteId, SALOME_ListIO.Extent(), SALOME_ListIteratorOfListIO.More(), LightApp_SelectionMgr.selectedObjects(), LightApp_Application.selectionMgr(), studyMgr(), and SALOME_ListIteratorOfListIO.Value().
| void SalomeApp_Application::createPreferences | ( | LightApp_Preferences * | pref | ) | [protected, virtual] |
Create preferences.
Reimplemented from LightApp_Application.
References LightApp_Preferences.addPreference(), SUIT_PreferenceMgr.Bool, LightApp_DataObject.EntryId, SalomeApp_DataObject.RefEntryId, SUIT_PreferenceMgr.setItemProperty(), SUIT_PreferenceMgr.Space, and Vertical.
| bool SalomeApp_Application::closeAction | ( | const int | choice, |
| bool & | closePermanently | ||
| ) | [protected, virtual] |
Reimplemented from STD_Application.
References SUIT_Application.activeStudy(), STD_Application.CloseCancel, STD_Application.CloseDiscard, STD_Application.CloseSave, CloseUnload, STD_Application.onSaveAsDoc(), and STD_Application.onSaveDoc().
| int SalomeApp_Application::closeChoice | ( | const QString & | docName | ) | [protected, virtual] |
Reimplemented from STD_Application.
References STD_Application.CloseCancel, STD_Application.CloseDiscard, STD_Application.CloseSave, CloseUnload, SUIT_Application.desktop(), and SUIT_MessageBox.question().
| int SalomeApp_Application::openChoice | ( | const QString & | aName | ) | [protected, virtual] |
Reimplemented from LightApp_Application.
References SUIT_Application.desktop(), STD_Application.OpenCancel, STD_Application.OpenNew, OpenRefresh, SUIT_MessageBox.question(), studyMgr(), and SUIT_MessageBox.warning().
| bool SalomeApp_Application::openAction | ( | const int | aChoice, |
| const QString & | aName | ||
| ) | [protected, virtual] |
Reimplemented from LightApp_Application.
References _PTR(), STD_Application.OpenNew, OpenRefresh, and studyMgr().
| QMap< int, QString > SalomeApp_Application::activateModuleActions | ( | ) | const [protected, virtual] |
The method should return the map of the kind { <id>:<name>} where <id> is an integer identifier of the operation and <name> is a title for the button to be added to the dialog box. After user selects the required operation by the clicking the corresponding button in the dialog box, its identifier is passed to the moduleActionSelected() method to process the made choice.
Reimplemented from LightApp_Application.
References LoadStudyId, and NewAndScriptId.
| void SalomeApp_Application::moduleActionSelected | ( | const int | id | ) | [protected, virtual] |
Performs the required operation according to the user choice.
| id | operation identifier |
Reimplemented from LightApp_Application.
References LoadStudyId, NewAndScriptId, onLoadDoc(), and onNewWithScript().
| void SalomeApp_Application::objectBrowserColumnsVisibility | ( | ) | [protected] |
Show/hide object browser colums according to preferences
References QtxResourceMgr.booleanValue(), LightApp_DataObject.EntryId, LightApp_Application.objectBrowser(), SalomeApp_DataObject.RefEntryId, SUIT_Application.resourceMgr(), and OB_Browser.treeView().
| void SalomeApp_Application::onDeleteInvalidReferences | ( | ) | [private, slot] |
Delete references.
References _PTR(), SUIT_Application.activeStudy(), SALOME_ListIO.IsEmpty(), SALOME_ListIteratorOfListIO.More(), LightApp_SelectionMgr.selectedObjects(), LightApp_Application.selectionMgr(), and updateObjectBrowser().
| void SalomeApp_Application::onDblClick | ( | SUIT_DataObject * | theObj | ) | [private, slot] |
find original object by double click on item
References _PTR(), SUIT_Application.activeStudy(), SUIT_DataOwnerPtrList.append(), SalomeApp_DataObject.entry(), PyInterp.obj, LightApp_Application.objectBrowser(), OB_Browser.selectedIndexes(), LightApp_Application.selectionMgr(), SUIT_SelectionMgr.setSelected(), and OB_Browser.treeView().
| void SalomeApp_Application::onProperties | ( | ) | [private, slot] |
Private SLOT. On preferences.
References _PTR(), SUIT_Application.activeStudy(), SUIT_Application.desktop(), SalomeApp_StudyPropertiesDlg.isChanged(), LightApp_Application.updateActions(), and updateDesktopTitle().
| void SalomeApp_Application::onDumpStudy | ( | ) | [private, slot] |
Private SLOT. On dump study.
References _PTR(), SUIT_Application.activeStudy(), SUIT_Application.desktop(), DumpStudyFileDlg.myMultiFileChk, DumpStudyFileDlg.myPublishChk, DumpStudyFileDlg.mySaveGUIChk, SalomeApp_Study.removeSavePoint(), SUIT_Application.resourceMgr(), SUIT_FileDlg.selectedFile(), SUIT_FileDlg.setValidator(), SalomeApp_VisualState.storeState(), and SUIT_MessageBox.warning().
| void SalomeApp_Application::onNoteBook | ( | ) | [private, slot] |
Private SLOT. On NoteBook
References _PTR(), SUIT_Application.activeStudy(), SUIT_Application.desktop(), SalomeApp_NoteBookDlg.Init(), and myNoteBook.
| void SalomeApp_Application::onLoadScript | ( | ) | [private, slot] |
Private SLOT. On load script.
References _PTR(), SUIT_Application.activeStudy(), TestSalomeApp.command, SUIT_Application.desktop(), PyConsole_Console.exec(), LightApp_Application.getFileName(), SUIT_FileDlg.getLastVisitedPath(), LightApp_Application.pythonConsole(), and SUIT_MessageBox.warning().
| void SalomeApp_Application::onDeleteGUIState | ( | ) | [private, slot] |
Called on Delete GUI State popup command
References SUIT_Application.activeStudy(), getSelectedSavePoint(), SalomeApp_Study.removeSavePoint(), LightApp_Application.selectionMgr(), and updateSavePointDataObjects().
| void SalomeApp_Application::onRestoreGUIState | ( | ) | [private, slot] |
Called on Restore GUI State popup command
References getSelectedSavePoint(), SalomeApp_VisualState.restoreState(), and LightApp_Application.selectionMgr().
| void SalomeApp_Application::onCatalogGen | ( | ) | [private, slot] |
Display Catalog Genenerator dialog
References SUIT_Application.desktop().
| void SalomeApp_Application::onRegDisplay | ( | ) | [private, slot] |
Display Registry Display dialog
References SUIT_Application.desktop(), ToolsGUI_RegWidget.GetRegWidget(), and orb().
| void SalomeApp_Application::onOpenWith | ( | ) | [private, slot] |
| void SalomeApp_Application::onExtAction | ( | ) | [private, slot] |
Called when extra action is selected
References LightApp_Application.activateModule(), CAM_Application.activeModule(), SALOME_ListIO.Extent(), SALOME_ListIO.First(), Handle(), CAM_Application.moduleTitle(), LightApp_SelectionMgr.selectedObjects(), and LightApp_Application.selectionMgr().
| void SalomeApp_Application::onWindowActivated | ( | SUIT_ViewWindow * | theViewWindow | ) | [private, slot] |
Called when window activated
References SUIT_DataObject.children(), SUIT_ViewWindow.getViewManager(), LightApp_Application.objectBrowser(), SUIT_DataBrowser.root(), and updateVisibilityState().
| void SalomeApp_Application::createExtraActions | ( | ) | [private] |
Define extra actions defined in module definition XML file. Additional popup items sections can be defined by parameter "popupitems". Supported attributes: title - title of menu item, attributelocalid - AttributeLocalId defined for selected data item where menu command has to be applied, method - method which has to be called when menu item is selected Example: <section name="MODULENAME"> <parameter name="popupitems" value="menuitem1:menuitem2:..."> </section> <section name="importmed"> <parameter name="title" value="My menu"> <parameter name="objectid" value="VISU.Result"> <parameter name="method" value="nameOfModuleMethod"> </section>
References CAM_Application.moduleName(), CAM_Application.modules(), myExtActions, onExtAction(), SUIT_Session.resourceMgr(), SUIT_Session.session(), and QtxResourceMgr.stringValue().
| QString LightApp_Application::applicationName | ( | ) | const [virtual, inherited] |
Gets application name.
Reimplemented from STD_Application.
| QString LightApp_Application::applicationVersion | ( | ) | const [virtual, inherited] |
Gets application version.
Reimplemented from SUIT_Application.
| CAM_Module * LightApp_Application::loadModule | ( | const QString & | name, |
| const bool | showMsg = true |
||
| ) | [virtual, inherited] |
Load module by name.
Reimplemented from CAM_Application.
References LightApp_Application.studyClosed(), LightApp_Application.studyOpened(), and LightApp_Application.studySaved().
| bool LightApp_Application::activateModule | ( | const QString & | modName | ) | [virtual, inherited] |
Activate module by modName
Reimplemented from CAM_Application.
References CAM_Application.activeModule(), CAM_Module.moduleName(), SUIT_Application.putInfo(), LightApp_Application.saveDockWindowsState(), LightApp_Application.updateModuleActions(), LightApp_Application.updateViewManagers(), and LightApp_Application.updateWindows().
| bool LightApp_Application::activateModule | ( | CAM_Module * | mod = 0 | ) | [protected, virtual, inherited] |
Activates module
| mod | - module to be activated |
Reimplemented from CAM_Application.
References LightApp_Application.activateModule(), LightApp_Application.objectBrowser(), and SUIT_DataBrowser.updateTree().
| LightApp_SelectionMgr * LightApp_Application::selectionMgr | ( | ) | const [inherited] |
Gets selection manager.
References LightApp_Application.mySelMgr.
| LogWindow * LightApp_Application::logWindow | ( | ) | [inherited] |
References LightApp_Application.dockWindow(), and LightApp_Application.WT_LogWindow.
| SUIT_DataBrowser * LightApp_Application::objectBrowser | ( | ) | [inherited] |
References LightApp_Application.dockWindow(), and LightApp_Application.WT_ObjectBrowser.
| PyConsole_Console * LightApp_Application::pythonConsole | ( | ) | [inherited] |
References LightApp_Application.dockWindow(), and LightApp_Application.WT_PyConsole.
| LightApp_Preferences * LightApp_Application::preferences | ( | ) | const [inherited] |
| LightApp_Preferences * LightApp_Application::preferences | ( | const bool | crt | ) | const [protected, inherited] |
References LightApp_Application._prefs_, LightApp_Preferences.addPreference(), SUIT_Session.applications(), LightApp_Module.createPreferences(), LightApp_Application.createPreferences(), LightApp_Application.emptyPreferences(), LightApp_Preferences.hasModule(), LightApp_Application.isLibExists(), QtxResourceMgr.loadPixmap(), LightApp_Application.moduleIconNames(), CAM_Module.moduleName(), CAM_Application.moduleName(), CAM_Application.modules(), LightApp_Application.myPrefs, LightApp_Application.onPreferenceChanged(), LightApp_Application.preferenceChanged(), SUIT_Application.resourceMgr(), Qtx.scaleIcon(), SUIT_Session.session(), SUIT_PreferenceMgr.setItemIcon(), and SUIT_PreferenceMgr.setItemProperty().
| QString LightApp_Application::getFileName | ( | bool | open, |
| const QString & | initial, | ||
| const QString & | filters, | ||
| const QString & | caption, | ||
| QWidget * | parent | ||
| ) | [virtual, inherited] |
Shows file dialog and return user selected file name
Reimplemented from STD_Application.
References SUIT_Application.desktop().
| QString LightApp_Application::getDirectory | ( | const QString & | initial, |
| const QString & | caption, | ||
| QWidget * | parent | ||
| ) | [virtual, inherited] |
Gets directory
Reimplemented from STD_Application.
References SUIT_Application.desktop(), and SUIT_FileDlg.getExistingDirectory().
| QStringList LightApp_Application::getOpenFileNames | ( | const QString & | initial, |
| const QString & | filters, | ||
| const QString & | caption, | ||
| QWidget * | parent | ||
| ) | [virtual, inherited] |
Get open file names
References SUIT_Application.desktop().
| void LightApp_Application::updateActions | ( | ) | [inherited] |
Update actions.
References LightApp_Application.updateCommandsStatus().
| SUIT_ViewManager * LightApp_Application::getViewManager | ( | const QString & | vmType, |
| const bool | create | ||
| ) | [inherited] |
| vmType | - type of view manager |
| create | - is it necessary to create view manager in case, when there is no manager of such type |
References STD_Application.activeViewManager(), SUIT_ViewManager.createView(), LightApp_Application.createViewManager(), SUIT_ViewManager.getActiveView(), SUIT_ViewManager.getType(), and STD_Application.viewManager().
| void LightApp_Application::addViewManager | ( | SUIT_ViewManager * | vm | ) | [virtual, inherited] |
Connects just added view manager
Reimplemented from STD_Application.
References LightApp_Application.onCloseView().
| void LightApp_Application::removeViewManager | ( | SUIT_ViewManager * | vm | ) | [virtual, inherited] |
Remove view manager from memory
Reimplemented from STD_Application.
References SUIT_Application.activeStudy(), SUIT_ViewManager.getGlobalId(), LightApp_Application.onCloseView(), and LightApp_Study.removeViewMgr().
| SUIT_ViewManager * LightApp_Application::createViewManager | ( | const QString & | vmType | ) | [virtual, inherited] |
Creates view manager of some type
| vmType | - type of view manager |
References SUIT_Application.activeStudy(), LightApp_Application.addViewManager(), VTKViewer_Viewer.backgroundColor(), SVTK_Viewer.backgroundColor(), OCCViewer_Viewer.backgroundColor(), Plot2d_ViewFrame.backgroundColor(), QtxResourceMgr.booleanValue(), OCCViewer_ViewFrame.BOTTOM_LEFT, OCCViewer_ViewFrame.BOTTOM_RIGHT, QtxResourceMgr.colorValue(), SUIT_ViewManager.createViewWindow(), SUIT_Application.desktop(), QtxResourceMgr.doubleValue(), SUIT_ViewManager.getActiveView(), Plot2d_ViewWindow.getViewFrame(), SUIT_ViewManager.getViewModel(), SVTK_Viewer.incrementalSpeed(), SVTK_Viewer.incrementalSpeedMode(), QtxResourceMgr.integerValue(), SVTK_Viewer.interactionStyle(), OCCViewer_Viewer.interactionStyle(), OCCViewer_Viewer.isos(), SVTK_Viewer.isStaticTrihedronVisible(), LightApp_Application.mySelMgr, SVTK_Viewer.projectionMode(), SUIT_Application.resourceMgr(), VTKViewer_Viewer.setBackgroundColor(), SVTK_Viewer.setBackgroundColor(), OCCViewer_Viewer.setBackgroundColor(), Plot2d_ViewFrame.setBackgroundColor(), SUIT_ViewWindow.setDropDownButtons(), SVTK_Viewer.setIncrementalSpeed(), SVTK_Viewer.setInteractionStyle(), OCCViewer_Viewer.setInteractionStyle(), OCCViewer_Viewer.setIsos(), SVTK_Viewer.setProjectionMode(), SVTK_Viewer.setSpacemouseButtons(), SVTK_Viewer.setStaticTrihedronVisible(), SVTK_Viewer.setTrihedronSize(), OCCViewer_Viewer.setTrihedronSize(), SUIT_ViewManager.setViewModel(), SVTK_Viewer.setZoomingStyle(), OCCViewer_Viewer.setZoomingStyle(), SVTK_Viewer.spacemouseBtn(), OCCViewer_ViewFrame.TOP_LEFT, OCCViewer_ViewFrame.TOP_RIGHT, SVTK_Viewer.trihedronRelative(), SVTK_Viewer.trihedronSize(), OCCViewer_Viewer.trihedronSize(), VTKViewer_Viewer.Type(), SVTK_Viewer.Type(), OCCViewer_Viewer.Type(), QxScene_Viewer.Type(), Plot2d_Viewer.Type(), GLViewer_Viewer.Type(), SVTK_Viewer.zoomingStyle(), and OCCViewer_Viewer.zoomingStyle().
| SUIT_ViewManager * LightApp_Application::createViewManager | ( | const QString & | vmType, |
| QWidget * | w | ||
| ) | [virtual, inherited] |
References SUIT_Application.activeStudy(), LightApp_Application.addViewManager(), QtxResourceMgr.booleanValue(), SUIT_ViewManager.createViewWindow(), SUIT_Application.desktop(), LightApp_Application.myUserWmTypes, SUIT_Application.resourceMgr(), SUIT_ViewWindow.setDropDownButtons(), and SUIT_ViewManager.setTitle().
| QWidget * LightApp_Application::getWindow | ( | const int | flag, |
| const int | = -1 |
||
| ) | [inherited] |
Gets window.
| flag | - key for window |
| studyId | - study id Flag used how identificator of window in windows list. |
References LightApp_Application.createWindow(), LightApp_Application.currentWindows(), LightApp_Application.dockWindow(), LightApp_Application.insertDockWindow(), and LightApp_Application.placeDockWindow().
| QWidget * LightApp_Application::dockWindow | ( | const int | id | ) | const [inherited] |
Adds window to application.
| wid | - QWidget |
| flag | - key for window |
| studyId | - study id Flag used how identificator of window in windows list. |
References LightApp_Application.myWin.
| void LightApp_Application::removeDockWindow | ( | const int | id | ) | [inherited] |
| void LightApp_Application::insertDockWindow | ( | const int | id, |
| QWidget * | wid | ||
| ) | [inherited] |
| void LightApp_Application::placeDockWindow | ( | const int | id, |
| Qt::DockWidgetArea | place | ||
| ) | [inherited] |
| void LightApp_Application::createEmptyStudy | ( | ) | [virtual, inherited] |
Create empty study
Reimplemented from CAM_Application.
References SUIT_Application.activeStudy(), QtxResourceMgr.integerValue(), LightApp_Application.myAutoSaveTimer, LightApp_Application.objectBrowser(), SUIT_Session.resourceMgr(), SUIT_Session.session(), and SUIT_DataBrowser.updateTree().
| SUIT_Accel * LightApp_Application::accel | ( | ) | const [inherited] |
References LightApp_Application.myAccel.
| void LightApp_Application::setDefaultStudyName | ( | const QString & | theName | ) | [inherited] |
References SUIT_Application.activeStudy(), LightApp_Study.isSaved(), CAM_Application.modules(), SUIT_Study.setStudyName(), and LightApp_Application.updateDesktopTitle().
| int LightApp_Application::studyId | ( | ) | [static, inherited] |
References LightApp_Application.lastStudyId.
| bool LightApp_Application::event | ( | QEvent * | e | ) | [virtual, inherited] |
Custom event handler
References SALOME_CustomEvent.data(), SUIT_MessageBox.question(), and LightApp_Application.showPreferences().
| QStringList LightApp_Application::viewManagersTypes | ( | ) | const [inherited] |
References LightApp_Application.myUserWmTypes.
| void LightApp_Application::clearKnownViewManagers | ( | ) | [virtual, inherited] |
Removes all view managers of known types Other view managers are ignored
References SUIT_ViewManager.getType(), LightApp_Application.removeViewManager(), STD_Application.viewManagers(), and LightApp_Application.viewManagersTypes().
| QString LightApp_Application::browseObjects | ( | const QStringList & | theEntryList, |
| const bool | theIsApplyAndClose = true, |
||
| const bool | theIsOptimizedBrowsing = false |
||
| ) | [virtual, inherited] |
Browse (i.e. set focus on) the published objects
| theIsApplyAndClose | - flag indicating that the dialog for creating objects has been accepted by Ok (or Apply & Close) button |
| theIsOptimizedBrowsing | - flag switching to optimized browsing mode (to select the first published object only) |
References SUIT_Application.activeStudy(), SUIT_DataOwnerPtrList.append(), LightApp_Application.BP_Always, LightApp_Application.BP_ApplyAndClose, LightApp_Application.BP_Never, LightApp_Study.findObjectByEntry(), SUIT_AbstractModel.index(), OB_Browser.model(), LightApp_Application.objectBrowser(), SUIT_Application.resourceMgr(), LightApp_Application.selectionMgr(), SUIT_SelectionMgr.selectors(), SUIT_SelectionMgr.setSelected(), and OB_Browser.treeView().
| SUIT_DataObject * LightApp_Application::findObject | ( | const QString & | id | ) | const [virtual, inherited] |
Implements SUIT_DataSearcher.
References SUIT_Application.activeStudy(), and LightApp_Study.findObjectByEntry().
| void LightApp_Application.studyOpened | ( | ) | [signal, inherited] |
| void LightApp_Application::studyOpened | ( | SUIT_Study * | s | ) | [protected, virtual, inherited] |
Reimplemented from STD_Application.
References LightApp_Application.studyOpened(), LightApp_Application.updateViewManagers(), and LightApp_Application.updateWindows().
| void LightApp_Application.studySaved | ( | ) | [signal, inherited] |
| void LightApp_Application::studySaved | ( | SUIT_Study * | s | ) | [protected, virtual, inherited] |
| void LightApp_Application.studyClosed | ( | ) | [signal, inherited] |
| void LightApp_Application.preferenceChanged | ( | const QString & | , |
| const QString & | , | ||
| const QString & | |||
| ) | [signal, inherited] |
| void LightApp_Application::onHelpContentsModule | ( | ) | [virtual, slot, inherited] |
SLOT: Displays help contents for choosen module
References test_table.a, SUIT_Application.desktop(), SUIT_MessageBox.question(), SUIT_Application.resourceMgr(), LightApp_Application.showPreferences(), and QtxResourceMgr.stringValue().
| void LightApp_Application::onHelpContextModule | ( | const QString & | theComponentName, |
| const QString & | theFileName, | ||
| const QString & | theContext = QString() |
||
| ) | [virtual, slot, inherited] |
SLOT: Displays help contents for choosen dialog
Reimplemented from SUIT_Application.
References Qtx.addSlash(), SUIT_Application.desktop(), SUIT_MessageBox.question(), SUIT_Application.resourceMgr(), LightApp_Application.showPreferences(), and QtxResourceMgr.stringValue().
| void LightApp_Application::onNewDoc | ( | ) | [virtual, slot, inherited] |
SLOT: Creates new document
Reimplemented from STD_Application.
References SUIT_Application.activeStudy(), and LightApp_Application.saveDockWindowsState().
| bool STD_Application::onNewDoc | ( | const QString & | name | ) | [virtual, slot, inherited] |
Opens new application
References SUIT_Application.activeStudy(), SUIT_Application.closeApplication(), SUIT_Study.createDocument(), SUIT_Application.createEmptyStudy(), STD_Application.createEmptyStudy(), STD_Application.onNewDoc(), SUIT_Application.setActiveStudy(), SUIT_Application.startApplication(), and STD_Application.studyCreated().
| void LightApp_Application::onOpenDoc | ( | ) | [virtual, slot, inherited] |
SLOT: Opens new document
Reimplemented from STD_Application.
References SUIT_Application.activeStudy(), LightApp_Application.saveDockWindowsState(), LightApp_Application.updateViewManagers(), and LightApp_Application.updateWindows().
| bool LightApp_Application::onOpenDoc | ( | const QString & | aName | ) | [virtual, slot, inherited] |
SLOT: Opens new document.
| aName | - name of file |
Reimplemented from STD_Application.
References SUIT_Application.action(), QtxMRUAction.insert(), LightApp_Application.MRUId, LightApp_Application.onOpenDoc(), and QtxMRUAction.remove().
| void LightApp_Application::onHelpAbout | ( | ) | [virtual, slot, inherited] |
SLOT: Displays "About" message box
Reimplemented from STD_Application.
References LightApp_Application.applicationName(), LightApp_Application.applicationVersion(), and SUIT_Application.desktop().
| void LightApp_Application::createActionForViewer | ( | const int | id, |
| const int | parentId, | ||
| const QString & | suffix, | ||
| const int | accel | ||
| ) | [protected, virtual, inherited] |
Creat action "New window" for certain type of viewer:
References test_table.a, SUIT_Application.createAction(), SUIT_Application.createMenu(), SUIT_Application.desktop(), and LightApp_Application.onNewWindow().
| void LightApp_Application::defaultWindows | ( | QMap< int, int > & | aMap | ) | const [protected, virtual, inherited] |
References LightApp_Application.WT_ObjectBrowser, and LightApp_Application.WT_PyConsole.
| void LightApp_Application::defaultViewManagers | ( | QStringList & | ) | const [protected, inherited] |
Default view managers
Do nothing.
| void LightApp_Application::setActiveStudy | ( | SUIT_Study * | study | ) | [protected, virtual, inherited] |
| void LightApp_Application::beforeCloseDoc | ( | SUIT_Study * | s | ) | [protected, virtual, inherited] |
Remove all windows from study.
Reimplemented from CAM_Application.
| void LightApp_Application::afterCloseDoc | ( | ) | [protected, virtual, inherited] |
Updates windows after close document
Reimplemented from CAM_Application.
References LightApp_Application.updateWindows().
| void LightApp_Application::moduleAdded | ( | CAM_Module * | mod | ) | [protected, virtual, inherited] |
Adds new module to application
Reimplemented from CAM_Application.
References LightApp_Preferences.addPreference(), LightApp_Module.createPreferences(), LightApp_Application.emptyPreferences(), LightApp_Preferences.hasModule(), CAM_Module.moduleName(), and LightApp_Application.myPrefs.
| void LightApp_Application::preferencesChanged | ( | const QString & | sec, |
| const QString & | param | ||
| ) | [protected, virtual, inherited] |
Changes appearance of application according to changed preferences
| sec | - section |
| param | - name of changed parameter |
References SUIT_Application.action(), SUIT_Application.activeStudy(), OB_Browser.adjustColumnsWidth(), OB_Browser.adjustFirstColumnWidth(), QtxResourceMgr.booleanValue(), SUIT_Application.desktop(), QtxResourceMgr.doubleValue(), QtxSearchTool.enableAutoHide(), QtxResourceMgr.fontValue(), OCCViewer_ViewManager.getOCCViewer(), SUIT_ViewManager.getViews(), SUIT_MessageBox.information(), QtxResourceMgr.integerValue(), LightApp_Application.MRUId, LightApp_Application.myAutoSaveTimer, LightApp_Application.objectBrowser(), LightApp_Application.pythonConsole(), SVTK_Viewer.Repaint(), SUIT_Application.resourceMgr(), OB_Browser.searchTool(), SUIT_DataBrowser.setAutoSizeColumns(), SUIT_DataBrowser.setAutoSizeFirstColumn(), QtxMRUAction.setClearPossible(), SUIT_ViewWindow.setDropDownButtons(), PyConsole_Console.setFont(), QtxMRUAction.setHistoryCount(), SVTK_Viewer.setIncrementalSpeed(), QtxMRUAction.setInsertMode(), SVTK_Viewer.setInteractionStyle(), OCCViewer_Viewer.setInteractionStyle(), OCCViewer_Viewer.setIsos(), PyConsole_Console.setIsShowBanner(), QtxMRUAction.setLinkType(), QtxMainWindow.setOpaqueResize(), SVTK_Viewer.setProjectionMode(), SUIT_DataBrowser.setResizeOnExpandItem(), SVTK_Viewer.setSpacemouseButtons(), SVTK_Viewer.setStaticTrihedronVisible(), SVTK_Viewer.setTrihedronSize(), OCCViewer_Viewer.setTrihedronSize(), QtxMRUAction.setVisibleCount(), SVTK_Viewer.setZoomingStyle(), OCCViewer_Viewer.setZoomingStyle(), SVTK_Viewer.Type(), OCCViewer_Viewer.Type(), LightApp_Application.updateWindows(), and STD_Application.viewManagers().
| void LightApp_Application::loadPreferences | ( | ) | [protected, virtual, inherited] |
Loads preferences
Reimplemented from STD_Application.
References SUIT_Application.action(), QtxResourceMgr.booleanValue(), SUIT_Application.desktop(), QtxResourceMgr.integerValue(), QtxMRUAction.loadLinks(), LightApp_Application.MRUId, LightApp_Application.myWinGeom, LightApp_Application.myWinVis, QtxResourceMgr.parameters(), SUIT_Application.resourceMgr(), QtxMainWindow.retrieveGeometry(), QtxMRUAction.setClearPossible(), QtxMRUAction.setHistoryCount(), QtxMRUAction.setInsertMode(), QtxMRUAction.setLinkType(), QtxMainWindow.setOpaqueResize(), QtxMRUAction.setVisibleCount(), QtxResourceMgr.stringValue(), and QtxResourceMgr.value().
| void LightApp_Application::savePreferences | ( | ) | [protected, virtual, inherited] |
Saves preferences
Reimplemented from STD_Application.
References SUIT_Application.action(), SUIT_Application.desktop(), LightApp_Application.MRUId, LightApp_Application.myWinGeom, LightApp_Application.myWinVis, SUIT_Application.resourceMgr(), QtxResourceMgr.save(), LightApp_Application.saveDockWindowsState(), QtxMRUAction.saveLinks(), and QtxResourceMgr.setValue().
| void LightApp_Application::onDesktopActivated | ( | ) | [protected, virtual, slot, inherited] |
Protected SLOT.On desktop activated.
Reimplemented from SUIT_Application.
References CAM_Application.activeModule(), and LightApp_Module.studyActivated().
| void LightApp_Application::onNewWindow | ( | ) | [protected, slot, inherited] |
| void LightApp_Application::onModuleActivation | ( | const QString & | modName | ) | [protected, slot, inherited] |
On module activation action.
References SUIT_Application.action(), LightApp_Application.activateModule(), LightApp_Application.activateModuleActions(), SUIT_Application.activeStudy(), LightApp_ModuleDlg.addButton(), SUIT_Application.desktop(), QtxResourceMgr.loadPixmap(), LightApp_Application.moduleActionSelected(), LightApp_Application.moduleIconNames(), CAM_Application.moduleName(), LightApp_Application.ModulesListId, SUIT_Application.putInfo(), SUIT_Application.resourceMgr(), and LightApp_ModuleAction.setActiveModule().
| void LightApp_Application::onCloseView | ( | SUIT_ViewManager * | theVM | ) | [protected, slot, inherited] |
SLOT: Removes view manager from application
References LightApp_Application.removeViewManager().
| void LightApp_Application::onWCDestroyed | ( | QObject * | ob | ) | [protected, slot, inherited] |
Removes dead widget container from map
References LightApp_Application.myWin.
| void LightApp_Application::onMRUActivated | ( | const QString & | name | ) | [protected, slot, inherited] |
| void LightApp_Application::onStylePreferences | ( | ) | [protected, slot, inherited] |
| void LightApp_Application::updateWindows | ( | ) | [protected, inherited] |
| void LightApp_Application::updateViewManagers | ( | ) | [protected, inherited] |
Updates view managers
References LightApp_Application.currentViewManagers(), and LightApp_Application.getViewManager().
| void LightApp_Application::updateModuleActions | ( | ) | [protected, inherited] |
Updates actions of active module
References SUIT_Application.action(), CAM_Application.activeModule(), SUIT_Session.applications(), CAM_Application.isModuleAccessible(), CAM_Module.moduleName(), LightApp_Application.ModulesListId, LightApp_Application.removeModuleAction(), SUIT_Session.session(), and LightApp_ModuleAction.setActiveModule().
| void LightApp_Application::removeModuleAction | ( | const QString & | modName | ) | [protected, inherited] |
| void LightApp_Application::loadDockWindowsState | ( | ) | [protected, inherited] |
Loads windows geometry
References CAM_Application.activeModule(), QtxResourceMgr.booleanValue(), SUIT_Application.desktop(), LightApp_Application.dockWindowsState(), Qtx.findParent(), LightApp_Application.myWinGeom, LightApp_Application.myWinVis, CAM_Module.name(), and SUIT_Application.resourceMgr().
| void LightApp_Application::saveDockWindowsState | ( | ) | [protected, inherited] |
| void LightApp_Application::studyCreated | ( | SUIT_Study * | s | ) | [protected, virtual, inherited] |
Reimplemented from STD_Application.
References LightApp_Application.updateViewManagers(), and LightApp_Application.updateWindows().
| void LightApp_Application.updatePreference | ( | const QString & | , |
| const QString & | , | ||
| const QString & | |||
| ) | [protected, inherited] |
| QString LightApp_Application::defaultModule | ( | ) | const [protected, inherited] |
Default module activation.
If there's the one and only module --> activate it automatically TODO: Possible improvement - default module can be taken from preferences
References CAM_Application.modules().
| void LightApp_Application::currentWindows | ( | QMap< int, int > & | winMap | ) | const [protected, inherited] |
Gets current windows.
| winMap | - output current windows map. |
References CAM_Application.activeModule(), SUIT_Application.activeStudy(), and LightApp_Application.defaultWindows().
| void LightApp_Application::currentViewManagers | ( | QStringList & | lst | ) | const [protected, inherited] |
Gets current view managers.
| lst | - output current view managers list. |
References CAM_Application.activeModule(), SUIT_Application.activeStudy(), LightApp_Application.defaultViewManagers(), and STD_Application.viewManagers().
| void LightApp_Application::moduleIconNames | ( | QMap< QString, QString > & | iconMap | ) | const [protected, inherited] |
Adds icon names for modules
References Qtx.extension(), CAM_Application.moduleName(), CAM_Application.modules(), SUIT_Application.resourceMgr(), and QtxResourceMgr.stringValue().
| bool LightApp_Application::isLibExists | ( | const QString & | moduleTitle | ) | const [protected, inherited] |
| moduleTitle | - title of module |
References Qtx.addSlash(), CAM_Application.moduleLibrary(), and CAM_Application.moduleName().
| QDockWidget * LightApp_Application::windowDock | ( | QWidget * | wid | ) | const [protected, inherited] |
| QByteArray LightApp_Application::dockWindowsState | ( | const QMap< QString, bool > & | tb, |
| const QMap< QString, bool > & | dw | ||
| ) | const [protected, inherited] |
References DockWidgetMarker, and ToolBarMarker.
| void LightApp_Application::dockWindowsState | ( | const QByteArray & | arr, |
| QMap< QString, bool > & | tb, | ||
| QMap< QString, bool > & | dw | ||
| ) | const [protected, inherited] |
References DockWidgetMarker, and ToolBarMarker.
| void LightApp_Application::showPreferences | ( | const QString & | itemText = QString() | ) | [protected, inherited] |
Private SLOT. On preferences.
References LightApp_Preferences.activateItem(), SUIT_Application.desktop(), LightApp_PreferencesDlg.isSaved(), LightApp_Application.preferences(), SUIT_Application.resourceMgr(), QtxResourceMgr.save(), QtxResourceMgr.setValue(), SUIT_Application.shortcutMgr(), and SUIT_ShortcutMgr.updateShortcuts().
| CAM_Module * CAM_Application::activeModule | ( | ) | const [inherited] |
References CAM_Application.myModule.
| CAM_Module * CAM_Application::module | ( | const QString & | modName | ) | const [inherited] |
References CAM_Application.myModules.
| CAM_Application::ModuleList CAM_Application::modules | ( | ) | const [inherited] |
References CAM_Application.myModules.
| void CAM_Application::modules | ( | CAM_Application::ModuleList & | out | ) | const [inherited] |
| returning | list of modules |
References CAM_Application.myModules.
| void CAM_Application::modules | ( | QStringList & | lst, |
| const bool | loaded = true |
||
| ) | const [inherited] |
Get loaded modules names if loaded is true, otherwise get all avaiable modules names.
| lst | output list of modules names |
| loaded | boolean flag, defines what modules names to return |
References CAM_Application.myInfoList, and CAM_Application.myModules.
| void CAM_Application::addModule | ( | CAM_Module * | mod | ) | [virtual, inherited] |
Performes module initialization. Does nothing if the module is already added.
| mod | module being added |
References CAM_Module.initialize(), CAM_Application.module(), CAM_Application.moduleAdded(), CAM_Module.moduleName(), CAM_Application.myInfoList, and CAM_Application.myModules.
| void CAM_Application::loadModules | ( | ) | [virtual, inherited] |
If some module can not be loaded, an error message is shown.
References CAM_Application.addModule(), SUIT_MessageBox.critical(), SUIT_Application.desktop(), CAM_Application.isModuleAccessible(), CAM_Application.loadModule(), and CAM_Application.myInfoList.
| QString CAM_Application::moduleName | ( | const QString & | title | ) | const [inherited] |
| title | module title (user name) |
References CAM_Application.myInfoList.
| QString CAM_Application::moduleTitle | ( | const QString & | name | ) | const [inherited] |
| name | module name |
References CAM_Application.myInfoList.
| QString CAM_Application::moduleIcon | ( | const QString & | name | ) | const [inherited] |
| name | module name |
References CAM_Application.myInfoList.
| bool CAM_Application::isModuleAccessible | ( | const QString & | title | ) | const [inherited] |
| title | module title (user name) |
true if module is accessible (can be loaded) or false otherwise References SUIT_Session.applications(), CAM_Application.modules(), CAM_Application.myInfoList, and SUIT_Session.session().
| QString CAM_Application::moduleLibrary | ( | const QString & | title, |
| const bool | full = true |
||
| ) | const [protected, inherited] |
| title | module title (user name) |
| full | if true, return full library name, otherwise return its internal name |
References Qtx.library(), and CAM_Application.myInfoList.
| bool STD_Application::useFile | ( | const QString & | theFileName | ) | [virtual, inherited] |
| true,if | document opened successful, else false. |
Reimplemented from SUIT_Application.
References SUIT_Application.activeStudy(), and STD_Application.studyOpened().
| void STD_Application::setEditEnabled | ( | const bool | theEnable | ) | [inherited] |
Sets theEnable for menu manager and for tool manager.
References SUIT_Application.action(), QtxActionMgr.actionId(), SUIT_Application.desktop(), STD_Application.EditCopyId, STD_Application.EditPasteId, SUIT_Desktop.menuMgr(), STD_Application.myEditEnabled, QtxActionToolMgr.setShown(), QtxActionMenuMgr.setShown(), and SUIT_Desktop.toolMgr().
| bool STD_Application.isEditEnabled | ( | ) | const [inherited] |
| void STD_Application::clearViewManagers | ( | ) | [inherited] |
Remove all view managers from view managers list.
References STD_Application.removeViewManager(), and STD_Application.viewManagers().
| SUIT_ViewManager * STD_Application::activeViewManager | ( | ) | const [inherited] |
| SUIT_ViewManager | - return pointer to active view manager. |
References STD_Application.myActiveViewMgr.
| SUIT_ViewManager * STD_Application::viewManager | ( | const QString & | vmType | ) | const [inherited] |
| SUIT_ViewManager | by viewer manager type name. |
References STD_Application.myViewMgrs.
| bool STD_Application::containsViewManager | ( | SUIT_ViewManager * | vm | ) | const [inherited] |
| TRUE,if | view manager vm, already in view manager list (myViewMgrs). |
References STD_Application.myViewMgrs.
| ViewManagerList STD_Application::viewManagers | ( | ) | const [inherited] |
| ViewManagerList | - const list of all view managers. |
| void STD_Application::viewManagers | ( | ViewManagerList & | lst | ) | const [inherited] |
| lst | - output list of all view managers. |
References STD_Application.myViewMgrs.
| void STD_Application::viewManagers | ( | const QString & | vmType, |
| ViewManagerList & | lst | ||
| ) | const [inherited] |
| vmType | - input view manager type name |
| lst | - output list of view managers with types vmType. |
References STD_Application.myViewMgrs.
| int STD_Application::viewManagerId | ( | const SUIT_ViewManager * | theManager | ) | const [virtual, inherited] |
| void STD_Application::closeApplication | ( | ) | [virtual, inherited] |
Close the Application
Reimplemented from SUIT_Application.
References SUIT_Application.activeStudy(), STD_Application.afterCloseDoc(), STD_Application.beforeCloseDoc(), SUIT_Study.closeDocument(), SUIT_Application.desktop(), STD_Application.savePreferences(), SUIT_Application.setActiveStudy(), and STD_Application.setDesktop().
| bool STD_Application::exitConfirmation | ( | ) | const [inherited] |
| requirement | of exit confirmation |
References STD_Application.myExitConfirm.
| void STD_Application::setExitConfirmation | ( | const bool | on | ) | [inherited] |
Set the requirement of exit confirmation
References STD_Application.myExitConfirm.
| void STD_Application.viewManagerAdded | ( | SUIT_ViewManager * | ) | [signal, inherited] |
emit that view manager added
| void STD_Application.viewManagerRemoved | ( | SUIT_ViewManager * | ) | [signal, inherited] |
emit that view manager removed
| void STD_Application.viewManagerActivated | ( | SUIT_ViewManager * | ) | [signal, inherited] |
emit that view manager activated
| void STD_Application::onSaveDoc | ( | ) | [virtual, slot, inherited] |
Save document if all ok, else error message.
References SUIT_Application.activeStudy(), SUIT_MessageBox.critical(), SUIT_Application.desktop(), STD_Application.onSaveAsDoc(), SUIT_Application.putInfo(), SUIT_Study.saveDocument(), and STD_Application.studySaved().
| bool STD_Application::onSaveAsDoc | ( | ) | [virtual, slot, inherited] |
| TRUE,if | doument saved successful, else FALSE. |
References SUIT_Application.activeStudy(), test_big_table.aName, SUIT_MessageBox.critical(), SUIT_Application.desktop(), STD_Application.getFileFilter(), STD_Application.getFileName(), SUIT_Application.putInfo(), SUIT_Study.saveDocumentAs(), SUIT_Study.studyName(), and STD_Application.studySaved().
| bool STD_Application::onReopenDoc | ( | ) | [virtual, slot, inherited] |
Reload document from the file.
References SUIT_Application.activeStudy(), STD_Application.afterCloseDoc(), STD_Application.beforeCloseDoc(), STD_Application.clearViewManagers(), STD_Application.closeApplication(), SUIT_Study.closeDocument(), SUIT_Application.desktop(), SUIT_Study.isSaved(), SUIT_MessageBox.question(), SUIT_Application.setActiveStudy(), STD_Application.setDesktop(), SUIT_Study.studyName(), STD_Application.updateCommandsStatus(), STD_Application.updateDesktopTitle(), and STD_Application.useFile().
| void STD_Application::onViewStatusBar | ( | bool | on | ) | [virtual, slot, inherited] |
Sets status bar show, if = true, else status bar hide.
References SUIT_Application.desktop().
| void STD_Application::onDesktopClosing | ( | SUIT_Desktop * | , |
| QCloseEvent * | e | ||
| ) | [virtual, slot, inherited] |
Event on closing desktop
References STD_Application.closeApplication(), STD_Application.isPossibleToClose(), STD_Application.onExit(), and SUIT_Session.session().
| void STD_Application::onConnectPopupRequest | ( | SUIT_PopupClient * | client, |
| QContextMenuEvent * | e | ||
| ) | [virtual, slot, inherited] |
| void STD_Application::setActiveViewManager | ( | SUIT_ViewManager * | vm | ) | [protected, virtual, inherited] |
Sets active manager to , if in view managers list.
References STD_Application.containsViewManager(), STD_Application.myActiveViewMgr, and STD_Application.viewManagerActivated().
| SUIT_Desktop * SUIT_Application::desktop | ( | ) | [virtual, inherited] |
References SUIT_Application.myDesktop.
| SUIT_Study * SUIT_Application::activeStudy | ( | ) | const [virtual, inherited] |
References SUIT_Application.myStudy.
| int SUIT_Application::getNbStudies | ( | ) | const [virtual, inherited] |
Returns number of Studies. Must be redefined in Applications which support several studies for one Application instance.
References SUIT_Application.activeStudy().
| SUIT_ResourceMgr * SUIT_Application::resourceMgr | ( | ) | const [inherited] |
References SUIT_Session.resourceMgr(), and SUIT_Session.session().
| SUIT_ShortcutMgr * SUIT_Application::shortcutMgr | ( | ) | const [inherited] |
References SUIT_ShortcutMgr.getShortcutMgr().
| void SUIT_Application::putInfo | ( | const QString & | msg, |
| const int | msec = 0 |
||
| ) | [inherited] |
Puts the message to the status bar
| msg | - text of message |
| msec | - time in milliseconds, after that the status label will be cleared |
References DEFAULT_MESSAGE_DELAY, SUIT_Application.desktop(), SUIT_Application.infoChanged(), SUIT_Application.myStatusLabel, and SUIT_Application.onInfoClear().
| void SUIT_Application.applicationClosed | ( | SUIT_Application * | ) | [signal, inherited] |
| void SUIT_Application.activated | ( | SUIT_Application * | ) | [signal, inherited] |
| void SUIT_Application.infoChanged | ( | QString | ) | [signal, inherited] |
| SUIT_Application * SUIT_Application::startApplication | ( | int | argc, |
| char ** | argv | ||
| ) | const [protected, inherited] |
Initialize with application arguments
| argc | - number of application arguments |
| argv | - array of application arguments |
| SUIT_Application * SUIT_Application::startApplication | ( | const QString & | name, |
| int | argc, | ||
| char ** | argv | ||
| ) | const [protected, inherited] |
Initialize with application name and arguments
| name | - name of application |
| argc | - number of application arguments |
| argv | - array of application arguments |
References SUIT_Session.session(), and SUIT_Session.startApplication().
| int SUIT_Application::createTool | ( | const QString & | name | ) | [protected, inherited] |
Creates new toolbar
| name | - name of new toolbar |
References QtxActionToolMgr.createToolBar(), SUIT_Application.desktop(), and SUIT_Desktop.toolMgr().
| int SUIT_Application::createTool | ( | const int | id, |
| const int | tBar, | ||
| const int | idx = -1 |
||
| ) | [protected, inherited] |
Creates new toolbutton
| id | - SUIT identificator of action |
| tBar | - identificator of toolbar |
| idx | - index in toolbar |
References SUIT_Application.action(), SUIT_Application.desktop(), QtxActionToolMgr.insert(), and SUIT_Desktop.toolMgr().
| int SUIT_Application::createTool | ( | const int | id, |
| const QString & | tBar, | ||
| const int | idx = -1 |
||
| ) | [protected, inherited] |
Creates new toolbutton
| id | - SUIT identificator of action |
| tBar | - name of toolbar |
| idx | - index in toolbar |
References SUIT_Application.action(), SUIT_Application.desktop(), QtxActionToolMgr.insert(), and SUIT_Desktop.toolMgr().
| int SUIT_Application::createTool | ( | QAction * | a, |
| const int | tBar, | ||
| const int | id = -1, |
||
| const int | idx = -1 |
||
| ) | [protected, inherited] |
Creates new toolbutton
| a | - action |
| tBar | - identificator of toolbar |
| id | - proposed SUIT identificator of action (if it is -1, then must be use any free) |
| idx | - index in toolbar |
References SUIT_Application.desktop(), QtxActionToolMgr.insert(), SUIT_Application.registerAction(), and SUIT_Desktop.toolMgr().
| int SUIT_Application::createTool | ( | QAction * | a, |
| const QString & | tBar, | ||
| const int | id = -1, |
||
| const int | idx = -1 |
||
| ) | [protected, inherited] |
Creates new toolbutton
| a | - action |
| tBar | - name of toolbar |
| id | - proposed SUIT identificator of action (if it is -1, then must be use any free) |
| idx | - index in toolbar |
References SUIT_Application.desktop(), QtxActionToolMgr.insert(), SUIT_Application.registerAction(), and SUIT_Desktop.toolMgr().
| int SUIT_Application::createMenu | ( | const QString & | subMenu, |
| const int | menu, | ||
| const int | id = -1, |
||
| const int | group = -1, |
||
| const int | index = -1 |
||
| ) | [protected, inherited] |
Creates new menu item
| subMenu | - menu text of new item |
| menu | - identificator of parent menu item |
| id | - proposed identificator of action |
| group | - group in menu manager |
| index | - index in menu |
References SUIT_Application.desktop(), QtxActionMenuMgr.insert(), and SUIT_Desktop.menuMgr().
| int SUIT_Application::createMenu | ( | const QString & | subMenu, |
| const QString & | menu, | ||
| const int | id = -1, |
||
| const int | group = -1, |
||
| const int | index = -1 |
||
| ) | [protected, inherited] |
Creates new menu item
| subMenu | - menu text of new item |
| menu | - menu text of parent menu item |
| id | - proposed identificator of action |
| group | - group in menu manager |
| index | - index in menu |
References SUIT_Application.desktop(), QtxActionMenuMgr.insert(), and SUIT_Desktop.menuMgr().
| int SUIT_Application::createMenu | ( | const int | id, |
| const int | menu, | ||
| const int | group = -1, |
||
| const int | index = -1 |
||
| ) | [protected, inherited] |
Creates new menu item
| id | - SUIT identificator of action |
| menu | - menu text of parent menu item |
| group | - group in menu manager |
| index | - index in menu |
References SUIT_Application.action(), SUIT_Application.desktop(), QtxActionMenuMgr.insert(), and SUIT_Desktop.menuMgr().
| int SUIT_Application::createMenu | ( | const int | id, |
| const QString & | menu, | ||
| const int | group = -1, |
||
| const int | index = -1 |
||
| ) | [protected, inherited] |
Creates new menu item
| id | - SUIT identificator of action |
| menu | - menu text of parent menu item |
| group | - group in menu manager |
| index | - index in menu |
References SUIT_Application.action(), SUIT_Application.desktop(), QtxActionMenuMgr.insert(), and SUIT_Desktop.menuMgr().
| int SUIT_Application::createMenu | ( | QAction * | a, |
| const int | menu, | ||
| const int | id = -1, |
||
| const int | group = -1, |
||
| const int | index = -1 |
||
| ) | [protected, inherited] |
Creates new menu item
| a | - action |
| menu | - identificator of parent menu item |
| id | - proposed SUIT identificator of action |
| group | - group in menu manager |
| index | - index in menu |
References SUIT_Application.desktop(), QtxActionMenuMgr.insert(), SUIT_Desktop.menuMgr(), and SUIT_Application.registerAction().
| int SUIT_Application::createMenu | ( | QAction * | a, |
| const QString & | menu, | ||
| const int | id = -1, |
||
| const int | group = -1, |
||
| const int | index = -1 |
||
| ) | [protected, inherited] |
Creates new menu item
| a | - action |
| menu | - menu text of parent menu item |
| id | - proposed SUIT identificator of action |
| group | - group in menu manager |
| index | - index in menu |
References SUIT_Application.desktop(), QtxActionMenuMgr.insert(), SUIT_Desktop.menuMgr(), and SUIT_Application.registerAction().
| void SUIT_Application::setMenuShown | ( | QAction * | a, |
| const bool | on | ||
| ) | [protected, inherited] |
Show/hide menu item corresponding to action
| a | - action |
| on | - if it is true, the item will be shown, otherwise it will be hidden |
References QtxActionMgr.actionId(), SUIT_Application.desktop(), SUIT_Desktop.menuMgr(), and QtxActionMenuMgr.setShown().
| void SUIT_Application::setMenuShown | ( | const int | id, |
| const bool | on | ||
| ) | [protected, inherited] |
Show/hide menu item corresponding to action
| id | - identificator of action in menu manager |
| on | - if it is true, the item will be shown, otherwise it will be hidden |
References SUIT_Application.action(), and SUIT_Application.setMenuShown().
| void SUIT_Application::setToolShown | ( | QAction * | a, |
| const bool | on | ||
| ) | [protected, inherited] |
Show/hide tool button corresponding to action
| a | - action |
| on | - if it is true, the button will be shown, otherwise it will be hidden |
References QtxActionMgr.actionId(), SUIT_Application.desktop(), QtxActionToolMgr.setShown(), and SUIT_Desktop.toolMgr().
| void SUIT_Application::setToolShown | ( | const int | id, |
| const bool | on | ||
| ) | [protected, inherited] |
Show/hide menu item corresponding to action
| id | - identificator of action in tool manager |
| on | - if it is true, the button will be shown, otherwise it will be hidden |
References SUIT_Application.action(), and SUIT_Application.setToolShown().
| void SUIT_Application::setActionShown | ( | QAction * | a, |
| const bool | on | ||
| ) | [protected, inherited] |
Show/hide both menu item and tool button corresponding to action
| a | - action |
| on | - if it is true, the item will be shown, otherwise it will be hidden |
References SUIT_Application.setMenuShown(), and SUIT_Application.setToolShown().
| void SUIT_Application::setActionShown | ( | const int | id, |
| const bool | on | ||
| ) | [protected, inherited] |
Show/hide both menu item and tool button corresponding to action
| id | - identificator in both menu manager and tool manager |
| on | - if it is true, the item will be shown, otherwise it will be hidden |
References SUIT_Application.setMenuShown(), and SUIT_Application.setToolShown().
| QAction * SUIT_Application::separator | ( | ) | [static, protected, inherited] |
| QAction * SUIT_Application::action | ( | const int | id | ) | const [protected, inherited] |
| id | - SUIT identificator |
References test_table.a, and SUIT_Application.myActionMap.
| int SUIT_Application::actionId | ( | const QAction * | a | ) | const [protected, inherited] |
| a | - action |
References test_table.a, and SUIT_Application.myActionMap.
References SUIT_Application.myActionMap.
| QList< int > SUIT_Application::actionIds | ( | ) | const [protected, inherited] |
References SUIT_Application.myActionMap.
| int SUIT_Application::registerAction | ( | const int | id, |
| QAction * | a | ||
| ) | [protected, inherited] |
Registers action both in menu manager and tool manager
| id | - proposed SUIT identificator (if it is -1, auto generated one is used) |
| a | - action |
References SUIT_Application.action(), SUIT_Application.actionId(), SUIT_Application.desktop(), SUIT_Desktop.menuMgr(), SUIT_Application.myActionMap, QtxActionMgr.registerAction(), and SUIT_Desktop.toolMgr().
| QAction * SUIT_Application::createAction | ( | const int | id, |
| const QString & | text, | ||
| const QIcon & | icon, | ||
| const QString & | menu, | ||
| const QString & | tip, | ||
| const int | key, | ||
| QObject * | parent = 0, |
||
| const bool | toggle = false, |
||
| QObject * | reciever = 0, |
||
| const char * | member = 0, |
||
| const QString & | shortcutAction = QString() |
||
| ) | [protected, inherited] |
Creates action and registers it both in menu manager and tool manager
| id | - proposed SUIT identificator |
| text | - description |
| icon | - icon for toolbar |
| menu | - menu text |
| tip | - tool tip |
| key | - shortcut |
| parent | - parent object |
| toggle | - if it is TRUE the action will be a toggle action, otherwise it will be a command action |
| reciever | - object that contains slot |
| member | - slot to be called when action is activated |
References test_table.a, and SUIT_Application.registerAction().
QMap<QString, QAction*> SalomeApp_Application.myExtActions [private] |
LightApp_Preferences* LightApp_Application.myPrefs [protected, inherited] |
LightApp_SelectionMgr* LightApp_Application.mySelMgr [protected, inherited] |
WinMap LightApp_Application.myWin [protected, inherited] |
WinVis LightApp_Application.myWinVis [protected, inherited] |
WinGeom LightApp_Application.myWinGeom [protected, inherited] |
SUIT_Accel* LightApp_Application.myAccel [protected, inherited] |
QTimer* LightApp_Application.myAutoSaveTimer [protected, inherited] |
LightApp_Preferences * LightApp_Application::_prefs_ = 0 [static, protected, inherited] |
int LightApp_Application::lastStudyId = 0 [static, protected, inherited] |
QStringList LightApp_Application.myUserWmTypes [protected, inherited] |