mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
Migrate more classes to dynamic buttons
This commit is contained in:
1 parent
a8ac98ce06
commit
f9a081eb87
17 files changed
+246
-407
No files matched your search
@@ -31,7 +31,6 @@
|
||||
#include "RiuQwtPlotWidget.h"
|
||||
|
||||
#include "cafPdmUiCheckBoxEditor.h"
|
||||
#include "cafPdmUiPushButtonEditor.h"
|
||||
#include "cafPdmUiTreeOrdering.h"
|
||||
|
||||
#include "qwt_scale_engine.h"
|
||||
@@ -54,15 +53,10 @@ RimHistogramMultiPlot::RimHistogramMultiPlot()
|
||||
CAF_PDM_InitField( &m_autoSubPlotTitle, "AutoSubPlotTitle", true, "Auto Sub Plot Title" );
|
||||
|
||||
CAF_PDM_InitField( &m_disableWheelZoom, "DisableWheelZoom", true, "", "", "Disable Mouse Wheel Zooming in Multi Histogram Plot" );
|
||||
caf::PdmUiPushButtonEditor::configureEditorLabelHidden( &m_disableWheelZoom );
|
||||
m_disableWheelZoom.uiCapability()->setUiIconFromResourceString( ":/DisableZoom.png" );
|
||||
|
||||
CAF_PDM_InitField( &m_autoAdjustAppearance, "AutoAdjustAppearance", true, "Auto Plot Settings" );
|
||||
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &m_autoAdjustAppearance );
|
||||
|
||||
CAF_PDM_InitField( &m_hidePlotsWithValuesBelow, "HidePlotsWithValuesBelow", false, "" );
|
||||
caf::PdmUiPushButtonEditor::configureEditorLabelHidden( &m_hidePlotsWithValuesBelow );
|
||||
|
||||
setBottomMargin( 40 );
|
||||
}
|
||||
|
||||
@@ -179,11 +173,6 @@ void RimHistogramMultiPlot::fieldChangedByUi( const caf::PdmFieldHandle* changed
|
||||
onLoadDataAndUpdate();
|
||||
updateLayout();
|
||||
}
|
||||
else if ( changedField == &m_hidePlotsWithValuesBelow )
|
||||
{
|
||||
m_hidePlotsWithValuesBelow = false;
|
||||
updatePlotVisibility();
|
||||
}
|
||||
else if ( changedField == &m_autoAdjustAppearance )
|
||||
{
|
||||
analyzePlotsAndAdjustAppearanceSettings();
|
||||
|
||||
@@ -99,7 +99,6 @@ private:
|
||||
caf::PdmField<bool> m_autoSubPlotTitle;
|
||||
caf::PdmField<bool> m_disableWheelZoom;
|
||||
caf::PdmField<bool> m_autoAdjustAppearance;
|
||||
caf::PdmField<bool> m_hidePlotsWithValuesBelow;
|
||||
|
||||
std::map<RimHistogramPlot*, std::pair<int, int>> m_gridLayoutInfo;
|
||||
};
|
||||
Reference in new issue
Block a user