OpenCPN Partial API docs
config_vars.h
1 /******************************************************************************
2  *
3  * Project: OpenCPN
4  * Purpose: Variables defined in config file, command line etc.
5  *
6  ***************************************************************************
7  * Copyright (C) 2019 Alec Leamas *
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  * This program is distributed in the hope that it will be useful, *
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17  * GNU General Public License for more details. *
18  * *
19  * You should have received a copy of the GNU General Public License *
20  * along with this program; if not, write to the *
21  * Free Software Foundation, Inc., *
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
23  ***************************************************************************
24  */
25 
26 #ifndef CONFIG_VARS_H__
27 #define CONFIG_VARS_H__
28 
29 #include <wx/config.h>
30 #include <wx/string.h>
31 
32 extern bool g_bAISRolloverShowClass;
33 extern bool g_bAISRolloverShowCOG;
34 extern bool g_bAISRolloverShowCPA;
35 extern bool g_bAllowShipToActive;
36 extern bool g_benableUDPNullHeader;
37 extern bool g_bGarminHostUpload;
38 extern bool g_bInlandEcdis;
39 extern bool g_bMagneticAPB;
40 extern bool g_bOverruleScaMin;
41 extern bool g_bShowMag;
42 extern bool g_bShowTrue;
43 extern bool g_bTrackDaily;
44 extern bool g_bWplUsePosition;
45 extern bool g_bShowWptName;
46 extern bool g_bUserIconsFirst;
47 extern bool g_btouch;
48 extern bool g_bUseWptScaMin;
49 extern bool g_persist_active_route;
50 
51 extern double g_n_arrival_circle_radius;
52 extern double g_PlanSpeed;
53 extern double g_TrackDeltaDistance;
54 extern double g_UserVar;
55 
56 extern float g_fWaypointRangeRingsStep;
57 extern float g_GLMinSymbolLineWidth;
58 extern float g_selection_radius_mm;
59 extern float g_selection_radius_touch_mm;
60 
61 extern int g_iDistanceFormat;
62 extern int g_iSpeedFormat;
63 extern int g_iSDMMFormat;
64 extern int g_iWindSpeedFormat;
65 extern int g_iTempFormat;
66 extern int g_iWpt_ScaMin;
67 extern int g_iWaypointRangeRingsNumber;
68 extern int g_iWaypointRangeRingsStepUnits;
69 extern int g_maxWPNameLength;
70 extern int g_mbtilesMaxLayers;
71 extern int g_NMEAAPBPrecision;
72 extern int g_nCOMPortCheck;
73 extern int g_nDepthUnitDisplay;
74 extern int g_nNMEADebug;
75 extern int g_nTrackPrecision;
76 extern int g_route_line_width;
77 extern int g_track_line_width;
78 extern int g_trackFilterMax;
79 extern int g_WplAction;
80 extern int gps_watchdog_timeout_ticks;
81 extern int sat_watchdog_timeout_ticks;
82 
83 extern wxString g_active_route;
84 extern wxString g_android_Device_Model;
85 extern wxString g_catalog_channel;
86 extern wxString g_catalog_custom_url;
87 extern wxString g_compatOS;
88 extern wxString g_compatOsVersion;
89 extern wxString g_default_routepoint_icon;
90 extern wxString g_GPS_Ident;
91 extern wxString g_hostname;
92 extern wxString g_SART_sound_file;
93 extern wxString g_TalkerIdText;
94 extern wxString g_winPluginDir; // Base plugin directory on Windows.
95 
96 wxConfigBase* TheBaseConfig();
97 void InitBaseConfig(wxConfigBase* cfg);
98 
99 #endif // CONFIG_VARS_H__