mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
ResInsight: Migrate commands, UI and application code to attribute map
This commit is contained in:
1 parent
064ac45da0
commit
43a4378cee
56 files changed
+153
-627
No files matched your search
+1
-17
@@ -33,6 +33,7 @@ RicCaseAndFileExportSettingsUi::RicCaseAndFileExportSettingsUi()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &folder, "Folder", "Export Folder" );
|
||||
folder.uiCapability()->setUiEditorTypeName( caf::PdmUiFilePathEditor::uiEditorTypeName() );
|
||||
folder.uiCapability()->setAttribute( caf::PdmUiFilePathEditor::Keys::SELECT_DIRECTORY, true );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &caseToApply, "CaseToApply", "Case to Apply" );
|
||||
}
|
||||
@@ -51,20 +52,3 @@ QList<caf::PdmOptionItemInfo> RicCaseAndFileExportSettingsUi::calculateValueOpti
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicCaseAndFileExportSettingsUi::defineEditorAttribute( const caf::PdmFieldHandle* field,
|
||||
QString uiConfigName,
|
||||
caf::PdmUiEditorAttribute* attribute )
|
||||
{
|
||||
if ( field == &folder )
|
||||
{
|
||||
caf::PdmUiFilePathEditorAttribute* myAttr = dynamic_cast<caf::PdmUiFilePathEditorAttribute*>( attribute );
|
||||
if ( myAttr )
|
||||
{
|
||||
myAttr->m_selectDirectory = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user