#5837 Well Log Curves : Show icons in tree view

This commit is contained in:
Magne Sjaastad 2020-04-28 06:46:06 +02:00
parent 8c64dbeae9
commit bc400af345
7 changed files with 15 additions and 5 deletions

View File

@ -171,6 +171,14 @@ QString RimWellLogCurve::wellLogChannelName() const
return wellLogChannelUiName(); return wellLogChannelUiName();
} }
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RimWellLogCurve::wellLogCurveIconName()
{
return ":/WellLogCurve16x16.png";
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@ -72,6 +72,8 @@ public:
virtual QString wellLogChannelUnits() const = 0; virtual QString wellLogChannelUnits() const = 0;
virtual QString wellDate() const { return ""; }; virtual QString wellDate() const { return ""; };
static QString wellLogCurveIconName();
protected: protected:
void updateZoomInParentPlot() override; void updateZoomInParentPlot() override;
void updateLegendsInPlot() override; void updateLegendsInPlot() override;

View File

@ -91,7 +91,7 @@ void AppEnum<RimWellLogExtractionCurve::TrajectoryType>::setUp()
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
RimWellLogExtractionCurve::RimWellLogExtractionCurve() RimWellLogExtractionCurve::RimWellLogExtractionCurve()
{ {
CAF_PDM_InitObject( "Well Log Curve", "", "", "" ); CAF_PDM_InitObject( "Well Log Curve", RimWellLogCurve::wellLogCurveIconName(), "", "" );
CAF_PDM_InitFieldNoDefault( &m_trajectoryType, "TrajectoryType", "Trajectory Type", "", "", "" ); CAF_PDM_InitFieldNoDefault( &m_trajectoryType, "TrajectoryType", "Trajectory Type", "", "", "" );

View File

@ -52,7 +52,7 @@ CAF_PDM_SOURCE_INIT( RimWellLogFileCurve, "WellLogFileCurve" );
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
RimWellLogFileCurve::RimWellLogFileCurve() RimWellLogFileCurve::RimWellLogFileCurve()
{ {
CAF_PDM_InitObject( "Well Log File Curve", "", "", "" ); CAF_PDM_InitObject( "Well Log File Curve", RimWellLogCurve::wellLogCurveIconName(), "", "" );
CAF_PDM_InitFieldNoDefault( &m_wellPath, "CurveWellPath", "Well Path", "", "", "" ); CAF_PDM_InitFieldNoDefault( &m_wellPath, "CurveWellPath", "Well Path", "", "", "" );
m_wellPath.uiCapability()->setUiTreeChildrenHidden( true ); m_wellPath.uiCapability()->setUiTreeChildrenHidden( true );

View File

@ -94,7 +94,7 @@ CAF_PDM_SOURCE_INIT( RimWellLogRftCurve, "WellLogRftCurve" );
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
RimWellLogRftCurve::RimWellLogRftCurve() RimWellLogRftCurve::RimWellLogRftCurve()
{ {
CAF_PDM_InitObject( "Well Log RFT Curve", "", "", "" ); CAF_PDM_InitObject( "Well Log RFT Curve", RimWellLogCurve::wellLogCurveIconName(), "", "" );
CAF_PDM_InitFieldNoDefault( &m_eclipseResultCase, "CurveEclipseResultCase", "Eclipse Result Case", "", "", "" ); CAF_PDM_InitFieldNoDefault( &m_eclipseResultCase, "CurveEclipseResultCase", "Eclipse Result Case", "", "", "" );
m_eclipseResultCase.uiCapability()->setUiTreeChildrenHidden( true ); m_eclipseResultCase.uiCapability()->setUiTreeChildrenHidden( true );

View File

@ -12,7 +12,7 @@ CAF_PDM_SOURCE_INIT( RimWellLogWbsCurve, "RimWellLogWbsCurve" );
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
RimWellLogWbsCurve::RimWellLogWbsCurve() RimWellLogWbsCurve::RimWellLogWbsCurve()
{ {
CAF_PDM_InitObject( "Well Bore Stability Curve", "", "", "" ); CAF_PDM_InitObject( "Well Bore Stability Curve", RimWellLogCurve::wellLogCurveIconName(), "", "" );
CAF_PDM_InitField( &m_smoothCurve, "SmoothCurve", false, "Smooth Curve", "", "", "" ); CAF_PDM_InitField( &m_smoothCurve, "SmoothCurve", false, "Smooth Curve", "", "", "" );
CAF_PDM_InitField( &m_smoothingThreshold, "SmoothingThreshold", 0.002, "Smoothing Threshold", "", "", "" ); CAF_PDM_InitField( &m_smoothingThreshold, "SmoothingThreshold", 0.002, "Smoothing Threshold", "", "", "" );

View File

@ -52,7 +52,7 @@ CAF_PDM_SOURCE_INIT( RimWellMeasurementCurve, "WellMeasurementCurve" );
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
RimWellMeasurementCurve::RimWellMeasurementCurve() RimWellMeasurementCurve::RimWellMeasurementCurve()
{ {
CAF_PDM_InitObject( "Well Measurement Curve", "", "", "" ); CAF_PDM_InitObject( "Well Measurement Curve", RimWellLogCurve::wellLogCurveIconName(), "", "" );
CAF_PDM_InitFieldNoDefault( &m_wellPath, "CurveWellPath", "Well Path", "", "", "" ); CAF_PDM_InitFieldNoDefault( &m_wellPath, "CurveWellPath", "Well Path", "", "", "" );
m_wellPath.uiCapability()->setUiTreeChildrenHidden( true ); m_wellPath.uiCapability()->setUiTreeChildrenHidden( true );