2013-09-02 01:39:29 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
|
|
|
//
|
|
|
|
// 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 "cafPdmObject.h"
|
|
|
|
#include "cafPdmField.h"
|
2017-02-24 06:32:25 -06:00
|
|
|
#include "cafPdmChildArrayField.h"
|
2013-09-02 01:39:29 -05:00
|
|
|
|
2017-02-24 06:32:25 -06:00
|
|
|
class RimOilFieldEntry;
|
2013-09-02 01:39:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
class RimOilRegionEntry : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RimOilRegionEntry();
|
2019-01-10 15:12:11 -06:00
|
|
|
~RimOilRegionEntry() override;
|
2013-09-02 01:39:29 -05:00
|
|
|
|
2019-01-10 15:12:11 -06:00
|
|
|
caf::PdmFieldHandle* userDescriptionField() override;
|
|
|
|
caf::PdmFieldHandle* objectToggleField() override;
|
2013-09-02 01:39:29 -05:00
|
|
|
|
2019-01-10 15:12:11 -06:00
|
|
|
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
2013-09-02 01:39:29 -05:00
|
|
|
|
2013-09-26 00:54:57 -05:00
|
|
|
void updateState();
|
|
|
|
|
2013-09-04 01:03:11 -05:00
|
|
|
caf::PdmField<QString> name;
|
|
|
|
caf::PdmField<bool> selected;
|
2015-07-29 07:41:36 -05:00
|
|
|
caf::PdmChildArrayField<RimOilFieldEntry*> fields;
|
2013-09-07 13:43:29 -05:00
|
|
|
|
2013-09-02 01:39:29 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|