Improve user interface

Add icon for well target generator
Improve uiOrdering for RimRegularGridCase
This commit is contained in:
Magne Sjaastad 2024-12-23 13:45:48 +01:00
parent edd61109b5
commit e027bad961
3 changed files with 23 additions and 1 deletions

View File

@ -88,6 +88,26 @@ void RimRegularGridCase::createModel()
computeCachedData();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimRegularGridCase::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering )
{
uiOrdering.add( &m_caseUserDescription );
uiOrdering.add( &m_displayNameOption );
uiOrdering.add( &m_caseId );
auto group = uiOrdering.addNewGroup( "Regular Grid Definition" );
group->add( &m_minimum );
group->add( &m_maximum );
group->add( &m_cellCountI );
group->add( &m_cellCountJ );
group->add( &m_cellCountK );
uiOrdering.skipRemainingFields();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -46,6 +46,8 @@ public:
void createModel();
private:
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
void setupBeforeSave() override;
QString cacheFileName() const;

View File

@ -84,7 +84,7 @@ void caf::AppEnum<RigWellTargetCandidatesGenerator::VolumesType>::setUp()
//--------------------------------------------------------------------------------------------------
RimWellTargetCandidatesGenerator::RimWellTargetCandidatesGenerator()
{
CAF_PDM_InitObject( "Well Target Candidates Generator" );
CAF_PDM_InitObject( "Well Target Candidates Generator", ":/WellTargets.png" );
CAF_PDM_InitField( &m_timeStep, "TimeStep", 0, "Time Step" );