OpenCPN Partial API docs
Loading...
Searching...
No Matches
idents.h
1/***************************************************************************
2 *
3 * Project: OpenCPN
4 * Purpose:
5 * Author: David Register
6 *
7 ***************************************************************************
8 * Copyright (C) 2010 by David S. Register *
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 * This program is distributed in the hope that it will be useful, *
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 * GNU General Public License for more details. *
19 * *
20 * You should have received a copy of the GNU General Public License *
21 * along with this program; if not, write to the *
22 * Free Software Foundation, Inc., *
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
24 **************************************************************************/
25
26#ifndef _IDENTS_H__
27#define _IDENTS_H__
28
29#include <wx/event.h>
30#include <wx/toolbar.h>
31
32#define TIMER_GFRAME_1 999
33
34#define ID_QUIT 101
35#define ID_CM93ZOOMG 102
36
37// ToolBar Constants
38const int ID_TOOLBAR = 500;
39
40enum {
41 // The following constants represent the toolbar items (some are also used in
42 // menus). They MUST be in the SAME ORDER as on the toolbar and new items MUST
43 // NOT be added amongst them, due to the way the toolbar button visibility is
44 // saved and calculated.
45 ID_ZOOMIN = 1550,
46 ID_ZOOMOUT,
47 ID_STKUP,
48 ID_STKDN,
49 ID_ROUTE,
50 ID_FOLLOW,
51 ID_SETTINGS,
52 ID_AIS,
53 ID_ENC_TEXT,
54 ID_CURRENT,
55 ID_TIDE,
56 ID_PRINT,
57 ID_ROUTEMANAGER,
58 ID_TRACK,
59 ID_COLSCHEME,
60 ID_ABOUT,
61 ID_MOB,
62 ID_TBEXIT,
63 ID_TBSTAT,
64 ID_TBSTATBOX,
65 ID_MASTERTOGGLE,
66 ID_SETTINGS_NEW,
67 ID_SETTINGS_DELETE,
68 ID_RELOAD_CHARTS,
69
70 ID_PLUGIN_BASE // This MUST be the last item in the enum
71};
72
73static const long TOOLBAR_STYLE = wxTB_FLAT | wxTB_DOCKABLE | wxTB_TEXT;
74
75enum {
76 IDM_TOOLBAR_TOGGLETOOLBARSIZE = 200,
77 IDM_TOOLBAR_TOGGLETOOLBARORIENT,
78 IDM_TOOLBAR_TOGGLETOOLBARROWS,
79 IDM_TOOLBAR_ENABLEPRINT,
80 IDM_TOOLBAR_DELETEPRINT,
81 IDM_TOOLBAR_INSERTPRINT,
82 IDM_TOOLBAR_TOGGLEHELP,
83 IDM_TOOLBAR_TOGGLE_TOOLBAR,
84 IDM_TOOLBAR_TOGGLE_ANOTHER_TOOLBAR,
85 IDM_TOOLBAR_CHANGE_TOOLTIP,
86 IDM_TOOLBAR_SHOW_TEXT,
87 IDM_TOOLBAR_SHOW_ICONS,
88 IDM_TOOLBAR_SHOW_BOTH,
89
90 ID_COMBO = 1000
91};
92
93// Menu item IDs for the main menu bar
94enum {
95 ID_MENU_ZOOM_IN = 2000,
96 ID_MENU_ZOOM_OUT,
97 ID_MENU_SCALE_IN,
98 ID_MENU_SCALE_OUT,
99
100 ID_MENU_NAV_FOLLOW,
101 ID_MENU_NAV_TRACK,
102
103 ID_MENU_CHART_NORTHUP,
104 ID_MENU_CHART_COGUP,
105 ID_MENU_CHART_HEADUP,
106 ID_MENU_CHART_QUILTING,
107 ID_MENU_CHART_OUTLINES,
108
109 ID_MENU_UI_CHARTBAR,
110 ID_MENU_UI_COLSCHEME,
111 ID_MENU_UI_FULLSCREEN,
112
113 ID_MENU_ENC_TEXT,
114 ID_MENU_ENC_LIGHTS,
115 ID_MENU_ENC_SOUNDINGS,
116 ID_MENU_ENC_ANCHOR,
117 ID_MENU_ENC_DATA_QUALITY,
118
119 ID_MENU_SHOW_TIDES,
120 ID_MENU_SHOW_CURRENTS,
121
122 ID_MENU_TOOL_MEASURE,
123 ID_MENU_TOOL_NMEA_DBG_LOG,
124 ID_MENU_TOOL_IO_MONITOR,
125 ID_MENU_ROUTE_MANAGER,
126 ID_MENU_ROUTE_NEW,
127 ID_MENU_MARK_BOAT,
128 ID_MENU_MARK_CURSOR,
129 ID_MENU_MARK_MOB,
130
131 ID_MENU_AIS_TARGETS,
132 ID_MENU_AIS_MOORED_TARGETS,
133 ID_MENU_AIS_SCALED_TARGETS,
134 ID_MENU_AIS_TRACKS,
135 ID_MENU_AIS_CPADIALOG,
136 ID_MENU_AIS_CPASOUND,
137 ID_MENU_AIS_TARGETLIST,
138 ID_MENU_AIS_CPAWARNING,
139
140 ID_MENU_SETTINGS_BASIC,
141
142 ID_MENU_OQUIT,
143
144 ID_CMD_SELECT_CHART_TYPE,
145 ID_CMD_SELECT_CHART_FAMILY,
146 ID_CMD_INVALIDATE,
147 ID_CMD_CLOSE_ALL_DIALOGS,
148
149 ID_MENU_SHOW_NAVOBJECTS,
150};
151
152// A global definition for window, timer and other ID's as needed.
153enum {
154 ID_NMEA_WINDOW = wxID_HIGHEST,
155 ID_AIS_WINDOW,
156 INIT_TIMER,
157 FRAME_TIMER_1,
158 FRAME_TIMER_2,
159 TIMER_AIS1,
160 TIMER_DSC,
161 TIMER_AISAUDIO,
162 AIS_SOCKET_Isa,
163 FRAME_TIMER_DOG,
164 FRAME_TC_TIMER,
165 FRAME_COG_TIMER,
166 MEMORY_FOOTPRINT_TIMER,
167 BELLS_TIMER,
168 ID_NMEA_THREADMSG,
169 RESIZE_TIMER,
170 TOOLBAR_ANIMATE_TIMER,
171 RECAPTURE_TIMER,
172 WATCHDOG_TIMER,
173 FRANE_TENHZ_TIMER
174
175};
176
177enum { TIME_TYPE_UTC = 1, TIME_TYPE_LMT, TIME_TYPE_COMPUTER };
178
179#define DS_SOCKET_ID 5001
180#define DS_SERVERSOCKET_ID 5002
181#define DS_ACTIVESERVERSOCKET_ID 5003
182
183#endif // _IDENTS_H__