mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve curve naming for plot and use in RFT segment plots
* Improve plot naming for depth track plots * Move template text replace to string tools * More data available for object template text * Set plot visible and define default object name template text
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include "RimEnsembleWellLogStatistics.h"
|
||||
#include "RimPlot.h"
|
||||
#include "RimPlotWindow.h"
|
||||
#include "RimWellLogPlotNameConfig.h"
|
||||
|
||||
#include "cafAppEnum.h"
|
||||
#include "cafPdmChildArrayField.h"
|
||||
@@ -46,6 +45,7 @@ class RimPlot;
|
||||
class RimEnsembleCurveSet;
|
||||
class RiuPlotAxis;
|
||||
class RimWellLogTrack;
|
||||
class RimWellLogPlotNameConfig;
|
||||
|
||||
class QKeyEvent;
|
||||
|
||||
@@ -134,6 +134,8 @@ public:
|
||||
|
||||
QString createAutoName() const override;
|
||||
RimWellLogPlotNameConfig* nameConfig() const;
|
||||
void setNameTemplateText( const QString& templateText );
|
||||
void setNamingMethod( RiaDefines::ObjectNamingMethod namingMethod );
|
||||
|
||||
RimWellLogCurveCommonDataSource* commonDataSource() const;
|
||||
void updateCommonDataSource();
|
||||
@@ -165,8 +167,13 @@ protected:
|
||||
|
||||
QWidget* createViewWidget( QWidget* mainWindowParent ) override;
|
||||
void deleteViewWidget() override;
|
||||
void performAutoNameUpdate() override;
|
||||
void recreatePlotWidgets();
|
||||
|
||||
void performAutoNameUpdate() override;
|
||||
QString createPlotNameFromTemplate( const QString& templateText ) const override;
|
||||
QStringList supportedPlotNameVariables() const override;
|
||||
virtual std::map<QString, QString> createNameKeyValueMap() const;
|
||||
|
||||
void recreatePlotWidgets();
|
||||
|
||||
// Overridden PDM methods
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
@@ -194,6 +201,9 @@ protected:
|
||||
bool m_commonDataSourceEnabled;
|
||||
|
||||
caf::PdmField<QString> m_plotWindowTitle;
|
||||
caf::PdmField<QString> m_nameTemplateText;
|
||||
|
||||
caf::PdmField<caf::AppEnum<RiaDefines::ObjectNamingMethod>> m_namingMethod;
|
||||
|
||||
// Depth axis
|
||||
caf::PdmField<caf::AppEnum<DepthTypeEnum>> m_depthType;
|
||||
|
||||
Reference in New Issue
Block a user