* Constructor.
* \param theParent parent data object
* \param theData reference to the corresponding object from data structure
+ * \param theParentEntry entry of the parent data object (for reference objects)
*/
HYDROGUI_DataObject( SUIT_DataObject* theParent,
- Handle(HYDROData_Object) theData );
+ Handle(HYDROData_Object) theData,
+ const QString& theParentEntry );
/**
* Returns the unique object identifier string.
*/
virtual QString entry() const;
+ /**
+ * Returns the entry of the referenced object.
+ */
+ virtual QString refEntry() const;
+
/**
* Returns the name of object.
*/
virtual QString name() const;
+ /**
+ * Returns the font of displayed object name.
+ */
+ virtual QFont font( const int = SUIT_DataObject::NameId ) const;
+
/**
* Returns the model data object.
*/
/**
* Returns the entry prefix for all HYDRO data objects.
*/
- static QString entryPrefix() { return QString( "HYDRO_" ); }
+ static QString entryPrefix() { return QString( "HYDRO:" ); }
/**
* Returns the full entry for the specified data object.
protected:
Handle(HYDROData_Object) myData; ///< object from data model
+ QString myParentEntry;
};
/**
* \param theName displayed name
*/
HYDROGUI_NamedObject( SUIT_DataObject* theParent,
- const QString& theName );
+ const QString& theName,
+ const QString& theParentEntry );
/**
* Returns the unique object identifier string.
private:
QString myName; ///< name in the OB
+ QString myParentEntry;
};
#endif