mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2093 Cross Plot : Add push button to select curve address
This commit is contained in:
@@ -69,6 +69,27 @@ RiuSummaryCurveDefSelectionDialog::~RiuSummaryCurveDefSelectionDialog()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuSummaryCurveDefSelectionDialog::setCaseAndAddress(RimSummaryCase* summaryCase, const RifEclipseSummaryAddress& address)
|
||||
{
|
||||
std::vector<RiaSummaryCurveDefinition> sumCasePairs;
|
||||
sumCasePairs.push_back(RiaSummaryCurveDefinition(summaryCase, address));
|
||||
|
||||
summaryAddressSelection()->setSelectedCurveDefinitions(sumCasePairs);
|
||||
summaryAddressSelection()->updateConnectedEditors();
|
||||
updateLabel();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RiaSummaryCurveDefinition> RiuSummaryCurveDefSelectionDialog::curveSelection() const
|
||||
{
|
||||
return summaryAddressSelection()->selectedCurveDefinitions();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -18,13 +18,16 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RiaSummaryCurveDefinition.h"
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include <memory>
|
||||
|
||||
class QLabel;
|
||||
|
||||
class RiuSummaryCurveDefSelectionEditor;
|
||||
class RiuSummaryCurveDefSelection;
|
||||
class RiuSummaryCurveDefSelectionEditor;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
@@ -36,9 +39,12 @@ public:
|
||||
RiuSummaryCurveDefSelectionDialog(QWidget* parent);
|
||||
~RiuSummaryCurveDefSelectionDialog();
|
||||
|
||||
RiuSummaryCurveDefSelection* summaryAddressSelection() const;
|
||||
void setCaseAndAddress(RimSummaryCase* summaryCase, const RifEclipseSummaryAddress& address);
|
||||
std::vector<RiaSummaryCurveDefinition> curveSelection() const;
|
||||
|
||||
void updateLabel();
|
||||
private:
|
||||
RiuSummaryCurveDefSelection* summaryAddressSelection() const;
|
||||
void updateLabel();
|
||||
|
||||
private:
|
||||
std::unique_ptr<RiuSummaryCurveDefSelectionEditor> m_addrSelWidget;
|
||||
|
||||
Reference in New Issue
Block a user