2021-09-06 02:32:24 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2021- 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 "RiaDefines.h"
|
|
|
|
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
2021-09-21 08:33:18 -05:00
|
|
|
#include "cafPdmPtrField.h"
|
2021-09-06 02:32:24 -05:00
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
class RigEclipseCaseData;
|
2021-09-21 08:33:18 -05:00
|
|
|
class RimWellPath;
|
2021-09-06 02:32:24 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RicCreateEnsembleWellLogUi : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2021-09-21 08:33:18 -05:00
|
|
|
enum class WellPathSource
|
|
|
|
{
|
|
|
|
FILE,
|
|
|
|
PROJECT_WELLS
|
|
|
|
};
|
|
|
|
|
2021-09-06 02:32:24 -05:00
|
|
|
RicCreateEnsembleWellLogUi();
|
|
|
|
~RicCreateEnsembleWellLogUi() override;
|
|
|
|
const QStringList& tabNames() const;
|
|
|
|
|
|
|
|
bool autoCreateEnsembleWellLogs() const;
|
|
|
|
|
2021-09-21 08:33:18 -05:00
|
|
|
int timeStep() const;
|
|
|
|
QString wellPathFilePath() const;
|
|
|
|
|
|
|
|
WellPathSource wellPathSource() const;
|
|
|
|
void setWellPathSource( WellPathSource wellPathSource );
|
|
|
|
|
|
|
|
void setWellPathFromProject( RimWellPath* wellPath );
|
|
|
|
RimWellPath* wellPathFromProject() const;
|
|
|
|
|
2021-09-06 02:32:24 -05:00
|
|
|
std::vector<std::pair<QString, RiaDefines::ResultCatType>> properties() const;
|
|
|
|
|
2023-04-13 00:05:53 -05:00
|
|
|
static std::vector<std::pair<QString, RiaDefines::ResultCatType>> properties( const std::vector<QString>& resultNames,
|
2023-02-26 03:48:40 -06:00
|
|
|
const std::vector<RiaDefines::ResultCatType>& resultCategories,
|
2023-04-13 00:05:53 -05:00
|
|
|
const RigEclipseCaseData* caseData );
|
2022-08-25 05:51:56 -05:00
|
|
|
|
2021-09-06 02:32:24 -05:00
|
|
|
void setCaseData( RigEclipseCaseData* caseData );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
|
2022-05-29 06:01:27 -05:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
|
2023-02-26 03:48:40 -06:00
|
|
|
void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
|
2021-09-06 02:32:24 -05:00
|
|
|
|
|
|
|
std::vector<RiaDefines::ResultCatType> validResultCategories() const;
|
|
|
|
|
|
|
|
private:
|
2021-09-24 05:21:16 -05:00
|
|
|
caf::PdmField<caf::FilePath> m_wellFilePath;
|
2021-09-21 08:33:18 -05:00
|
|
|
caf::PdmField<caf::AppEnum<WellPathSource>> m_wellPathSource;
|
|
|
|
caf::PdmPtrField<RimWellPath*> m_wellPath;
|
|
|
|
caf::PdmField<bool> m_autoCreateEnsembleWellLogs;
|
2021-09-06 02:32:24 -05:00
|
|
|
|
|
|
|
caf::PdmField<std::vector<QString>> m_selectedKeywords;
|
|
|
|
caf::PdmField<int> m_timeStep;
|
|
|
|
|
|
|
|
QStringList m_tabNames;
|
|
|
|
RigEclipseCaseData* m_caseData;
|
|
|
|
};
|