21#ifndef QGSSCALEUTILS_H
22#define QGSSCALEUTILS_H
40 static bool saveScaleList(
const QString &fileName,
const QStringList &scales, QString &errorMessage );
50 static bool loadScaleList(
const QString &fileName, QStringList &scales, QString &errorMessage );
Contains utility functions for working with map scales.
static bool equalToOrGreaterThanMinimumScale(const double scale, const double minScale)
Returns whether the scale is equal to or greater than the minScale, taking non-round numbers into acc...
static bool lessThanMaximumScale(const double scale, const double maxScale)
Returns whether the scale is less than the maxScale, taking non-round numbers into account.
static bool loadScaleList(const QString &fileName, QStringList &scales, QString &errorMessage)
Load scales from the given file.
static bool saveScaleList(const QString &fileName, const QStringList &scales, QString &errorMessage)
Save scales to the given file.