#include <SALOME_PYQT_DataModelLight.h>

Signals | |
| void | opened () |
| void | saved () |
| void | closed () |
| void | rootChanged (const CAM_DataModel *) |
| Emitted when the root data object is changed. | |
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 *) |
| virtual bool | isModified () const |
| virtual bool | isSaved () const |
| virtual void | update (LightApp_DataObject *=0, LightApp_Study *=0) |
| LightApp_ModuleObject * | getRoot () |
| LightApp_Module * | getModule () const |
| int | groupId () const |
| void | registerColumn (SUIT_DataBrowser *, const QString &, const int) |
| void | unregisterColumn (SUIT_DataBrowser *, const QString &) |
| virtual void | initialize () |
| Initialize data model. | |
| CAM_DataObject * | root () const |
| Get data model root object. | |
| CAM_Module * | module () const |
| Get module. | |
Protected Member Functions | |
| LightApp_Study * | getStudy () const |
| virtual void | build () |
| virtual void | updateWidgets () |
| virtual void | setRoot (const CAM_DataObject *) |
| Set data model root object. | |
Private Attributes | |
| QString | myFileName |
| QString | myStudyURL |
| SALOME_PYQT_DataModelLight::SALOME_PYQT_DataModelLight | ( | CAM_Module * | theModule | ) |
| SALOME_PYQT_DataModelLight::~SALOME_PYQT_DataModelLight | ( | ) | [virtual] |
| bool SALOME_PYQT_DataModelLight::open | ( | const QString & | theURL, |
| CAM_Study * | study, | ||
| QStringList | theListOfFiles | ||
| ) | [virtual] |
Reimplemented from LightApp_DataModel.
References CAM_DataModel.module(), and SALOME_PYQT_ModuleLight.open().
| bool SALOME_PYQT_DataModelLight::save | ( | QStringList & | theListOfFiles | ) | [virtual] |
Reimplemented from LightApp_DataModel.
References SUIT_Application.activeStudy(), CAM_Module.application(), LightApp_Study.GetTmpDir(), CAM_DataModel.module(), myStudyURL, and SALOME_PYQT_ModuleLight.save().
| bool SALOME_PYQT_DataModelLight::saveAs | ( | const QString & | theURL, |
| CAM_Study * | theStudy, | ||
| QStringList & | theListOfFiles | ||
| ) | [virtual] |
Reimplemented from LightApp_DataModel.
References myStudyURL, and save().
| bool SALOME_PYQT_DataModelLight::close | ( | ) | [virtual] |
Reimplemented from LightApp_DataModel.
| bool SALOME_PYQT_DataModelLight::create | ( | CAM_Study * | study | ) | [virtual] |
Reimplemented from CAM_DataModel.
| bool SALOME_PYQT_DataModelLight::isModified | ( | ) | const [virtual] |
Reimplemented from LightApp_DataModel.
| bool SALOME_PYQT_DataModelLight::isSaved | ( | ) | const [virtual] |
Reimplemented from LightApp_DataModel.
| void SALOME_PYQT_DataModelLight::update | ( | LightApp_DataObject * | theObj = 0, |
| LightApp_Study * | theStudy = 0 |
||
| ) | [virtual] |
Reimplemented from LightApp_DataModel.
| LightApp_ModuleObject * SALOME_PYQT_DataModelLight::getRoot | ( | ) |
| LightApp_Module * LightApp_DataModel::getModule | ( | ) | const [inherited] |
Reimplemented in SalomeApp_DataModel.
References CAM_DataModel.module().
| int LightApp_DataModel::groupId | ( | ) | const [inherited] |
References LightApp_DataModel.myGroupId.
| void LightApp_DataModel::registerColumn | ( | SUIT_DataBrowser * | browser, |
| const QString & | name, | ||
| const int | custom_id | ||
| ) | [inherited] |
Register custom column in the object browser
| browser | - object browser where new column should be created |
| name | - translated column name |
| custom_id | - custom column identificator passed into data object's methods text(), icon() etc |
References LightApp_DataModel.groupId(), OB_Browser.model(), and SUIT_AbstractModel.registerColumn().
| void LightApp_DataModel::unregisterColumn | ( | SUIT_DataBrowser * | browser, |
| const QString & | name | ||
| ) | [inherited] |
Remove registered custom column from the object browser
| browser | - object browser where new column should be created |
| name | - translated column name |
References LightApp_DataModel.groupId(), OB_Browser.model(), and SUIT_AbstractModel.unregisterColumn().
| void LightApp_DataModel.opened | ( | ) | [signal, inherited] |
| void LightApp_DataModel.saved | ( | ) | [signal, inherited] |
| void LightApp_DataModel.closed | ( | ) | [signal, inherited] |
| LightApp_Study * LightApp_DataModel::getStudy | ( | ) | const [protected, inherited] |
Reimplemented in SalomeApp_DataModel.
References SUIT_DataObject.root(), CAM_DataModel.root(), and LightApp_RootObject.study().
| void LightApp_DataModel::build | ( | ) | [protected, virtual, inherited] |
Build whole data model tree
| void LightApp_DataModel::updateWidgets | ( | ) | [protected, virtual, inherited] |
Updates data model presentation in some widgets (for example, in object browser
References CAM_Module.application(), CAM_DataModel.module(), LightApp_Application.objectBrowser(), and SUIT_DataBrowser.updateTree().
| void CAM_DataModel::initialize | ( | ) | [virtual, inherited] |
This method should be re-implemented in the successor classes and can be used for creation of root data object. Default implementation does nothing.
| CAM_DataObject * CAM_DataModel::root | ( | ) | const [inherited] |
| CAM_Module * CAM_DataModel::module | ( | ) | const [inherited] |
References CAM_DataModel.myModule.
| void CAM_DataModel::setRoot | ( | const CAM_DataObject * | newRoot | ) | [protected, virtual, inherited] |
This method should be used to specify custom root object instance.
Root object can be created in several ways, depending on application or module needs:
If root object is changed, this method emits rootChanged() signal.
| newRoot | new root object |
References SUIT_DataObject.connect(), SUIT_DataObject.disconnect(), CAM_DataModel.myRoot, CAM_DataModel.onDestroyed(), and CAM_DataModel.rootChanged().
| void CAM_DataModel::rootChanged | ( | const CAM_DataModel * | root | ) | [signal, inherited] |
| root | new root data object |
QString SALOME_PYQT_DataModelLight.myFileName [private] |
QString SALOME_PYQT_DataModelLight.myStudyURL [private] |