/**
* Creates the GUI data object according to the model object.
* \param theParent a created object will be appended as a child of this object
- * \param theObject model object
+ * \param theModelObject model object
+ * \param theParentEntry entry of parent object
*/
- LightApp_DataObject* createObject( SUIT_DataObject* theParent,
+ LightApp_DataObject* createObject( SUIT_DataObject* theParent,
Handle(HYDROData_Object) theModelObject,
- const QString& theParentEntry = QString() );
+ const QString& theParentEntry = QString(),
+ const bool theIsBuildTree = true );
/**
* Creates the GUI data object without corresponding model object: just by name
* \param theParent a created object will be appended as a child of this object
* \param theName name of this object
+ * \param theParentEntry entry of parent object
*/
LightApp_DataObject* createObject( SUIT_DataObject* theParent,
- const QString& theName );
+ const QString& theName,
+ const QString& theParentEntry = QString() );
+
+ /**
+ * Build tree of model object.
+ * \param theParent a created object will be appended as a child of this object
+ * \param theObject gui object for which the tree will be build
+ * \param theParentEntry entry of parent object
+ */
+ void buildObjectTree( SUIT_DataObject* theParent,
+ SUIT_DataObject* theObject,
+ const QString& theParentEntry = QString() );
/**
* Removes data object from the tree.