#3487 Use icons for the different MSW valves

This commit is contained in:
Jacob Støren 2018-10-31 09:37:47 +01:00
parent 0d3b205dac
commit a1705c5e39
4 changed files with 16 additions and 3 deletions

View File

@ -49,6 +49,6 @@ void RicNewValveFeature::onActionTriggered(bool isChecked)
//--------------------------------------------------------------------------------------------------
void RicNewValveFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setIcon(QIcon(":/PerforationInterval16x16.png"));
actionToSetup->setIcon(QIcon(":/ICDValve16x16.png"));
actionToSetup->setText("New Valve");
}

View File

@ -38,7 +38,7 @@ CAF_PDM_SOURCE_INIT(RimWellPathValve, "WellPathValve");
//--------------------------------------------------------------------------------------------------
RimWellPathValve::RimWellPathValve()
{
CAF_PDM_InitObject("WellPathValve", ":/PerforationInterval16x16.png", "", "");
CAF_PDM_InitObject("WellPathValve", ":/ICDValve16x16.png", "", "");
CAF_PDM_InitFieldNoDefault(&m_type, "CompletionType", "Type ", "", "", "");
m_type = RiaDefines::ICD;
@ -280,4 +280,17 @@ void RimWellPathValve::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrderi
{
QString fullName = componentLabel() + QString(" %1").arg(m_measuredDepth());
this->setName(fullName);
if ( m_type() == RiaDefines::ICD )
{
this->setUiIcon(QIcon(":/ICDValve16x16.png"));
}
else if ( m_type() == RiaDefines::ICV )
{
this->setUiIcon(QIcon(":/ICVValve16x16.png"));
}
else if ( m_type() == RiaDefines::AICD )
{
this->setUiIcon(QIcon(":/AICDValve16x16.png"));
}
}

View File

Before

Width:  |  Height:  |  Size: 286 B

After

Width:  |  Height:  |  Size: 286 B

View File

@ -128,7 +128,7 @@
<file>arrow-right-green.png</file>
<file>2DMap16x16.png</file>
<file>2DMaps16x16.png</file>
<file>AICVValve16x16.png</file>
<file>AICDValve16x16.png</file>
<file>ICDValve16x16.png</file>
<file>ICVValve16x16.png</file>
<file>CasingDesign16x16.png</file>