#include <SalomeApp_Study.h>

Classes | |
| class | Observer_i | 
Signals | |
| void | notebookVarUpdated (QString theVarName) | 
  Signals inherited from LightApp_Study | |
| void | saved (SUIT_Study *) | 
| void | opened (SUIT_Study *) | 
| void | closed (SUIT_Study *) | 
| void | created (SUIT_Study *) | 
| void | objVisibilityChanged (QString, Qtx::VisibilityState) | 
Public Member Functions | |
| SalomeApp_Study (SUIT_Application *) | |
| virtual | ~SalomeApp_Study () | 
| virtual int | id () const | 
| virtual QString | studyName () const | 
| virtual bool | createDocument (const QString &) | 
| virtual bool | openDocument (const QString &) | 
| virtual bool | loadDocument (const QString &) | 
| virtual bool | saveDocument () | 
| virtual bool | saveDocumentAs (const QString &) | 
| virtual void | closeDocument (bool permanently=true) | 
| virtual bool | dump (const QString &, bool, bool, bool) | 
| virtual bool | isSaved () const | 
| virtual bool | isModified () const | 
| virtual void | Modified () | 
| virtual void | addComponent (const CAM_DataModel *dm) | 
| _PTR (Study) studyDS() const | |
| virtual std::string | GetTmpDir (const char *theURL, const bool isMultiFile) | 
| void | deleteReferencesTo (_PTR(SObject)) | 
| virtual QString | componentDataType (const QString &) const | 
| virtual QString | referencedToEntry (const QString &) const | 
| virtual bool | isComponent (const QString &) const | 
| virtual void | children (const QString &, QStringList &) const | 
| virtual void | components (QStringList &) const | 
| virtual QString | centry (const QString &) const | 
| std::vector< int > | getSavePoints () | 
| void | removeSavePoint (int savePoint) | 
| QString | getNameOfSavePoint (int savePoint) | 
| void | setNameOfSavePoint (int savePoint, const QString &nameOfSavePoint) | 
| virtual void | restoreState (int savePoint) | 
| Restores the study state.  More... | |
| void | updateFromNotebook (const QString &, bool) | 
| virtual LightApp_DataObject * | findObjectByEntry (const QString &theEntry) | 
  Public Member Functions inherited from LightApp_Study | |
| LightApp_Study (SUIT_Application *) | |
| virtual | ~LightApp_Study () | 
| virtual QString | getVisualComponentName () const | 
| virtual void | setObjectProperty (int, const QString &, const QString &, const QVariant &) | 
| virtual void | setObjectProperty (const QString &, const QString &, const QVariant &) | 
| virtual void | setObjectProperty (int, const QString &, const QVariant &) | 
| virtual void | setObjectProperties (int, const QString &, const PropMap &) | 
| virtual QVariant | getObjectProperty (int, const QString &, const QString &, const QVariant &) const | 
| virtual const PropMap & | getObjectProperties (int, const QString &) | 
| virtual const ObjMap & | getObjectProperties (int) | 
| virtual const ViewMgrMap & | getObjectProperties () const | 
| virtual void | removeObjectProperties (int) | 
| virtual void | removeObjectProperties (const QString &) | 
| virtual void | setVisibilityState (const QString &theEntry, Qtx::VisibilityState theState) | 
| virtual Qtx::VisibilityState | visibilityState (const QString &theEntry) const | 
| virtual void | setVisibilityStateForAll (Qtx::VisibilityState theState) | 
  Public Member Functions inherited from CAM_Study | |
| CAM_Study (SUIT_Application *) | |
| Constructor.  More... | |
| virtual | ~CAM_Study () | 
| Destructor.  More... | |
| bool | appendDataModel (const CAM_DataModel *) | 
| Append data model to the study.  More... | |
| virtual bool | insertDataModel (const CAM_DataModel *, const int=-1) | 
| Insert data model dm with index idx.  More... | |
| bool | insertDataModel (const CAM_DataModel *, const CAM_DataModel *) | 
| Insert data model dm after data model other.  More... | |
| virtual bool | removeDataModel (const CAM_DataModel *) | 
| Remove data model from the study.  More... | |
| bool | containsDataModel (const CAM_DataModel *) const | 
| Check if data model is contained in the list.  More... | |
| void | dataModels (ModelList &) const | 
| Get all data models.  More... | |
  Public Member Functions inherited from SUIT_Study | |
