24 , mMaximumScaleSetCurrentPushButton( 0 )
25 , mMinimumScaleSetCurrentPushButton( 0 )
27 mLayout =
new QGridLayout(
this );
28 mLayout->setContentsMargins( 0, 0, 0, 0 );
30 QLabel* minLbl =
new QLabel(
tr(
"Minimum\n(exclusive)" ),
this );
31 minLbl->setWordWrap(
true );
32 minLbl->setAlignment( Qt::AlignTop );
33 minLbl->setToolTip(
tr(
"Minimum scale, i.e. maximum scale denominator. "
34 "This limit is exclusive, that means the layer will not be displayed on this scale." ) );
35 QLabel* maxLbl =
new QLabel(
tr(
"Maximum\n(inclusive)" ),
this );
36 maxLbl->setWordWrap(
true );
37 maxLbl->setAlignment( Qt::AlignTop );
38 maxLbl->setToolTip(
tr(
"Maximum scale, i.e. minimum scale denominator. "
39 "This limit is inclusive, that means the layer will be displayed on this scale." ) );
53 mLayout->addWidget( minLbl, 0, 0, 2, 1 );
56 mLayout->addWidget( maxLbl, 0, 3, 2, 1 );
60 mLayout->setColumnStretch( 0, 0 );
61 mLayout->setColumnStretch( 1, 0 );
62 mLayout->setColumnStretch( 2, 3 );
63 mLayout->setColumnStretch( 3, 0 );
64 mLayout->setColumnStretch( 4, 0 );
65 mLayout->setColumnStretch( 5, 3 );
double scale() const
Return the calculated scale of the map.
const QgsMapSettings & mapSettings() const
Get access to properties used for map rendering.
void setScale(double scale)
Function to set the selected scale from double.
bool readBoolEntry(const QString &scope, const QString &key, bool def=false, bool *ok=0) const
static QPixmap getThemePixmap(const QString &theName)
Helper to get a theme icon as a pixmap.
Map canvas is a class for displaying all GIS data types on a canvas.
double ANALYSIS_EXPORT max(double x, double y)
returns the maximum of two doubles or the first argument if both are equal
QStringList readListEntry(const QString &scope, const QString &key, QStringList def=QStringList(), bool *ok=0) const
key value accessors
double scale()
Function to read the selected scale as double.
static QgsProject * instance()
access to canonical QgsProject instance
void updateScales(const QStringList &scales=QStringList())
double ANALYSIS_EXPORT min(double x, double y)
returns the minimum of two doubles or the first argument if both are equal
A combobox which lets the user select map scale from predefined list and highlights nearest to curren...