mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 15:50:34 +05:00
NRI : Display Component UserName and Icon.
This commit is contained in:
parent
5eead45ced
commit
3297595671
@ -105,6 +105,7 @@ SMESHGUI_StudyAPI::SMESHGUI_StudyAPI ( SALOMEDS::Study_ptr aStudy,
|
|||||||
|
|
||||||
if (father->_is_nil()) {
|
if (father->_is_nil()) {
|
||||||
father = myStudyBuilder->NewComponent("MESH");
|
father = myStudyBuilder->NewComponent("MESH");
|
||||||
|
}
|
||||||
anAttr = myStudyBuilder->FindOrCreateAttribute(father, "AttributeName");
|
anAttr = myStudyBuilder->FindOrCreateAttribute(father, "AttributeName");
|
||||||
aName = SALOMEDS::AttributeName::_narrow(anAttr);
|
aName = SALOMEDS::AttributeName::_narrow(anAttr);
|
||||||
//NRI aName->SetValue(QObject::tr("SMESH_MEN_COMPONENT"));
|
//NRI aName->SetValue(QObject::tr("SMESH_MEN_COMPONENT"));
|
||||||
@ -112,7 +113,7 @@ SMESHGUI_StudyAPI::SMESHGUI_StudyAPI ( SALOMEDS::Study_ptr aStudy,
|
|||||||
anAttr = myStudyBuilder->FindOrCreateAttribute(father, "AttributePixMap");
|
anAttr = myStudyBuilder->FindOrCreateAttribute(father, "AttributePixMap");
|
||||||
aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr);
|
aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr);
|
||||||
aPixmap->SetPixMap( "ICON_OBJBROWSER_SMESH" );
|
aPixmap->SetPixMap( "ICON_OBJBROWSER_SMESH" );
|
||||||
}
|
|
||||||
myStudyBuilder->DefineComponentInstance(father, CompMesh );
|
myStudyBuilder->DefineComponentInstance(father, CompMesh );
|
||||||
mySComponentMesh = SALOMEDS::SComponent::_narrow( father );
|
mySComponentMesh = SALOMEDS::SComponent::_narrow( father );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user