QGIS API Documentation  2.3.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Static Public Member Functions | List of all members
QgsScaleUtils Class Reference

#include <qgsscaleutils.h>

Static Public Member Functions

static bool saveScaleList (const QString &fileName, const QStringList &scales, QString &errorMessage)
 save scales to the given file More...
 
static bool loadScaleList (const QString &fileName, QStringList &scales, QString &errorMessage)
 load scales from the given file More...
 

Detailed Description

Definition at line 22 of file qgsscaleutils.h.

Member Function Documentation

bool QgsScaleUtils::loadScaleList ( const QString &  fileName,
QStringList &  scales,
QString &  errorMessage 
)
static

load scales from the given file

Parameters
fileNamethe name of the file to process
scalesit will contain loaded scales
errorMessageit will contain the error message if something went wrong
Returns
true on success and false if failed

Definition at line 48 of file qgsscaleutils.cpp.

References file.

bool QgsScaleUtils::saveScaleList ( const QString &  fileName,
const QStringList &  scales,
QString &  errorMessage 
)
static

save scales to the given file

Parameters
fileNamethe name of the output file
scalesthe list of scales to save
errorMessageit will contain the error message if something went wrong
Returns
true on success and false if failed

Definition at line 22 of file qgsscaleutils.cpp.

References file.


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