OpenCPN Partial API docs
Loading...
Searching...
No Matches
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>
31extern bool g_bAISRolloverShowClass;
32extern bool g_bAISRolloverShowCOG;
33extern bool g_bAISRolloverShowCPA;
34extern bool g_bAllowShipToActive;
35extern bool g_benableUDPNullHeader;
36extern bool g_bfilter_cogsog;
37extern bool g_bGarminHostUpload;
38extern bool g_bInlandEcdis;
39extern bool g_bMagneticAPB;
40extern bool g_bOverruleScaMin;
41extern bool g_bShowMag;
42extern bool g_bShowTrue;
43extern bool g_bShowWptName;
44extern bool g_btouch;
45extern bool g_bTrackDaily;
46extern bool g_bUserIconsFirst;
47extern bool g_bUseWptScaMin;
48extern bool g_bWplUsePosition;
49extern bool g_enable_root_menu_debug;
50extern bool g_persist_active_route;
51
52extern double g_n_arrival_circle_radius;
53extern double g_PlanSpeed;
54extern double g_TrackDeltaDistance;
55extern double g_UserVar;
56
57extern float g_fWaypointRangeRingsStep;
58extern float g_GLMinSymbolLineWidth;
59extern float g_selection_radius_mm;
60extern float g_selection_radius_touch_mm;
61
62extern int g_COGFilterSec;
63extern int g_NMEAAPBPrecision;
64extern int g_SOGFilterSec;
65extern int g_WplAction;
66extern int g_iDistanceFormat;
67extern int g_iSDMMFormat;
68extern int g_iSpeedFormat;
69extern int g_iTempFormat;
70extern int g_iWaypointRangeRingsNumber;
71extern int g_iWaypointRangeRingsStepUnits;
72extern int g_iWindSpeedFormat;
73extern int g_iWpt_ScaMin;
74extern int g_maxWPNameLength;
75extern int g_mbtilesMaxLayers;
76extern int g_nCOMPortCheck;
77extern int g_nDepthUnitDisplay;
78extern int g_netmask_bits;
79extern int g_nNMEADebug;
80extern int g_nTrackPrecision;
81extern int g_route_line_width;
82extern int g_trackFilterMax;
83extern int g_track_line_width;
84extern int gps_watchdog_timeout_ticks;
85extern int sat_watchdog_timeout_ticks;
86
87extern wxString g_active_route;
88extern wxString g_android_Device_Model;
89extern wxString g_catalog_channel;
90extern wxString g_catalog_custom_url;
91extern wxString g_compatOS;
92extern wxString g_compatOsVersion;
93extern wxString g_default_routepoint_icon;
94extern wxString g_GPS_Ident;
95extern wxString g_hostname;
96extern wxString g_SART_sound_file;
97extern wxString g_TalkerIdText;
98extern wxString g_winPluginDir; // Base plugin directory on Windows.
99
100wxConfigBase* TheBaseConfig();
101void InitBaseConfig(wxConfigBase* cfg);
102
103#endif // CONFIG_VARS_H__