OpenCPN Partial API docs
Loading...
Searching...
No Matches
idents.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (C) 2010 by David S. Register *
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
24#ifndef IDENTS_H_
25#define IDENTS_H_
26
27#include <wx/event.h>
28#include <wx/toolbar.h>
29
30#define TIMER_GFRAME_1 999
31
32#define ID_QUIT 101
33#define ID_CM93ZOOMG 102
34
35// ToolBar Constants
36const int ID_TOOLBAR = 500;
37
38enum {
39 // The following constants represent the toolbar items (some are also used in
40 // menus). They MUST be in the SAME ORDER as on the toolbar and new items MUST
41 // NOT be added amongst them, due to the way the toolbar button visibility is
42 // saved and calculated.
43 ID_ZOOMIN = 1550,
44 ID_ZOOMOUT,
45 ID_STKUP,
46 ID_STKDN,
47 ID_ROUTE,
48 ID_FOLLOW,
49 ID_SETTINGS,
50 ID_AIS,
51 ID_ENC_TEXT,
52 ID_CURRENT,
53 ID_TIDE,
54 ID_PRINT,
55 ID_ROUTEMANAGER,
56 ID_TRACK,
57 ID_COLSCHEME,
58 ID_ABOUT,
59 ID_MOB,
60 ID_TBEXIT,
61 ID_TBSTAT,
62 ID_TBSTATBOX,
63 ID_MASTERTOGGLE,
64 ID_SETTINGS_NEW,
65 ID_SETTINGS_DELETE,
66 ID_RELOAD_CHARTS,
67
68 ID_PLUGIN_BASE // This MUST be the last item in the enum
69};
70
71static const long TOOLBAR_STYLE = wxTB_FLAT | wxTB_DOCKABLE | wxTB_TEXT;
72
73enum {
74 IDM_TOOLBAR_TOGGLETOOLBARSIZE = 200,
75 IDM_TOOLBAR_TOGGLETOOLBARORIENT,
76 IDM_TOOLBAR_TOGGLETOOLBARROWS,
77 IDM_TOOLBAR_ENABLEPRINT,
78 IDM_TOOLBAR_DELETEPRINT,
79 IDM_TOOLBAR_INSERTPRINT,
80 IDM_TOOLBAR_TOGGLEHELP,
81 IDM_TOOLBAR_TOGGLE_TOOLBAR,
82 IDM_TOOLBAR_TOGGLE_ANOTHER_TOOLBAR,
83 IDM_TOOLBAR_CHANGE_TOOLTIP,
84 IDM_TOOLBAR_SHOW_TEXT,
85 IDM_TOOLBAR_SHOW_ICONS,
86 IDM_TOOLBAR_SHOW_BOTH,
87
88 ID_COMBO = 1000
89};
90
91// Menu item IDs for the main menu bar
92enum {
93 ID_MENU_ZOOM_IN = 2000,
94 ID_MENU_ZOOM_OUT,
95 ID_MENU_SCALE_IN,
96 ID_MENU_SCALE_OUT,
97
98 ID_MENU_NAV_FOLLOW,
99 ID_MENU_NAV_TRACK,
100
101 ID_MENU_CHART_NORTHUP,
102 ID_MENU_CHART_COGUP,
103 ID_MENU_CHART_HEADUP,
104 ID_MENU_CHART_QUILTING,
105 ID_MENU_CHART_OUTLINES,
106
107 ID_MENU_UI_CHARTBAR,
108 ID_MENU_UI_COLSCHEME,
109 ID_MENU_UI_FULLSCREEN,
110
111 ID_MENU_ENC_TEXT,
112 ID_MENU_ENC_LIGHTS,
113 ID_MENU_ENC_SOUNDINGS,
114 ID_MENU_ENC_ANCHOR,
115 ID_MENU_ENC_DATA_QUALITY,
116
117 ID_MENU_SHOW_TIDES,
118 ID_MENU_SHOW_CURRENTS,
119
120 ID_MENU_TOOL_MEASURE,
121 ID_MENU_TOOL_NMEA_DBG_LOG,
122 ID_MENU_TOOL_IO_MONITOR,
123 ID_MENU_ROUTE_MANAGER,
124 ID_MENU_ROUTE_NEW,
125 ID_MENU_MARK_BOAT,
126 ID_MENU_MARK_CURSOR,
127 ID_MENU_MARK_MOB,
128
129 ID_MENU_AIS_TARGETS,
130 ID_MENU_AIS_MOORED_TARGETS,
131 ID_MENU_AIS_SCALED_TARGETS,
132 ID_MENU_AIS_TRACKS,
133 ID_MENU_AIS_CPADIALOG,
134 ID_MENU_AIS_CPASOUND,
135 ID_MENU_AIS_TARGETLIST,
136 ID_MENU_AIS_CPAWARNING,
137
138 ID_MENU_SETTINGS_BASIC,
139
140 ID_MENU_OQUIT,
141
142 ID_CMD_SELECT_CHART_TYPE,
143 ID_CMD_SELECT_CHART_FAMILY,
144 ID_CMD_INVALIDATE,
145 ID_CMD_CLOSE_ALL_DIALOGS,
146
147 ID_MENU_SHOW_NAVOBJECTS,
148};
149
150// A global definition for window, timer and other ID's as needed.
151enum {
152 ID_NMEA_WINDOW = wxID_HIGHEST,
153 ID_AIS_WINDOW,
154 INIT_TIMER,
155 FRAME_TIMER_1,
156 FRAME_TIMER_2,
157 TIMER_AIS1,
158 TIMER_DSC,
159 TIMER_AISAUDIO,
160 AIS_SOCKET_Isa,
161 FRAME_TIMER_DOG,
162 FRAME_TC_TIMER,
163 FRAME_COG_TIMER,
164 MEMORY_FOOTPRINT_TIMER,
165 BELLS_TIMER,
166 ID_NMEA_THREADMSG,
167 RESIZE_TIMER,
168 TOOLBAR_ANIMATE_TIMER,
169 RECAPTURE_TIMER,
170 WATCHDOG_TIMER,
171 FRANE_TENHZ_TIMER
172
173};
174
175enum { TIME_TYPE_UTC = 1, TIME_TYPE_LMT, TIME_TYPE_COMPUTER };
176
177#define DS_SOCKET_ID 5001
178#define DS_SERVERSOCKET_ID 5002
179#define DS_ACTIVESERVERSOCKET_ID 5003
180
181#endif // IDENTS_H_