2012-05-18 02:45:23 -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
|
|
|
|
|
2015-06-25 06:05:28 -05:00
|
|
|
#include "RimEclipsePropertyFilter.h"
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2015-07-31 11:58:23 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2015-06-25 04:48:24 -05:00
|
|
|
class RimEclipsePropertyFilterCollection : public caf::PdmObject
|
2012-05-18 02:45:23 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
2015-06-25 04:48:24 -05:00
|
|
|
RimEclipsePropertyFilterCollection();
|
|
|
|
virtual ~RimEclipsePropertyFilterCollection();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
// Fields:
|
2015-09-23 07:35:35 -05:00
|
|
|
caf::PdmField<bool> isActive;
|
2015-07-31 11:58:23 -05:00
|
|
|
caf::PdmChildArrayField<RimEclipsePropertyFilter*> propertyFilters;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
// Methods
|
2013-04-25 03:57:52 -05:00
|
|
|
bool hasActiveFilters() const;
|
|
|
|
bool hasActiveDynamicFilters() const;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2015-08-27 08:16:47 -05:00
|
|
|
RimEclipseView* reservoirView();
|
2013-04-25 03:57:52 -05:00
|
|
|
|
|
|
|
void loadAndInitializePropertyFilters();
|
|
|
|
|
2015-08-27 15:54:37 -05:00
|
|
|
void updateDisplayModelNotifyManagedViews();
|
2015-09-23 07:35:35 -05:00
|
|
|
void updateIconState();
|
2015-08-27 08:45:22 -05:00
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
// Overridden methods
|
2013-04-25 03:57:52 -05:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
|
|
|
virtual caf::PdmFieldHandle* objectToggleField();
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// Overridden methods
|
|
|
|
virtual void initAfterRead();
|
|
|
|
};
|