18 #ifndef QGSUNITSELECTIONWIDGET_H
19 #define QGSUNITSELECTIONWIDGET_H
28 #include "ui_qgsunitselectionwidget.h"
29 #include "ui_qgsmapunitscalewidgetbase.h"
47 Q_PROPERTY(
QgsMapUnitScale mapUnitScale READ mapUnitScale WRITE setMapUnitScale NOTIFY mapUnitScaleChanged )
90 void configureMinComboBox();
91 void configureMaxComboBox();
92 void settingsChanged();
96 bool mBlockSignals =
true;
182 void setUnits(
const QStringList &units,
int mapUnitIdx );
192 int getUnit()
const {
return mUnitCombo->currentIndex(); }
206 void setUnit(
int unitIndex )
SIP_PYNAME( setUnitIndex );
234 bool showMapScaleButton()
const;
242 void setShowMapScaleButton(
bool show );
249 void toggleUnitRangeButton();
256 bool mShowMapScaleButton =
true;
260 #endif // QGSUNITSELECTIONWIDGET_H