2018-11-09 03:12:33 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2018- Equinor 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 "RimNameConfig.h"
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2018-12-11 08:35:04 -06:00
|
|
|
class RimViewNameConfig : public RimNameConfig
|
2018-11-09 03:12:33 -06:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2019-09-06 03:59:04 -05:00
|
|
|
explicit RimViewNameConfig();
|
2018-11-09 03:12:33 -06:00
|
|
|
|
2019-09-06 06:17:36 -05:00
|
|
|
void setAddCaseName( bool add );
|
|
|
|
bool addCaseName() const;
|
|
|
|
void setAddAggregationType( bool add );
|
|
|
|
bool addAggregationType() const;
|
|
|
|
void setAddProperty( bool add );
|
|
|
|
bool addProperty() const;
|
|
|
|
void setAddSampleSpacing( bool add );
|
|
|
|
bool addSampleSpacing() const;
|
|
|
|
|
|
|
|
void hideCaseNameField( bool hide );
|
|
|
|
void hideAggregationTypeField( bool hide );
|
|
|
|
void hidePropertyField( bool hide );
|
|
|
|
void hideSampleSpacingField( bool hide );
|
2018-12-14 06:41:35 -06:00
|
|
|
|
2018-11-09 03:39:23 -06:00
|
|
|
protected:
|
2019-09-06 06:17:36 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
2018-11-09 03:39:23 -06:00
|
|
|
|
2019-11-25 05:38:00 -06:00
|
|
|
private:
|
|
|
|
void doEnableAllAutoNameTags( bool enable ) override;
|
|
|
|
|
2018-11-09 03:12:33 -06:00
|
|
|
private:
|
2019-09-06 06:17:36 -05:00
|
|
|
caf::PdmField<bool> m_addCaseName;
|
|
|
|
caf::PdmField<bool> m_addAggregationType;
|
|
|
|
caf::PdmField<bool> m_addProperty;
|
|
|
|
caf::PdmField<bool> m_addSampleSpacing;
|
|
|
|
|
|
|
|
bool m_hideCaseNameField;
|
|
|
|
bool m_hideAggregationTypeField;
|
|
|
|
bool m_hidePropertyField;
|
|
|
|
bool m_hideSampleSpacingField;
|
2018-11-09 03:12:33 -06:00
|
|
|
};
|