18#ifndef QGSELEVATIONCONTROLLERWIDGET_H
19#define QGSELEVATIONCONTROLLERWIDGET_H
26#include <QWidgetAction>
35class GUI_EXPORT QgsElevationControllerLabels :
public QWidget
SIP_SKIP
42 void paintEvent( QPaintEvent *event )
override;
44 void setLimits(
const QgsDoubleRange &limits );
45 void setRange(
const QgsDoubleRange &range );
46 void setInverted(
bool inverted );
47 void setSignificantElevations(
const QList<double> &elevations );
50 QgsDoubleRange mLimits;
51 QgsDoubleRange mRange;
52 bool mInverted =
false;
53 QList<double> mSignificantElevations;
56class GUI_EXPORT QgsElevationControllerSettingsAction :
public QWidgetAction
61 QgsElevationControllerSettingsAction( QWidget *parent =
nullptr );
63 QgsDoubleSpinBox *sizeSpin();
66 QgsDoubleSpinBox *mSizeSpin =
nullptr;
82 if ( qobject_cast<QgsElevationControllerWidget *>( sipCpp ) !=
nullptr )
83 sipType = sipType_QgsElevationControllerWidget;
202 void updateWidgetMask();
204 QToolButton *mConfigureButton =
nullptr;
205 QgsElevationControllerSettingsAction *mSettingsAction =
nullptr;
206 QMenu *mMenu =
nullptr;
207 QAction *mInvertDirectionAction =
nullptr;
209 QgsElevationControllerLabels *mSliderLabels =
nullptr;
212 double mFixedRangeSize = -1;
213 int mBlockSliderChanges = 0;
214 double mSliderPrecision = 100;
QgsRange which stores a range of double values.
The QgsSpinBox is a spin box with a clear button that will set the value to the defined clear value.
A slider control with two interactive endpoints, for interactive selection of a range of values.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)