18#ifndef QGSUNITSELECTIONWIDGET_H
19#define QGSUNITSELECTIONWIDGET_H
28#include "ui_qgsunitselectionwidget.h"
29#include "ui_qgsmapunitscalewidgetbase.h"
46 Q_PROPERTY(
QgsMapUnitScale mapUnitScale READ mapUnitScale WRITE setMapUnitScale NOTIFY mapUnitScaleChanged )
89 void configureMinComboBox();
90 void configureMaxComboBox();
91 void settingsChanged();
95 bool mBlockSignals =
true;
111 Q_PROPERTY(
QgsMapUnitScale mapUnitScale READ getMapUnitScale WRITE setMapUnitScale )
180 void setUnits(
const QStringList &units,
int mapUnitIdx );
189 int getUnit()
const {
return mUnitCombo->currentIndex(); }
202 void setUnit(
int unitIndex )
SIP_PYNAME( setUnitIndex );
229 bool showMapScaleButton()
const;
237 void setShowMapScaleButton(
bool show );
244 void toggleUnitRangeButton();
251 bool mShowMapScaleButton =
true;
RenderUnit
Rendering size units.
Map canvas is a class for displaying all GIS data types on a canvas.
A dialog which allows the user to choose the minimum and maximum scale of an object in map units and ...
Struct for storing maximum and minimum scales for measurements in map units.
QList< Qgis::RenderUnit > RenderUnitList
List of render units.