From: eap Date: Tue, 10 Apr 2007 14:11:29 +0000 (+0000) Subject: PAL13330( When mesh generation does not success, trace where ) X-Git-Tag: V3_2_6pre4~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=467cba14410f089828938a3b282bdd938cfae86c;p=modules%2Fsmesh.git PAL13330( When mesh generation does not success, trace where ) - void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight); + void ModifiedMesh (_PTR(SObject) theSObject, bool theIsNot, bool isEmptyMesh=false); + aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_PARTIAL"); --- 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"); + } } } } diff --git a/src/SMESHGUI/SMESHGUI_Utils.h b/src/SMESHGUI/SMESHGUI_Utils.h index 7f549cb2b..241731b66 100644 --- a/src/SMESHGUI/SMESHGUI_Utils.h +++ b/src/SMESHGUI/SMESHGUI_Utils.h @@ -124,7 +124,7 @@ namespace SMESH { _PTR(SObject) GetMeshOrSubmesh (_PTR(SObject) theSObject); - void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight); + void ModifiedMesh (_PTR(SObject) theSObject, bool theIsNot, bool isEmptyMesh=false); void ShowHelpFile (QString theHelpFileName); }