#include <SALOME_PYQT_DataModelLight.h>

Public Member Functions | |
| SALOME_PYQT_DataModelLight (CAM_Module *theModule) | |
| virtual | ~SALOME_PYQT_DataModelLight () |
| virtual bool | open (const QString &, CAM_Study *, QStringList) |
| virtual bool | save (QStringList &) |
| virtual bool | saveAs (const QString &, CAM_Study *, QStringList &) |
| virtual bool | close () |
| virtual bool | create (CAM_Study *) |
| Create empty data model. More... | |
| virtual bool | dumpPython (const QString &, CAM_Study *, bool, QStringList &) |
| virtual bool | isModified () const |
| void | setModified (bool) |
| virtual void | update (LightApp_DataObject *=0, LightApp_Study *=0) |
| CAM_DataObject * | getRoot () |
Public Member Functions inherited from LightApp_DataModel | |
| LightApp_DataModel (CAM_Module *theModule) | |
| virtual | ~LightApp_DataModel () |
| virtual bool | open (const QString &, CAM_Study *, QStringList) |
| virtual bool | save (QStringList &) |
| virtual bool | saveAs (const QString &, CAM_Study *, QStringList &) |
| virtual bool | close () |
| virtual bool | dumpPython (const QString &, CAM_Study *, bool, QStringList &) |
| virtual void | update (LightApp_DataObject *=0, LightApp_Study *=0) |
| virtual bool | isModified () const |
| virtual bool | isSaved () const |
| LightApp_Module * | getModule () const |
| int | groupId () const |
| void | registerColumn (SUIT_DataBrowser *, const QString &, const int) |
| void | unregisterColumn (SUIT_DataBrowser *, const QString &) |
| virtual void | initRootObject () |
| For initialization of the data model and registration of SComponent when study is created but module was not activated. More... | |
Public Member Functions inherited from CAM_DataModel | |
| CAM_DataModel (CAM_Module *) | |
| Constructor. More... | |
| virtual | ~CAM_DataModel () |
| Destructor. More... | |
| virtual void | initialize () |
| Initialize data model. More... | |
| CAM_DataObject * | root () const |
| Get data model root object. More... | |
| CAM_Module * | module () const |
| Get module. More... | |
| virtual bool | open (const QString &, CAM_Study *, QStringList) |
| Load data model. More... | |
| virtual bool | save (QStringList &) |
| Save data model. More... | |
| virtual bool | saveAs (const QString &, CAM_Study *, QStringList &) |
| Save data to the new file. More... | |
| virtual bool | close () |
| Close data model. More... | |
| virtual bool | create (CAM_Study *) |
| Create empty data model. More... | |
| void | setIsAutoSaving (const bool on=true) |
| bool | isAutoSaving () const |
Private Attributes | |
| QString | myFileName |
| QString | myStudyURL |
| bool | myModified |
Additional Inherited Members | |
Signals inherited from LightApp_DataModel | |
| void | opened () |
| void | saved () |
| void | closed () |
Signals inherited from CAM_DataModel | |
| void | rootChanged (const CAM_DataModel *) |
| Emitted when the root data object is changed. More... | |
Protected Member Functions inherited from LightApp_DataModel | |
| LightApp_Study * | getStudy () const |
| virtual void | build () |
| virtual void | updateWidgets () |
| virtual CAM_ModuleObject * | createModuleObject (SUIT_DataObject *theRoot) const |
Protected Member Functions inherited from CAM_DataModel | |
| virtual void | setRoot (const CAM_DataObject *) |
| Set data model root object. More... | |
| SALOME_PYQT_DataModelLight::SALOME_PYQT_DataModelLight | ( | CAM_Module * | theModule | ) |
|
virtual |
|
virtual |
|
virtual |
Create empty data model.
This method should be re-implemented in the successor classes. Default implementation returns true.
true if data model is created successfully Reimplemented from CAM_DataModel.
|
virtual |
Does nothing by default. Should be redefined in light modules that want to participate in "Dump study" operation.
Reimplemented from LightApp_DataModel.
References LightApp_DataModel::dumpPython(), SALOME_PYQT_ModuleLight::dumpPython(), LightApp_Study::GetTmpDir(), and CAM_DataModel::module().
| CAM_DataObject * SALOME_PYQT_DataModelLight::getRoot | ( | ) |
|
virtual |
default implementation, always returns false so as not to mask study's isModified()
Reimplemented from LightApp_DataModel.
References myModified.
|
virtual |
Emit opened()
Reimplemented from LightApp_DataModel.
References SALOME_PYQT_ModuleLight::load(), CAM_DataModel::module(), LightApp_DataModel::open(), and setModified().
|
virtual |
Emit saved()
Reimplemented from LightApp_DataModel.
References SUIT_Application::activeStudy(), CAM_Module::application(), LightApp_Study::GetTmpDir(), CAM_DataModel::module(), myStudyURL, LightApp_DataModel::save(), SALOME_PYQT_ModuleLight::save(), and setModified().
|
virtual |
| void SALOME_PYQT_DataModelLight::setModified | ( | bool | flag | ) |
References myModified.
|
virtual |
Default behaviour of data model update for light modules
Reimplemented from LightApp_DataModel.
|
private |
|
private |
|
private |