mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#449) Added toggle on dependent views and removed toggle from master
This commit is contained in:
@@ -39,6 +39,7 @@ public:
|
||||
RimViewLink(void);
|
||||
virtual ~RimViewLink(void);
|
||||
|
||||
caf::PdmField<bool> isActive;
|
||||
caf::PdmField<QString> name;
|
||||
|
||||
RimView* managedView();
|
||||
@@ -58,6 +59,10 @@ public:
|
||||
void updateOptionSensitivity();
|
||||
void removeOverrides();
|
||||
|
||||
void updateUiIcon();
|
||||
void updateDisplayNameAndIcon();
|
||||
|
||||
|
||||
protected:
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
||||
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly);
|
||||
@@ -65,14 +70,15 @@ protected:
|
||||
virtual void initAfterRead();
|
||||
virtual caf::PdmFieldHandle* userDescriptionField() { return &name; }
|
||||
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering);
|
||||
virtual caf::PdmFieldHandle* objectToggleField() { return &isActive; }
|
||||
|
||||
|
||||
private:
|
||||
void configureOverridesUpdateDisplayModel();
|
||||
void updateDisplayNameAndIcon();
|
||||
|
||||
RimEclipseView* managedEclipseView();
|
||||
RimGeoMechView* managedGeoView();
|
||||
|
||||
caf::PdmPtrField<RimView*> m_managedView;
|
||||
QIcon m_originalIcon;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user