Salome HOME
updated copyright message
[modules/gui.git] / src / SALOME_PYQT / SALOME_PYQT_GUILight / SALOME_PYQT_DataModelLight.cxx
index ebfaf2202489a561b3e73e6381cd7cd0eeb790e0..537cf1e0bf9005fbce74e2c22d8d92623f9cbe25 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -70,7 +70,7 @@ bool SALOME_PYQT_DataModelLight::open( const QString& theURL, CAM_Study* study,
 
   setModified( false );
   
-  return aModule->load(theListOfFiles);
+  return aModule->load(theListOfFiles, theURL);
   
 }
 
@@ -91,11 +91,11 @@ bool SALOME_PYQT_DataModelLight::save( QStringList& theListOfFiles)
     return false;
   
 
-  std::string aTmpDir = study->GetTmpDir(myStudyURL.toLatin1().constData(), isMultiFile );
+  std::string aTmpDir = study->GetTmpDir(myStudyURL.toUtf8().constData(), isMultiFile );
 
   theListOfFiles.append(QString(aTmpDir.c_str()));
   int listSize = theListOfFiles.size();
-  aModule->save(theListOfFiles);
+  aModule->save(theListOfFiles, myStudyURL);
 
   setModified( false );
 
@@ -108,7 +108,7 @@ bool SALOME_PYQT_DataModelLight::save( QStringList& theListOfFiles)
 // function : saveAs()
 // purpose  : SaveAs data model operation
 //=================================================================================
-bool SALOME_PYQT_DataModelLight::saveAs ( const QString& theURL, CAM_Study* theStudy, QStringList& theListOfFiles)
+bool SALOME_PYQT_DataModelLight::saveAs ( const QString& theURL, CAM_Study* /*theStudy*/, QStringList& theListOfFiles)
 {
   myStudyURL = theURL;
   return save(theListOfFiles);
@@ -116,7 +116,7 @@ bool SALOME_PYQT_DataModelLight::saveAs ( const QString& theURL, CAM_Study* theS
 
 
 
-bool SALOME_PYQT_DataModelLight::create( CAM_Study* study )
+bool SALOME_PYQT_DataModelLight::create( CAM_Study* /*study*/ )
 {
   return true;
 }
@@ -141,7 +141,7 @@ bool SALOME_PYQT_DataModelLight::dumpPython( const QString& theURL,
   if(!aModule || !study)
     return false;
   
-  std::string aTmpDir = study->GetTmpDir( theURL.toLatin1().constData(), isMultiFile );
+  std::string aTmpDir = study->GetTmpDir( theURL.toUtf8().constData(), isMultiFile );
 
   theListOfFiles.append( QString( aTmpDir.c_str() ) );
   int oldSize = theListOfFiles.size();
@@ -183,7 +183,7 @@ bool SALOME_PYQT_DataModelLight::close()
 }
 
 
-void SALOME_PYQT_DataModelLight::update ( LightApp_DataObject* theObj, LightApp_Study* theStudy )
+void SALOME_PYQT_DataModelLight::update ( LightApp_DataObject* /*theObj*/, LightApp_Study* /*theStudy*/ )
 {
   // Nothing to do here: we always keep the data tree in the up-to-date state
   // The only goal of this method is to hide default behavior from LightApp_DataModel