QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | List of all members
QgsScaleRangeWidget Class Reference

#include <qgsscalerangewidget.h>

Public Slots

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

Public Member Functions

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

Constructor & Destructor Documentation

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

Member Function Documentation

double QgsScaleRangeWidget::maximumScale ( )

return the maximum scale

double QgsScaleRangeWidget::maximumScaleDenom ( )

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

double QgsScaleRangeWidget::minimumScale ( )

return the minimum scale

double QgsScaleRangeWidget::minimumScaleDenom ( )

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

void QgsScaleRangeWidget::reloadProjectScales ( )

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

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.

void QgsScaleRangeWidget::setMaximumScale ( double  scale)
slot
void QgsScaleRangeWidget::setMinimumScale ( double  scale)
slot
void QgsScaleRangeWidget::setScaleRange ( double  min,
double  max 
)
slot

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