|
Quantum GIS API Documentation
master-ce49b66
|
Extends QApplication to provide access to QGIS specific resources such as theme paths, database paths etc. More...
#include <qgsapplication.h>
Public Types | |
| enum | ENDIAN { XDR = 0, NDR = 1 } |
| constants for endian-ness More... | |
| typedef enum QgsApplication::ENDIAN | endian_t |
| constants for endian-ness | |
Signals | |
| void | preNotify (QObject *receiver, QEvent *event, bool *done) |
Public Member Functions | |
| QgsApplication (int &argc, char **argv, bool GUIenabled, QString customConfigPath=QString()) | |
| virtual | ~QgsApplication () |
| virtual bool | event (QEvent *event) |
| Watch for QFileOpenEvent. | |
| virtual bool | notify (QObject *receiver, QEvent *event) |
| Catch exceptions when sending event to receiver. | |
Static Public Member Functions | |
| static QString | absolutePathToRelativePath (QString apath, QString targetPath) |
| Converts absolute path to path relative to target. | |
| static const QString | activeThemePath () |
| Returns the path to the currently active theme directory. | |
| static void | applyGdalSkippedDrivers () |
| Apply the skipped drivers list to gdal. | |
| static const QString | authorsFilePath () |
| Returns the path to the authors file. | |
| static QString | buildOutputPath () |
| Returns path to the build output directory. | |
| static QString | buildSourcePath () |
| Returns path to the source directory. | |
| static const QString | contributorsFilePath () |
| Returns the path to the contributors file. | |
| static const QString | defaultStyleV2Path () |
| Returns the path to default style (works as a starting point). Added in QGIS 1.4. | |
| static const QString | defaultThemePath () |
| Returns the path to the default theme directory. | |
| static const QString | donorsFilePath () |
| Returns the path to the donors file. | |
| static endian_t | endian () |
| Returns whether this machine uses big or little endian. | |
| static void | exitQgis () |
| deletes provider registry and map layer registry | |
| static QIcon | getThemeIcon (const QString theName) |
| Helper to get a theme icon. | |
| static QPixmap | getThemePixmap (const QString theName) |
| Helper to get a theme icon as a pixmap. | |
| static const QString | helpAppPath () |
| Returns the path to the help application. | |
| static const QString | i18nPath () |
| Returns the path to the translation directory. | |
| static QString | iconPath (QString iconFile) |
| Returns path to the desired icon file. | |
| static const QString | iconsPath () |
| Returns the path to the icons image directory. | |
| static void | init (QString customConfigPath=QString()) |
| This method initialises paths etc for QGIS. | |
| static void | initQgis () |
| loads providers | |
| static bool | isRunningFromBuildDir () |
| Indicates whether running from build directory (not installed) | |
| static const QString | libexecPath () |
| Returns the path with utility executables (help viewer, crssync, ...) | |
| static const QString | libraryPath () |
| Returns the path containing qgis_core, qgis_gui, qgispython (and other) libraries. | |
| static const QString | pkgDataPath () |
| Returns the common root path of all application data directories. | |
| static const QString | pluginPath () |
| Returns the path to the application plugin directory. | |
| static const QString | prefixPath () |
| Returns the path to the application prefix directory. | |
| static const QString | qgisMasterDbFilePath () |
| Returns the path to the master qgis.db file. | |
| static const QString | qgisSettingsDirPath () |
| Returns the path to the settings directory in user's home dir. | |
| static const QString | qgisUserDbFilePath () |
| Returns the path to the user qgis.db file. | |
| static void | registerOgrDrivers () |
| Register OGR drivers ensuring this only happens once. | |
| static QString | relativePathToAbsolutePath (QString rpath, QString targetPath) |
| Converts path relative to target to an absolute path. | |
| static QString | reportStyleSheet () |
| get a standard css style sheet for reports. | |
| static void | restoreGdalDriver (QString theDriver) |
| Sets the GDAL_SKIP environment variable to exclude the specified driver and then calls GDALDriverManager::AutoSkipDrivers() to unregister it. | |
| static void | setDefaultSvgPaths (const QStringList &pathList) |
| Alters default svg paths - used by 3rd party apps. Added in QGIS 1.5. | |
| static void | setFileOpenEventReceiver (QObject *receiver) |
| Set the FileOpen event receiver. | |
| static void | setPkgDataPath (const QString thePkgDataPath) |
| Alters pkg data path - used by 3rd party apps. | |
| static void | setPluginPath (const QString thePluginPath) |
| Alters plugin path - used by 3rd party apps. | |
| static void | setPrefixPath (const QString thePrefixPath, bool useDefaultPaths=false) |
| Alters prefix path - used by 3rd party apps. | |
| static void | setThemeName (const QString theThemeName) |
| Set the active theme to the specified theme. | |
| static QString | showSettings () |
| Convenience function to get a summary of the paths used in this application instance useful for debugging mainly. | |
| static void | skipGdalDriver (QString theDriver) |
| Sets the GDAL_SKIP environment variable to include the specified driver and then calls GDALDriverManager::AutoSkipDrivers() to unregister it. | |
| static QStringList | skippedGdalDrivers () |
| Returns the list of gdal drivers that should be skipped (based on GDAL_SKIP environment variable) | |
| static const QString | splashPath () |
| Returns the path to the splash screen image directory. | |
| static const QString | sponsorsFilePath () |
| Returns the path to the sponsors file. | |
| static const QString | srsDbFilePath () |
| Returns the path to the srs.db file. | |
| static const QStringList | svgPaths () |
| Returns the pathes to svg directories. | |
| static const QMap< QString, QString > | systemEnvVars () |
| Returns the system environment variables passed to application. | |
| static const QString | themeName () |
| Set the active theme to the specified theme. | |
| static const QString | translatorsFilePath () |
| Returns the path to the sponsors file. | |
| static const QString | userStyleV2Path () |
| Returns the path to user's style. Added in QGIS 1.4. | |
Static Private Member Functions | |
| static QObject * | ABISYM (mFileOpenEventReceiver) |
| static QStringList | ABISYM (mFileOpenEventList) |
| static QString | ABISYM (mPrefixPath) |
| static QString | ABISYM (mPluginPath) |
| static QString | ABISYM (mPkgDataPath) |
| static QString | ABISYM (mLibraryPath) |
| static QString | ABISYM (mLibexecPath) |
| static QString | ABISYM (mThemeName) |
| static QStringList | ABISYM (mDefaultSvgPaths) |
| static QMap< QString, QString > | ABISYM (mSystemEnvVars) |
| static QString | ABISYM (mConfigPath) |
| static bool | ABISYM (mRunningFromBuildDir) |
| true when running from build directory, i.e. | |
| static QString | ABISYM (mBuildSourcePath) |
| path to the source directory. | |
| static QString | ABISYM (mBuildOutputPath) |
| path to the output directory of the build. | |
| static QStringList | ABISYM (mGdalSkipList) |
| List of gdal drivers to be skipped. | |
Extends QApplication to provide access to QGIS specific resources such as theme paths, database paths etc.
The QgsApplication class manages application-wide information.
This is a subclass of QApplication and should be instantiated in place of QApplication. Most methods are static in keeping witn the design of QApplication.
This class hides platform-specific path information and provides a portable way of referencing specific files and directories. Ideally, hard-coded paths should appear only here and not in other modules so that platform-conditional code is minimized and paths are easier to change due to centralization.
Definition at line 29 of file qgsapplication.h.
| typedef enum QgsApplication::ENDIAN QgsApplication::endian_t |
constants for endian-ness
| QgsApplication::QgsApplication | ( | int & | argc, |
| char ** | argv, | ||
| bool | GUIenabled, | ||
| QString | customConfigPath = QString() |
||
| ) |
Definition at line 77 of file qgsapplication.cpp.
References init().
| QgsApplication::~QgsApplication | ( | ) | [virtual] |
Definition at line 195 of file qgsapplication.cpp.
| static QObject* QgsApplication::ABISYM | ( | mFileOpenEventReceiver | ) | [static, private] |
Referenced by authorsFilePath(), contributorsFilePath(), defaultStyleV2Path(), donorsFilePath(), event(), i18nPath(), iconsPath(), init(), libexecPath(), libraryPath(), pkgDataPath(), pluginPath(), prefixPath(), qgisMasterDbFilePath(), qgisSettingsDirPath(), setDefaultSvgPaths(), setFileOpenEventReceiver(), setPkgDataPath(), setPluginPath(), setPrefixPath(), setThemeName(), sponsorsFilePath(), srsDbFilePath(), svgPaths(), themeName(), and translatorsFilePath().
| static QStringList QgsApplication::ABISYM | ( | mFileOpenEventList | ) | [static, private] |
| static QString QgsApplication::ABISYM | ( | mPrefixPath | ) | [static, private] |
| static QString QgsApplication::ABISYM | ( | mPluginPath | ) | [static, private] |
| static QString QgsApplication::ABISYM | ( | mPkgDataPath | ) | [static, private] |
| static QString QgsApplication::ABISYM | ( | mLibraryPath | ) | [static, private] |
| static QString QgsApplication::ABISYM | ( | mLibexecPath | ) | [static, private] |
| static QString QgsApplication::ABISYM | ( | mThemeName | ) | [static, private] |
| static QStringList QgsApplication::ABISYM | ( | mDefaultSvgPaths | ) | [static, private] |
| static QMap<QString, QString> QgsApplication::ABISYM | ( | mSystemEnvVars | ) | [static, private] |
| static QString QgsApplication::ABISYM | ( | mConfigPath | ) | [static, private] |
| static bool QgsApplication::ABISYM | ( | mRunningFromBuildDir | ) | [static, private] |
true when running from build directory, i.e.
without 'make install'
| static QString QgsApplication::ABISYM | ( | mBuildSourcePath | ) | [static, private] |
path to the source directory.
valid only when running from build directory.
| static QString QgsApplication::ABISYM | ( | mBuildOutputPath | ) | [static, private] |
path to the output directory of the build.
valid only when running from build directory
| static QStringList QgsApplication::ABISYM | ( | mGdalSkipList | ) | [static, private] |
List of gdal drivers to be skipped.
Uses GDAL_SKIP to exclude them.
| QString QgsApplication::absolutePathToRelativePath | ( | QString | apath, |
| QString | targetPath | ||
| ) | [static] |
Converts absolute path to path relative to target.
Definition at line 744 of file qgsapplication.cpp.
| const QString QgsApplication::activeThemePath | ( | ) | [static] |
Returns the path to the currently active theme directory.
Definition at line 334 of file qgsapplication.cpp.
References themeName().
Referenced by QgsComposerItem::drawSelectionBoxes(), getThemeIcon(), getThemePixmap(), icon(), iconPath(), iconPath(), QgsProjectionSelector::loadCrsList(), QgsProjectionSelector::loadUserCrsList(), and showSettings().
| static void QgsApplication::applyGdalSkippedDrivers | ( | ) | [static] |
Apply the skipped drivers list to gdal.
| const QString QgsApplication::authorsFilePath | ( | ) | [static] |
Returns the path to the authors file.
Definition at line 414 of file qgsapplication.cpp.
References ABISYM().
| static QString QgsApplication::buildOutputPath | ( | ) | [inline, static] |
Returns path to the build output directory.
Valid only when running from build directory
Definition at line 240 of file qgsapplication.h.
References ABISYM().
| static QString QgsApplication::buildSourcePath | ( | ) | [inline, static] |
Returns path to the source directory.
Valid only when running from build directory
Definition at line 237 of file qgsapplication.h.
References ABISYM().
| const QString QgsApplication::contributorsFilePath | ( | ) | [static] |
Returns the path to the contributors file.
Contributors are people who have submitted patches but don't have svn write access.
Definition at line 421 of file qgsapplication.cpp.
References ABISYM().
| const QString QgsApplication::defaultStyleV2Path | ( | ) | [static] |
Returns the path to default style (works as a starting point). Added in QGIS 1.4.
Definition at line 567 of file qgsapplication.cpp.
References ABISYM().
Referenced by QgsStyleV2::defaultStyle().
| const QString QgsApplication::defaultThemePath | ( | ) | [static] |
Returns the path to the default theme directory.
Definition at line 330 of file qgsapplication.cpp.
Referenced by _initRenderer(), QgsComposerItem::drawSelectionBoxes(), getThemeIcon(), getThemePixmap(), icon(), iconPath(), iconPath(), QgsPenCapStyleComboBox::QgsPenCapStyleComboBox(), QgsPenJoinStyleComboBox::QgsPenJoinStyleComboBox(), and showSettings().
| const QString QgsApplication::donorsFilePath | ( | ) | [static] |
Returns the path to the donors file.
Definition at line 436 of file qgsapplication.cpp.
References ABISYM().
| QgsApplication::endian_t QgsApplication::endian | ( | ) | [static] |
Returns whether this machine uses big or little endian.
Definition at line 582 of file qgsapplication.cpp.
Referenced by QgsGeometry::convertToMultiType(), QgsGeometry::exportGeosToWkb(), and QgsGml::QgsGml().
| bool QgsApplication::event | ( | QEvent * | event | ) | [virtual] |
Watch for QFileOpenEvent.
Definition at line 199 of file qgsapplication.cpp.
| void QgsApplication::exitQgis | ( | ) | [static] |
deletes provider registry and map layer registry
Definition at line 596 of file qgsapplication.cpp.
References QgsMapLayerRegistry::instance(), and QgsProviderRegistry::instance().
| QIcon QgsApplication::getThemeIcon | ( | const QString | theName | ) | [static] |
Helper to get a theme icon.
It will fall back to the default theme if the active theme does not have the required icon.
Definition at line 351 of file qgsapplication.cpp.
References activeThemePath(), and defaultThemePath().
Referenced by QgsDualView::columnBoxInit(), QgsDataCollectionItem::iconDataCollection(), QgsLayerItem::iconDefault(), QgsFavouritesItem::iconFavourites(), QgsLayerItem::iconLine(), QgsLayerItem::iconPoint(), QgsLayerItem::iconPolygon(), QgsLayerItem::iconRaster(), QgsLayerItem::iconTable(), QgsZipItem::iconZip(), QgsCollapsibleGroupBoxBasic::init(), QgsMessageBar::pushMessage(), QgsDualView::QgsDualView(), QgsExpressionSelectionDialog::QgsExpressionSelectionDialog(), QgsFilterLineEdit::QgsFilterLineEdit(), QgsMessageBar::QgsMessageBar(), QgsRasterHistogramWidget::QgsRasterHistogramWidget(), and QgsRasterLayerSaveAsDialog::QgsRasterLayerSaveAsDialog().
| QPixmap QgsApplication::getThemePixmap | ( | const QString | theName | ) | [static] |
Helper to get a theme icon as a pixmap.
It will fall back to the default theme if the active theme does not have the required icon.
Definition at line 372 of file qgsapplication.cpp.
References activeThemePath(), and defaultThemePath().
Referenced by QgsFeatureListViewDelegate::paint(), QgsErrorItem::QgsErrorItem(), QgsRasterHistogramWidget::refreshHistogram(), and QgsColorButton::transpBkgrd().
| const QString QgsApplication::helpAppPath | ( | ) | [static] |
Returns the path to the help application.
Definition at line 453 of file qgsapplication.cpp.
References libexecPath().
Referenced by QgsContextHelp::start().
| const QString QgsApplication::i18nPath | ( | ) | [static] |
Returns the path to the translation directory.
Definition at line 470 of file qgsapplication.cpp.
References ABISYM().
| QString QgsApplication::iconPath | ( | QString | iconFile | ) | [static] |
Returns path to the desired icon file.
First it tries to use the active theme path, then default theme path
Definition at line 340 of file qgsapplication.cpp.
References activeThemePath(), and defaultThemePath().
Referenced by QgsRuleBasedRendererV2Widget::QgsRuleBasedRendererV2Widget(), QgsSmartGroupCondition::QgsSmartGroupCondition(), QgsStyleV2ManagerDialog::QgsStyleV2ManagerDialog(), and QgsSymbolV2SelectorDialog::QgsSymbolV2SelectorDialog().
| const QString QgsApplication::iconsPath | ( | ) | [static] |
Returns the path to the icons image directory.
Definition at line 513 of file qgsapplication.cpp.
References ABISYM().
| void QgsApplication::init | ( | QString | customConfigPath = QString() | ) | [static] |
This method initialises paths etc for QGIS.
Called by the ctor or call it manually when your app does not extend the QApplication class.
Definition at line 83 of file qgsapplication.cpp.
References ABISYM(), prefixPath(), qgisSettingsDirPath(), setPkgDataPath(), setPluginPath(), and setPrefixPath().
Referenced by QgsApplication().
| void QgsApplication::initQgis | ( | ) | [static] |
loads providers
Definition at line 587 of file qgsapplication.cpp.
References QgsMapLayerRegistry::instance(), QgsProviderRegistry::instance(), and pluginPath().
| static bool QgsApplication::isRunningFromBuildDir | ( | ) | [inline, static] |
Indicates whether running from build directory (not installed)
Definition at line 231 of file qgsapplication.h.
References ABISYM().
| const QString QgsApplication::libexecPath | ( | ) | [static] |
Returns the path with utility executables (help viewer, crssync, ...)
Definition at line 577 of file qgsapplication.cpp.
References ABISYM().
Referenced by helpAppPath().
| const QString QgsApplication::libraryPath | ( | ) | [static] |
Returns the path containing qgis_core, qgis_gui, qgispython (and other) libraries.
Definition at line 572 of file qgsapplication.cpp.
References ABISYM().
| bool QgsApplication::notify | ( | QObject * | receiver, |
| QEvent * | event | ||
| ) | [virtual] |
Catch exceptions when sending event to receiver.
Definition at line 227 of file qgsapplication.cpp.
References preNotify(), tr, and QgsException::what().
Referenced by event().
| const QString QgsApplication::pkgDataPath | ( | ) | [static] |
Returns the common root path of all application data directories.
Definition at line 326 of file qgsapplication.cpp.
References ABISYM().
Referenced by QgsCptCityArchive::defaultBaseDir(), QgsCptCityArchive::initArchives(), QgsCptCityArchive::initDefaultArchive(), QgsMapLayer::loadNamedStyle(), QgsSvgGroupsModel::QgsSvgGroupsModel(), QgsSvgSelectorGroupsModel::QgsSvgSelectorGroupsModel(), and showSettings().
| const QString QgsApplication::pluginPath | ( | ) | [static] |
Returns the path to the application plugin directory.
Definition at line 322 of file qgsapplication.cpp.
References ABISYM().
Referenced by initQgis(), and showSettings().
| const QString QgsApplication::prefixPath | ( | ) | [static] |
Returns the path to the application prefix directory.
Definition at line 313 of file qgsapplication.cpp.
References ABISYM().
Referenced by init(), and showSettings().
| void QgsApplication::preNotify | ( | QObject * | receiver, |
| QEvent * | event, | ||
| bool * | done | ||
| ) | [signal] |
Referenced by notify().
| const QString QgsApplication::qgisMasterDbFilePath | ( | ) | [static] |
Returns the path to the master qgis.db file.
Definition at line 481 of file qgsapplication.cpp.
References ABISYM().
Referenced by showSettings().
| const QString QgsApplication::qgisSettingsDirPath | ( | ) | [static] |
Returns the path to the settings directory in user's home dir.
Returns the path to the settings directory in user's home dir
Definition at line 489 of file qgsapplication.cpp.
References ABISYM().
Referenced by init(), QgsMapLayer::loadNamedStyle(), qgisUserDbFilePath(), QgsCptCityColorRampV2Dialog::QgsCptCityColorRampV2Dialog(), QgsSvgGroupsModel::QgsSvgGroupsModel(), QgsSvgSelectorGroupsModel::QgsSvgSelectorGroupsModel(), QgsMapLayer::saveNamedStyle(), and userStyleV2Path().
| const QString QgsApplication::qgisUserDbFilePath | ( | ) | [static] |
Returns the path to the user qgis.db file.
Definition at line 497 of file qgsapplication.cpp.
References qgisSettingsDirPath().
Referenced by QgsCoordinateReferenceSystem::createFromSrsId(), QgsCoordinateReferenceSystem::findMatchingProj(), QgsProjectionSelector::getLargestCRSIDMatch(), QgsCoordinateReferenceSystem::getRecord(), QgsCoordinateReferenceSystem::getRecordCount(), QgsProjectionSelector::getSelectedExpression(), QgsProjectionSelector::loadUserCrsList(), QgsCoordinateReferenceSystem::proj4FromSrsId(), QgsCoordinateReferenceSystem::saveAsUserCRS(), and QgsProjectionSelector::selectedProj4String().
| void QgsApplication::registerOgrDrivers | ( | ) | [static] |
Register OGR drivers ensuring this only happens once.
This is a workaround for an issue with older gdal versions that caused duplicate driver name entries to appear in the list of registered drivers when QgsApplication::registerOgrDrivers was called multiple times.
Definition at line 736 of file qgsapplication.cpp.
Referenced by QgsVectorFileWriter::ogrDriverList(), QgsVectorFileWriter::QgsVectorFileWriter(), and QgsVectorFileWriter::supportedFiltersAndFormats().
| QString QgsApplication::relativePathToAbsolutePath | ( | QString | rpath, |
| QString | targetPath | ||
| ) | [static] |
Converts path relative to target to an absolute path.
Definition at line 807 of file qgsapplication.cpp.
| QString QgsApplication::reportStyleSheet | ( | ) | [static] |
get a standard css style sheet for reports.
Typically you will use this method by doing: QString myStyle = QgsApplication::reportStyleSheet(); textBrowserReport->document()->setDefaultStyleSheet(myStyle);
Definition at line 627 of file qgsapplication.cpp.
Referenced by QgsExpressionBuilderWidget::loadFunctionHelp(), QgsGenericProjectionSelector::setMessage(), and QgsContextHelp::showContext().
| static void QgsApplication::restoreGdalDriver | ( | QString | theDriver | ) | [static] |
Sets the GDAL_SKIP environment variable to exclude the specified driver and then calls GDALDriverManager::AutoSkipDrivers() to unregister it.
The driver name should be the short format of the Gdal driver name e.g. GTIFF.
| void QgsApplication::setDefaultSvgPaths | ( | const QStringList & | pathList | ) | [static] |
Alters default svg paths - used by 3rd party apps. Added in QGIS 1.5.
Definition at line 308 of file qgsapplication.cpp.
References ABISYM().
| void QgsApplication::setFileOpenEventReceiver | ( | QObject * | receiver | ) | [static] |
Set the FileOpen event receiver.
Definition at line 259 of file qgsapplication.cpp.
References ABISYM().
| void QgsApplication::setPkgDataPath | ( | const QString | thePkgDataPath | ) | [static] |
Alters pkg data path - used by 3rd party apps.
Definition at line 299 of file qgsapplication.cpp.
References ABISYM().
Referenced by init(), and setPrefixPath().
| void QgsApplication::setPluginPath | ( | const QString | thePluginPath | ) | [static] |
Alters plugin path - used by 3rd party apps.
Definition at line 294 of file qgsapplication.cpp.
References ABISYM().
Referenced by init(), and setPrefixPath().
| void QgsApplication::setPrefixPath | ( | const QString | thePrefixPath, |
| bool | useDefaultPaths = false |
||
| ) | [static] |
Alters prefix path - used by 3rd party apps.
Definition at line 276 of file qgsapplication.cpp.
References ABISYM(), setPkgDataPath(), and setPluginPath().
Referenced by init().
| void QgsApplication::setThemeName | ( | const QString | theThemeName | ) | [static] |
Set the active theme to the specified theme.
The theme name should be a single word e.g. 'default','classic'. The theme search path usually will be pkgDataPath + "/themes/" + themName + "/" but plugin writers etc can use themeName() as a basis for searching for resources in their own datastores e.g. a Qt4 resource bundle.
Set the theme path to the specified theme.
Definition at line 391 of file qgsapplication.cpp.
References ABISYM().
| QString QgsApplication::showSettings | ( | ) | [static] |
Convenience function to get a summary of the paths used in this application instance useful for debugging mainly.
Definition at line 602 of file qgsapplication.cpp.
References activeThemePath(), defaultThemePath(), pkgDataPath(), pluginPath(), prefixPath(), qgisMasterDbFilePath(), svgPaths(), themeName(), and tr.
| static void QgsApplication::skipGdalDriver | ( | QString | theDriver | ) | [static] |
Sets the GDAL_SKIP environment variable to include the specified driver and then calls GDALDriverManager::AutoSkipDrivers() to unregister it.
The driver name should be the short format of the Gdal driver name e.g. GTIFF.
| static QStringList QgsApplication::skippedGdalDrivers | ( | ) | [inline, static] |
Returns the list of gdal drivers that should be skipped (based on GDAL_SKIP environment variable)
Definition at line 260 of file qgsapplication.h.
References ABISYM().
| const QString QgsApplication::splashPath | ( | ) | [static] |
Returns the path to the splash screen image directory.
Definition at line 505 of file qgsapplication.cpp.
| const QString QgsApplication::sponsorsFilePath | ( | ) | [static] |
Returns the path to the sponsors file.
Definition at line 428 of file qgsapplication.cpp.
References ABISYM().
| const QString QgsApplication::srsDbFilePath | ( | ) | [static] |
Returns the path to the srs.db file.
Definition at line 520 of file qgsapplication.cpp.
References ABISYM().
Referenced by QgsCoordinateReferenceSystem::createFromOgcWmsCrs(), QgsCoordinateReferenceSystem::createFromSrid(), QgsCoordinateReferenceSystem::createFromSrsId(), QgsCoordinateReferenceSystem::findMatchingProj(), QgsCoordinateReferenceSystem::getRecord(), QgsCoordinateReferenceSystem::proj4FromSrsId(), QgsProjectionSelector::QgsProjectionSelector(), QgsDistanceArea::setEllipsoid(), and QgsCoordinateReferenceSystem::syncDb().
| const QStringList QgsApplication::svgPaths | ( | ) | [static] |
Returns the pathes to svg directories.
Returns the paths to the svg directories.
Definition at line 546 of file qgsapplication.cpp.
References ABISYM().
Referenced by QgsSymbolLayerV2Utils::listSvgFiles(), QgsSvgGroupsModel::QgsSvgGroupsModel(), QgsSvgSelectorGroupsModel::QgsSvgSelectorGroupsModel(), showSettings(), QgsSymbolLayerV2Utils::symbolNameToPath(), and QgsSymbolLayerV2Utils::symbolPathToName().
| static const QMap<QString, QString> QgsApplication::systemEnvVars | ( | ) | [inline, static] |
Returns the system environment variables passed to application.
Definition at line 125 of file qgsapplication.h.
References ABISYM().
| const QString QgsApplication::themeName | ( | ) | [static] |
Set the active theme to the specified theme.
The theme name should be a single word e.g. 'default','classic'. The theme search path usually will be pkgDataPath + "/themes/" + themName + "/" but plugin writers etc can use this method as a basis for searching for resources in their own datastores e.g. a Qt4 resource bundle.
Get the active theme name
Definition at line 407 of file qgsapplication.cpp.
References ABISYM().
Referenced by activeThemePath(), and showSettings().
| const QString QgsApplication::translatorsFilePath | ( | ) | [static] |
Returns the path to the sponsors file.
Returns the path to the sponsors file.
Definition at line 445 of file qgsapplication.cpp.
References ABISYM().
| const QString QgsApplication::userStyleV2Path | ( | ) | [static] |
Returns the path to user's style. Added in QGIS 1.4.
Definition at line 562 of file qgsapplication.cpp.
References qgisSettingsDirPath().
Referenced by QgsStyleV2::defaultStyle().