#3487 Use icons for the different MSW valves

This commit is contained in:
Jacob Støren committed 2018-10-31 09:48:36 +01:00
1 parent 0d3b205dac
commit a1705c5e39
4 files changed
+16 -3

No files matched your search

@@ -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");
}
@@ -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"));
}
}
+1 -1
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>