QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Slots | Public Member Functions | List of all members
QgsScaleRangeWidget Class Reference

#include <qgsscalerangewidget.h>

Inheritance diagram for QgsScaleRangeWidget:
Inheritance graph
[legend]

Public Slots

void setMaximumScale (double scale)
 
void setMinimumScale (double scale)
 
void setScaleRange (double min, double max)
 

Public Member Functions

 QgsScaleRangeWidget (QWidget *parent=0)
 
 ~QgsScaleRangeWidget ()
 
double maximumScale ()
 return the maximum scale More...
 
double maximumScaleDenom ()
 return the maximum scale denominator ( = 1 / minimum scale ) More...
 
double minimumScale ()
 return the minimum scale More...
 
double minimumScaleDenom ()
 return the minimum scale denominator ( = 1 / maximum scale ) More...
 
void reloadProjectScales ()
 call to reload the project scales and apply them to the 2 scales combo boxes More...
 
void setMapCanvas (QgsMapCanvas *mapCanvas)
 set the map canvas which will be used for the current scale buttons More...
 

Detailed Description

Definition at line 30 of file qgsscalerangewidget.h.

Constructor & Destructor Documentation

QgsScaleRangeWidget::QgsScaleRangeWidget ( QWidget *  parent = 0)
explicit

Definition at line 21 of file qgsscalerangewidget.cpp.

QgsScaleRangeWidget::~QgsScaleRangeWidget ( )

Definition at line 68 of file qgsscalerangewidget.cpp.

Member Function Documentation

double QgsScaleRangeWidget::maximumScale ( )

return the maximum scale

Definition at line 125 of file qgsscalerangewidget.cpp.

double QgsScaleRangeWidget::maximumScaleDenom ( )

return the maximum scale denominator ( = 1 / minimum scale )

Definition at line 135 of file qgsscalerangewidget.cpp.

double QgsScaleRangeWidget::minimumScale ( )

return the minimum scale

Definition at line 115 of file qgsscalerangewidget.cpp.

double QgsScaleRangeWidget::minimumScaleDenom ( )

return the minimum scale denominator ( = 1 / maximum scale )

Definition at line 130 of file qgsscalerangewidget.cpp.

void QgsScaleRangeWidget::reloadProjectScales ( )

call to reload the project scales and apply them to the 2 scales combo boxes

Definition at line 72 of file qgsscalerangewidget.cpp.

void QgsScaleRangeWidget::setMapCanvas ( QgsMapCanvas mapCanvas)

set the map canvas which will be used for the current scale buttons

setMapCanvas set the map canvas which will be used for the current scale buttons if not set, the buttons are hidden.

Definition at line 83 of file qgsscalerangewidget.cpp.

void QgsScaleRangeWidget::setMaximumScale ( double  scale)
slot

Definition at line 120 of file qgsscalerangewidget.cpp.

void QgsScaleRangeWidget::setMinimumScale ( double  scale)
slot

Definition at line 110 of file qgsscalerangewidget.cpp.

void QgsScaleRangeWidget::setScaleRange ( double  min,
double  max 
)
slot

Definition at line 140 of file qgsscalerangewidget.cpp.


The documentation for this class was generated from the following files: