mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RimPlotAxisProperties: only allow plot axis positions left and right.
This commit is contained in:
parent
45d28de6d3
commit
449b4e4781
@ -20,6 +20,7 @@
|
||||
#include "RimPlotAxisProperties.h"
|
||||
|
||||
#include "RiaDefines.h"
|
||||
#include "RiaPlotDefines.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
#include "RimPlotAxisAnnotation.h"
|
||||
@ -161,6 +162,19 @@ QList<caf::PdmOptionItemInfo>
|
||||
{
|
||||
options = caf::FontTools::relativeSizeValueOptions( RiaPreferences::current()->defaultPlotFontSize() );
|
||||
}
|
||||
else if ( fieldNeedingOptions == &m_plotAxis )
|
||||
{
|
||||
std::vector<RiaDefines::PlotAxis> plotAxes = { RiaDefines::PlotAxis::PLOT_AXIS_LEFT,
|
||||
RiaDefines::PlotAxis::PLOT_AXIS_RIGHT };
|
||||
|
||||
for ( auto plotAxis : plotAxes )
|
||||
{
|
||||
auto plotAxisEnum = caf::AppEnum<RiaDefines::PlotAxis>( plotAxis );
|
||||
|
||||
QString uiText = plotAxisEnum.uiText();
|
||||
options.push_back( caf::PdmOptionItemInfo( uiText, plotAxisEnum.value() ) );
|
||||
}
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user