NRI : Rename resources and library.

Update mechanism of loading resources and engine.
This commit is contained in:
nri 2003-05-16 07:41:41 +00:00
parent c49bc0c3d1
commit fc0db1a78d
5 changed files with 11 additions and 8 deletions

View File

@ -337,7 +337,7 @@ GeometryGUI* GeometryGUI::GetOrCreateGeometryGUI( QAD_Desktop* desktop )
GeomGUI->myShadingColor = Quantity_Color( Quantity_NOC_GOLDENROD ); GeomGUI->myShadingColor = Quantity_Color( Quantity_NOC_GOLDENROD );
Engines::Component_var comp = desktop->getEngine("FactoryServer", "Geometry"); Engines::Component_var comp = desktop->getEngine("FactoryServer", "GEOM");
GeomGUI->myComponentGeom = GEOM::GEOM_Gen::_narrow(comp); GeomGUI->myComponentGeom = GEOM::GEOM_Gen::_narrow(comp);
/* GetCurrentStudy */ /* GetCurrentStudy */
@ -4990,7 +4990,8 @@ bool GeometryGUI::Import( )
father = aStudyBuilder->NewComponent("GEOM"); father = aStudyBuilder->NewComponent("GEOM");
anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributeName"); anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributeName");
aName = SALOMEDS::AttributeName::_narrow(anAttr); aName = SALOMEDS::AttributeName::_narrow(anAttr);
aName->SetValue( tr("GEOM_MEN_COMPONENT") ); // aName->SetValue( tr("GEOM_MEN_COMPONENT") );
aName->SetValue( QAD_Application::getDesktop()->getComponentUserName( "GEOM" ) );
anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributePixMap"); anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributePixMap");
aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr); aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr);
aPixmap->SetPixMap( "ICON_OBJBROWSER_Geometry" ); aPixmap->SetPixMap( "ICON_OBJBROWSER_Geometry" );
@ -5194,7 +5195,8 @@ bool GeometryGUI::Display( GEOM::GEOM_Shape_ptr aShape,
father = aStudyBuilder->NewComponent("GEOM"); father = aStudyBuilder->NewComponent("GEOM");
anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributeName"); anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributeName");
aName = SALOMEDS::AttributeName::_narrow(anAttr); aName = SALOMEDS::AttributeName::_narrow(anAttr);
aName->SetValue( tr("GEOM_MEN_COMPONENT") ); // aName->SetValue( tr("GEOM_MEN_COMPONENT") );
aName->SetValue( QAD_Application::getDesktop()->getComponentUserName( "GEOM" ) );
anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributePixMap"); anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributePixMap");
aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr); aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr);
aPixmap->SetPixMap( "ICON_OBJBROWSER_Geometry" ); aPixmap->SetPixMap( "ICON_OBJBROWSER_Geometry" );
@ -5308,7 +5310,8 @@ bool GeometryGUI::AddInStudy( bool selection,
father = aStudyBuilder->NewComponent("GEOM"); father = aStudyBuilder->NewComponent("GEOM");
anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributeName"); anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributeName");
aName = SALOMEDS::AttributeName::_narrow(anAttr); aName = SALOMEDS::AttributeName::_narrow(anAttr);
aName->SetValue( tr("GEOM_MEN_COMPONENT") ); // aName->SetValue( tr("GEOM_MEN_COMPONENT") );
aName->SetValue( QAD_Application::getDesktop()->getComponentUserName( "GEOM" ) );
anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributePixMap"); anAttr = aStudyBuilder->FindOrCreateAttribute(father, "AttributePixMap");
aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr); aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr);
aPixmap->SetPixMap( "ICON_OBJBROWSER_Geometry" ); aPixmap->SetPixMap( "ICON_OBJBROWSER_Geometry" );

View File

@ -20,12 +20,12 @@ EXPORT_HEADERS= GeometryGUI_Swig.hxx \
# ressources files : # ressources files :
PO_FILES = \ PO_FILES = \
GeometryGUI_icons.po \ GEOM_icons.po \
GeometryGUI_msg_en.po \ GEOM_msg_en.po \
GeometryGUI_msg_fr.po GEOM_msg_fr.po
# Libraries targets # Libraries targets
LIB = libGeometryGUI.la LIB = libGEOMGUI.la
LIB_SRC = GeometryGUI.cxx \ LIB_SRC = GeometryGUI.cxx \
GeometryGUI_SpinBox.cxx \ GeometryGUI_SpinBox.cxx \
GeometryGUI_TransparencyDlg.cxx \ GeometryGUI_TransparencyDlg.cxx \