2016-05-31 06:42:27 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016 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 "cafPdmField.h"
|
2017-09-22 02:21:12 -05:00
|
|
|
#include "cafPdmObject.h"
|
2016-05-31 06:42:27 -05:00
|
|
|
|
2017-09-22 01:23:50 -05:00
|
|
|
class RifSummaryReaderInterface;
|
2016-05-31 06:42:27 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
|
|
|
|
class RimSummaryCase : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
|
|
RimSummaryCase();
|
|
|
|
virtual ~RimSummaryCase();
|
|
|
|
|
2017-09-25 07:37:41 -05:00
|
|
|
virtual QString summaryHeaderFilename() const;
|
2017-04-04 05:14:13 -05:00
|
|
|
virtual QString caseName() = 0;
|
2016-08-05 04:05:58 -05:00
|
|
|
QString shortName() const;
|
2016-05-31 06:42:27 -05:00
|
|
|
|
2016-08-05 04:05:58 -05:00
|
|
|
void updateAutoShortName();
|
|
|
|
void updateOptionSensitivity();
|
2016-05-31 06:42:27 -05:00
|
|
|
|
2017-09-22 02:11:39 -05:00
|
|
|
virtual void createSummaryReaderInterface() = 0;
|
|
|
|
virtual RifSummaryReaderInterface* summaryReader() = 0;
|
2016-05-31 06:42:27 -05:00
|
|
|
|
2017-05-03 05:31:45 -05:00
|
|
|
virtual void updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath) = 0;
|
|
|
|
|
2017-09-25 07:37:41 -05:00
|
|
|
void setSummaryHeaderFileName(const QString& fileName);
|
|
|
|
|
2017-09-15 07:30:09 -05:00
|
|
|
bool isObservedData();
|
|
|
|
|
2016-07-06 06:35:24 -05:00
|
|
|
protected:
|
2017-10-03 15:07:07 -05:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
2016-08-05 04:05:58 -05:00
|
|
|
void updateTreeItemName();
|
|
|
|
|
2017-09-19 04:26:29 -05:00
|
|
|
caf::PdmField<QString> m_shortName;
|
|
|
|
caf::PdmField<bool> m_useAutoShortName;
|
|
|
|
caf::PdmField<QString> m_summaryHeaderFilename;
|
|
|
|
bool m_isObservedData;
|
2016-07-06 06:35:24 -05:00
|
|
|
|
|
|
|
private:
|
2016-08-05 04:05:58 -05:00
|
|
|
virtual void initAfterRead() override;
|
2016-05-31 06:42:27 -05:00
|
|
|
};
|