Convert to enum class

This commit is contained in:
Magne Sjaastad
2020-04-24 08:22:32 +02:00
parent 95fc63fe7c
commit 72fefb4db5
21 changed files with 54 additions and 47 deletions

View File

@@ -50,10 +50,10 @@ namespace caf
template <>
void AppEnum<RicfExportVisibleCells::ExportKeyword>::setUp()
{
addItem( RicfExportVisibleCells::FLUXNUM, "FLUXNUM", "FLUXNUM" );
addItem( RicfExportVisibleCells::MULTNUM, "MULTNUM", "MULTNUM" );
addItem( RicfExportVisibleCells::ExportKeyword::FLUXNUM, "FLUXNUM", "FLUXNUM" );
addItem( RicfExportVisibleCells::ExportKeyword::MULTNUM, "MULTNUM", "MULTNUM" );
setDefault( RicfExportVisibleCells::FLUXNUM );
setDefault( RicfExportVisibleCells::ExportKeyword::FLUXNUM );
}
} // namespace caf
@@ -119,7 +119,7 @@ caf::PdmScriptResponse RicfExportVisibleCells::execute()
return caf::PdmScriptResponse( caf::PdmScriptResponse::COMMAND_ERROR, error );
}
QString exportFolder = RicfCommandFileExecutor::instance()->getExportPath( RicfCommandFileExecutor::CELLS );
QString exportFolder = RicfCommandFileExecutor::instance()->getExportPath( RicfCommandFileExecutor::ExportType::CELLS );
if ( exportFolder.isNull() )
{
exportFolder = RiaApplication::instance()->createAbsolutePathFromProjectRelativePath( "visibleCells" );