Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 &)
 
- 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 ()
 
- Protected Member Functions inherited from LightApp_DataModel
LightApp_StudygetStudy () const
 
virtual void build ()
 
virtual void updateWidgets ()
 
virtual CAM_ModuleObjectcreateModuleObject (SUIT_DataObject *theRoot) const
 

Constructor & Destructor Documentation

SALOME_PYQT_DataModelLight::SALOME_PYQT_DataModelLight ( CAM_Module theModule)
SALOME_PYQT_DataModelLight::~SALOME_PYQT_DataModelLight ( )
virtual

Member Function Documentation

bool SALOME_PYQT_DataModelLight::close ( )
virtual

Emit closed()

Reimplemented from LightApp_DataModel.

References LightApp_DataModel::close().

bool SALOME_PYQT_DataModelLight::create ( CAM_Study )
virtual

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.

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().

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.

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

Emit saved()

Reimplemented from LightApp_DataModel.

References myStudyURL, and save().

void SALOME_PYQT_DataModelLight::setModified ( bool  flag)

References myModified.

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

QString SALOME_PYQT_DataModelLight::myFileName
private
bool SALOME_PYQT_DataModelLight::myModified
private
QString SALOME_PYQT_DataModelLight::myStudyURL
private

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