| SUIT_Study (SUIT_Application *) | |
| virtual | ~SUIT_Study () | 
| SUIT_DataObject * | root () const | 
| SUIT_Application * | application () const | 
| bool | saveDocument () | 
| virtual void | update () | 
| virtual void | sendChangesNotification () | 
| SUIT_Operation * | activeOperation () const | 
| virtual void | abortAllOperations () | 
| const QList< SUIT_Operation * > & | operations () const | 
| Get all started operations.  More... | |
| virtual SUIT_Operation * | blockingOperation (SUIT_Operation *) const | 
| Verifies whether operation can be activated above already started ones.  More... | |
| bool | start (SUIT_Operation *, const bool check=true) | 
| Starts operation.  More... | |
| bool | abort (SUIT_Operation *) | 
| Aborts operation.  More... | |
| bool | commit (SUIT_Operation *) | 
| Commits operation.  More... | |
| bool | suspend (SUIT_Operation *) | 
| Commits operation.  More... | |
| bool | resume (SUIT_Operation *) | 
| Resumes operation.  More... | |
Protected Slots | |
| virtual void | updateModelRoot (const CAM_DataModel *) | 
| void | onNoteBookVarUpdate (QString theVarName) | 
Protected Member Functions | |
| virtual void | saveModuleData (QString theModuleName, QStringList theListOfFiles) | 
| virtual void | openModuleData (QString theModuleName, QStringList &theListOfFiles) | 
| virtual bool | saveStudyData (const QString &theFileName) | 
| virtual bool | openStudyData (const QString &theFileName) | 
| virtual std::vector< std::string > | GetListOfFiles (const char *theModuleName) const | 
| virtual void | SetListOfFiles (const char *theModuleName, const std::vector< std::string > theListOfFiles) | 
| virtual void | RemoveTemporaryFiles (const char *theModuleName, const bool isMultiFile) const | 
| virtual void | dataModelInserted (const CAM_DataModel *) | 
| virtual bool | openDataModel (const QString &, CAM_DataModel *) | 
| void | setStudyDS (const _PTR(Study)&s) | 
| virtual CAM_ModuleObject * | createModuleObject (LightApp_DataModel *theDataModel, SUIT_DataObject *theParent) const | 
Private Member Functions | |
| QString | newStudyName () const | 
| _PTR (Study) myStudyDS | |
Private Attributes | |
| Observer_i * | myObserver | 
Additional Inherited Members | |
  Public Types inherited from CAM_Study | |
| typedef QList< CAM_DataModel * > | ModelList | 
| SalomeApp_Study::SalomeApp_Study | ( | SUIT_Application * | app | ) | 
Constructor.
      
  | 
  virtual | 
Destructor.
References myObserver.
| SalomeApp_Study::_PTR | ( | Study | ) | const | 
      
  | 
  private | 
      
  | 
  virtual | 
Create SComponent for module, using default engine (CORBAless)
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), SalomeApp_Engine_i::EngineIORForComponent(), CAM_Module::iconName(), CAM_DataModel::module(), CAM_Module::moduleName(), CAM_Module::name(), and SalomeApp_DataModel::synchronize().
      
  | 
  virtual | 
Get the entry for the given module
| comp | - list to be filled | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR().
      
  | 
  virtual | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR().
      
  | 
  virtual | 
Closes document
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), SUIT_Session::activeApplication(), app, SUIT_Study::application(), LightApp_Study::closeDocument(), SUIT_Application::desktop(), LightApp_Application::getPyInterp(), myObserver, SUIT_Session::session(), setStudyDS(), and SalomeApp_Application::studyMgr().
      
  | 
  virtual | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), LightApp_Study::componentDataType(), and obj.
      
  | 
  virtual | 
Fills list with components names
| comp | - list to be filled | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), and LightApp_Study::getVisualComponentName().
      
  | 
  virtual | 
Create document.
Reimplemented from LightApp_Study.
      
  | 
  protectedvirtual | 
