]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NRI : Update loadPixmap.
authornri <nri@opencascade.com>
Wed, 21 May 2003 10:11:41 +0000 (10:11 +0000)
committernri <nri@opencascade.com>
Wed, 21 May 2003 10:11:41 +0000 (10:11 +0000)
src/VISUGUI/VisuGUI.cxx
src/VISUGUI/VisuGUI_InitMeshDlg.cxx

index dfb3324785ff69350365c7668d7fd99cbf83d62b..caacd80ed8c9f1454d57d0e4292667e8d7b12ac6 100644 (file)
@@ -843,7 +843,7 @@ bool VisuGUI::OnGUIEvent(int theCommandID,  QAD_Desktop* parent)
       {
        if (checkLock(myStudy)) break;
 
-       Engines::Component_var aMedComp = myDesktop->getEngine("FactoryServer", "Med");
+       Engines::Component_var aMedComp = myDesktop->getEngine("FactoryServer", "MED");
        if (CORBA::is_nil(aMedComp)) return false;
        Engines::Med_Gen_var aMedGen = Engines::Med_Gen::_narrow(aMedComp);
        if (CORBA::is_nil(aMedGen)) return false;
@@ -3047,18 +3047,18 @@ bool VisuGUI::CustomPopup(QAD_Desktop* parent, QPopupMenu* thePopup, const QStri
 //     if( isStudyLocked(VisuGUI::myActiveStudy->getStudyDocument()))
 //       return false;
     int aNunComponent = VISU::Storable::FindValue(aMap,"myNumComponent",&isExist).toInt();
-    thePopup->insertItem(rmgr->loadPixmap( "VisuGUI", tr("ICON_SCALAR_MAP") ), 
+    thePopup->insertItem(rmgr->loadPixmap( "VISU", tr("ICON_SCALAR_MAP") ), 
                         "Scalar Map...", visuGUI, SLOT(CreateScalarMap()));
-    thePopup->insertItem(rmgr->loadPixmap( "VisuGUI", tr("ICON_ISO_SURFACES") ),
+    thePopup->insertItem(rmgr->loadPixmap( "VISU", tr("ICON_ISO_SURFACES") ),
                         "Iso Surfaces...", visuGUI, SLOT(CreateIsoSurfaces()));
-    thePopup->insertItem(rmgr->loadPixmap( "VisuGUI", tr("ICON_CUT_PLANES") ),
+    thePopup->insertItem(rmgr->loadPixmap( "VISU", tr("ICON_CUT_PLANES") ),
                         "Cut Planes...", visuGUI, SLOT(CreateCutPlanes()));
     if(aNunComponent > 1){
-      thePopup->insertItem(rmgr->loadPixmap( "VisuGUI", tr("ICON_DEFORMED_SHAPE") ),
+      thePopup->insertItem(rmgr->loadPixmap( "VISU", tr("ICON_DEFORMED_SHAPE") ),
                           "Deformed Shape...", visuGUI, SLOT(CreateDeformedShape()));
-      thePopup->insertItem(rmgr->loadPixmap( "VisuGUI", tr("ICON_VECTORS") ),
+      thePopup->insertItem(rmgr->loadPixmap( "VISU", tr("ICON_VECTORS") ),
                           "Vectors...", visuGUI, SLOT(CreateVectors()));
-      thePopup->insertItem(rmgr->loadPixmap( "VisuGUI", tr("ICON_STREAM_LINES") ),
+      thePopup->insertItem(rmgr->loadPixmap( "VISU", tr("ICON_STREAM_LINES") ),
                           "Stream lines...", visuGUI, SLOT(CreateStreamLines()));
     }
   }
index 251ff08e8672bd77a13a4bf30d4b4eff9a0b6ea0..40bc7979781ae0bf648dd97e6537ecfc6e561f82 100644 (file)
@@ -40,8 +40,8 @@ using namespace std;
 VisuGUI_InitMeshDlg::VisuGUI_InitMeshDlg( QWidget* parent, const char* name, SALOME_Selection* Sel = 0, bool modal, WFlags fl )
     : QDialog( parent, name, modal, fl )
 {
-    QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "VisuGUI",tr("ICON_DLG_INIT_MESH")));
-    QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "VisuGUI",tr("ICON_SELECT")));
+    QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "VISU",tr("ICON_DLG_INIT_MESH")));
+    QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "VISU",tr("ICON_SELECT")));
     if ( !name )
        setName( "VisuGUI_InitMeshDlg" );
     resize( 303, 175 );