From 76ae6191b0724095e6c0f5843151ec51b80d6a19 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Wed, 13 Mar 2024 11:27:24 +0100 Subject: [PATCH] Remove unused fields. --- .../OsduImportCommands/RimWellPathImport.cpp | 22 ------------------- .../OsduImportCommands/RimWellPathImport.h | 4 ---- 2 files changed, 26 deletions(-) diff --git a/ApplicationLibCode/Commands/OsduImportCommands/RimWellPathImport.cpp b/ApplicationLibCode/Commands/OsduImportCommands/RimWellPathImport.cpp index 97d18bcb89..0378fc6000 100644 --- a/ApplicationLibCode/Commands/OsduImportCommands/RimWellPathImport.cpp +++ b/ApplicationLibCode/Commands/OsduImportCommands/RimWellPathImport.cpp @@ -53,12 +53,6 @@ RimWellPathImport::RimWellPathImport() { CAF_PDM_InitObject( "RimWellPathImport" ); - CAF_PDM_InitField( &wellTypeSurvey, "WellTypeSurvey", true, "Survey" ); - caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &wellTypeSurvey ); - - CAF_PDM_InitField( &wellTypePlans, "WellTypePlans", true, "Plans" ); - caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &wellTypePlans ); - caf::AppEnum defaultUtmMode = UTM_FILTER_OFF; CAF_PDM_InitField( &utmFilterMode, "UtmMode", defaultUtmMode, "Utm Filter" ); @@ -212,22 +206,6 @@ void RimWellPathImport::defineObjectEditorAttribute( QString uiConfigName, caf:: } } -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -void RimWellPathImport::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) -{ - // NOTE: If the default uiOrdering is used, the first checkbox is not possible to interact with using the mouse - // (only keyboard). This is a workaround to make the first checkbox work. - // - // Related issue, but with an opposite fix - // https://github.com/OPM/ResInsight/commit/51443d7aa33abebfaa179e645c729fde19a64666 - // - auto group = uiOrdering.addNewGroup( "Well Types" ); - group->add( &wellTypeSurvey ); - group->add( &wellTypePlans ); -} - //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationLibCode/Commands/OsduImportCommands/RimWellPathImport.h b/ApplicationLibCode/Commands/OsduImportCommands/RimWellPathImport.h index b75f313cc9..b3b8eac29e 100644 --- a/ApplicationLibCode/Commands/OsduImportCommands/RimWellPathImport.h +++ b/ApplicationLibCode/Commands/OsduImportCommands/RimWellPathImport.h @@ -41,9 +41,6 @@ class RimWellPathImport : public caf::PdmObject RimWellPathImport(); ~RimWellPathImport() override; - caf::PdmField wellTypeSurvey; - caf::PdmField wellTypePlans; - caf::PdmField> utmFilterMode; caf::PdmField north; caf::PdmField south; @@ -57,7 +54,6 @@ class RimWellPathImport : public caf::PdmObject void initAfterRead() override; void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override; void defineObjectEditorAttribute( QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override; - void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override; void updateFieldVisibility();