Salome HOME
Fixes for compilation errors.
[modules/visu.git] / src / VISUGUI / VisuGUI.cxx
index be5ed4bc12eb45ee475ce0c60c96024d5ae4ff13..c3b0bbfef4b58f9272ba13bc93287d8acc0d1360 100644 (file)
@@ -277,7 +277,7 @@ CreateCurves( SalomeApp_Module* theModule,
     return;
 
   _PTR(Study)     aStudy = GetCStudy( GetAppStudy( theModule ) );
-  _PTR(SObject) aSObject = aStudy->FindObjectID( thePrs->GetEntry() );
+  _PTR(SObject) aSObject = aStudy->FindObjectID( thePrs->GetEntry().latin1() );
 
   if ( !theCreate && aSObject ){
     // Remove old Table
@@ -1224,7 +1224,7 @@ OnDeleteObject()
               if (CORBA::is_nil(aChildObj)) continue;
               CORBA::Object_ptr aCurve = VISU::Curve::_narrow(aChildObj);
               if (CORBA::is_nil(aCurve)) continue;
-              VISU::Curve_i* pCurve = dynamic_cast<VISU::Curve_i*>(VISU::GetServant(aCurve).in());
+              //VISU::Curve_i* pCurve = dynamic_cast<VISU::Curve_i*>(VISU::GetServant(aCurve).in());
               //jfa tmp:DeleteCurve(this, pCurve, NULL);
             }
             break;
@@ -1264,7 +1264,7 @@ OnPlotData()
            // get name of SObject
            if ( SO->FindAttribute( anAttr, "AttributeName" ) ) {
              aName = anAttr;
-             SOName = aName->Value();
+             SOName = QString( aName->Value().c_str() );
            }
            SPlot2d_SetupPlot2dDlg* dlg = new SPlot2d_SetupPlot2dDlg( SO, GetDesktop( this ) );
            if ( dlg->exec() == QDialog::Accepted ) {
@@ -1326,7 +1326,7 @@ OnPlotData()
       // get name of SObject
       if ( SO->FindAttribute( anAttr, "AttributeName" ) ) {
        aName = anAttr;
-       SOName = aName->Value();
+       SOName = QString( aName->Value().c_str() );
       }
       SPlot2d_SetupPlot2dDlg* dlg = new SPlot2d_SetupPlot2dDlg( SO, GetDesktop( this ) );
       if ( dlg->exec() == QDialog::Accepted ) {
@@ -1536,7 +1536,7 @@ OnRename()
   _PTR(GenericAttribute) anAttr;
   if (aSObj->FindAttribute(anAttr, "AttributeName")) {
     _PTR(AttributeName) aName (anAttr);
-    QString Name = VisuGUI_NameDlg::getName(GetDesktop(this), aName->Value());
+    QString Name = VisuGUI_NameDlg::getName( GetDesktop( this ), aName->Value().c_str() );
     if (!Name.isEmpty()) {
       QApplication::setOverrideCursor(Qt::waitCursor);