Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SalomeApp_DataModel Class Reference

Description : Base class of data model.

#include <SalomeApp_DataModel.h>

Inheritance diagram for SalomeApp_DataModel:
Inheritance graph

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_ModulegetModule () 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 &)
 
virtual bool close ()
 
virtual bool dumpPython (const QString &, CAM_Study *, bool, QStringList &)
 
virtual bool isModified () const
 
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...
 

Static Public Member Functions

static SUIT_DataObjectsynchronize (const _PTR(SComponent)&, SalomeApp_Study *)
 

Protected Member Functions

SalomeApp_StudygetStudy () const
 
virtual void updateTree (const _PTR(SComponent)&, SalomeApp_Study *)
 
- 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...
 

Additional Inherited Members

- Signals inherited from LightApp_DataModel
void opened ()
 
void saved ()
 
void closed ()
 

Constructor & Destructor Documentation

SalomeApp_DataModel::SalomeApp_DataModel ( CAM_Module theModule)

Constructor

SalomeApp_DataModel::~SalomeApp_DataModel ( )
virtual

Destructor

Member Function Documentation

bool SalomeApp_DataModel::create ( CAM_Study theStudy)
virtual

Creates data model

Reimplemented from CAM_DataModel.

References update().

SalomeApp_Module * SalomeApp_DataModel::getModule ( ) const
Returns
module

References CAM_DataModel::module().

QString SalomeApp_DataModel::getRootEntry ( SalomeApp_Study study) const
Returns
study entry corresponding to this data model

References _PTR(), SalomeApp_DataObject::entry(), CAM_DataModel::module(), and CAM_DataModel::root().

SalomeApp_Study * SalomeApp_DataModel::getStudy ( ) const
protected
bool SalomeApp_DataModel::open ( const QString &  name,
CAM_Study study,
QStringList   
)
virtual

Opens data model

Reimplemented from LightApp_DataModel.

References _PTR(), getRootEntry(), LightApp_DataModel::open(), and updateTree().

SUIT_DataObject * SalomeApp_DataModel::synchronize ( const _PTR(SComponent)&  sobj,
SalomeApp_Study study 
)
static

Synchronizes kernel tree and suit data tree starting from component 'sobj'

References SUIT_DataObject::children(), SUIT_DataObject::name(), CAM_DataModel::root(), SUIT_Study::root(), and SalomeApp_RootObject::toSynchronize().

void SalomeApp_DataModel::updateTree ( const _PTR(SComponent)&  comp,
SalomeApp_Study study 
)
protectedvirtual

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