Salome HOME
NRI : Merge from V1_2.
authornri <nri@opencascade.com>
Thu, 10 Jul 2003 16:31:38 +0000 (16:31 +0000)
committernri <nri@opencascade.com>
Thu, 10 Jul 2003 16:31:38 +0000 (16:31 +0000)
src/SMESHGUI/SMESHGUI_Swig.cxx
src/SMESHGUI/SMESHGUI_Swig.i

index f34629f..67bdff5 100644 (file)
@@ -94,7 +94,8 @@ void SMESH_Swig::Init(int studyID)
     father = myStudyBuilder->NewComponent("MESH");
     anAttr = myStudyBuilder->FindOrCreateAttribute(father, "AttributeName");
     aName = SALOMEDS::AttributeName::_narrow(anAttr);
-    aName->SetValue(QObject::tr("SMESH_MEN_COMPONENT"));
+    //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" );
index 19b5e3c..dd6e50d 100644 (file)
 
 %include "typemaps.i"
 
-class SMESHGUI_Swig
+class SMESH_Swig
 {
  public:
-  SMESHGUI_Swig();
-  ~SMESHGUI_Swig();
+  SMESH_Swig();
+  ~SMESH_Swig();
 
   void Init(int studyID);