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
69 ID_PLUGIN_BASE // This MUST be the last item in the enum
70};
71
72static const long TOOLBAR_STYLE = wxTB_FLAT | wxTB_DOCKABLE | wxTB_TEXT;
73
74enum {
75 IDM_TOOLBAR_TOGGLETOOLBARSIZE = 200,
76 IDM_TOOLBAR_TOGGLETOOLBARORIENT,
77 IDM_TOOLBAR_TOGGLETOOLBARROWS,
78 IDM_TOOLBAR_ENABLEPRINT,
79 IDM_TOOLBAR_DELETEPRINT,
80 IDM_TOOLBAR_INSERTPRINT,
81 IDM_TOOLBAR_TOGGLEHELP,
82 IDM_TOOLBAR_TOGGLE_TOOLBAR,
83 IDM_TOOLBAR_TOGGLE_ANOTHER_TOOLBAR,
84 IDM_TOOLBAR_CHANGE_TOOLTIP,
85 IDM_TOOLBAR_SHOW_TEXT,
86 IDM_TOOLBAR_SHOW_ICONS,
87 IDM_TOOLBAR_SHOW_BOTH,
88
89 ID_COMBO = 1000
90};
91
92// Menu item IDs for the main menu bar
93enum {
94 ID_MENU_ZOOM_IN = 2000,
95 ID_MENU_ZOOM_OUT,
96 ID_MENU_SCALE_IN,
97 ID_MENU_SCALE_OUT,
98
99 ID_MENU_NAV_FOLLOW,
100 ID_MENU_NAV_TRACK,
101
102 ID_MENU_CHART_NORTHUP,
103 ID_MENU_CHART_COGUP,
104 ID_MENU_CHART_HEADUP,
105 ID_MENU_CHART_QUILTING,
106 ID_MENU_CHART_OUTLINES,
107
108 ID_MENU_UI_CHARTBAR,
109 ID_MENU_UI_COLSCHEME,
110 ID_MENU_UI_FULLSCREEN,
111
112 ID_MENU_ENC_TEXT,
113 ID_MENU_ENC_LIGHTS,
114 ID_MENU_ENC_SOUNDINGS,
115 ID_MENU_ENC_ANCHOR,
116 ID_MENU_ENC_DATA_QUALITY,
117
118 ID_MENU_SHOW_TIDES,
119 ID_MENU_SHOW_CURRENTS,
120
121 ID_MENU_TOOL_MEASURE,
122 ID_MENU_TOOL_NMEA_DBG_LOG,
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__