Virtual method re-implemented from LightApp_Study in order to create the module object connected to SALOMEDS - SalomeApp_ModuleObject.
| theDataModel | - data model instance to create a module object for | 
| theParent | - the module object's parent (normally it's the study root) | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), addComponent(), children(), SUIT_DataObject::children(), SalomeApp_DataObject::componentDataType(), CAM_DataModel::module(), CAM_Module::name(), obj, and SUIT_Study::root().
      
  | 
  protectedvirtual | 
Insert data model.
Reimplemented from CAM_Study.
References CAM_Study::dataModelInserted(), CAM_DataModel::module(), and CAM_Module::name().
| void SalomeApp_Study::deleteReferencesTo | ( | _PTR(SObject) | obj | ) | 
Deletes all references to object
| obj | - object | 
References SalomeApp_Study::Observer_i::_PTR().
      
  | 
  virtual | 
Dump study operation. Writes a Python dump file using SALOMEDS services. Additionally, gives a chance to light modules to participate in dump study operation.
| theFileName | - full path to the output Python file | 
| toPublish | - if true, all objects are published in a study by the output script, including those not orignally present in the current study. | 
| isMultiFile | - if true, each module's dump is written into a separate Python file, otherwise a single output file is written | 
| toSaveGUI | - if true, the GUI state is written | 
References SalomeApp_Study::Observer_i::_PTR(), SUIT_Study::application(), CAM_Study::dataModels(), removeSavePoint(), saveModuleData(), saveStudyData(), and SalomeApp_VisualState::storeState().
      
  | 
  virtual | 
Find a data object by the specified entry.
| theEntry | - Entry of the object. | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::findObject(), LightApp_Study::findObjectByEntry(), and myObserver.
      
  | 
  protectedvirtual | 
Note that this method does not create or activate SalomeApp_Engine_i instance, therefore it can be called safely for any kind of module, but for full modules it returns an empty list.
| theModuleName | - name of module | 
Reimplemented from LightApp_Study.
References SalomeApp_Engine_i::GetInstance(), and SalomeApp_Engine_i::GetListOfFiles().
| QString SalomeApp_Study::getNameOfSavePoint | ( | int | savePoint | ) | 
References SalomeApp_Study::Observer_i::_PTR(), and LightApp_Study::getVisualComponentName().
| std::vector< int > SalomeApp_Study::getSavePoints | ( | ) | 
References SalomeApp_Study::Observer_i::_PTR(), and LightApp_Study::getVisualComponentName().
Reimplemented from LightApp_Study.
      
  | 
  virtual | 
Gets study id.
Reimplemented from SUIT_Study.
      
  | 
  virtual | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), and obj.
      
  | 
  virtual | 
Reimplemented from LightApp_Study.
References LightApp_Study::isModified().
      
  | 
  virtual | 
Reimplemented from LightApp_Study.
References LightApp_Study::isSaved().
      
  | 
  virtual | 
Connects GUI study to SALOMEDS one already loaded into StudyManager
| theStudyName | - name of study | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), SUIT_Study::application(), QtxResourceMgr::booleanValue(), CAM_Study::dataModels(), getSavePoints(), myObserver, SalomeApp_Study::Observer_i::Observer_i(), openDataModel(), SUIT_Study::openDocument(), LightApp_Study::opened(), SUIT_Application::resourceMgr(), restoreState(), SUIT_Study::root(), SUIT_Study::setIsSaved(), SUIT_Study::setRoot(), setStudyDS(), SalomeApp_Application::studyMgr(), and studyName().
      
  | 
  virtual | 
Set study modified to on.
Reimplemented from SUIT_Study.
References SalomeApp_Study::Observer_i::_PTR(), and SUIT_Study::Modified().
      
  | 
  private | 
Create new study name.
References SalomeApp_Application::studyMgr().
      
  | 
  signal | 
      
  | 
  protectedslot | 
References notebookVarUpdated().
      
  | 
  protectedvirtual | 
Open data model
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), SalomeApp_Module::engineIOR(), SalomeApp_Engine_i::EngineIORForComponent(), SalomeApp_DataModel::getModule(), SalomeApp_DataModel::getRootEntry(), CAM_DataModel::module(), CAM_Module::name(), CAM_DataModel::open(), openModuleData(), RemoveTemporaryFiles(), and LightApp_DataModel::update().
      
  | 
  virtual | 
