Skip to content

Commit

Permalink
Improve user interface
Browse files Browse the repository at this point in the history
Add icon for well target generator
Improve uiOrdering for RimRegularGridCase
  • Loading branch information
magnesj committed Dec 23, 2024
1 parent edd6110 commit e027bad
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions ApplicationLibCode/ProjectDataModel/RimRegularGridCase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions ApplicationLibCode/ProjectDataModel/RimRegularGridCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class RimRegularGridCase : public RimEclipseResultCase
void createModel();

private:
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;

void setupBeforeSave() override;
QString cacheFileName() const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" );

Expand Down

0 comments on commit e027bad

Please sign in to comment.