18 #ifndef QGSUNITSELECTIONWIDGET_H
19 #define QGSUNITSELECTIONWIDGET_H
26 #include "ui_qgsunitselectionwidget.h"
27 #include "ui_qgsmapunitscalewidgetbase.h"
45 Q_PROPERTY(
QgsMapUnitScale mapUnitScale READ mapUnitScale WRITE setMapUnitScale NOTIFY mapUnitScaleChanged )
88 void configureMinComboBox();
89 void configureMaxComboBox();
90 void settingsChanged();
94 bool mBlockSignals =
true;
163 class GUI_EXPORT QgsUnitSelectionWidget :
public QWidget,
private Ui::QgsUnitSelectionWidget
180 void setUnits(
const QStringList &units,
int mapUnitIdx );
190 int getUnit()
const {
return mUnitCombo->currentIndex(); }
204 void setUnit(
int unitIndex )
SIP_PYNAME( setUnitIndex );
231 void toggleUnitRangeButton();
241 #endif // QGSUNITSELECTIONWIDGET_H