|
QGIS API Documentation
2.8.6-Wien
|
A combobox which lets the user select map scale from predefined list and highlights nearest to current scale value. More...
#include <qgsscalecombobox.h>

Public Slots | |
| void | updateScales (const QStringList &scales=QStringList()) |
Signals | |
| void | scaleChanged () |
| Signal is emitted when user has finished editing/selecting a new scale. More... | |
Public Member Functions | |
| QgsScaleComboBox (QWidget *parent=0) | |
| virtual | ~QgsScaleComboBox () |
| double | scale () |
| Function to read the selected scale as double. More... | |
| QString | scaleString () |
| Function to read the selected scale as text. More... | |
| void | setScale (double scale) |
| Function to set the selected scale from double. More... | |
| bool | setScaleString (QString scaleTxt) |
| Function to set the selected scale from text. More... | |
Static Public Member Functions | |
| static double | toDouble (QString scaleString, bool *ok=NULL) |
| Helper function to convert a scale string to double. More... | |
| static QString | toString (double scale) |
| Helper function to convert a double to scale string. More... | |
Protected Member Functions | |
| void | showPopup () override |
A combobox which lets the user select map scale from predefined list and highlights nearest to current scale value.
Definition at line 27 of file qgsscalecombobox.h.
| QgsScaleComboBox::QgsScaleComboBox | ( | QWidget * | parent = 0 | ) |
Definition at line 27 of file qgsscalecombobox.cpp.
|
virtual |
Definition at line 39 of file qgsscalecombobox.cpp.
| double QgsScaleComboBox::scale | ( | ) |
Function to read the selected scale as double.
Definition at line 142 of file qgsscalecombobox.cpp.
|
signal |
Signal is emitted when user has finished editing/selecting a new scale.
| QString QgsScaleComboBox::scaleString | ( | ) |
Function to read the selected scale as text.
Definition at line 118 of file qgsscalecombobox.cpp.
| void QgsScaleComboBox::setScale | ( | double | scale | ) |
Function to set the selected scale from double.
Definition at line 148 of file qgsscalecombobox.cpp.
| bool QgsScaleComboBox::setScaleString | ( | QString | scaleTxt | ) |
Function to set the selected scale from text.
Definition at line 124 of file qgsscalecombobox.cpp.
|
overrideprotected |
Definition at line 86 of file qgsscalecombobox.cpp.
|
static |
Helper function to convert a scale string to double.
Definition at line 204 of file qgsscalecombobox.cpp.
|
static |
Helper function to convert a double to scale string.
Definition at line 188 of file qgsscalecombobox.cpp.
|
slot |
Definition at line 43 of file qgsscalecombobox.cpp.
1.8.11