X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/1f78e182e7eaf305c3a10d2e145dbcc994d5e862..e96fe99dfb8c926ba4c6ee558380cc3f7f5241bc:/src/globals.h?ds=sidebyside diff --git a/src/globals.h b/src/globals.h index fdd3f457..c919c180 100644 --- a/src/globals.h +++ b/src/globals.h @@ -46,12 +46,11 @@ #define DEMERCLAT(x) (RAD2DEG * atan(sinh(DEG2RAD * (x)))) /* Some command line options */ -extern gboolean vik_use_small_wp_icons; extern gboolean vik_debug; extern gboolean vik_verbose; extern gboolean vik_version; -/* Glbal preferences */ +/* Global preferences */ void a_vik_preferences_init (); /* Coord display preferences */ @@ -63,6 +62,43 @@ typedef enum { vik_degree_format_t a_vik_get_degree_format ( ); +/* Distance preferences */ +typedef enum { + VIK_UNITS_DISTANCE_KILOMETRES, + VIK_UNITS_DISTANCE_MILES, +} vik_units_distance_t; + +vik_units_distance_t a_vik_get_units_distance ( ); + +/* Speed preferences */ +typedef enum { + VIK_UNITS_SPEED_KILOMETRES_PER_HOUR, + VIK_UNITS_SPEED_MILES_PER_HOUR, + VIK_UNITS_SPEED_METRES_PER_SECOND, + VIK_UNITS_SPEED_KNOTS, +} vik_units_speed_t; + +vik_units_speed_t a_vik_get_units_speed ( ); + +/* Height (Depth) preferences */ +typedef enum { + VIK_UNITS_HEIGHT_METRES, + VIK_UNITS_HEIGHT_FEET, +} vik_units_height_t; + +vik_units_height_t a_vik_get_units_height ( ); + +gboolean a_vik_get_use_large_waypoint_icons ( ); + +/* Location preferences */ +typedef enum { + VIK_LOCATION_LAT, + VIK_LOCATION_LONG, +} vik_location_t; + +gdouble a_vik_get_default_lat ( ); +gdouble a_vik_get_default_long ( ); + /* Group for global preferences */ #define VIKING_PREFERENCES_GROUP_KEY "viking.globals" #define VIKING_PREFERENCES_NAMESPACE "viking.globals."