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