-// 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
setModified( false );
- return aModule->load(theListOfFiles);
+ return aModule->load(theListOfFiles, theURL);
}
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 );
// 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);
-bool SALOME_PYQT_DataModelLight::create( CAM_Study* study )
+bool SALOME_PYQT_DataModelLight::create( CAM_Study* /*study*/ )
{
return true;
}
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();
}
-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