Description : Base class of data model. More...
#include <SalomeApp_DataModel.h>

Public Member Functions | |
| SalomeApp_DataModel (CAM_Module *theModule) | |
| virtual | ~SalomeApp_DataModel () |
| virtual bool | open (const QString &, CAM_Study *, QStringList) |
| virtual bool | create (CAM_Study *) |
| virtual void | update (LightApp_DataObject *=0, LightApp_Study *=0) |
| QString | getRootEntry (SalomeApp_Study *) const |
| SalomeApp_Module * | getModule () const |
Public Member Functions inherited from LightApp_DataModel | |
| LightApp_DataModel (CAM_Module *theModule) | |
| virtual | ~LightApp_DataModel () |
| virtual bool | save (QStringList &) |
| virtual bool | saveAs (const QString &, CAM_Study *, QStringList &, bool isBackup=false) |
| virtual bool | close () |
| virtual bool | dumpPython (const QString &, CAM_Study *, bool, QStringList &) |
| 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 | saveAs (const QString &, CAM_Study *, QStringList &) |
| Save data to the new file. More... | |
Static Public Member Functions | |
| static SUIT_DataObject * | synchronize (const _PTR(SComponent)&, SalomeApp_Study *) |
Protected Member Functions | |
| SalomeApp_Study * | getStudy () const |
| virtual void | updateTree (const _PTR(SComponent)&, SalomeApp_Study *) |
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... | |
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... | |
Description : Base class of data model.
| SalomeApp_DataModel::SalomeApp_DataModel | ( | CAM_Module * | theModule | ) |
Constructor
|
virtual |
Destructor
|
virtual |
| SalomeApp_Module * SalomeApp_DataModel::getModule | ( | ) | const |
References CAM_DataModel::module().
| QString SalomeApp_DataModel::getRootEntry | ( | SalomeApp_Study * | study | ) | const |
References _PTR(), SalomeApp_DataObject::entry(), CAM_DataModel::module(), and CAM_DataModel::root().
|
protected |
References CAM_DataModel::root(), SUIT_DataObject::root(), and LightApp_RootObject::study().
|
virtual |
Opens data model
Reimplemented from LightApp_DataModel.
References _PTR(), getRootEntry(), LightApp_DataModel::open(), and updateTree().
|
static |
Synchronizes kernel tree and suit data tree starting from component 'sobj'
References SUIT_DataObject::children(), SUIT_DataObject::name(), CAM_DataModel::root(), and SUIT_Study::root().
|
virtual |
Updates application.
Reimplemented from LightApp_DataModel.
References _PTR(), SUIT_Application::activeStudy(), SalomeApp_DataObject::entry(), SalomeApp_Module::getApp(), getModule(), getRootEntry(), CAM_DataModel::root(), SUIT_DataObject::root(), SUIT_Study::root(), LightApp_RootObject::study(), and updateTree().
|
protectedvirtual |
Updates tree.
References CAM_ModuleObject::setDataModel(), CAM_DataModel::setRoot(), and synchronize().