2016-04-28 08:49:06 +02:00
|
|
|
#ifndef SETTINGS_H
|
|
|
|
#define SETTINGS_H
|
|
|
|
|
2016-12-06 21:02:44 +01:00
|
|
|
#define IMPERIAL_UNITS() \
|
|
|
|
(QLocale::system().measurementSystem() == QLocale::ImperialSystem)
|
|
|
|
|
2016-04-28 08:49:06 +02:00
|
|
|
#define WINDOW_SETTINGS_GROUP "Window"
|
2021-02-19 19:31:54 +01:00
|
|
|
#define WINDOW_GEOMETRY_SETTING "geometry"
|
2019-02-18 22:33:18 +01:00
|
|
|
#define WINDOW_STATE_SETTING "state"
|
2016-04-28 08:49:06 +02:00
|
|
|
|
|
|
|
#define SETTINGS_SETTINGS_GROUP "Settings"
|
2017-02-12 19:57:55 +01:00
|
|
|
#define TIME_TYPE_SETTING "timeType"
|
|
|
|
#define TIME_TYPE_DEFAULT Total
|
2016-08-09 01:16:19 +02:00
|
|
|
#define UNITS_SETTING "units"
|
2016-12-06 21:02:44 +01:00
|
|
|
#define UNITS_DEFAULT (IMPERIAL_UNITS() ? Imperial : Metric)
|
2018-02-11 20:39:39 +01:00
|
|
|
#define COORDINATES_SETTING "coordinates"
|
|
|
|
#define COORDINATES_DEFAULT DecimalDegrees
|
2016-04-28 08:49:06 +02:00
|
|
|
#define SHOW_TOOLBARS_SETTING "toolbar"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_TOOLBARS_DEFAULT true
|
2016-09-19 00:56:10 +02:00
|
|
|
|
|
|
|
#define GRAPH_SETTINGS_GROUP "Graph"
|
|
|
|
#define SHOW_GRAPHS_SETTING "show"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_GRAPHS_DEFAULT true
|
2016-09-19 00:56:10 +02:00
|
|
|
#define GRAPH_TYPE_SETTING "type"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define GRAPH_TYPE_DEFAULT Distance
|
2016-10-17 23:14:07 +02:00
|
|
|
#define SHOW_GRAPH_GRIDS_SETTING "grid"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_GRAPH_GRIDS_DEFAULT true
|
2017-09-29 11:43:09 +02:00
|
|
|
#define SHOW_GRAPH_SLIDER_INFO_SETTING "sliderInfo"
|
|
|
|
#define SHOW_GRAPH_SLIDER_INFO_DEFAULT true
|
2019-05-23 08:44:55 +02:00
|
|
|
#define SHOW_TICKS_SETTING "pathTicks"
|
|
|
|
#define SHOW_TICKS_DEFAULT false
|
2016-04-28 08:49:06 +02:00
|
|
|
|
|
|
|
#define MAP_SETTINGS_GROUP "Map"
|
2016-08-09 01:16:19 +02:00
|
|
|
#define CURRENT_MAP_SETTING "map"
|
2016-04-28 08:49:06 +02:00
|
|
|
#define SHOW_MAP_SETTING "show"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_MAP_DEFAULT true
|
2019-02-17 20:20:20 +01:00
|
|
|
#define SHOW_COORDINATES_SETTING "coordinates"
|
|
|
|
#define SHOW_COORDINATES_DEFAULT false
|
2016-04-28 08:49:06 +02:00
|
|
|
|
2016-08-09 01:16:19 +02:00
|
|
|
#define POI_SETTINGS_GROUP "POI"
|
2016-08-02 20:46:22 +02:00
|
|
|
#define OVERLAP_POI_SETTING "overlap"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define OVERLAP_POI_DEFAULT false
|
2021-05-09 22:36:37 +02:00
|
|
|
#define SHOW_POI_LABELS_SETTING "labels"
|
|
|
|
#define SHOW_POI_LABELS_DEFAULT true
|
2016-04-28 08:49:06 +02:00
|
|
|
#define SHOW_POI_SETTING "show"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_POI_DEFAULT false
|
2016-04-28 08:49:06 +02:00
|
|
|
#define DISABLED_POI_FILE_SETTINGS_PREFIX "disabled"
|
|
|
|
#define DISABLED_POI_FILE_SETTING "file"
|
|
|
|
|
2016-08-09 01:16:19 +02:00
|
|
|
#define DATA_SETTINGS_GROUP "Data"
|
|
|
|
#define SHOW_TRACKS_SETTING "tracks"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_TRACKS_DEFAULT true
|
2016-08-09 01:16:19 +02:00
|
|
|
#define SHOW_ROUTES_SETTING "routes"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_ROUTES_DEFAULT true
|
2016-08-09 01:16:19 +02:00
|
|
|
#define SHOW_WAYPOINTS_SETTING "waypoints"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_WAYPOINTS_DEFAULT true
|
2019-01-31 01:46:53 +01:00
|
|
|
#define SHOW_AREAS_SETTING "areas"
|
|
|
|
#define SHOW_AREAS_DEFAULT true
|
2016-08-09 10:47:49 +02:00
|
|
|
#define SHOW_ROUTE_WAYPOINTS_SETTING "routeWaypoints"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_ROUTE_WAYPOINTS_DEFAULT true
|
2016-08-09 01:16:19 +02:00
|
|
|
#define SHOW_WAYPOINT_LABELS_SETTING "waypointLabels"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define SHOW_WAYPOINT_LABELS_DEFAULT true
|
2021-01-17 16:02:37 +01:00
|
|
|
#define SHOW_MARKERS_SETTING "positionMarkers"
|
|
|
|
#define SHOW_MARKERS_DEFAULT true
|
2021-02-06 15:23:02 +01:00
|
|
|
#define SHOW_MARKER_INFO_SETTING "markerInfo"
|
2021-02-12 22:41:38 +01:00
|
|
|
#define SHOW_MARKER_INFO_DEFAULT MarkerInfoItem::None
|
2016-12-06 01:48:26 +01:00
|
|
|
|
2020-09-27 00:34:38 +02:00
|
|
|
#define PDF_EXPORT_SETTINGS_GROUP "Export"
|
2016-12-06 01:48:26 +01:00
|
|
|
#define PAPER_ORIENTATION_SETTING "orientation"
|
2020-12-22 22:09:09 +01:00
|
|
|
#define PAPER_ORIENTATION_DEFAULT QPageLayout::Orientation::Portrait
|
2016-12-06 01:48:26 +01:00
|
|
|
#define PAPER_SIZE_SETTING "size"
|
2020-12-22 22:09:09 +01:00
|
|
|
#define PAPER_SIZE_DEFAULT (IMPERIAL_UNITS() \
|
|
|
|
? QPageSize::PageSizeId::Letter \
|
|
|
|
: QPageSize::PageSizeId::A4)
|
2020-09-27 00:34:38 +02:00
|
|
|
#define PDF_MARGIN_LEFT_SETTING "marginLeft"
|
|
|
|
#define PDF_MARGIN_LEFT_DEFAULT 5 /* mm */
|
|
|
|
#define PDF_MARGIN_TOP_SETTING "marginTop"
|
|
|
|
#define PDF_MARGIN_TOP_DEFAULT 5 /* mm */
|
|
|
|
#define PDF_MARGIN_RIGHT_SETTING "marginRight"
|
|
|
|
#define PDF_MARGIN_RIGHT_DEFAULT 5 /* mm */
|
|
|
|
#define PDF_MARGIN_BOTTOM_SETTING "marginBottom"
|
|
|
|
#define PDF_MARGIN_BOTTOM_DEFAULT 5 /* mm */
|
|
|
|
#define PDF_FILENAME_SETTING "fileName"
|
|
|
|
#define PDF_FILENAME_DEFAULT QString("%1/export.pdf"). \
|
2016-12-06 21:02:44 +01:00
|
|
|
arg(QDir::currentPath())
|
2017-08-28 17:48:46 +02:00
|
|
|
#define RESOLUTION_SETTING "resolution"
|
|
|
|
#define RESOLUTION_DEFAULT 600
|
2016-12-06 01:48:26 +01:00
|
|
|
|
2020-09-27 00:34:38 +02:00
|
|
|
#define PNG_EXPORT_SETTINGS_GROUP "PNGExport"
|
|
|
|
#define PNG_WIDTH_SETTING "width"
|
|
|
|
#define PNG_WIDTH_DEFAULT 600
|
|
|
|
#define PNG_HEIGHT_SETTING "height"
|
|
|
|
#define PNG_HEIGHT_DEFAULT 800
|
|
|
|
#define PNG_MARGIN_LEFT_SETTING "marginLeft"
|
|
|
|
#define PNG_MARGIN_LEFT_DEFAULT 5 /* px */
|
|
|
|
#define PNG_MARGIN_TOP_SETTING "marginTop"
|
|
|
|
#define PNG_MARGIN_TOP_DEFAULT 5 /* px */
|
|
|
|
#define PNG_MARGIN_RIGHT_SETTING "marginRight"
|
|
|
|
#define PNG_MARGIN_RIGHT_DEFAULT 5 /* px */
|
|
|
|
#define PNG_MARGIN_BOTTOM_SETTING "marginBottom"
|
|
|
|
#define PNG_MARGIN_BOTTOM_DEFAULT 5 /* px */
|
|
|
|
#define PNG_ANTIALIASING_SETTING "antialiasing"
|
|
|
|
#define PNG_ANTIALIASING_DEFAULT true
|
|
|
|
#define PNG_FILENAME_SETTING "fileName"
|
|
|
|
#define PNG_FILENAME_DEFAULT QString("%1/export.png"). \
|
|
|
|
arg(QDir::currentPath())
|
|
|
|
|
2016-12-06 01:48:26 +01:00
|
|
|
#define OPTIONS_SETTINGS_GROUP "Options"
|
|
|
|
#define PALETTE_COLOR_SETTING "paletteColor"
|
|
|
|
#define PALETTE_COLOR_DEFAULT QColor(Qt::blue)
|
|
|
|
#define PALETTE_SHIFT_SETTING "paletteShift"
|
|
|
|
#define PALETTE_SHIFT_DEFAULT 0.62
|
2017-08-24 17:29:59 +02:00
|
|
|
#define MAP_OPACITY_SETTING "mapOpacity"
|
|
|
|
#define MAP_OPACITY_DEFAULT 100
|
2017-09-15 00:07:09 +02:00
|
|
|
#define BACKGROUND_COLOR_SETTING "backgroundColor"
|
|
|
|
#define BACKGROUND_COLOR_DEFAULT QColor(Qt::white)
|
2016-12-06 01:48:26 +01:00
|
|
|
#define TRACK_WIDTH_SETTING "trackWidth"
|
|
|
|
#define TRACK_WIDTH_DEFAULT 3
|
|
|
|
#define ROUTE_WIDTH_SETTING "routeWidth"
|
|
|
|
#define ROUTE_WIDTH_DEFAULT 3
|
2019-01-31 01:46:53 +01:00
|
|
|
#define AREA_WIDTH_SETTING "areaWidth"
|
|
|
|
#define AREA_WIDTH_DEFAULT 2
|
2016-12-06 01:48:26 +01:00
|
|
|
#define TRACK_STYLE_SETTING "trackStyle"
|
|
|
|
#define TRACK_STYLE_DEFAULT Qt::SolidLine
|
|
|
|
#define ROUTE_STYLE_SETTING "routeStyle"
|
|
|
|
#define ROUTE_STYLE_DEFAULT Qt::DotLine
|
2019-01-31 01:46:53 +01:00
|
|
|
#define AREA_STYLE_SETTING "areaStyle"
|
|
|
|
#define AREA_STYLE_DEFAULT Qt::SolidLine
|
|
|
|
#define AREA_OPACITY_SETTING "areaOpacity"
|
|
|
|
#define AREA_OPACITY_DEFAULT 50
|
2017-09-10 12:42:49 +02:00
|
|
|
#define WAYPOINT_SIZE_SETTING "waypointSize"
|
|
|
|
#define WAYPOINT_SIZE_DEFAULT 8
|
|
|
|
#define WAYPOINT_COLOR_SETTING "waypointColor"
|
|
|
|
#define WAYPOINT_COLOR_DEFAULT QColor(Qt::black)
|
|
|
|
#define POI_SIZE_SETTING "poiSize"
|
|
|
|
#define POI_SIZE_DEFAULT 8
|
|
|
|
#define POI_COLOR_SETTING "poiColor"
|
|
|
|
#define POI_COLOR_DEFAULT QColor(Qt::black)
|
2016-12-06 01:48:26 +01:00
|
|
|
#define GRAPH_WIDTH_SETTING "graphWidth"
|
|
|
|
#define GRAPH_WIDTH_DEFAULT 1
|
|
|
|
#define PATH_AA_SETTING "pathAntiAliasing"
|
|
|
|
#define PATH_AA_DEFAULT true
|
|
|
|
#define GRAPH_AA_SETTING "graphAntiAliasing"
|
2020-10-21 21:18:26 +02:00
|
|
|
#define GRAPH_AA_DEFAULT true
|
2017-05-22 14:54:22 +02:00
|
|
|
#define ELEVATION_FILTER_SETTING "elevationFilter"
|
|
|
|
#define ELEVATION_FILTER_DEFAULT 3
|
|
|
|
#define SPEED_FILTER_SETTING "speedFilter"
|
2017-05-23 16:06:05 +02:00
|
|
|
#define SPEED_FILTER_DEFAULT 5
|
2017-05-22 14:54:22 +02:00
|
|
|
#define HEARTRATE_FILTER_SETTING "heartrateFilter"
|
|
|
|
#define HEARTRATE_FILTER_DEFAULT 3
|
|
|
|
#define CADENCE_FILTER_SETTING "cadenceFilter"
|
|
|
|
#define CADENCE_FILTER_DEFAULT 3
|
|
|
|
#define POWER_FILTER_SETTING "powerFilter"
|
|
|
|
#define POWER_FILTER_DEFAULT 3
|
|
|
|
#define OUTLIER_ELIMINATE_SETTING "outlierEliminate"
|
|
|
|
#define OUTLIER_ELIMINATE_DEFAULT true
|
2019-11-13 08:27:54 +01:00
|
|
|
#define AUTOMATIC_PAUSE_SETTING "automaticPause"
|
|
|
|
#define AUTOMATIC_PAUSE_DEFAULT true
|
2017-05-22 14:54:22 +02:00
|
|
|
#define PAUSE_SPEED_SETTING "pauseSpeed"
|
|
|
|
#define PAUSE_SPEED_DEFAULT 0.5 /* m/s */
|
|
|
|
#define PAUSE_INTERVAL_SETTING "pauseInterval"
|
|
|
|
#define PAUSE_INTERVAL_DEFAULT 10 /* s */
|
2018-06-21 20:54:24 +02:00
|
|
|
#define USE_REPORTED_SPEED_SETTING "useReportedSpeed"
|
|
|
|
#define USE_REPORTED_SPEED_DEFAULT false
|
2019-01-22 23:01:40 +01:00
|
|
|
#define DATA_USE_DEM_SETTING "dataUseDEM"
|
|
|
|
#define DATA_USE_DEM_DEFAULT false
|
2020-03-25 23:08:26 +01:00
|
|
|
#define SHOW_SECONDARY_ELEVATION_SETTING "showSecondaryElevation"
|
|
|
|
#define SHOW_SECONDARY_ELEVATION_DEFAULT false
|
|
|
|
#define SHOW_SECONDARY_SPEED_SETTING "showSecondarySpeed"
|
|
|
|
#define SHOW_SECONDARY_SPEED_DEFAULT false
|
2020-05-20 21:00:36 +02:00
|
|
|
#define TIME_ZONE_SETTING "timeZone"
|
2020-09-20 22:18:35 +02:00
|
|
|
#define USE_SEGMENTS_SETTING "useSegments"
|
|
|
|
#define USE_SEGMENTS_DEFAULT true
|
2016-12-06 01:48:26 +01:00
|
|
|
#define POI_RADIUS_SETTING "poiRadius"
|
2017-05-23 00:26:59 +02:00
|
|
|
#define POI_RADIUS_DEFAULT (int)(IMPERIAL_UNITS() ? MIINM : KMINM)
|
2016-12-06 01:48:26 +01:00
|
|
|
#define USE_OPENGL_SETTING "useOpenGL"
|
|
|
|
#define USE_OPENGL_DEFAULT false
|
2018-07-23 23:53:58 +02:00
|
|
|
#define ENABLE_HTTP2_SETTING "enableHTTP2"
|
|
|
|
#define ENABLE_HTTP2_DEFAULT true
|
2017-05-03 23:55:16 +02:00
|
|
|
#define PIXMAP_CACHE_SETTING "pixmapCache"
|
2019-10-03 22:47:31 +02:00
|
|
|
#define PIXMAP_CACHE_DEFAULT 256 /* MB */
|
2018-04-27 19:31:27 +02:00
|
|
|
#define CONNECTION_TIMEOUT_SETTING "connectionTimeout"
|
|
|
|
#define CONNECTION_TIMEOUT_DEFAULT 30 /* s */
|
2017-08-28 15:25:45 +02:00
|
|
|
#define HIRES_PRINT_SETTING "hiresPrint"
|
|
|
|
#define HIRES_PRINT_DEFAULT false
|
2016-12-16 02:30:58 +01:00
|
|
|
#define PRINT_NAME_SETTING "printName"
|
|
|
|
#define PRINT_NAME_DEFAULT true
|
|
|
|
#define PRINT_DATE_SETTING "printDate"
|
|
|
|
#define PRINT_DATE_DEFAULT true
|
|
|
|
#define PRINT_DISTANCE_SETTING "printDistance"
|
|
|
|
#define PRINT_DISTANCE_DEFAULT true
|
|
|
|
#define PRINT_TIME_SETTING "printTime"
|
|
|
|
#define PRINT_TIME_DEFAULT true
|
2017-01-31 09:37:01 +01:00
|
|
|
#define PRINT_MOVING_TIME_SETTING "printMovingTime"
|
|
|
|
#define PRINT_MOVING_TIME_DEFAULT false
|
2016-12-16 02:30:58 +01:00
|
|
|
#define PRINT_ITEM_COUNT_SETTING "printItemCount"
|
|
|
|
#define PRINT_ITEM_COUNT_DEFAULT true
|
|
|
|
#define SEPARATE_GRAPH_PAGE_SETTING "separateGraphPage"
|
|
|
|
#define SEPARATE_GRAPH_PAGE_DEFAULT false
|
2017-12-03 00:36:52 +01:00
|
|
|
#define SLIDER_COLOR_SETTING "sliderColor"
|
|
|
|
#define SLIDER_COLOR_DEFAULT QColor(Qt::red)
|
2020-12-24 16:33:17 +01:00
|
|
|
#define OUTPUT_PROJECTION_SETTING "outputProjection"
|
|
|
|
#define OUTPUT_PROJECTION_DEFAULT 3857
|
|
|
|
#define INPUT_PROJECTION_SETTING "inputProjection"
|
|
|
|
#define INPUT_PROJECTION_DEFAULT 4326
|
2018-09-11 00:33:20 +02:00
|
|
|
#define HIDPI_MAP_SETTING "HiDPIMap"
|
|
|
|
#define HIDPI_MAP_DEFAULT true
|
2021-07-12 00:21:21 +02:00
|
|
|
#define DATA_PATH_SETTING "dataPath"
|
|
|
|
#define DATA_PATH_DEFAULT QString()
|
|
|
|
#define MAPS_PATH_SETTING "mapsPath"
|
|
|
|
#define MAPS_PATH_DEFAULT QString()
|
|
|
|
#define POI_PATH_SETTING "poiPath"
|
|
|
|
#define POI_PATH_DEFAULT QString()
|
2016-08-09 01:16:19 +02:00
|
|
|
|
2016-04-28 08:49:06 +02:00
|
|
|
#endif // SETTINGS_H
|