2017-09-15 03:48:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2017-10-11 12:48:35 -05:00
|
|
|
// Copyright (C) 2017- Statoil ASA
|
2017-09-15 03:48:38 -05:00
|
|
|
//
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-11-15 08:20:47 -06:00
|
|
|
#include "RiaSummaryCurveDefinition.h"
|
|
|
|
|
2017-10-11 12:48:35 -05:00
|
|
|
#include <QDialog>
|
2017-11-15 08:20:47 -06:00
|
|
|
|
2017-10-12 14:07:31 -05:00
|
|
|
#include <memory>
|
2017-09-15 03:48:38 -05:00
|
|
|
|
2017-10-24 02:44:50 -05:00
|
|
|
class QLabel;
|
|
|
|
|
2017-10-11 12:48:35 -05:00
|
|
|
class RiuSummaryCurveDefSelection;
|
2017-11-15 08:20:47 -06:00
|
|
|
class RiuSummaryCurveDefSelectionEditor;
|
2017-09-15 03:48:38 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2017-10-11 12:48:35 -05:00
|
|
|
class RiuSummaryCurveDefSelectionDialog : public QDialog
|
2017-09-15 03:48:38 -05:00
|
|
|
{
|
|
|
|
public:
|
2017-10-11 12:48:35 -05:00
|
|
|
RiuSummaryCurveDefSelectionDialog(QWidget* parent);
|
2018-10-18 12:45:57 -05:00
|
|
|
~RiuSummaryCurveDefSelectionDialog() override;
|
2017-10-11 12:48:35 -05:00
|
|
|
|
2017-11-15 08:20:47 -06:00
|
|
|
void setCaseAndAddress(RimSummaryCase* summaryCase, const RifEclipseSummaryAddress& address);
|
2018-05-11 06:24:46 -05:00
|
|
|
void setEnsembleAndAddress(RimSummaryCaseCollection* ensemble, const RifEclipseSummaryAddress& address);
|
2017-11-15 08:20:47 -06:00
|
|
|
std::vector<RiaSummaryCurveDefinition> curveSelection() const;
|
2017-10-11 12:48:35 -05:00
|
|
|
|
2018-05-11 06:24:46 -05:00
|
|
|
void hideEnsembles();
|
|
|
|
void hideSummaryCases();
|
|
|
|
|
2017-11-15 08:20:47 -06:00
|
|
|
private:
|
|
|
|
RiuSummaryCurveDefSelection* summaryAddressSelection() const;
|
|
|
|
void updateLabel();
|
2017-10-24 02:44:50 -05:00
|
|
|
|
2017-10-11 12:48:35 -05:00
|
|
|
private:
|
2017-10-12 14:07:31 -05:00
|
|
|
std::unique_ptr<RiuSummaryCurveDefSelectionEditor> m_addrSelWidget;
|
2017-10-24 02:44:50 -05:00
|
|
|
|
|
|
|
QLabel* m_label;
|
2017-09-15 03:48:38 -05:00
|
|
|
};
|