2017-10-12 07:32:21 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2017- Statoil ASA
|
|
|
|
|
//
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
2017-10-12 20:24:26 +02:00
|
|
|
#include <memory>
|
2017-10-12 07:32:21 +02:00
|
|
|
|
2017-10-12 20:24:26 +02:00
|
|
|
class RicSummaryCurveCalculatorEditor;
|
2017-11-13 21:40:26 +01:00
|
|
|
class RimSummaryCalculation;
|
2017-10-12 07:32:21 +02:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RicSummaryCurveCalculatorDialog : public QDialog
|
|
|
|
|
{
|
2017-11-14 07:30:49 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
2017-10-12 07:32:21 +02:00
|
|
|
public:
|
|
|
|
|
RicSummaryCurveCalculatorDialog(QWidget* parent);
|
2018-10-18 19:45:57 +02:00
|
|
|
~RicSummaryCurveCalculatorDialog() override;
|
2017-10-12 07:32:21 +02:00
|
|
|
|
2017-11-13 21:40:26 +01:00
|
|
|
void setCalculationAndUpdateUi(RimSummaryCalculation* calculation);
|
2017-11-08 08:43:14 +01:00
|
|
|
|
2017-11-14 07:30:49 +01:00
|
|
|
private slots:
|
|
|
|
|
void slotTryCloseDialog();
|
|
|
|
|
|
2017-11-14 08:41:44 +01:00
|
|
|
|
2017-10-12 07:32:21 +02:00
|
|
|
private:
|
|
|
|
|
void setUp();
|
2017-11-14 08:41:44 +01:00
|
|
|
size_t dirtyCount() const;
|
2017-10-12 07:32:21 +02:00
|
|
|
|
2017-10-12 20:24:26 +02:00
|
|
|
private:
|
2017-10-12 20:39:02 +02:00
|
|
|
std::unique_ptr<RicSummaryCurveCalculatorEditor> m_summaryCalcEditor;
|
2017-10-12 07:32:21 +02:00
|
|
|
};
|