#2727 Legends : Add RimLegendConfig as base for Regular and Ternary

This commit is contained in:
Magne Sjaastad
2018-04-18 10:32:51 +02:00
parent 3bc85ce794
commit 71b7bd21f9
15 changed files with 215 additions and 51 deletions

View File

@@ -19,13 +19,13 @@
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "RimLegendConfig.h"
#include "cvfBase.h"
#include "cvfObject.h"
#include "cvfArray.h"
#include "cafPdmObject.h"
#include "cafPdmField.h"
#include <tuple>
namespace cvf
@@ -53,7 +53,7 @@ class Rim3dView;
///
///
//==================================================================================================
class RimRegularLegendConfig: public caf::PdmObject
class RimRegularLegendConfig : public RimLegendConfig
{
CAF_PDM_HEADER_INIT;
public:
@@ -123,6 +123,9 @@ public:
caf::TitledOverlayFrame* legend();
bool showLegend() const;
const caf::TitledOverlayFrame* titledOverlayFrame() const override;
caf::TitledOverlayFrame* titledOverlayFrame() override;
protected:
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
virtual void initAfterRead();