18#ifndef QGSUNITSELECTIONWIDGET_H
19#define QGSUNITSELECTIONWIDGET_H
21#include "ui_qgsmapunitscalewidgetbase.h"
22#include "ui_qgsunitselectionwidget.h"
90 void configureMinComboBox();
91 void configureMaxComboBox();
92 void settingsChanged();
95 bool mBlockSignals =
true;
178 void setUnits(
const QStringList &units,
int mapUnitIdx );
187 int getUnit()
const {
return mUnitCombo->currentIndex(); }
200 void setUnit(
int unitIndex )
SIP_PYNAME( setUnitIndex );
227 bool showMapScaleButton()
const;
235 void setShowMapScaleButton(
bool show );
246 void toggleUnitRangeButton();
253 bool mShowMapScaleButton =
true;
RenderUnit
Rendering size units.
Map canvas is a class for displaying all GIS data types on a canvas.
QgsMapUnitScale mapUnitScale
QgsMapUnitScale getMapUnitScale() const
Returns a QgsMapUnitScale representing the settings shown in the dialog.
void setMapCanvas(QgsMapCanvas *canvas)
Sets the map canvas associated with the dialog.
void setMapUnitScale(const QgsMapUnitScale &scale)
Updates the dialog to reflect the settings from the specified QgsMapUnitScale object.
QgsMapUnitScaleDialog(QWidget *parent=nullptr)
Constructor for QgsMapUnitScaleDialog.
Struct for storing maximum and minimum scales for measurements in map units.
QList< Qgis::RenderUnit > RenderUnitList
List of render units.