X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_PYQT%2FSALOME_PYQT_GUILight%2FSALOME_PYQT_DataModelLight.cxx;h=52d4a131923c45a8f8e979a374e7e4002139f1c6;hb=HEAD;hp=031e1124d4f6d8db99193e2130460e29520236c3;hpb=d6bd12111347879cd8dbe1a15ac4d6ba32ce0d6b;p=modules%2Fgui.git diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_DataModelLight.cxx b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_DataModelLight.cxx index 031e1124d..52d4a1319 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_DataModelLight.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_DataModelLight.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 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