mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
75 lines
2.6 KiB
C++
75 lines
2.6 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2024 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 "RimNamedObject.h"
|
|
|
|
#include "Cloud/RiaSumoConnector.h"
|
|
|
|
#include "cafPdmProxyValueField.h"
|
|
|
|
//==================================================================================================
|
|
//
|
|
//
|
|
//
|
|
//==================================================================================================
|
|
|
|
class RimSummarySumoDataSource : public RimNamedObject
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
RimSummarySumoDataSource();
|
|
|
|
SumoCaseId caseId() const;
|
|
void setCaseId( const SumoCaseId& caseId );
|
|
|
|
QString caseName() const;
|
|
void setCaseName( const QString& caseName );
|
|
|
|
QString ensembleName() const;
|
|
void setEnsembleName( const QString& ensembleName );
|
|
|
|
std::vector<QString> realizationIds() const;
|
|
void setRealizationIds( const std::vector<QString>& realizationIds );
|
|
|
|
std::vector<QString> vectorNames() const;
|
|
void setVectorNames( const std::vector<QString>& vectorNames );
|
|
|
|
void updateName();
|
|
|
|
private:
|
|
void appendMenuItems( caf::CmdFeatureMenuBuilder& menuBuilder ) const override;
|
|
void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
|
|
|
QString realizationInfoText() const;
|
|
|
|
private:
|
|
caf::PdmField<QString> m_caseId;
|
|
caf::PdmField<QString> m_caseName;
|
|
caf::PdmField<QString> m_ensembleName;
|
|
caf::PdmField<QString> m_customName;
|
|
|
|
caf::PdmProxyValueField<QString> m_realizationInfo;
|
|
caf::PdmField<std::vector<QString>> m_realizationIds;
|
|
|
|
caf::PdmField<std::vector<QString>> m_vectorNames;
|
|
};
|