#include <LightApp_Application.h>
Public Types | |
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, NewQxSceneViewId, NewGraphicsViewId, NewPVViewId, NewPyViewerId, StyleId, FullScreenId, UserID } |
Public Types inherited from CAM_Application | |
typedef QList< CAM_Module * > | ModuleList |
typedef QList< ModuleShortInfo > | ModuleShortInfoList |
Public Types inherited from STD_Application | |
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 | onHelpContentsModule () |
virtual void | onHelpContextModule (const QString &, const QString &, const QString &=QString()) |
virtual void | onNewDoc () |
virtual void | onOpenDoc () |
virtual void | onHelpAbout () |
virtual bool | onOpenDoc (const QString &) |
virtual void | onCopy () |
virtual void | onPaste () |
virtual void | onSelectionChanged () |
virtual void | onDockWindowVisibilityChanged (bool) |
Signals | |
void | studyOpened () |
void | studySaved () |
void | studyClosed () |
void | preferenceChanged (const QString &, const QString &, const QString &) |
void | preferenceResetToDefaults () |
void | operationFinished (const QString &, const QString &, const QStringList &) |
Public Member Functions | |
LightApp_Application () | |
virtual | ~LightApp_Application () |
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 (const bool force=false) |
virtual void | updateObjectBrowser (const bool=true) |
LightApp_Preferences * | preferences () const |
virtual QString | getFileFilter (bool) 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, bool detached=false) |
virtual SUIT_ViewManager * | createViewManager (const QString &vmType, QWidget *w) |
virtual SUIT_ViewManager * | createViewManager (SUIT_ViewModel *) |
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 | start () |
virtual void | closeApplication () |
virtual void | contextMenuPopup (const QString &, QMenu *, QString &) |
virtual void | createEmptyStudy () |
virtual void | setDesktop (SUIT_Desktop *) |
SUIT_Accel * | accel () const |
void | setDefaultStudyName (const QString &theName) |
virtual bool | event (QEvent *) |
virtual bool | checkDataObject (LightApp_DataObject *theObj) |
virtual void | updateDesktopTitle () |
QStringList | viewManagersTypes () const |
Returns list of view manager types which are supported by this application. More... | |
virtual void | clearKnownViewManagers () |
Removes ViewManagers only of known type. More... | |
virtual QString | browseObjects (const QStringList &theEntryList, const bool theIsApplyAndClose=true, const bool theIsOptimizedBrowsing=false) |
virtual SUIT_DataObject * | findObject (const QString &) const |
virtual bool | renameAllowed (const QString &) const |
Return true if object can be renamed. More... | |
virtual bool | renameObject (const QString &, const QString &) |
Return true if rename operation finished successfully, false otherwise. More... | |
void | emitOperationFinished (const QString &, const QString &, const QStringList &) |
Emits operationFinished signal. More... | |
void | updateVisibilityState (DataObjectList &theList, SUIT_ViewModel *theViewModel) |
virtual bool | checkExistingDoc () |
PyConsole_Interp * | getPyInterp () |
Public Member Functions inherited from CAM_Application | |
CAM_Application (const bool=true) | |
Constructor. More... | |
virtual | ~CAM_Application () |
Destructor. More... | |
CAM_Module * | activeModule () const |
Get active module. More... | |
CAM_Module * | module (const QString &) const |
Get the module with specified name. More... | |
ModuleList | modules () const |
Get all loaded modules. More... | |
void | modules (ModuleList &) const |
Get all loaded modules. More... | |
void | modules (QStringList &, const bool loaded=true) const |
Get names of all modules. More... | |
virtual void | addModule (CAM_Module *) |
Add module mod to the modules list. More... | |
virtual void | loadModules () |
Load modules from the modules information list. More... | |
bool | activateOperation (const QString &modName, int actionId) |
Load module modName and activate its operation, corresponding to actionId. This method is dedicated to run operations of some module from any other module. More... | |
bool | activateOperation (const QString &modName, const QString &actionId) |
Load module modName and activate its operation, corresponding to actionId. This method is dedicated to run operations of some module from any other module. More... | |
bool | activateOperation (const QString &modName, const QString &actionId, const QString &pluginName) |
Load module modName and activate its operation, corresponding to actionId and pluginName. This method is dedicated to run operations of some module from any other module. More... | |
Public Member Functions inherited from STD_Application | |
STD_Application () | |
virtual | ~STD_Application () |
virtual bool | isPossibleToClose (bool &) |
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 |
QString | getDirectory (const QString &initial, const QString &caption, QWidget *parent) |
bool | exitConfirmation () const |
void | setExitConfirmation (const bool) |
Public Member Functions inherited from SUIT_Application | |
SUIT_Application () | |
virtual | ~SUIT_Application () |
virtual SUIT_Desktop * | desktop () |
Returns main widget (Desktop) of the application (if it exists) More... | |
virtual SUIT_Study * | activeStudy () const |
Returns active Study. If Application supports wirking with several studies this method should be redefined. More... | |
virtual int | getNbStudies () const |
SUIT_ResourceMgr * | resourceMgr () const |
SUIT_ShortcutMgr * | shortcutMgr () const |
Get access to shortcut manager. More... | |
void | putInfo (const QString &, const int=0) |
Puts the message to the status bar. More... | |
QAction * | action (const int) const |
void | addPostRoutine (void(*theRoutine)()) |
Static Public Member Functions | |
static int | studyId () |
Static Public Member Functions inherited from CAM_Application | |
static QString | moduleName (const QString &) |
Get module name by its title (user name). More... | |
static QString | moduleTitle (const QString &) |
Get module title (user name) by its name. More... | |
static QString | moduleIcon (const QString &) |
Get module icon name. More... | |
static bool | isModuleAccessible (const QString &) |
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. More... | |
static ModuleShortInfoList | getVersionInfo () |
Return information about version of the each module. More... | |
Protected Types | |
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 |
Protected Slots | |
virtual void | onDesktopActivated () |
virtual void | onViewManagerRemoved (SUIT_ViewManager *) |
virtual void | onWindowActivated (SUIT_ViewWindow *theViewWindow) |
void | onNewWindow () |
void | onModuleActivation (const QString &) |
void | onCloseView (SUIT_ViewManager *) |
virtual void | onStudyCreated (SUIT_Study *) |
virtual void | onStudyOpened (SUIT_Study *) |
virtual void | onStudySaved (SUIT_Study *) |
virtual void | onStudyClosed (SUIT_Study *) |
void | onWCDestroyed (QObject *) |
void | onMRUActivated (const QString &) |
void | onStylePreferences () |
void | onFullScreen () |
virtual void | onDesktopMessage (const QString &) |
Protected Member Functions | |
virtual void | createActions () |
virtual void | createActionForViewer (const int id, const int parentId, const QString &suffix, const int accel) |
virtual SUIT_Study * | createNewStudy () |
virtual QWidget * | createWindow (const int) |
virtual void | defaultWindows (QMap< int, int > &) const |
void | defaultViewManagers (QStringList &) const |
virtual void | setActiveStudy (SUIT_Study *) |
virtual void | updateCommandsStatus () |
virtual void | beforeCloseDoc (SUIT_Study *) |
virtual void | afterCloseDoc () |
virtual void | moduleAdded (CAM_Module *) |
virtual bool | activateModule (CAM_Module *=0) |
LightApp_Preferences * | preferences (const bool) const |
virtual void | createPreferences (LightApp_Preferences *) |
virtual void | preferencesChanged (const QString &, const QString &) |
virtual void | loadPreferences () |
virtual void | savePreferences () |
virtual QMap< int, QString > | activateModuleActions () const |
Get map of the operations which can be performed on the module activation. More... | |
virtual void | moduleActionSelected (const int) |
Called when the used selectes required operation chosen from "Activate module" dialog box. More... | |
virtual PyConsole_Interp * | createPyInterp () |
void | updateWindows () |
void | updateViewManagers () |
void | updateModuleActions () |
void | removeModuleAction (const QString &) |
void | loadDockWindowsState () |
void | saveDockWindowsState () |
virtual void | studyOpened (SUIT_Study *) |
virtual void | studyCreated (SUIT_Study *) |
virtual void | studySaved (SUIT_Study *) |
void | updatePreference (const QString &, const QString &, const QString &) |
QString | defaultModule () const |
virtual 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 |
virtual int | openChoice (const QString &) |
virtual bool | openAction (const int, const QString &) |
void | showPreferences (const QString &=QString()) |
Protected Member Functions inherited from CAM_Application | |
virtual bool | abortAllOperations () |
Abort active operations if there are any. More... | |
Protected Member Functions inherited from STD_Application | |
virtual void | setActiveViewManager (SUIT_ViewManager *) |
virtual int | closeChoice (const QString &) |
virtual bool | closeAction (const int, bool &) |
virtual bool | closeDoc (bool ask=true) |
virtual bool | closeActiveDoc (bool permanently=true) |
Protected Member Functions inherited from SUIT_Application | |
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) |
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()) |
QAction * | createAction (const int, const QString &, const QIcon &, const QString &, const QString &, const QKeySequence &, QObject *=0, const bool=false, QObject *=0, const char *=0, const QString &=QString()) |
int | createTool (const QString &, const QString &=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) |
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) |
void | setMenuShown (QAction *, const bool) |
void | setMenuShown (const int, const bool) |
void | setToolShown (QAction *, const bool) |
void | setToolShown (const int, const bool) |
Protected Attributes | |
LightApp_Preferences * | myPrefs |
LightApp_SelectionMgr * | mySelMgr |
LightApp_FullScreenHelper * | myScreenHelper |
WinMap | myWin |
WinVis | myWinVis |
SUIT_Accel * | myAccel |
QTimer * | myAutoSaveTimer |
QStringList | myUserWmTypes |
Static Protected Attributes | |
static LightApp_Preferences * | _prefs_ = 0 |
static int | lastStudyId = 0 |
Private Slots | |
void | onSelection () |
void | onRefresh () |
void | onDropped (const QList< SUIT_DataObject * > &, SUIT_DataObject *, int, Qt::DropAction) |
void | onPreferences () |
void | onPreferenceChanged (QString &, QString &, QString &) |
void | onRenameWindow () |
void | onCloseWindow () |
void | onCloseAllWindow () |
void | onGroupAllWindow () |
void | onRenamed () |
Private Member Functions | |
void | emptyPreferences (const QString &) |
QList< QToolBar * > | findToolBars (const QStringList &names=QStringList()) |
QByteArray | processState (QByteArray &input, const bool processWin, const bool processTb, const bool isRestoring, QByteArray defaultState=QByteArray()) |
Additional Inherited Members | |
Static Protected Member Functions inherited from CAM_Application | |
static QString | moduleLibrary (const QString &, const bool=true) |
Get module library name by its title (user name). More... | |
Description : Application containing only LightApp module
Application containing LightApp module
|
protected |
|
protected |
|
protected |
|
protected |
anonymous enum |
|
protected |
LightApp_Application::LightApp_Application | ( | ) |
Constructor.
References STD_Application::clearViewManagers(), SUIT_Application::desktop(), QtxResourceMgr::fontValue(), SUIT_Accel::getAccel(), QtxResourceMgr::hasValue(), QtxResourceMgr::loadPixmap(), SUIT_Desktop::logoInsert(), myAccel, myAutoSaveTimer, mySelMgr, STD_Application::onSaveDoc(), onSelection(), onViewManagerRemoved(), onWindowActivated(), SUIT_Accel::PanDown, SUIT_Accel::PanLeft, SUIT_Accel::PanRight, SUIT_Accel::PanUp, SUIT_Session::resourceMgr(), SUIT_Accel::RotateDown, SUIT_Accel::RotateLeft, SUIT_Accel::RotateRight, SUIT_Accel::RotateUp, SUIT_Session::session(), SUIT_Accel::setActionKey(), setDesktop(), QtxMainWindow::setDockableMenuBar(), QtxMainWindow::setDockableStatusBar(), QtxMainWindow::setFullScreenAllowed(), QtxMainWindow::setMinimizeAllowed(), QtxResourceMgr::setValue(), QtxResourceMgr::stringValue(), Plot2d_Viewer::Type(), VTKViewer_Viewer::Type(), OCCViewer_Viewer::Type(), STD_Application::viewManagerRemoved(), SUIT_Accel::ZoomFit, SUIT_Accel::ZoomIn, and SUIT_Accel::ZoomOut.
|
virtual |
Destructor.
References myScreenHelper, mySelMgr, and savePreferences().
SUIT_Accel * LightApp_Application::accel | ( | ) | const |
References myAccel.
|
virtual |
Activate module by modName
Reimplemented from CAM_Application.
References CAM_Application::activateModule(), CAM_Application::activeModule(), SUIT_Application::activeStudy(), CAM_Module::moduleName(), objectBrowser(), SUIT_Application::putInfo(), saveDockWindowsState(), SUIT_DataBrowser::setRoot(), updateModuleActions(), CAM_Module::updateModuleVisibilityState(), updateObjectBrowser(), updateViewManagers(), and updateWindows().
|
protectedvirtual |
Activates module
mod | - module to be activated |
Reimplemented from CAM_Application.
References CAM_Application::activateModule(), objectBrowser(), and SUIT_DataBrowser::updateTree().
|
protectedvirtual |
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 in SalomeApp_Application.
References NewStudyId, and OpenStudyId.
|
virtual |
Connects just added view manager
Reimplemented from STD_Application.
References STD_Application::addViewManager(), and onCloseView().
|
protectedvirtual |
Updates windows after close document
Reimplemented from CAM_Application.
Reimplemented in SalomeApp_Application.
References CAM_Application::afterCloseDoc(), and updateWindows().
|
virtual |
Gets application name.
Reimplemented from STD_Application.
|
virtual |
Gets application version.
Reimplemented from SUIT_Application.
|
protectedvirtual |
Remove all windows from study.
Reimplemented from CAM_Application.
References CAM_Application::beforeCloseDoc(), objectBrowser(), and saveDockWindowsState().
|
virtual |
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(), BP_Always, BP_ApplyAndClose, BP_Never, LightApp_DataObject::componentDataType(), LightApp_DataObject::entry(), LightApp_Study::findObjectByEntry(), Handle(), SUIT_AbstractModel::index(), OB_Browser::model(), SUIT_DataObject::name(), objectBrowser(), SUIT_Application::resourceMgr(), SALOME_InteractiveObject(), selectionMgr(), SUIT_SelectionMgr::selectors(), LightApp_SelectionMgr::setSelected(), and OB_Browser::treeView().
|
virtual |
Check data object
Reimplemented in SalomeApp_Application.
References LightApp_DataObject::componentDataType(), LightApp_DataObject::entry(), and SUIT_DataObject::name().
|
virtual |
Check existing document.
Reimplemented in SalomeApp_Application.
References SUIT_Application::activeStudy(), STD_Application::closeDoc(), SUIT_Application::desktop(), STD_Application::onSaveAsDoc(), STD_Application::onSaveDoc(), and SUIT_MessageBox::question().
|
virtual |
Removes all view managers of known types Other view managers are ignored
References SUIT_ViewManager::getType(), removeViewManager(), STD_Application::viewManagers(), and viewManagersTypes().
|
virtual |
Closeapplication.
Reimplemented from STD_Application.
References STD_Application::closeApplication().
|
virtual |
Inserts items in popup, which necessary for current application
Reimplemented from CAM_Application.
Reimplemented in SalomeApp_Application.
References CAM_Application::contextMenuPopup(), findObject(), Handle(), LightApp_SelectionMgr::isSelectionCacheEnabled(), obj, objectBrowser(), onRefresh(), SUIT_DataBrowser::popupClientType(), SUIT_DataObject::renameAllowed(), SUIT_DataBrowser::RenameShortcut, LightApp_SelectionMgr::selectedObjects(), selectionMgr(), LightApp_SelectionMgr::setSelectionCacheEnabled(), SUIT_DataBrowser::shortcutKey(), and SUIT_DataBrowser::UpdateShortcut.
|
protectedvirtual |
Creat action "New window" for certain type of viewer:
References SUIT_Application::createAction(), SUIT_Application::createMenu(), SUIT_Application::desktop(), and onNewWindow().
|
protectedvirtual |
Create actions:
MRU
default icon for any module
Reimplemented from STD_Application.
Reimplemented in SalomeApp_Application.
References SUIT_Application::activated(), Qtx::addSlash(), IMap< Key, Value >::begin(), CloseAllId, CloseId, SUIT_Application::createAction(), createActionForViewer(), STD_Application::createActions(), SUIT_Application::createMenu(), SUIT_Application::createTool(), SUIT_Application::desktop(), IMap< Key, Value >::end(), FIRST_HELP_ID, FullScreenId, GroupAllId, QtxResourceMgr::hasSection(), QtxResourceMgr::hasValue(), imageEmptyIcon, IMap< Key, Value >::insert(), LightApp_ModuleAction::insertModule(), IMap< Key, Value >::isEmpty(), isLibExists(), CAM_Application::isModuleAccessible(), IMapConstIterator< Key, Value >::key(), QtxResourceMgr::loadPixmap(), MenuWindowId, moduleIconNames(), CAM_Application::moduleName(), CAM_Application::modules(), ModulesListId, MRUId, NewGLViewId, NewGraphicsViewId, NewOCCViewId, NewPlot2dId, NewPVViewId, NewPyViewerId, NewQxSceneViewId, NewVTKViewId, onCloseAllWindow(), onCloseWindow(), onFullScreen(), onGroupAllWindow(), onHelpContentsModule(), onModuleActivation(), onMRUActivated(), onPreferences(), onRenameWindow(), onStylePreferences(), QtxResourceMgr::parameters(), PreferencesId, SUIT_Application::registerAction(), RenameId, SUIT_Application::resourceMgr(), Qtx::scaleIcon(), SUIT_Application::separator(), QtxResourceMgr::stringValue(), StyleId, UserID, and IMapConstIterator< Key, Value >::value().
|
virtual |
Create empty study
Reimplemented from CAM_Application.
References SUIT_Application::activeStudy(), CAM_Application::createEmptyStudy(), QtxResourceMgr::integerValue(), myAutoSaveTimer, objectBrowser(), SUIT_Session::resourceMgr(), SUIT_Session::session(), and SUIT_DataBrowser::updateTree().
|
protectedvirtual |
Creates new study
Reimplemented from CAM_Application.
Reimplemented in SalomeApp_Application.
References lastStudyId, onStudyClosed(), onStudyCreated(), onStudyOpened(), and onStudySaved().
|
protectedvirtual |
Create preferences
Reimplemented in SalomeApp_Application.
References LightApp_Preferences::addPreference(), SUIT_PreferenceMgr::Auto, SUIT_PreferenceMgr::Background, SVTK_Viewer::backgroundData(), OCCViewer_Viewer::backgroundData(), SUIT_PreferenceMgr::Bool, BP_Always, BP_ApplyAndClose, BP_Never, Qtx::CenterTexture, SUIT_PreferenceMgr::Color, SUIT_PreferenceMgr::DblSpin, SUIT_PreferenceMgr::DirList, QtxFontEdit::Family, SUIT_PreferenceMgr::File, SUIT_PreferenceMgr::Font, SUIT_PreferenceMgr::Frame, SUIT_PreferenceMgr::GroupBox, SUIT_PreferenceMgr::IntSpin, Qtx::PT_OpenFile, SUIT_Session::resourceMgr(), SUIT_Application::resourceMgr(), QtxPreferenceMgr::retrieve(), Qtx::scaleIcon(), SUIT_PreferenceMgr::Selector, SUIT_Session::session(), SUIT_PreferenceMgr::setItemIcon(), SUIT_PreferenceMgr::setItemProperty(), SUIT_PreferenceMgr::ShortcutTree, QtxFontEdit::Size, SUIT_PreferenceMgr::Space, SVTK_Viewer::stereoData(), OCCViewer_Viewer::stereoData(), Qtx::StretchTexture, SUIT_PreferenceMgr::String, QtxResourceMgr::stringValue(), Qtx::TileTexture, and QtxFontEdit::UserSize.
|
protectedvirtual |
Reimplemented in SalomeApp_Application.
|
virtual |
Creates view manager of some type
vmType | - type of view manager |
References SUIT_Application::activeStudy(), addViewManager(), SVTK_Viewer::anaglyphFilter(), OCCViewer_Viewer::anaglyphFilter(), VTKViewer_Viewer::background(), SVTK_Viewer::background(), OCCViewer_Viewer::background(), Plot2d_ViewFrame::backgroundColor(), QtxResourceMgr::backgroundValue(), QtxResourceMgr::booleanValue(), OCCViewer_ViewFrame::BOTTOM_LEFT, OCCViewer_ViewFrame::BOTTOM_RIGHT, OCCViewer_Viewer::clippingColor(), OCCViewer_Viewer::clippingTexture(), OCCViewer_Viewer::clippingTextureScale(), QtxResourceMgr::colorValue(), SUIT_ViewManager::createViewWindow(), SUIT_Application::desktop(), QtxResourceMgr::doubleValue(), OCCViewer_Viewer::enablePreselection(), OCCViewer_Viewer::enableSelection(), SVTK_Viewer::enableSelection(), SUIT_ViewManager::getActiveView(), Plot2d_ViewWindow::getViewFrame(), getViewManager(), SUIT_ViewManager::getViewModel(), SVTK_Viewer::incrementalSpeed(), SVTK_Viewer::incrementalSpeedMode(), QtxResourceMgr::integerValue(), OCCViewer_Viewer::interactionStyle(), SVTK_Viewer::interactionStyle(), OCCViewer_Viewer::interocularDistanceType(), OCCViewer_Viewer::interocularDistanceValue(), OCCViewer_Viewer::isDefaultTextureUsed(), OCCViewer_Viewer::isPreselectionEnabled(), SVTK_Viewer::isQuadBufferSupport(), OCCViewer_Viewer::isQuadBufferSupport(), OCCViewer_Viewer::isReverseStereo(), OCCViewer_Viewer::isSelectionEnabled(), SVTK_Viewer::isSelectionEnabled(), SVTK_Viewer::isStaticTrihedronVisible(), OCCViewer_Viewer::isTextureModulated(), OCCViewer_Viewer::isVSync(), logWindow(), OCCViewer_ViewFrame::MAIN_VIEW, mySelMgr, SVTK_Viewer::preSelectionMode(), SVTK_Viewer::projectionMode(), OCCViewer_Viewer::projectionType(), SUIT_Application::resourceMgr(), SVTK_Viewer::setAnaglyphFilter(), OCCViewer_Viewer::setAnaglyphFilter(), VTKViewer_Viewer::setBackground(), SVTK_Viewer::setBackground(), OCCViewer_Viewer::setBackground(), Plot2d_ViewFrame::setBackgroundColor(), OCCViewer_Viewer::setClippingColor(), OCCViewer_Viewer::setClippingTextureParams(), SUIT_ViewManager::setDetached(), SUIT_ViewWindow::setDropDownButtons(), SVTK_Viewer::setIncrementalSpeed(), OCCViewer_Viewer::setInteractionStyle(), SVTK_Viewer::setInteractionStyle(), OCCViewer_Viewer::setInterocularDistance(), SVTK_Viewer::setPreSelectionMode(), SVTK_Viewer::setProjectionMode(), OCCViewer_Viewer::setProjectionType(), SVTK_Viewer::setQuadBufferSupport(), OCCViewer_Viewer::setQuadBufferSupport(), OCCViewer_Viewer::setReverseStereo(), SVTK_Viewer::setSpacemouseButtons(), SVTK_Viewer::setStaticTrihedronVisible(), OCCViewer_Viewer::setStereographicFocus(), SVTK_Viewer::setStereoType(), OCCViewer_Viewer::setStereoType(), SVTK_Viewer::setTrihedronSize(), OCCViewer_Viewer::setTrihedronSize(), SUIT_ViewManager::setViewModel(), OCCViewer_Viewer::setVSync(), SVTK_Viewer::setZoomingStyle(), OCCViewer_Viewer::setZoomingStyle(), SVTK_Viewer::spacemouseBtn(), OCCViewer_Viewer::stereographicFocusType(), OCCViewer_Viewer::stereographicFocusValue(), SVTK_Viewer::stereoType(), OCCViewer_Viewer::stereoType(), QtxResourceMgr::stringValue(), OCCViewer_ViewFrame::TOP_LEFT, OCCViewer_ViewFrame::TOP_RIGHT, SVTK_Viewer::trihedronRelative(), OCCViewer_Viewer::trihedronRelative(), SVTK_Viewer::trihedronSize(), OCCViewer_Viewer::trihedronSize(), QxScene_Viewer::Type(), Plot2d_Viewer::Type(), PVViewer_Viewer::Type(), PyViewer_Viewer::Type(), VTKViewer_Viewer::Type(), GraphicsView_Viewer::Type(), SVTK_Viewer::Type(), GLViewer_Viewer::Type(), OCCViewer_Viewer::Type(), SVTK_Viewer::zoomingStyle(), and OCCViewer_Viewer::zoomingStyle().
|
virtual |
|
virtual |
References SUIT_Application::activeStudy(), addViewManager(), QtxResourceMgr::booleanValue(), SUIT_ViewManager::createViewWindow(), SUIT_Application::desktop(), SUIT_ViewManager::getType(), myUserWmTypes, SUIT_Application::resourceMgr(), SUIT_ViewWindow::setDropDownButtons(), and SUIT_ViewManager::setTitle().
Creates window by flag.
flag | - identificator of window type |
Reimplemented in SalomeApp_Application.
References QtxResourceMgr::booleanValue(), SUIT_PopupClient::connectPopupRequest(), SUIT_Application::desktop(), QtxSearchTool::enableAutoHide(), LightApp_DataObject::EntryId, QtxResourceMgr::fontValue(), getPyInterp(), QtxResourceMgr::hasValue(), OB_Browser::model(), mySelMgr, SUIT_DataObject::NameId, STD_Application::onConnectPopupRequest(), onDropped(), onRefresh(), onRenamed(), SUIT_AbstractModel::registerColumn(), SUIT_Application::resourceMgr(), OB_Browser::searchTool(), SUIT_AbstractModel::setAppropriate(), SUIT_DataBrowser::setAutoUpdate(), SUIT_AbstractModel::setSearcher(), OB_Browser::setSortMenuEnabled(), Qtx::Toggled, OB_Browser::treeView(), VISIBILITY_COLUMN_WIDTH, SUIT_DataObject::VisibilityId, WT_LogWindow, WT_ObjectBrowser, and WT_PyConsole.
|
protected |
Gets current view managers.
lst | - output current view managers list. |
References CAM_Application::activeModule(), SUIT_Application::activeStudy(), defaultViewManagers(), and STD_Application::viewManagers().
|
protectedvirtual |
Gets current windows.
winMap | - output current windows map. |
References CAM_Application::activeModule(), and defaultWindows().
|
protected |
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().
|
protected |
Default view managers
Do nothing.
|
protectedvirtual |
References SUIT_Application::activeStudy(), WT_ObjectBrowser, and WT_PyConsole.
|
protected |
References DockWidgetMarker, and ToolBarMarker.
|
protected |
References DockWidgetMarker, and ToolBarMarker.
void LightApp_Application::emitOperationFinished | ( | const QString & | theModuleName, |
const QString & | theOperationName, | ||
const QStringList & | theEntryList | ||
) |
theModuleName | the name of the module which perfomed the operation |
theOperationName | the operation name |
theEntryList | the list of the created objects entries |
References operationFinished().
|
private |
|
virtual |
Custom event handler
References SALOME_CustomEvent::data(), SUIT_MessageBox::question(), and showPreferences().
|
virtual |
Implements SUIT_DataSearcher.
References SUIT_Application::activeStudy(), and LightApp_Study::findObjectByEntry().
|
private |
Internal method. Returns all top level toolbars. Note : Result list contains only main window toolbars, not including toolbars from viewers.
References SUIT_Application::desktop(), and Qtx::findParent().
|
virtual |
Gets directory
Implements SUIT_Application.
References SUIT_Application::desktop(), and SUIT_FileDlg::getExistingDirectory().
|
virtual |
|
virtual |
Shows file dialog and return user selected file name
Reimplemented from STD_Application.
References SUIT_Application::desktop(), and SUIT_FileDlg::getFileName().
|
virtual |
Get open file names
References SUIT_Application::desktop(), and SUIT_FileDlg::getOpenFileNames().
PyConsole_Interp * LightApp_Application::getPyInterp | ( | ) |
References createPyInterp().
SUIT_ViewManager * LightApp_Application::getViewManager | ( | const QString & | vmType, |
const bool | create | ||
) |
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(), createViewManager(), SUIT_Application::desktop(), SUIT_ViewManager::getActiveView(), SUIT_ViewManager::getDetached(), SUIT_ViewManager::getType(), SUIT_Desktop::setActiveWindow(), and STD_Application::viewManager().
Gets window.
flag | - key for window |
studyId | - study id Flag used how identificator of window in windows list. |
References createWindow(), currentWindows(), dockWindow(), insertDockWindow(), and placeDockWindow().
|
protected |
moduleTitle | - title of module |
References Qtx::addSlash(), CAM_Application::moduleLibrary(), and CAM_Application::moduleName().
|
protected |
Loads windows geometry
References CAM_Application::activeModule(), SUIT_Application::activeStudy(), QtxResourceMgr::booleanValue(), SUIT_Application::desktop(), findToolBars(), QtxResourceMgr::hasValue(), QtxResourceMgr::IgnoreUserValues, CAM_Module::name(), processState(), SUIT_Session::resourceMgr(), SUIT_Session::session(), QtxResourceMgr::setWorkingMode(), QtxResourceMgr::stringValue(), QtxResourceMgr::value(), and Qtx::versionToId().
|
virtual |
Load module by name.
Reimplemented from CAM_Application.
References CAM_Application::loadModule(), studyClosed(), studyOpened(), and studySaved().
|
protectedvirtual |
Loads preferences
Reimplemented from STD_Application.
References SUIT_Application::action(), QtxResourceMgr::booleanValue(), SUIT_Application::desktop(), QtxResourceMgr::integerValue(), QtxMRUAction::loadLinks(), STD_Application::loadPreferences(), MRUId, 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().
LogWindow * LightApp_Application::logWindow | ( | ) |
References dockWindow(), and WT_LogWindow.
|
protectedvirtual |
Performs the required operation according to the user choice.
id | operation identifier |
Reimplemented in SalomeApp_Application.
References NewStudyId, onNewDoc(), onOpenDoc(), and OpenStudyId.
|
protectedvirtual |
Adds new module to application
Reimplemented from CAM_Application.
References LightApp_Preferences::addPreference(), LightApp_Module::createPreferences(), emptyPreferences(), LightApp_Preferences::hasModule(), CAM_Application::moduleAdded(), CAM_Module::moduleName(), and myPrefs.
|
protected |
Adds icon names for modules
References Qtx::extension(), CAM_Application::moduleName(), CAM_Application::modules(), SUIT_Application::resourceMgr(), and QtxResourceMgr::stringValue().
SUIT_DataBrowser * LightApp_Application::objectBrowser | ( | ) |
References dockWindow(), and WT_ObjectBrowser.
|
privateslot |
Closes all windows of desktop
References SUIT_Application::desktop(), and STD_TabDesktop::windows().
|
protectedslot |
SLOT: Removes view manager from application
References removeViewManager().
|
privateslot |
Closes active window of desktop
References SUIT_Desktop::activeWindow(), and SUIT_Application::desktop().
|
virtualslot |
Copy of current selection
References CAM_Application::activeModule(), and LightApp_Module::copy().
|
protectedvirtualslot |
Protected SLOT.On desktop activated.
References CAM_Application::activeModule(), SUIT_Application::onDesktopActivated(), and LightApp_Module::studyActivated().
|
protectedvirtualslot |
Process standard messages from desktop
References getViewManager(), LightApp_Module::message(), CAM_Application::module(), CAM_Application::moduleTitle(), SUIT_Application::resourceMgr(), QtxResourceMgr::setValue(), and updateObjectBrowser().
|
virtualslot |
SLOT: Performs some actions when dockable windows are triggered
|
privateslot |
Private SLOT. Update actions after rename object.
Private SLOT. Support drag-and-drop operation.
References LightApp_Module::dropObjects(), and CAM_DataObject::module().
|
protectedslot |
|
privateslot |
Groups all windows of desktop
References SUIT_Application::desktop(), QtxWorkstack::stack(), and STD_TabDesktop::workstack().
|
virtualslot |
SLOT: Displays "About" message box
References applicationName(), applicationVersion(), and SUIT_Application::desktop().
|
virtualslot |
SLOT: Displays help contents for choosen module
References QtxResourceMgr::booleanValue(), SUIT_Application::desktop(), SUIT_MessageBox::question(), SUIT_Application::resourceMgr(), showPreferences(), and QtxResourceMgr::stringValue().
|
virtualslot |
SLOT: Displays help contents for choosen dialog
References Qtx::addSlash(), QtxResourceMgr::booleanValue(), SUIT_Application::desktop(), SUIT_MessageBox::question(), SUIT_Application::resourceMgr(), showPreferences(), and QtxResourceMgr::stringValue().
|
protectedslot |
On module activation action.
References SUIT_Application::action(), activateModule(), activateModuleActions(), SUIT_Application::activeStudy(), LightApp_ModuleDlg::addButton(), SUIT_Application::desktop(), QtxResourceMgr::loadPixmap(), moduleActionSelected(), moduleIconNames(), CAM_Application::moduleName(), ModulesListId, SUIT_Application::putInfo(), SUIT_Application::resourceMgr(), and LightApp_ModuleAction::setActiveModule().
|
protectedslot |
References SUIT_Session::activeApplication(), onOpenDoc(), s, and SUIT_Session::session().
|
virtualslot |
SLOT: Creates new document
References checkExistingDoc(), STD_Application::onNewDoc(), and saveDockWindowsState().
|
protectedslot |
On new window slot.
References SUIT_Application::actionId(), createViewManager(), NewGLViewId, NewGraphicsViewId, NewOCCViewId, NewPlot2dId, NewPVViewId, NewPyViewerId, NewQxSceneViewId, NewVTKViewId, obj, QxScene_Viewer::Type(), Plot2d_Viewer::Type(), PVViewer_Viewer::Type(), PyViewer_Viewer::Type(), VTKViewer_Viewer::Type(), GraphicsView_Viewer::Type(), GLViewer_Viewer::Type(), and OCCViewer_Viewer::Type().
|
virtualslot |
SLOT: Opens new document
References SUIT_Application::activeStudy(), checkExistingDoc(), STD_Application::onOpenDoc(), updateViewManagers(), and updateWindows().
|
virtualslot |
SLOT: Opens new document.
aName | - name of file |
References SUIT_Application::action(), checkExistingDoc(), QtxMRUAction::insert(), MRUId, STD_Application::onOpenDoc(), QtxMRUAction::remove(), and saveDockWindowsState().
|
virtualslot |
Paste of current data in clipboard
References CAM_Application::activeModule(), and LightApp_Module::paste().
|
privateslot |
Protected SLOT. On preferences changed.
References CAM_Application::module(), preferenceChanged(), LightApp_Module::preferencesChanged(), and preferencesChanged().
|
privateslot |
Private SLOT. On preferences.
References CAM_Application::activeModule(), CAM_Application::moduleName(), and showPreferences().
|
privateslot |
Private SLOT. Update object browser.
References updateObjectBrowser().
|
privateslot |
Private SLOT. Update actions after rename object.
References SUIT_Application::activeStudy(), SUIT_Study::Modified(), and updateActions().
|
privateslot |
Renames active window of desktop
References SUIT_Desktop::activeWindow(), and SUIT_Application::desktop().
|
privateslot |
Private SLOT: Called on selection is changed Dispatchs active module that selection is changed
References CAM_Application::activeModule(), and onSelectionChanged().
|
virtualslot |
Sets enable or disable some actions on selection changed.
Reimplemented in SalomeApp_Application.
References SUIT_Application::action(), CAM_Application::activeModule(), LightApp_Module::canCopy(), LightApp_Module::canPaste(), STD_Application::EditCopyId, and STD_Application::EditPasteId.
|
protectedvirtualslot |
Protected SLOT. On study closed.
References activateModule(), SUIT_SelectionMgr::clearSelected(), myAutoSaveTimer, mySelMgr, and studyClosed().
|
protectedvirtualslot |
Protected SLOT: On study created.
theStudy | - just created study |
References activateModule(), defaultModule(), getPyInterp(), getWindow(), loadDockWindowsState(), objectBrowser(), OB_Browser::openLevels(), pythonConsole(), SUIT_Study::root(), SUIT_DataBrowser::setRoot(), and WT_ObjectBrowser.
|
protectedvirtualslot |
Protected SLOT: On study opened.
theStudy | - just opened study |
References activateModule(), defaultModule(), getPyInterp(), getWindow(), loadDockWindowsState(), objectBrowser(), OB_Browser::openLevels(), pythonConsole(), SUIT_Study::root(), SUIT_DataBrowser::setRoot(), studyOpened(), and WT_ObjectBrowser.
|
protectedvirtualslot |
Protected SLOT. On study saved.
References SUIT_Application::action(), QtxMRUAction::insert(), MRUId, SUIT_Study::studyName(), and studySaved().
|
protectedslot |
|
protectedvirtualslot |
Called then view manager removed
References SUIT_Application::activeStudy(), LightApp_Study::setVisibilityStateForAll(), Qtx::UnpresentableState, and STD_Application::viewManagers().
|
protectedslot |
Removes dead widget container from map
References myWin.
|
protectedvirtualslot |
Called when window activated
References SUIT_DataObject::children(), SUIT_ViewWindow::getViewManager(), objectBrowser(), SUIT_DataBrowser::root(), and updateVisibilityState().
Reimplemented from STD_Application.
Reimplemented in SalomeApp_Application.
References app, SUIT_Session::applications(), STD_Application::onCloseDoc(), STD_Application::onOpenDoc(), STD_Application::openAction(), OpenReload, and SUIT_Session::session().
|
protectedvirtual |
Reimplemented from STD_Application.
Reimplemented in SalomeApp_Application.
References SUIT_Application::desktop(), STD_Application::openChoice(), STD_Application::OpenExist, OpenReload, and SUIT_MessageBox::question().
|
signal |
void LightApp_Application::placeDockWindow | ( | const int | id, |
Qt::DockWidgetArea | place | ||
) |
|
signal |
|
signal |
LightApp_Preferences * LightApp_Application::preferences | ( | ) | const |
|
protected |
References _prefs_, LightApp_Preferences::addPreference(), app, SUIT_Session::applications(), LightApp_Module::createPreferences(), createPreferences(), emptyPreferences(), LightApp_Preferences::hasModule(), isLibExists(), QtxResourceMgr::loadPixmap(), moduleIconNames(), CAM_Module::moduleName(), CAM_Application::moduleName(), CAM_Application::modules(), myPrefs, onPreferenceChanged(), preferenceChanged(), preferenceResetToDefaults(), SUIT_Application::resourceMgr(), Qtx::scaleIcon(), SUIT_Session::session(), SUIT_PreferenceMgr::setItemIcon(), and SUIT_PreferenceMgr::setItemProperty().
|
protectedvirtual |
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(), aTexture, QtxResourceMgr::booleanValue(), QtxResourceMgr::colorValue(), SUIT_Application::desktop(), QtxResourceMgr::doubleValue(), QtxSearchTool::enableAutoHide(), OCCViewer_Viewer::enablePreselection(), OCCViewer_Viewer::enableSelection(), SVTK_Viewer::enableSelection(), QtxResourceMgr::fontValue(), SUIT_ViewManager::getActiveView(), Plot2d_ViewWindow::getViewFrame(), SUIT_ViewManager::getViewModel(), SUIT_ViewManager::getViews(), QtxResourceMgr::integerValue(), MRUId, myAutoSaveTimer, objectBrowser(), pythonConsole(), SVTK_Viewer::Repaint(), SUIT_Application::resourceMgr(), OB_Browser::searchTool(), SVTK_Viewer::setAnaglyphFilter(), OCCViewer_Viewer::setAnaglyphFilter(), SUIT_DataBrowser::setAutoSizeColumns(), SUIT_DataBrowser::setAutoSizeFirstColumn(), QtxMRUAction::setClearPossible(), OCCViewer_Viewer::setClippingColor(), OCCViewer_Viewer::setClippingTextureParams(), SUIT_ViewWindow::setDropDownButtons(), QtxMRUAction::setHistoryCount(), SVTK_Viewer::setIncrementalSpeed(), QtxMRUAction::setInsertMode(), OCCViewer_Viewer::setInteractionStyle(), SVTK_Viewer::setInteractionStyle(), OCCViewer_Viewer::setInterocularDistance(), QtxMRUAction::setLinkType(), QtxMainWindow::setOpaqueResize(), Plot2d_ViewFrame::SetPreference(), SVTK_Viewer::setPreSelectionMode(), SVTK_Viewer::setProjectionMode(), OCCViewer_Viewer::setProjectionType(), SVTK_Viewer::setQuadBufferSupport(), OCCViewer_Viewer::setQuadBufferSupport(), SUIT_DataBrowser::setResizeOnExpandItem(), OCCViewer_Viewer::setReverseStereo(), SVTK_Viewer::setSpacemouseButtons(), OCCViewer_Viewer::setStaticTrihedronDisplayed(), SVTK_Viewer::setStaticTrihedronVisible(), OCCViewer_Viewer::setStereographicFocus(), SVTK_Viewer::setStereoType(), OCCViewer_Viewer::setStereoType(), SVTK_Viewer::setTrihedronSize(), OCCViewer_Viewer::setTrihedronSize(), SUIT_ViewManager::setViewModel(), QtxMRUAction::setVisibleCount(), OCCViewer_Viewer::setVSync(), SVTK_Viewer::setZoomingStyle(), OCCViewer_Viewer::setZoomingStyle(), QtxResourceMgr::stringValue(), Plot2d_Viewer::Type(), SVTK_Viewer::Type(), OCCViewer_Viewer::Type(), and STD_Application::viewManagers().
|
private |
Internal method to parse toolbars and dockable windows state.
References SUIT_Application::desktop(), findToolBars(), QDockWidgetMarker, and QToolBarMarker.
PyConsole_Console * LightApp_Application::pythonConsole | ( | const bool | force = false | ) |
This returns the python console integrated to the GUI. Depending when you request the python console, this function could return null. Then the optional parameter force (default to false) can be set to force the creation of the python console if it is not done already.
force | - if true, the pythonConsole is created if it does not exist yet |
References dockWindow(), getWindow(), and WT_PyConsole.
void LightApp_Application::removeDockWindow | ( | const int | id | ) |
References dockWindow(), myWin, and windowDock().
|
protected |
References SUIT_Application::action(), ModulesListId, and LightApp_ModuleAction::removeModule().
|
virtual |
Remove view manager from memory
Reimplemented from STD_Application.
References SUIT_Application::activeStudy(), SUIT_ViewManager::getGlobalId(), SUIT_ViewManager::getViewModel(), onCloseView(), SUIT_Selector::owner(), LightApp_Study::removeObjectProperties(), STD_Application::removeViewManager(), selectionMgr(), and SUIT_SelectionMgr::selectors().
|
virtual |
Checks that an object can be renamed.
entry | entry of the object |
Reimplemented in SalomeApp_Application.
Rename object by entry.
entry | entry of the object |
name | new name of the object |
Reimplemented in SalomeApp_Application.
|
protected |
|
protectedvirtual |
Saves preferences
Reimplemented from STD_Application.
References SUIT_Application::action(), SUIT_Application::desktop(), MRUId, myWinVis, SUIT_Application::resourceMgr(), QtxResourceMgr::save(), saveDockWindowsState(), QtxMRUAction::saveLinks(), STD_Application::savePreferences(), and QtxResourceMgr::setValue().
LightApp_SelectionMgr * LightApp_Application::selectionMgr | ( | ) | const |
Gets selection manager.
References mySelMgr.
|
protectedvirtual |
Sets active study.
study | - SUIT_Study. |
Reimplemented from CAM_Application.
References CAM_Application::setActiveStudy().
void LightApp_Application::setDefaultStudyName | ( | const QString & | theName | ) |
References SUIT_Application::activeStudy(), LightApp_Study::isSaved(), CAM_Application::modules(), SUIT_Study::setStudyName(), and updateDesktopTitle().
|
virtual |
Set desktop:
Reimplemented from STD_Application.
References onDesktopMessage(), onWindowActivated(), and STD_Application::setDesktop().
|
protected |
Private SLOT. On preferences.
References LightApp_Preferences::activateItem(), SUIT_Application::desktop(), LightApp_PreferencesDlg::isSaved(), preferences(), SUIT_Application::resourceMgr(), QtxResourceMgr::save(), QtxResourceMgr::setValue(), SUIT_Application::shortcutMgr(), and SUIT_ShortcutMgr::updateShortcuts().
|
virtual |
Start application.
Reimplemented from CAM_Application.
Reimplemented in SalomeApp_Application.
References SUIT_Application::desktop(), LightApp_EventFilter::Init(), SUIT_Application::putInfo(), CAM_Application::start(), updateCommandsStatus(), updateViewManagers(), and updateWindows().
|
signal |
|
protectedvirtual |
Custom activity after study is created Updates desktop and actions
Reimplemented from STD_Application.
References STD_Application::studyCreated(), updateViewManagers(), and updateWindows().
|
static |
References lastStudyId.
|
signal |
|
protectedvirtual |
Custom activity after study is opened Updates desktop and actions
Reimplemented from STD_Application.
References STD_Application::studyOpened(), updateViewManagers(), and updateWindows().
|
signal |
|
protectedvirtual |
Custom activity after study is opened Updates desktop and actions
Reimplemented from STD_Application.
References SUIT_Application::activeStudy(), QtxResourceMgr::integerValue(), myAutoSaveTimer, SUIT_Session::resourceMgr(), SUIT_Session::session(), and STD_Application::studyOpened().
void LightApp_Application::updateActions | ( | ) |
Update actions.
References updateCommandsStatus().
|
protectedvirtual |
Enables/Disables menu items and toolbar buttons. Rebuild menu
Reimplemented from CAM_Application.
Reimplemented in SalomeApp_Application.
References SUIT_Application::action(), SUIT_Application::activeStudy(), NewGLViewId, NewGraphicsViewId, NewOCCViewId, NewPlot2dId, NewPVViewId, NewPyViewerId, NewQxSceneViewId, NewVTKViewId, and CAM_Application::updateCommandsStatus().
|
virtual |
Updates desktop title
Reimplemented from STD_Application.
Reimplemented in SalomeApp_Application.
References SUIT_Application::activeStudy(), applicationName(), applicationVersion(), SUIT_Application::desktop(), and Qtx::file().
|
protected |
Updates actions of active module
References SUIT_Application::action(), CAM_Application::activeModule(), app, SUIT_Session::applications(), CAM_Application::isModuleAccessible(), CAM_Module::moduleName(), ModulesListId, removeModuleAction(), SUIT_Session::session(), and LightApp_ModuleAction::setActiveModule().
|
virtual |
Updates object browser and maybe data models
updateModels | - if it is true, then data models are updated |
Reimplemented in SalomeApp_Application.
References SUIT_Application::activeStudy(), SUIT_DataBrowser::autoUpdate(), CAM_Study::dataModels(), objectBrowser(), SUIT_DataBrowser::setAutoUpdate(), and SUIT_DataBrowser::updateTree().
|
protected |
|
protected |
Updates view managers
References currentViewManagers(), and getViewManager().
void LightApp_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(), obj, LightApp_Study::setVisibilityState(), Qtx::ShownState, and Qtx::UnpresentableState.
|
protected |
Updates windows
References currentWindows(), dockWindow(), getWindow(), loadDockWindowsState(), and myWin.
QStringList LightApp_Application::viewManagersTypes | ( | ) | const |
|
protected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |