2017-05-29 15:39:37 +02: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.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2017-05-30 14:37:51 +02:00
|
|
|
#include "RicExportWellSegmentsSettingsUi.h"
|
2017-05-29 15:39:37 +02:00
|
|
|
|
|
|
|
|
namespace caf {
|
|
|
|
|
template<>
|
2017-05-30 14:37:51 +02:00
|
|
|
void RicExportWellSegmentsSettingsUi::PressureDropEnum::setUp()
|
2017-05-29 15:39:37 +02:00
|
|
|
{
|
2017-05-30 14:37:51 +02:00
|
|
|
addItem(RicExportWellSegmentsSettingsUi::HYDROSTATIC, "H--", "Hydrostatic");
|
|
|
|
|
addItem(RicExportWellSegmentsSettingsUi::HYDROSTATIC_FRICTION, "HF-", "Hydrostatic + Friction");
|
|
|
|
|
addItem(RicExportWellSegmentsSettingsUi::HYDROSTATIC_FRICTION_ACCELERATION, "HFA", "Hydrostatic + Friction + Acceleration");
|
|
|
|
|
setDefault(RicExportWellSegmentsSettingsUi::HYDROSTATIC);
|
2017-05-29 15:39:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<>
|
2017-05-30 14:37:51 +02:00
|
|
|
void RicExportWellSegmentsSettingsUi::LengthAndDepthEnum::setUp()
|
2017-05-29 15:39:37 +02:00
|
|
|
{
|
2017-05-30 14:37:51 +02:00
|
|
|
addItem(RicExportWellSegmentsSettingsUi::INC, "INC", "Incremental");
|
|
|
|
|
addItem(RicExportWellSegmentsSettingsUi::ABS, "ABS", "Absolute");
|
|
|
|
|
setDefault(RicExportWellSegmentsSettingsUi::INC);
|
2017-05-29 15:39:37 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-30 14:37:51 +02:00
|
|
|
CAF_PDM_SOURCE_INIT(RicExportWellSegmentsSettingsUi, "RicExportWellSegmentsSettingsUi");
|
2017-05-29 15:39:37 +02:00
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-05-30 14:37:51 +02:00
|
|
|
RicExportWellSegmentsSettingsUi::RicExportWellSegmentsSettingsUi()
|
2017-05-29 15:39:37 +02:00
|
|
|
{
|
|
|
|
|
CAF_PDM_InitObject("RimExportWellSegmentsSettings", "", "", "");
|
|
|
|
|
|
|
|
|
|
CAF_PDM_InitFieldNoDefault(&pressureDrop, "PressureDrop", "Pressure Drop", "", "", "");
|
|
|
|
|
CAF_PDM_InitFieldNoDefault(&lengthAndDepth, "LengthAndDepth", "Length and Depth", "", "", "");
|
|
|
|
|
}
|