OpenCPN Partial API docs
Loading...
Searching...
No Matches
gui_vars.cpp
Go to the documentation of this file.
1/**************************************************************************
2 * Copyright (C) 2021 Alec Leamas *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
16 **************************************************************************/
17
25#include <wx/colour.h>
26#include <wx/datetime.h>
27#include <wx/string.h>
28
29#include "model/gui_vars.h"
30
31bool AnchorAlertOn1 = false;
32bool AnchorAlertOn2 = false;
33bool bDBUpdateInProgress = false;
34bool b_inCloseWindow = false;
36bool bVelocityValid = false;
37bool g_bAdvanceRouteWaypointOnArrivalOnly = false;
38bool g_b_assume_azerty = false;
39bool g_bChartBarEx = false;
40bool g_bcompression_wait = false;
41bool g_bCruising = false;
42bool g_bDeferredInitDone = false;
43bool g_bDeferredStartTrack = false;
44bool g_b_EnableVBO = false;
45bool g_bFirstRun = false;
46bool g_bhide_context_menus = false;
47bool g_bhide_depth_units = false;
48bool g_bhide_overzoom_flag = false;
49bool g_bhide_route_console = false;
50bool g_b_legacy_input_filter_behaviour = false;
51bool g_bmasterToolbarFull = true;
52bool g_b_overzoom_x = true;
53bool g_bPauseTest = false;
54bool g_bquiting = false;
55bool g_bSleep = false;
56bool g_bTempShowMenuBar = false;
57bool g_bTrackActive = false;
58bool g_bTransparentToolbarInOpenGLOK = false;
59bool g_bUpgradeInProcess = false;
60bool g_CanvasHideNotificationIcon = false;
61bool g_disable_main_toolbar = false;
62bool g_FlushNavobjChanges = false;
63bool g_PrintingInProgress = false;
64
65double AnchorPointMinDist;
66double g_androidDPmm = 0.0;
67double g_ChartNotRenderScaleFactor = 1.0;
68double gCog_gt = 0;
70double g_defaultBoatSpeedUserUnit = 0;
71double g_scaler = 0;
72double vLat = 0;
73double vLon = 0;
74
76
77float g_compass_scalefactor = 0;
78float g_toolbar_scalefactor = 0;
79
80int g_ChartUpdatePeriod = 0;
81int g_click_stop = 0;
82int g_FlushNavobjChangesTimeout = 0;
83int g_lastMemTick = -1;
84int g_memUsed = 0;
86int gpIDXn = 0;
87int g_sticky_chart = 0;
88int g_tick = 0;
89int g_tile_size = 0;
90int g_uncompressed_tile_size = 0;
91int quitflag = 0;
92;
93int options_lastPage = 0;
95
96long g_tex_mem_used = 0;
97
98unsigned gs_plib_flags = 0;
99
100wxDateTime g_loglast_time;
101wxDateTime g_start_time;
102wxDateTime gTimeSource;
103
104wxColour g_colourOwnshipRangeRingsColour;
105wxColour g_colourTrackLineColour;
106
107wxString ChartListFileName;
108wxString gDefaultWorldMapLocation;
109wxString g_SENCPrefix;
110wxString g_csv_locn;
111
112wxString* pInit_Chart_Dir;
113
114const wxString kUtfCheckMark = wxString::FromUTF8(u8"\u2713");
115const wxString kUtfCircledDivisionSlash = wxString::FromUTF8(u8"\u2298");
116const wxString kUtfFallingDiagonal = wxString::FromUTF8(u8"\u269F");
117const wxString kUtfIdenticalTo = wxString::FromUTF8(u8"\u2261");
118const wxString kUtfLeftArrow = wxString::FromUTF8(u8"\u2190");
119const wxString kUtfLeftRightArrow = wxString::FromUTF8(u8"\u2194");
120const wxString kUtfLeftwardsArrowToBar = wxString::FromUTF8(u8"\u21E4");
121const wxString kUtfMultiplicationX = wxString::FromUTF8(u8"\u2716");
122const wxString kUtfRightArrow = wxString::FromUTF8(u8"\u2192");
size_t g_current_monitor
Current monitor displaying main application frame.
Definition gui_vars.cpp:75
double vLat
Virtual lat from chcanv popup.
Definition gui_vars.cpp:72
double vLon
Virtual lon from chcanv popup.
Definition gui_vars.cpp:73
bool b_inCompressAllCharts
Flag to control adaptive UI scaling.
Definition gui_vars.cpp:35
int g_NeedDBUpdate
0 - No update needed, 1 - Update needed because there is no chart database, inform user 2 - Start upd...
Definition gui_vars.cpp:94
int g_mipmap_max_level
Global instance.
Definition gui_vars.cpp:85
double g_current_monitor_dip_px_ratio
ratio to convert between DIP and physical pixels.
Definition gui_vars.cpp:69
bool g_b_overzoom_x
Allow high overzoom.
Definition gui_vars.cpp:52
double g_androidDPmm
Only used used by ANDROID
Definition gui_vars.cpp:66
Miscellaneous globals primarely used by gui layer, not persisted in configuration file.