X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Utils.cxx;h=6ef3fddaba7a997dc382efafca8821f0239269cd;hb=467cba14410f089828938a3b282bdd938cfae86c;hp=8eff141c8eedc495de079a517dc60cedfcc7d325;hpb=3f93b306d93117a98145292ac3fd61847226f48e;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Utils.cxx b/src/SMESHGUI/SMESHGUI_Utils.cxx index 8eff141c8..6ef3fddab 100644 --- a/src/SMESHGUI/SMESHGUI_Utils.cxx +++ b/src/SMESHGUI/SMESHGUI_Utils.cxx @@ -254,7 +254,7 @@ namespace SMESH{ return theSObject->GetFather(); } - void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight) + void ModifiedMesh (_PTR(SObject) theSObject, bool theIsNotModif, bool isEmptyMesh) { _PTR(Study) aStudy = GetActiveStudyDocument(); if (aStudy->GetProperties()->IsLocked()) @@ -264,10 +264,12 @@ namespace SMESH{ _PTR(GenericAttribute) anAttr = aBuilder->FindOrCreateAttribute(theSObject,"AttributePixMap"); _PTR(AttributePixMap) aPixmap = anAttr; - if (theIsRight) { + if (theIsNotModif) { aPixmap->SetPixMap("ICON_SMESH_TREE_MESH"); - } else { + } else if ( isEmptyMesh ) { aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_WARN"); + } else { + aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_PARTIAL"); } _PTR(ChildIterator) anIter = aStudy->NewChildIterator(theSObject); @@ -279,11 +281,13 @@ namespace SMESH{ _PTR(SObject) aSObj1 = anIter1->Value(); anAttr = aBuilder->FindOrCreateAttribute(aSObj1, "AttributePixMap"); aPixmap = anAttr; - if (theIsRight) { - aPixmap->SetPixMap("ICON_SMESH_TREE_MESH"); - } else { - aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_WARN"); - } + if (theIsNotModif) { + aPixmap->SetPixMap("ICON_SMESH_TREE_MESH"); + } else if ( isEmptyMesh ) { + aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_WARN"); + } else { + aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_PARTIAL"); + } } } }