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;
47bool g_always_send_rmb_rmc = false;
48
49double g_n_arrival_circle_radius = 0.0;
50double g_PlanSpeed = 0.0;
51double g_TrackDeltaDistance = 0.0;
52double g_UserVar = 0.0;
53
54float g_fWaypointRangeRingsStep = 0.0;
55float g_GLMinSymbolLineWidth = 0.0;
56float g_selection_radius_mm = 2.0;
57float g_selection_radius_touch_mm = 10.0;
58
59int g_COGFilterSec = 1;
60int g_iDistanceFormat = 0;
61int g_iSDMMFormat = 0;
62int g_iSpeedFormat = 0;
63int g_iTempFormat = 0;
64int g_iWaypointRangeRingsNumber = 0;
65int g_iWaypointRangeRingsStepUnits = 0;
66int g_iWindSpeedFormat = 0;
67int g_iWpt_ScaMin = 0;
68int g_maxWPNameLength;
69int g_mbtilesMaxLayers = 2;
70int g_nCOMPortCheck = 32;
71int g_nDepthUnitDisplay = 0;
72int g_netmask_bits = 24;
73int g_NMEAAPBPrecision = 3;
74int g_nNMEADebug = 0;
75int g_nTrackPrecision = 0;
76int gps_watchdog_timeout_ticks = 0;
77int g_route_line_width = 0;
78int g_SOGFilterSec = 0;
79int g_trackFilterMax = 0;
80int g_track_line_width = 0;
81int g_WplAction = 0;
82int sat_watchdog_timeout_ticks = 12;
83
84wxString g_active_route;
85wxString g_catalog_channel;
86wxString g_catalog_custom_url;
87wxString g_compatOS = PKG_TARGET;
88wxString g_compatOsVersion = PKG_TARGET_VERSION;
89wxString g_default_routepoint_icon;
90wxString g_GPS_Ident;
91wxString g_hostname;
92wxString g_SART_sound_file;
93wxString g_TalkerIdText;
94wxString g_winPluginDir;
95wxString g_datetime_format;
96
97static wxConfigBase* the_base_config = 0;
98
99wxConfigBase* TheBaseConfig() {
100 wxASSERT_MSG(the_base_config != 0, "Uninitialized the_base_config");
101 return the_base_config;
102}
103void InitBaseConfig(wxConfigBase* cfg) { the_base_config = cfg; }