mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Summary multiplot improvements (#8598)
* Create multi summary plot from summary plot(s) * Rearrange multi summary plot properties * Enable source stepping toolbar for multi summary plot * Automatically activate new summary plot when creating from data sources -> data vector tree * Enable global key controls for switching data in summary and multi summary plots * Update tooltip texts for summary plot toolbar
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "RimSummaryDataSourceStepping.h"
|
||||
#include "RimSummaryMultiPlot.h"
|
||||
#include "RimSummaryPlot.h"
|
||||
#include "RimSummaryPlotControls.h"
|
||||
|
||||
#include "RiuPlotMainWindow.h"
|
||||
|
||||
@@ -976,25 +977,29 @@ void RimSummaryPlotSourceStepping::defineEditorAttribute( const caf::PdmFieldHan
|
||||
myAttr->nextIcon = QIcon( ":/ComboBoxDown.svg" );
|
||||
myAttr->previousIcon = QIcon( ":/ComboBoxUp.svg" );
|
||||
|
||||
QString modifierText;
|
||||
QString nextText;
|
||||
QString prevText;
|
||||
|
||||
if ( field == &m_summaryCase )
|
||||
{
|
||||
modifierText = ( "(Shift+" );
|
||||
nextText = RimSummaryPlotControls::caseNextKeyText();
|
||||
prevText = RimSummaryPlotControls::casePrevKeyText();
|
||||
}
|
||||
else if ( field == &m_wellName || field == &m_wellGroupName || field == &m_region )
|
||||
{
|
||||
modifierText = ( "(Ctrl+" );
|
||||
nextText = RimSummaryPlotControls::otherNextKeyText();
|
||||
prevText = RimSummaryPlotControls::otherPrevKeyText();
|
||||
}
|
||||
else if ( field == &m_quantity )
|
||||
{
|
||||
modifierText = ( "(" );
|
||||
nextText = RimSummaryPlotControls::quantityNextKeyText();
|
||||
prevText = RimSummaryPlotControls::quantityPrevKeyText();
|
||||
}
|
||||
|
||||
if ( !modifierText.isEmpty() )
|
||||
if ( !nextText.isEmpty() )
|
||||
{
|
||||
myAttr->nextButtonText = "Next " + modifierText + "PgDown)";
|
||||
myAttr->prevButtonText = "Previous " + modifierText + "PgUp)";
|
||||
myAttr->nextButtonText = "Next (" + nextText + ")";
|
||||
myAttr->prevButtonText = "Previous (" + prevText + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user