QGIS API Documentation
3.0.2-Girona (307d082)
|
A dialog which allows the user to choose the minimum and maximum scale of an object in map units and millimeters. More...
#include <qgsunitselectionwidget.h>
Public Member Functions | |
QgsMapUnitScaleDialog (QWidget *parent=nullptr) | |
Constructor for QgsMapUnitScaleDialog. More... | |
QgsMapUnitScale | getMapUnitScale () const |
Returns a QgsMapUnitScale representing the settings shown in the dialog. More... | |
void | setMapCanvas (QgsMapCanvas *canvas) |
Sets the map canvas associated with the dialog. More... | |
void | setMapUnitScale (const QgsMapUnitScale &scale) |
Updates the dialog to reflect the settings from the specified QgsMapUnitScale object. More... | |
Properties | |
QgsMapUnitScale | mapUnitScale |
A dialog which allows the user to choose the minimum and maximum scale of an object in map units and millimeters.
This dialog is designed to allow users to edit the properties of a QgsMapUnitScale object.
Definition at line 107 of file qgsunitselectionwidget.h.
QgsMapUnitScaleDialog::QgsMapUnitScaleDialog | ( | QWidget * | parent = nullptr | ) |
Constructor for QgsMapUnitScaleDialog.
parent | parent widget |
Definition at line 269 of file qgsunitselectionwidget.cpp.
QgsMapUnitScale QgsMapUnitScaleDialog::getMapUnitScale | ( | ) | const |
Returns a QgsMapUnitScale representing the settings shown in the dialog.
Definition at line 283 of file qgsunitselectionwidget.cpp.
void QgsMapUnitScaleDialog::setMapCanvas | ( | QgsMapCanvas * | canvas | ) |
Sets the map canvas associated with the dialog.
This allows the dialog to retrieve the current map scale from the canvas.
canvas | map canvas |
Definition at line 293 of file qgsunitselectionwidget.cpp.
void QgsMapUnitScaleDialog::setMapUnitScale | ( | const QgsMapUnitScale & | scale | ) |
Updates the dialog to reflect the settings from the specified QgsMapUnitScale object.
scale | map unit scale to show in dialog |
Definition at line 288 of file qgsunitselectionwidget.cpp.
|
readwrite |
Definition at line 110 of file qgsunitselectionwidget.h.