Version: 9.12.0
SALOME_PYQT_DataModelLight Class Reference

#include <SALOME_PYQT_DataModelLight.h>

Inheritance diagram for SALOME_PYQT_DataModelLight:
Inheritance graph

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_DataObjectgetRoot ()
 
- Public Member Functions inherited from LightApp_DataModel
 LightApp_DataModel (CAM_Module *theModule)
 
virtual ~LightApp_DataModel ()
 
virtual bool isSaved () const
 
LightApp_ModulegetModule () 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_DataObjectroot () const
 Get data model root object. More...
 
CAM_Modulemodule () const
 Get module. More...
 

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_StudygetStudy () const
 
virtual void build ()
 
virtual void updateWidgets ()
 
virtual CAM_ModuleObjectcreateModuleObject (SUIT_DataObject *theRoot) const
 
- Protected Member Functions inherited from CAM_DataModel
virtual void setRoot (const CAM_DataObject *)
 Set data model root object. More...
 

Constructor & Destructor Documentation

◆ SALOME_PYQT_DataModelLight()

SALOME_PYQT_DataModelLight::SALOME_PYQT_DataModelLight ( CAM_Module theModule)

◆ ~SALOME_PYQT_DataModelLight()

SALOME_PYQT_DataModelLight::~SALOME_PYQT_DataModelLight ( )
virtual

Member Function Documentation

◆ close()

bool SALOME_PYQT_DataModelLight::close ( )
virtual

Emit closed()

Reimplemented from LightApp_DataModel.

References LightApp_DataModel::close().

◆ create()

bool SALOME_PYQT_DataModelLight::create ( CAM_Study )
virtual

Create empty data model.

This method should be re-implemented in the successor classes. Default implementation returns true.

Returns
true if data model is created successfully

Reimplemented from CAM_DataModel.

◆ dumpPython()

bool SALOME_PYQT_DataModelLight::dumpPython ( const QString &  ,
CAM_Study ,
bool  ,
QStringList &   
)
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().

◆ getRoot()

◆ isModified()

bool SALOME_PYQT_DataModelLight::isModified ( ) const
virtual

default implementation, always returns false so as not to mask study's isModified()

Reimplemented from LightApp_DataModel.

References myModified.

◆ open()

bool SALOME_PYQT_DataModelLight::open ( const QString &  ,
CAM_Study ,
QStringList   
)
virtual

◆ save()

◆ saveAs()

bool SALOME_PYQT_DataModelLight::saveAs ( const QString &  ,
CAM_Study ,
QStringList &   
)
virtual

Emit saved()

Reimplemented from LightApp_DataModel.

References myStudyURL, and save().

◆ setModified()

void SALOME_PYQT_DataModelLight::setModified ( bool  flag)

References myModified.

◆ update()

void SALOME_PYQT_DataModelLight::update ( LightApp_DataObject = 0,
LightApp_Study = 0 
)
virtual

Default behaviour of data model update for light modules

Reimplemented from LightApp_DataModel.

Member Data Documentation

◆ myFileName

QString SALOME_PYQT_DataModelLight::myFileName
private

◆ myModified

bool SALOME_PYQT_DataModelLight::myModified
private

◆ myStudyURL

QString SALOME_PYQT_DataModelLight::myStudyURL
private

The documentation for this class was generated from the following files: