]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Icons Plot2DView and Curves in Object Browser are missing in series 4x and 5x V4_1_0_maintainance_20081030 V4_1_0_maintainance_20081031 V4_1_0_maintainance_20081106 V4_1_4rc1
authordmv <dmv@opencascade.com>
Wed, 29 Oct 2008 14:06:06 +0000 (14:06 +0000)
committerdmv <dmv@opencascade.com>
Wed, 29 Oct 2008 14:06:06 +0000 (14:06 +0000)
src/VISU_I/VISU_Table_i.cc

index 2a2d5ed46c6f7f53d8afc9fcb40a723028a8d71e..49c8b1a2c1a9eb72257f28479078cf00fdc9d9ee 100644 (file)
@@ -516,6 +516,14 @@ VISU::Storable* VISU::Curve_i::Build(int theRestoring )
                                          true );
        // create SObject referenced to real table object
        mySObj = SALOMEDS::SObject::_duplicate(GetStudyDocument()->FindObjectID(anEntry.c_str()));
+
+       // Set icon
+       SALOMEDS::StudyBuilder_var aStudyBuilder = GetStudyDocument()->NewBuilder();
+       SALOMEDS::GenericAttribute_var anAttr;
+       SALOMEDS::AttributePixMap_var  aPixmap;
+       anAttr  = aStudyBuilder->FindOrCreateAttribute( mySObj, "AttributePixMap" );
+       aPixmap = SALOMEDS::AttributePixMap::_narrow( anAttr );
+       aPixmap ->SetPixMap("ICON_TREE_CURVE");
       }
       return this;
     }
@@ -1031,6 +1039,14 @@ VISU::Storable* VISU::Container_i::Build( int theRestoring )
                                       aComment.latin1(),
                                       true );
     mySObj = SALOMEDS::SObject::_duplicate(GetStudyDocument()->FindObjectID(anEntry.c_str()));
+
+    // Set icon
+    SALOMEDS::StudyBuilder_var aStudyBuilder = GetStudyDocument()->NewBuilder();
+    SALOMEDS::GenericAttribute_var anAttr;
+    SALOMEDS::AttributePixMap_var  aPixmap;
+    anAttr  = aStudyBuilder->FindOrCreateAttribute( mySObj, "AttributePixMap" );
+    aPixmap = SALOMEDS::AttributePixMap::_narrow( anAttr );
+    aPixmap ->SetPixMap("ICON_TREE_CONTAINER");
   }
   return this;
 }