Salome HOME
Fix for the bug #45: check and warning when the same image is used in 2 arguments.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DataObject.h
index 72f31ed52780cec3a6202fcb5f0412f4bfadcffd..ea9fb38c00edada61d75d32e37f9c25f085d0888 100644 (file)
@@ -85,6 +85,11 @@ public:
    */
   virtual QColor color( const ColorRole, const int = NameId ) const;
 
+  /**
+   * Returns the object icon.
+   */
+  virtual QPixmap icon( const int = NameId ) const;
+
   /**
    * Returns the model data object.
    */
@@ -121,6 +126,7 @@ protected:
   Handle(HYDROData_Entity) myData; ///< object from data model
   QString myParentEntry;
   bool myIsValid; ///< indicates if the object is valid
+  QPixmap myIcon;
 };
 
 /**
@@ -154,9 +160,15 @@ public:
    */
   virtual QString name() const;
 
+  /**
+   * Returns the object icon.
+   */
+  virtual QPixmap icon( const int = NameId ) const;
+
 private:
   QString myName; ///< name in the OB
   QString myParentEntry;
+  QPixmap myIcon;
 };
 
 /**