18 #ifndef QGSSCALECOMBOBOX_H 19 #define QGSSCALECOMBOBOX_H 33 Q_PROPERTY(
double scale READ scale WRITE setScale NOTIFY scaleChanged )
34 Q_PROPERTY(
double minScale READ minScale WRITE setMinScale )
47 QString scaleString() const;
53 bool setScaleString( const QString &
string );
77 double minScale()
const {
return mMinScale; }
86 static QString toString(
double scale );
94 static double toDouble(
const QString &
string,
bool *ok =
nullptr );
103 void setAllowNull(
bool allowNull );
112 bool allowNull()
const;
120 void scaleChanged(
double scale );
128 void updateScales(
const QStringList &scales = QStringList() );
135 void setScale(
double scale );
143 void setMinScale(
double scale );
157 void showPopup()
override;
164 double mMinScale = 0.0;
165 bool mAllowNull =
false;
168 #endif // QGSSCALECOMBOBOX_H
A combobox which lets the user select map scale from predefined list and highlights nearest to curren...