mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Preferences infrastructure for GeoManagement
Simple preferences infrastructure with default prefs, prefs and hooks for the Qt Settings system and our preferences ui. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ce4333e8fd
commit
21c46b8c2d
3 changed files with 51 additions and 1 deletions
10
pref.h
10
pref.h
|
@ -24,6 +24,15 @@ typedef struct {
|
|||
char *album_id;
|
||||
} facebook_prefs_t;
|
||||
|
||||
typedef struct {
|
||||
bool enable_geocoding;
|
||||
bool parse_dive_without_gps;
|
||||
bool tag_existing_dives;
|
||||
char *first_item;
|
||||
char *second_item;
|
||||
char *third_item;
|
||||
} geocoding_prefs_t;
|
||||
|
||||
struct preferences {
|
||||
const char *divelist_font;
|
||||
const char *default_filename;
|
||||
|
@ -100,6 +109,7 @@ struct preferences {
|
|||
bool save_password_local;
|
||||
short cloud_verification_status;
|
||||
bool cloud_background_sync;
|
||||
geocoding_prefs_t geocoding;
|
||||
};
|
||||
enum unit_system_values {
|
||||
METRIC,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue