diff --git a/ApplicationCode/Commands/ExportCommands/RicExportFaultsFeature.cpp b/ApplicationCode/Commands/ExportCommands/RicExportFaultsFeature.cpp index 96e8af90ac..2a36d63a46 100644 --- a/ApplicationCode/Commands/ExportCommands/RicExportFaultsFeature.cpp +++ b/ApplicationCode/Commands/ExportCommands/RicExportFaultsFeature.cpp @@ -20,6 +20,7 @@ #include "RicExportFaultsFeature.h" #include "RiaApplication.h" +#include "RiaLogging.h" #include "RigEclipseCaseData.h" #include "RigFault.h" @@ -33,7 +34,6 @@ #include #include -#include CAF_CMD_SOURCE_INIT(RicExportFaultsFeature, "RicExportFaultsFeature"); @@ -191,7 +191,7 @@ void RicExportFaultsFeature::saveFault(QString completeFilename, const RigMainGr if (!exportFile.open(QIODevice::WriteOnly) ) { - QMessageBox::critical(NULL, "ResInsight - Export Faults", "Could not open the file :\n" + completeFilename); + RiaLogging::error("Could not open the file : " + completeFilename); } QTextStream stream(&exportFile); diff --git a/ApplicationCode/Commands/ExportCommands/RicSaveEclipseResultAsInputPropertyExec.cpp b/ApplicationCode/Commands/ExportCommands/RicSaveEclipseResultAsInputPropertyExec.cpp index b9ffe7fb15..209c13a23d 100644 --- a/ApplicationCode/Commands/ExportCommands/RicSaveEclipseResultAsInputPropertyExec.cpp +++ b/ApplicationCode/Commands/ExportCommands/RicSaveEclipseResultAsInputPropertyExec.cpp @@ -20,6 +20,7 @@ #include "RicSaveEclipseResultAsInputPropertyExec.h" #include "RiaApplication.h" +#include "RiaLogging.h" #include "RicExportFeatureImpl.h" @@ -38,7 +39,7 @@ #include "cafPdmUiPropertyViewDialog.h" #include "cafUtils.h" -#include + //-------------------------------------------------------------------------------------------------- /// @@ -101,7 +102,7 @@ void RicSaveEclipseResultAsInputPropertyExec::redo() bool isOk = RifEclipseInputFileTools::writeBinaryResultToTextFile(exportSettings.fileName, m_cellColors->reservoirView()->eclipseCase()->eclipseCaseData(), timeStep, m_cellColors, exportSettings.eclipseKeyword, exportSettings.undefinedValue); if (!isOk) { - QMessageBox::critical(NULL, "File export", "Failed to exported current result to " + exportSettings.fileName); + RiaLogging::error("Failed to exported current result to " + exportSettings.fileName); } } } diff --git a/ApplicationCode/Commands/ExportCommands/RicSnapshotAllPlotsToFileFeature.cpp b/ApplicationCode/Commands/ExportCommands/RicSnapshotAllPlotsToFileFeature.cpp index b91b150254..b00dab064b 100644 --- a/ApplicationCode/Commands/ExportCommands/RicSnapshotAllPlotsToFileFeature.cpp +++ b/ApplicationCode/Commands/ExportCommands/RicSnapshotAllPlotsToFileFeature.cpp @@ -38,7 +38,6 @@ #include #include #include -#include CAF_CMD_SOURCE_INIT(RicSnapshotAllPlotsToFileFeature, "RicSnapshotAllPlotsToFileFeature"); @@ -63,7 +62,7 @@ void RicSnapshotAllPlotsToFileFeature::saveAllPlots() exportSnapshotOfAllPlotsIntoFolder(snapshotFolderName); QString text = QString("Exported snapshots to folder : \n%1").arg(snapshotFolderName); - QMessageBox::information(nullptr, "Export Snapshots To Folder", text); + RiaLogging::info(text); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/Commands/ExportCommands/RicSnapshotAllViewsToFileFeature.cpp b/ApplicationCode/Commands/ExportCommands/RicSnapshotAllViewsToFileFeature.cpp index 48ca2cf578..e516785cd0 100644 --- a/ApplicationCode/Commands/ExportCommands/RicSnapshotAllViewsToFileFeature.cpp +++ b/ApplicationCode/Commands/ExportCommands/RicSnapshotAllViewsToFileFeature.cpp @@ -44,7 +44,6 @@ #include #include #include -#include CAF_CMD_SOURCE_INIT(RicSnapshotAllViewsToFileFeature, "RicSnapshotAllViewsToFileFeature"); @@ -64,7 +63,7 @@ void RicSnapshotAllViewsToFileFeature::saveAllViews() exportSnapshotOfAllViewsIntoFolder(snapshotFolderName); QString text = QString("Exported snapshots to folder : \n%1").arg(snapshotFolderName); - QMessageBox::information(nullptr, "Export Snapshots To Folder", text); + RiaLogging::info(text); } //--------------------------------------------------------------------------------------------------