enable loading resources of MESH plugings by prepending plugin name to pixMap name

This commit is contained in:
eap 2008-04-17 07:45:32 +00:00
parent f2bbde8d18
commit 22b9a6bf30

View File

@ -714,6 +714,10 @@ SALOMEDS::SObject_ptr
// Add New Hypothesis
string aPmName = isAlgo ? "ICON_SMESH_TREE_ALGO_" : "ICON_SMESH_TREE_HYPO_";
aPmName += theHyp->GetName();
// prepend plugin name to pixmap name
string pluginName = myHypCreatorMap[string(theHyp->GetName())]->GetModuleName();
if ( pluginName != "StdMeshers" )
aPmName = pluginName + "::" + aPmName;
aHypSO = publish( theStudy, theHyp, aRootSO, 0, aPmName.c_str() );
}