ResInsight/ApplicationLibCode/ProjectDataModel/RimDialogData.h
2021-09-09 14:07:48 +02:00

81 lines
3.4 KiB
C++

/////////////////////////////////////////////////////////////////////////////////
//
// 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
#include "cafPdmChildField.h"
#include "cafPdmObject.h"
class RicExportCarfinUi;
class RicExportCompletionDataSettingsUi;
class RicExportEclipseSectorModelUi;
class RiuCreateMultipleFractionsUi;
class RicHoloLensExportToFolderUi;
class RicExportWellPathsUi;
class RicExportLgrUi;
class RimMockModelSettings;
class RicCreateEnsembleSurfaceUi;
class RicCreateEnsembleWellLogUi;
//==================================================================================================
///
/// This class is used as a container for UI specific data that is not part of the project tree view
/// Example of use is to store export settings for complex export dialogs or settings for advanced
/// creation of multiple objects
///
/// The data in this object will be stored in the project file, as RimDialogData is a child object of
/// RimProject
///
//==================================================================================================
class RimDialogData : public caf::PdmObject
{
CAF_PDM_HEADER_INIT;
public:
RimDialogData();
void clearProjectSpecificData();
RicExportCarfinUi* exportCarfin() const;
QString exportCarfinDataAsString() const;
void setExportCarfinDataFromString( const QString& data );
RicExportCompletionDataSettingsUi* exportCompletionData() const;
RiuCreateMultipleFractionsUi* multipleFractionsData() const;
RicHoloLensExportToFolderUi* holoLensExportToFolderData() const;
RicExportWellPathsUi* wellPathsExportData() const;
RicExportLgrUi* exportLgrData() const;
RicExportEclipseSectorModelUi* exportSectorModelUi() const;
RimMockModelSettings* mockModelSettings() const;
RicCreateEnsembleSurfaceUi* createEnsembleSurfaceUi() const;
RicCreateEnsembleWellLogUi* createEnsembleWellLogUi() const;
private:
caf::PdmChildField<RicExportCarfinUi*> m_exportCarfin;
caf::PdmChildField<RicExportCompletionDataSettingsUi*> m_exportCompletionData;
caf::PdmChildField<RiuCreateMultipleFractionsUi*> m_multipleFractionsData;
caf::PdmChildField<RicHoloLensExportToFolderUi*> m_holoLenseExportToFolderData;
caf::PdmChildField<RicExportWellPathsUi*> m_exportWellPathsData;
caf::PdmChildField<RicExportLgrUi*> m_exportLgrData;
caf::PdmChildField<RicExportEclipseSectorModelUi*> m_exportSectorModelData;
caf::PdmChildField<RimMockModelSettings*> m_mockModelSettings;
caf::PdmChildField<RicCreateEnsembleSurfaceUi*> m_createEnsembleSurfaceUi;
caf::PdmChildField<RicCreateEnsembleWellLogUi*> m_createEnsembleWellLogUi;
};