2015-10-05 01:43:48 +02:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
2016-03-24 19:34:46 +01:00
|
|
|
#include <QtGlobal>
|
2016-04-11 22:08:00 +02:00
|
|
|
#include <QDir>
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QString>
|
2015-10-05 01:43:48 +02:00
|
|
|
|
2016-03-24 19:34:46 +01:00
|
|
|
#define APP_NAME "GPXSee"
|
|
|
|
#define APP_HOMEPAGE "http://tumic.wz.cz/gpxsee"
|
|
|
|
|
|
|
|
#define FONT_FAMILY "Arial"
|
|
|
|
#define FONT_SIZE 12
|
2016-05-22 11:54:27 +02:00
|
|
|
#define SCREEN_DPI 96.0
|
2016-03-24 19:34:46 +01:00
|
|
|
|
|
|
|
#define MAP_FILE QString("maps.txt")
|
|
|
|
#define POI_DIR QString("POI")
|
2015-10-22 00:05:45 +02:00
|
|
|
|
2015-11-30 22:42:51 +01:00
|
|
|
#if defined(Q_OS_WIN32)
|
2016-03-24 19:34:46 +01:00
|
|
|
#define USER_DIR QDir::homePath() + QString("/GPXSee")
|
|
|
|
#define GLOBAL_DIR QApplication::applicationDirPath()
|
|
|
|
#elif defined(Q_OS_MAC)
|
|
|
|
#define USER_DIR QDir::homePath() + QString("/.gpxsee")
|
|
|
|
#define GLOBAL_DIR QApplication::applicationDirPath() \
|
|
|
|
+ QString("/../Resources")
|
2015-11-30 22:42:51 +01:00
|
|
|
#else
|
2016-03-24 19:34:46 +01:00
|
|
|
#define USER_DIR QDir::homePath() + QString("/.gpxsee")
|
|
|
|
#define GLOBAL_DIR QString("/usr/share/gpxsee")
|
2015-11-30 22:42:51 +01:00
|
|
|
#endif
|
2016-03-24 19:34:46 +01:00
|
|
|
|
|
|
|
#define USER_MAP_FILE USER_DIR + QString("/") + MAP_FILE
|
|
|
|
#define USER_POI_DIR USER_DIR + QString("/") + POI_DIR
|
|
|
|
#define GLOBAL_MAP_FILE GLOBAL_DIR + QString("/") + MAP_FILE
|
|
|
|
#define GLOBAL_POI_DIR GLOBAL_DIR + QString("/") + POI_DIR
|
|
|
|
#define TILES_DIR USER_DIR + QString("/tiles")
|
2015-10-17 01:33:02 +02:00
|
|
|
|
2015-10-05 01:43:48 +02:00
|
|
|
#endif /* CONFIG_H */
|