mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor view id
This commit is contained in:
@@ -24,7 +24,9 @@
|
||||
#include "cafPdmFieldHandle.h"
|
||||
#include "cafPdmObject.h"
|
||||
|
||||
class RimProject;
|
||||
class QwtPlotCurve;
|
||||
|
||||
class QKeyEvent;
|
||||
|
||||
class RimPlotWindow : public RimViewWindow
|
||||
@@ -35,6 +37,8 @@ public:
|
||||
RimPlotWindow();
|
||||
~RimPlotWindow() override;
|
||||
|
||||
int id() const final;
|
||||
|
||||
RimPlotWindow& operator=( RimPlotWindow&& rhs );
|
||||
|
||||
virtual QString description() const = 0;
|
||||
@@ -62,7 +66,14 @@ protected:
|
||||
private:
|
||||
virtual void performLayoutUpdate() {}
|
||||
|
||||
private:
|
||||
friend class RimProject;
|
||||
void setId( int id );
|
||||
|
||||
void assignIdIfNecessary() final;
|
||||
|
||||
protected:
|
||||
caf::PdmField<int> m_id;
|
||||
caf::PdmField<bool> m_showPlotLegends;
|
||||
caf::PdmField<bool> m_plotLegendsHorizontal;
|
||||
caf::PdmField<int> m_legendFontSize;
|
||||
|
||||
Reference in New Issue
Block a user