mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add color legend to show curve set colors
This commit is contained in:
@@ -34,6 +34,7 @@ CAF_PDM_SOURCE_INIT( RimColorLegend, "ColorLegend" );
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimColorLegend::RimColorLegend()
|
||||
: changed( this )
|
||||
{
|
||||
CAF_PDM_InitScriptableObject( "ColorLegend", ":/Legend.png" );
|
||||
|
||||
@@ -120,6 +121,7 @@ caf::PdmFieldHandle* RimColorLegend::userDescriptionField()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimColorLegend::fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue )
|
||||
{
|
||||
changed.send();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -181,6 +183,8 @@ caf::IconProvider RimColorLegend::paletteIconProvider() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimColorLegend::onColorLegendItemHasChanged()
|
||||
{
|
||||
changed.send();
|
||||
|
||||
updateConnectedEditors();
|
||||
|
||||
std::vector<caf::PdmObjectHandle*> referringObjects = objectsWithReferringPtrFields();
|
||||
|
||||
Reference in New Issue
Block a user