Salome HOME
Dump Image data to python script (Feature #13).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DataObject.h
index cad33c21f52db026d1538411557e3b06322a3c23..baa09573a5c73ed844deae9e444a4a736c996cc8 100644 (file)
@@ -47,20 +47,32 @@ public:
    * 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.
    */
@@ -74,7 +86,7 @@ public:
   /**
    * 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.
@@ -83,6 +95,7 @@ public:
 
 protected:
   Handle(HYDROData_Object) myData; ///< object from data model
+  QString myParentEntry;
 };
 
 /**