mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Major modularization adjustments
Use uiField() when issuing setUi....() commands Use PdmChildArrayField instead of PdmPointersFielc Use PdmChildField instead of PdmField to pdm pointer objects Use PdmChildArrayField instead of PdmField< std::list< caf::PdmPointer< type > > > Use PdmObjectHandle instead of PdmObject Replaced parentFields(std::vector) with parentField() Use PdmUiPropertyViewDialog instead of PdmUiPropertyDialog
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
#include "RimLegendConfig.h"
|
||||
#include "RimEclipseResultDefinition.h"
|
||||
|
||||
#include "cafPdmChildArrayField.h"
|
||||
#include "cafPdmChildField.h"
|
||||
|
||||
class RimTernaryLegendConfig;
|
||||
|
||||
//==================================================================================================
|
||||
@@ -38,8 +41,8 @@ public:
|
||||
virtual ~RimEclipseCellColors();
|
||||
|
||||
virtual void setReservoirView(RimEclipseView* ownerReservoirView);
|
||||
caf::PdmField<RimLegendConfig*> legendConfig;
|
||||
caf::PdmField<RimTernaryLegendConfig*> ternaryLegendConfig;
|
||||
caf::PdmChildField<RimLegendConfig*> legendConfig;
|
||||
caf::PdmChildField<RimTernaryLegendConfig*> ternaryLegendConfig;
|
||||
|
||||
// Overridden methods
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
||||
@@ -52,6 +55,9 @@ protected:
|
||||
private:
|
||||
void changeLegendConfig(QString resultVarNameOfNewLegend);
|
||||
|
||||
caf::PdmField<std::list<caf::PdmPointer<RimLegendConfig> > > m_legendConfigData;
|
||||
// MODTODO
|
||||
// Possibly replace with PdmChildArrayField
|
||||
//caf::PdmField<std::list<caf::PdmPointer<RimLegendConfig> > > m_legendConfigData;
|
||||
caf::PdmChildArrayField<RimLegendConfig*> m_legendConfigData;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user