Opens document
| theFileName | - name of file | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), SUIT_Study::application(), QtxResourceMgr::booleanValue(), SUIT_MessageBox::critical(), CAM_Study::dataModels(), getSavePoints(), myObserver, SalomeApp_Study::Observer_i::Observer_i(), openDataModel(), SUIT_Study::openDocument(), LightApp_Study::opened(), SUIT_Application::putInfo(), SUIT_Application::resourceMgr(), restoreState(), SUIT_Study::root(), SUIT_Session::session(), SUIT_Study::setRoot(), setStudyDS(), SalomeApp_Application::studyMgr(), and studyName().
      
  | 
  protectedvirtual | 
Loads data of module
| theModuleName | - name of module | 
| theListOfFiles | - list of files to be loaded | 
Reimplemented from LightApp_Study.
References GetListOfFiles().
      
  | 
  protectedvirtual | 
Loads data for study
Reimplemented from LightApp_Study.
      
  | 
  virtual | 
| entry | - entry of reference object | 
Reimplemented from LightApp_Study.
References SalomeApp_Study::Observer_i::_PTR(), obj, and LightApp_Study::referencedToEntry().
| void SalomeApp_Study::removeSavePoint | ( | int | savePoint | ) | 
Removes a given save point
References SalomeApp_Study::Observer_i::_PTR(), and LightApp_Study::getVisualComponentName().
      
  | 
  virtual | 
Reimplemented from SUIT_Study.
References SUIT_Study::application(), and SalomeApp_VisualState::restoreState().
      
  | 
  virtual | 
Saves previously opened document
Reimplemented from LightApp_Study.
References SUIT_Study::application(), QtxResourceMgr::booleanValue(), CAM_Study::dataModels(), SUIT_Application::resourceMgr(), LightApp_Study::saved(), SUIT_Study::saveDocument(), saveModuleData(), saveStudyData(), SalomeApp_VisualState::storeState(), SalomeApp_Application::studyMgr(), and studyName().
      
  | 
  virtual | 
Saves document
| theFileName | - name of file | 
Reimplemented from LightApp_Study.
References SUIT_Study::application(), QtxResourceMgr::booleanValue(), CAM_Study::dataModels(), SUIT_Application::resourceMgr(), LightApp_Study::saved(), SUIT_Study::saveDocumentAs(), saveModuleData(), saveStudyData(), SalomeApp_VisualState::storeState(), and SalomeApp_Application::studyMgr().
      
  | 
  protectedvirtual | 
Saves data of module
| theModuleName | - name of module | 
| theListOfFiles | - list of files to be saved | 
Reimplemented from LightApp_Study.
References SetListOfFiles().
      
  | 
  protectedvirtual | 
Re-implemented from LightApp_Study, actually does not save anything but simply cleans up light modules' data
Reimplemented from LightApp_Study.
References CAM_Study::dataModels(), CAM_DataModel::module(), CAM_Module::name(), and SetListOfFiles().
      
  | 
  protectedvirtual | 
Sets list of files used by module: to be used by CORBAless modules. Note that this method does not create or activate SalomeApp_Engine_i instance, therefore it can be called safely for any kind of module, but for full modules it simply does nothing.
| theModuleName | - name of module | 
| theListOfFiles | - list of files | 
Reimplemented from LightApp_Study.
References SalomeApp_Engine_i::GetInstance(), and SalomeApp_Engine_i::SetListOfFiles().
| void SalomeApp_Study::setNameOfSavePoint | ( | int | savePoint, | 
| const QString & | nameOfSavePoint | ||
| ) | 
Sets a name of save point
References SalomeApp_Study::Observer_i::_PTR(), and LightApp_Study::getVisualComponentName().
      
  | 
  virtual | 
Get study name.
Reimplemented from SUIT_Study.
References SUIT_Study::application(), SUIT_Study::setStudyName(), and SUIT_Study::studyName().
| void SalomeApp_Study::updateFromNotebook | ( | const QString & | theFileName, | 
| bool | isSaved | ||
| ) | 
Mark the study as saved in the file
| theFileName | - the name of file | 
References SUIT_Study::setIsSaved(), and SUIT_Study::setStudyName().
      
  | 
  protectedvirtualslot | 
Slot: called on change of a root of a data model. Redefined from CAM_Study
References SUIT_Study::application(), and CAM_Study::updateModelRoot().
      
  | 
  private |