{
MESSAGE("Loading Resources " << aResName.toLatin1().data());
SUIT_ResourceMgr* resMgr = SMESHGUI::resourceMgr();
- resMgr->loadTranslator("resources",aResName+"_msg_en.qm");
- resMgr->loadTranslator("resources",aResName+"_images.qm");
+ QString lang = resMgr->stringValue( resMgr->langSection(), "language", "en" );
+ resMgr->loadTranslator( "resources", QString( "%1_msg_%2.qm" ).arg( aResName, lang ) );
+ resMgr->loadTranslator( "resources", QString( "%1_images.qm" ).arg( aResName, lang ) );
}
}
}
QString aLabel = atts.value("label-id");
QString anIcon = atts.value("icon-id");
bool isAux = atts.value("auxiliary") == "true";
- bool isNeedGeom = true;
+ bool isNeedGeom = true, isSupportSubmeshes = false;
QString aNeedGeom = atts.value("need-geom");
if ( !aNeedGeom.isEmpty() )
isNeedGeom = (aNeedGeom == "true");
-
+ QString suppSub = atts.value("support-submeshes");
+ if ( !suppSub.isEmpty() )
+ isSupportSubmeshes = (suppSub == "true");
+
QString aDimStr = atts.value("dim");
aDimStr = aDimStr.remove( ' ' );
QStringList aDimList = aDimStr.split( ',', QString::SkipEmptyParts );
HypothesisData* aHypData =
new HypothesisData (aHypAlType, myPluginName, myServerLib, myClientLib,
aLabel, anIcon, aDim, isAux,
- attr[ HYPOS ], attr[ OPT_HYPOS ], attr[ INPUT ], attr[ OUTPUT ], isNeedGeom );
+ attr[ HYPOS ], attr[ OPT_HYPOS ], attr[ INPUT ], attr[ OUTPUT ],
+ isNeedGeom, isSupportSubmeshes );
if (qName == "algorithm")
{
- myAlgorithmsMap[aHypAlType.toLatin1().data()] = aHypData;
+ myAlgorithmsMap[aHypAlType] = aHypData;
}
else
{
- myHypothesesMap[aHypAlType.toLatin1().data()] = aHypData;
+ myHypothesesMap[aHypAlType] = aHypData;
}
}
}
if (atts.value("name") != "")
{
HypothesesSet* aHypoSet = new HypothesesSet ( atts.value("name") );
- myListOfHypothesesSets.push_back( aHypoSet );
+ myListOfHypothesesSets.append( aHypoSet );
for ( int isHypo = 0; isHypo < 2; ++isHypo )
{