16 #ifndef QGSSCALEWIDGET_H
17 #define QGSSCALEWIDGET_H
20 #include <QToolButton>
34 Q_PROPERTY(
bool showCurrentScaleButton READ showCurrentScaleButton WRITE setShowCurrentScaleButton )
43 void setShowCurrentScaleButton(
bool showCurrentScaleButton );
50 QString
scaleString() {
return mScaleComboBox->scaleString(); }
52 bool setScaleString( QString scaleTxt ) {
return mScaleComboBox->setScaleString( scaleTxt ); }
54 double scale() {
return mScaleComboBox->scale();}
56 void setScale(
double scale ) {
return mScaleComboBox->setScale( scale ); }
66 void updateScales(
const QStringList &scales = QStringList() ) {
return mScaleComboBox->updateScales( scales ); }
69 void setScaleFromCanvas();
77 QToolButton* mCurrentScaleButton;
79 bool mShowCurrentScaleButton;
82 #endif // QGSSCALEWIDGET_H