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