Fix selection highlight in Report plot and make correlation plots deletable

This commit is contained in:
Gaute Lindkvist 2020-06-04 12:47:11 +02:00
parent 60c13d6736
commit 0709056d30
2 changed files with 2 additions and 4 deletions
ApplicationCode/ProjectDataModel/CorrelationPlots

View File

@ -28,6 +28,7 @@ RimAbstractCorrelationPlot::RimAbstractCorrelationPlot()
: m_selectMultipleVectors( false )
{
CAF_PDM_InitObject( "Abstract Correlation Plot", ":/CorrelationPlot16x16.png", "", "" );
this->setDeletable( true );
CAF_PDM_InitFieldNoDefault( &m_selectedVarsUiField, "SelectedVariableDisplayVar", "Vector", "", "", "" );
m_selectedVarsUiField.xmlCapability()->disableIO();

View File

@ -48,6 +48,7 @@ CAF_PDM_SOURCE_INIT( RimCorrelationReportPlot, "CorrelationReportPlot" );
RimCorrelationReportPlot::RimCorrelationReportPlot()
{
CAF_PDM_InitObject( "Correlation Report Plot", ":/CorrelationPlot16x16.png", "", "" );
this->setDeletable( true );
CAF_PDM_InitFieldNoDefault( &m_plotWindowTitle, "PlotWindowTitle", "Title", "", "", "" );
m_plotWindowTitle.registerGetMethod( this, &RimCorrelationReportPlot::createPlotWindowTitle );
@ -402,8 +403,4 @@ void RimCorrelationReportPlot::onDataSelection( const EnsembleParameter& param,
m_parameterResultCrossPlot->setCurveDefinitions( {curveDef} );
m_parameterResultCrossPlot->setEnsembleParameter( param.name );
m_parameterResultCrossPlot->loadDataAndUpdate();
if ( m_viewer )
{
m_viewer->scheduleUpdate();
}
}