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