2017-05-16 02:43:41 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017- 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
|
|
|
|
|
2017-05-30 07:37:51 -05:00
|
|
|
#include "RicCaseAndFileExportSettingsUi.h"
|
2017-05-16 02:43:41 -05:00
|
|
|
|
|
|
|
#include "cafPdmField.h"
|
2017-06-14 08:30:50 -05:00
|
|
|
#include "cafAppEnum.h"
|
2017-05-16 02:43:41 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2017-05-30 07:37:51 -05:00
|
|
|
class RicExportCompletionDataSettingsUi : public RicCaseAndFileExportSettingsUi
|
2017-05-16 02:43:41 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
2017-06-14 08:30:50 -05:00
|
|
|
enum ExportSplit {
|
|
|
|
UNIFIED_FILE,
|
|
|
|
SPLIT_ON_WELL,
|
|
|
|
SPLIT_ON_WELL_AND_COMPLETION_TYPE,
|
|
|
|
};
|
|
|
|
typedef caf::AppEnum<ExportSplit> ExportSplitType;
|
|
|
|
|
2017-06-15 04:37:00 -05:00
|
|
|
enum WellSelection {
|
|
|
|
ALL_WELLS,
|
|
|
|
CHECKED_WELLS,
|
|
|
|
};
|
|
|
|
typedef caf::AppEnum<WellSelection> WellSelectionType;
|
|
|
|
|
2017-06-21 03:58:02 -05:00
|
|
|
enum CompdatExport {
|
|
|
|
TRANSMISSIBILITIES,
|
|
|
|
WPIMULT_AND_DEFAULT_CONNECTION_FACTORS,
|
|
|
|
};
|
|
|
|
typedef caf::AppEnum<CompdatExport> CompdatExportType;
|
|
|
|
|
2017-06-14 08:30:50 -05:00
|
|
|
|
2017-05-30 07:37:51 -05:00
|
|
|
RicExportCompletionDataSettingsUi();
|
2017-05-16 02:43:41 -05:00
|
|
|
|
2017-05-29 06:13:25 -05:00
|
|
|
|
2017-06-14 08:30:50 -05:00
|
|
|
caf::PdmField<ExportSplitType> fileSplit;
|
2017-06-15 04:37:00 -05:00
|
|
|
caf::PdmField<WellSelectionType> wellSelection;
|
2017-06-21 03:58:02 -05:00
|
|
|
caf::PdmField<CompdatExportType> compdatExport;
|
|
|
|
|
2017-06-14 08:30:50 -05:00
|
|
|
|
2017-05-29 06:13:25 -05:00
|
|
|
caf::PdmField<bool> includePerforations;
|
|
|
|
caf::PdmField<bool> includeFishbones;
|
|
|
|
|
2017-05-16 08:17:19 -05:00
|
|
|
caf::PdmField<bool> removeLateralsInMainBoreCells;
|
2017-05-30 08:42:05 -05:00
|
|
|
|
|
|
|
caf::PdmField<int> timeStep;
|
|
|
|
|
2017-06-21 03:58:02 -05:00
|
|
|
|
|
|
|
|
2017-05-30 08:42:05 -05:00
|
|
|
protected:
|
|
|
|
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly) override;
|
2017-06-21 03:58:02 -05:00
|
|
|
|
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
|
|
|
|
2017-05-16 02:43:41 -05:00
|
|
|
};
|