mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove drag/drop of individual summary curves
Drag/drop of individual curves is unstable. Remove drag/drop, as arrow buttons can be used to change ordering of curves.
This commit is contained in:
@@ -420,45 +420,6 @@ void RimSummaryPlot::onAxisSelected( RiuPlotAxis axis, bool toggle )
|
||||
RiuPlotMainWindowTools::selectOrToggleObject( itemToSelect, toggle );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::moveCurvesToPlot( RimSummaryPlot* plot, const std::vector<RimSummaryCurve*> curves, int insertAtPosition )
|
||||
{
|
||||
CAF_ASSERT( plot );
|
||||
|
||||
std::set<RimSummaryPlot*> srcPlots;
|
||||
|
||||
for ( auto curve : curves )
|
||||
{
|
||||
auto srcPlot = curve->firstAncestorOrThisOfTypeAsserted<RimSummaryPlot>();
|
||||
|
||||
srcPlot->removeCurve( curve );
|
||||
srcPlots.insert( srcPlot );
|
||||
}
|
||||
|
||||
for ( auto srcPlot : srcPlots )
|
||||
{
|
||||
srcPlot->updateConnectedEditors();
|
||||
srcPlot->loadDataAndUpdate();
|
||||
}
|
||||
for ( size_t cIdx = 0; cIdx < curves.size(); ++cIdx )
|
||||
{
|
||||
if ( insertAtPosition >= 0 )
|
||||
{
|
||||
size_t position = (size_t)insertAtPosition + cIdx;
|
||||
plot->insertCurve( curves[cIdx], position );
|
||||
}
|
||||
else
|
||||
{
|
||||
plot->addCurveNoUpdate( curves[cIdx] );
|
||||
}
|
||||
}
|
||||
|
||||
plot->updateConnectedEditors();
|
||||
plot->updateStackedCurveData();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -197,8 +197,6 @@ public:
|
||||
return 8;
|
||||
}
|
||||
|
||||
static void moveCurvesToPlot( RimSummaryPlot* plot, const std::vector<RimSummaryCurve*> curves, int insertAtPosition );
|
||||
|
||||
std::vector<RimSummaryCurve*> curvesForStepping() const override;
|
||||
std::vector<RimEnsembleCurveSet*> curveSets() const override;
|
||||
std::vector<RimSummaryCurve*> allCurves() const override;
|
||||
|
||||
Reference in New Issue
Block a user