16 #ifndef QGSAPPLICATION_H
17 #define QGSAPPLICATION_H
19 #include <QApplication>
24 #define ABISYM(x) x ## VERSION_INT
35 QgsApplication(
int & argc,
char ** argv,
bool GUIenabled, QString customConfigPath = QString() );
39 virtual bool event( QEvent * event );
42 virtual bool notify( QObject * receiver, QEvent * event );
45 static void setFileOpenEventReceiver( QObject * receiver );
56 static void setThemeName(
const QString theThemeName );
64 static const QString themeName() ;
67 static const QString authorsFilePath();
73 static const QString contributorsFilePath();
77 static const QString sponsorsFilePath();
81 static const QString donorsFilePath();
87 static const QString translatorsFilePath();
90 static const QString developerPath();
93 static const QString helpAppPath();
96 static const QString i18nPath();
99 static const QString qgisMasterDbFilePath();
102 static const QString qgisSettingsDirPath();
105 static const QString qgisUserDbFilePath();
108 static const QString splashPath();
111 static const QString iconsPath();
114 static const QString srsDbFilePath();
118 static const QStringList svgPaths();
122 Q_DECL_DEPRECATED
static const QString svgPath();
125 static const QString prefixPath();
128 static const QString pluginPath();
131 static const QString pkgDataPath();
134 static const QString activeThemePath();
137 static const QString defaultThemePath();
142 static QString iconPath( QString iconFile );
145 static const QString userStyleV2Path();
148 static const QString defaultStyleV2Path();
151 static void setPrefixPath(
const QString thePrefixPath,
bool useDefaultPaths =
false );
154 static void setPluginPath(
const QString thePluginPath );
157 static void setPkgDataPath(
const QString thePkgDataPath );
160 static void setDefaultSvgPaths(
const QStringList& pathList );
163 static void initQgis();
166 static void exitQgis();
177 static endian_t endian();
187 static QString reportStyleSheet();
190 static QString showSettings();
197 static void registerOgrDrivers();
201 static QString absolutePathToRelativePath( QString apath, QString targetPath );
204 static QString relativePathToAbsolutePath( QString rpath, QString targetPath );
207 static QObject*
ABISYM( mFileOpenEventReceiver );
208 static QStringList
ABISYM( mFileOpenEventList );
210 static QString
ABISYM( mPrefixPath );
211 static QString
ABISYM( mPluginPath );
212 static QString
ABISYM( mPkgDataPath );
213 static QString
ABISYM( mThemeName );
214 static QStringList
ABISYM( mDefaultSvgPaths );
216 static QString
ABISYM( mConfigPath );