2017-08-29 07:29:45 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017- Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-08-29 07:29:45 -05: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 03:40:57 -05:00
|
|
|
//
|
2017-08-29 07:29:45 -05: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 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-08-29 07:29:45 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafAppEnum.h"
|
|
|
|
#include "cafPdmChildArrayField.h"
|
2017-08-29 07:29:45 -05:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2017-08-29 07:29:45 -05:00
|
|
|
//==================================================================================================
|
|
|
|
class RicSaveEclipseInputVisibleCellsUi : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2017-08-29 07:29:45 -05:00
|
|
|
public:
|
|
|
|
enum ExportKeyword
|
|
|
|
{
|
|
|
|
FLUXNUM,
|
|
|
|
MULTNUM,
|
2021-04-23 01:25:51 -05:00
|
|
|
ACTNUM,
|
2017-08-29 07:29:45 -05:00
|
|
|
};
|
|
|
|
|
2021-04-23 01:25:51 -05:00
|
|
|
using ExportKeywordEnum = caf::AppEnum<ExportKeyword>;
|
2017-08-29 07:29:45 -05:00
|
|
|
|
|
|
|
public:
|
2021-04-23 01:25:51 -05:00
|
|
|
RicSaveEclipseInputVisibleCellsUi();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RicSaveEclipseInputVisibleCellsUi() override;
|
2017-08-29 07:29:45 -05:00
|
|
|
|
|
|
|
caf::PdmField<QString> exportFilename;
|
|
|
|
caf::PdmField<ExportKeywordEnum> exportKeyword;
|
|
|
|
caf::PdmField<int> visibleActiveCellsValue;
|
|
|
|
caf::PdmField<int> hiddenActiveCellsValue;
|
|
|
|
caf::PdmField<int> inactiveCellsValue;
|
2023-02-20 01:18:08 -06:00
|
|
|
caf::PdmField<bool> writeEchoInGrdeclFiles;
|
2017-08-29 07:29:45 -05:00
|
|
|
|
|
|
|
protected:
|
2023-02-26 03:48:40 -06:00
|
|
|
void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
|
2019-09-06 03:40:57 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2017-08-29 07:29:45 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
QString getDefaultExportPath() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool exportFilenameManuallyChanged;
|
|
|
|
};
|