mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix selection highlight in Report plot and make correlation plots deletable
This commit is contained in:
parent
60c13d6736
commit
0709056d30
@ -28,6 +28,7 @@ RimAbstractCorrelationPlot::RimAbstractCorrelationPlot()
|
|||||||
: m_selectMultipleVectors( false )
|
: m_selectMultipleVectors( false )
|
||||||
{
|
{
|
||||||
CAF_PDM_InitObject( "Abstract Correlation Plot", ":/CorrelationPlot16x16.png", "", "" );
|
CAF_PDM_InitObject( "Abstract Correlation Plot", ":/CorrelationPlot16x16.png", "", "" );
|
||||||
|
this->setDeletable( true );
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( &m_selectedVarsUiField, "SelectedVariableDisplayVar", "Vector", "", "", "" );
|
CAF_PDM_InitFieldNoDefault( &m_selectedVarsUiField, "SelectedVariableDisplayVar", "Vector", "", "", "" );
|
||||||
m_selectedVarsUiField.xmlCapability()->disableIO();
|
m_selectedVarsUiField.xmlCapability()->disableIO();
|
||||||
|
@ -48,6 +48,7 @@ CAF_PDM_SOURCE_INIT( RimCorrelationReportPlot, "CorrelationReportPlot" );
|
|||||||
RimCorrelationReportPlot::RimCorrelationReportPlot()
|
RimCorrelationReportPlot::RimCorrelationReportPlot()
|
||||||
{
|
{
|
||||||
CAF_PDM_InitObject( "Correlation Report Plot", ":/CorrelationPlot16x16.png", "", "" );
|
CAF_PDM_InitObject( "Correlation Report Plot", ":/CorrelationPlot16x16.png", "", "" );
|
||||||
|
this->setDeletable( true );
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( &m_plotWindowTitle, "PlotWindowTitle", "Title", "", "", "" );
|
CAF_PDM_InitFieldNoDefault( &m_plotWindowTitle, "PlotWindowTitle", "Title", "", "", "" );
|
||||||
m_plotWindowTitle.registerGetMethod( this, &RimCorrelationReportPlot::createPlotWindowTitle );
|
m_plotWindowTitle.registerGetMethod( this, &RimCorrelationReportPlot::createPlotWindowTitle );
|
||||||
@ -402,8 +403,4 @@ void RimCorrelationReportPlot::onDataSelection( const EnsembleParameter& param,
|
|||||||
m_parameterResultCrossPlot->setCurveDefinitions( {curveDef} );
|
m_parameterResultCrossPlot->setCurveDefinitions( {curveDef} );
|
||||||
m_parameterResultCrossPlot->setEnsembleParameter( param.name );
|
m_parameterResultCrossPlot->setEnsembleParameter( param.name );
|
||||||
m_parameterResultCrossPlot->loadDataAndUpdate();
|
m_parameterResultCrossPlot->loadDataAndUpdate();
|
||||||
if ( m_viewer )
|
|
||||||
{
|
|
||||||
m_viewer->scheduleUpdate();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user