2018-09-05 11:04:42 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016 Statoil ASA
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2018-09-05 11:04:42 +02: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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2018-09-05 11:04:42 +02:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2018-09-05 11:04:42 +02:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-08-21 07:12:08 +02:00
|
|
|
#include "RifEclipseSummaryAddressDefines.h"
|
2022-01-06 15:18:09 +01:00
|
|
|
|
|
|
|
#include "cafPdmUiItem.h"
|
|
|
|
#include "cafPdmValueField.h"
|
2018-09-05 11:04:42 +02:00
|
|
|
|
2023-08-21 07:12:08 +02:00
|
|
|
class RifEclipseSummaryAddress;
|
|
|
|
|
2018-09-05 11:04:42 +02:00
|
|
|
//==================================================================================================
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2018-09-05 11:04:42 +02:00
|
|
|
//==================================================================================================
|
|
|
|
class RimDataSourceSteppingTools
|
|
|
|
{
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
static void modifyCurrentIndex( caf::PdmValueField* valueField,
|
|
|
|
const QList<caf::PdmOptionItemInfo>& options,
|
2022-05-04 13:11:04 +02:00
|
|
|
int indexOffset,
|
|
|
|
bool notifyChange = true );
|
2022-01-06 15:18:09 +01:00
|
|
|
|
2023-09-18 07:29:37 +00:00
|
|
|
static bool updateAddressIfMatching( const QVariant& oldValue,
|
|
|
|
const QVariant& newValue,
|
2023-09-18 09:28:29 +02:00
|
|
|
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
2023-09-18 07:29:37 +00:00
|
|
|
RifEclipseSummaryAddress* adr );
|
2022-01-06 15:18:09 +01:00
|
|
|
|
2023-02-26 10:48:40 +01:00
|
|
|
static bool updateHistoryAndSummaryQuantityIfMatching( const QVariant& oldValue, const QVariant& newValue, RifEclipseSummaryAddress* adr );
|
2022-05-03 11:30:09 +02:00
|
|
|
|
2023-02-26 10:48:40 +01:00
|
|
|
static bool updateQuantityIfMatching( const QVariant& oldValue, const QVariant& newValue, RifEclipseSummaryAddress* adr );
|
2018-09-05 11:04:42 +02:00
|
|
|
};
|