Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIShortcutsSubSys.cpp
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials are made available under the
5
// terms of the Eclipse Public License 2.0 which is available at
6
// https://www.eclipse.org/legal/epl-2.0/
7
// This Source Code may also be made available under the following Secondary
8
// Licenses when the conditions for such availability set forth in the Eclipse
9
// Public License 2.0 are satisfied: GNU General Public License, version 2
10
// or later which is available at
11
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
/****************************************************************************/
18
// Helper for Shortcuts
19
/****************************************************************************/
20
#include <config.h>
21
22
#include <
utils/gui/windows/GUIAppEnum.h
>
23
24
#include "
GUIShortcutsSubSys.h
"
25
26
// ===========================================================================
27
// member definitions
28
// ===========================================================================
29
30
void
31
GUIShortcutsSubSys::buildAccelerators
(FXAccelTable* accelTable, FXObject* target,
const
bool
sumogui) {
32
33
// basic hotkeys
34
35
accelTable->addAccel(
parseKey
(
KEY_a
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_A_MODE_STARTSIMULATION_ADDITIONALS_STOPS
));
36
accelTable->addAccel(
parseKey
(
KEY_A
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_A_MODE_STARTSIMULATION_ADDITIONALS_STOPS
));
37
38
accelTable->addAccel(
parseKey
(
KEY_b
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_B_BREAKPOINT
));
39
accelTable->addAccel(
parseKey
(
KEY_B
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_B_BREAKPOINT
));
40
41
accelTable->addAccel(
parseKey
(
KEY_c
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_C_MODE_CONNECT_CONTAINER
));
42
accelTable->addAccel(
parseKey
(
KEY_C
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_C_MODE_CONNECT_CONTAINER
));
43
44
accelTable->addAccel(
parseKey
(
KEY_d
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_D_MODE_SINGLESIMULATIONSTEP_DELETE
));
45
accelTable->addAccel(
parseKey
(
KEY_D
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_D_MODE_SINGLESIMULATIONSTEP_DELETE
));
46
47
accelTable->addAccel(
parseKey
(
KEY_e
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_E_MODE_EDGE_EDGEDATA
));
48
accelTable->addAccel(
parseKey
(
KEY_E
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_E_MODE_EDGE_EDGEDATA
));
49
50
accelTable->addAccel(
parseKey
(
KEY_h
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_H_MODE_PROHIBITION_CONTAINERPLAN
));
51
accelTable->addAccel(
parseKey
(
KEY_H
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_H_MODE_PROHIBITION_CONTAINERPLAN
));
52
53
accelTable->addAccel(
parseKey
(
KEY_i
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_I_MODE_INSPECT
));
54
accelTable->addAccel(
parseKey
(
KEY_I
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_I_MODE_INSPECT
));
55
56
accelTable->addAccel(
parseKey
(
KEY_l
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_L_MODE_PERSONPLAN
));
57
accelTable->addAccel(
parseKey
(
KEY_L
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_L_MODE_PERSONPLAN
));
58
59
accelTable->addAccel(
parseKey
(
KEY_m
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_M_MODE_MOVE_MEANDATA
));
60
accelTable->addAccel(
parseKey
(
KEY_M
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_M_MODE_MOVE_MEANDATA
));
61
62
accelTable->addAccel(
parseKey
(
KEY_p
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_P_MODE_POLYGON_PERSON
));
63
accelTable->addAccel(
parseKey
(
KEY_P
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_P_MODE_POLYGON_PERSON
));
64
65
accelTable->addAccel(
parseKey
(
KEY_r
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_R_MODE_CROSSING_ROUTE_EDGERELDATA
));
66
accelTable->addAccel(
parseKey
(
KEY_R
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_R_MODE_CROSSING_ROUTE_EDGERELDATA
));
67
68
accelTable->addAccel(
parseKey
(
KEY_s
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_S_MODE_STOPSIMULATION_SELECT
));
69
accelTable->addAccel(
parseKey
(
KEY_S
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_S_MODE_STOPSIMULATION_SELECT
));
70
71
accelTable->addAccel(
parseKey
(
KEY_t
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_T_MODE_TLS_TYPE
));
72
accelTable->addAccel(
parseKey
(
KEY_T
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_T_MODE_TLS_TYPE
));
73
74
accelTable->addAccel(
parseKey
(
KEY_u
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_U_MODE_DECAL_TYPEDISTRIBUTION
));
75
accelTable->addAccel(
parseKey
(
KEY_U
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_U_MODE_DECAL_TYPEDISTRIBUTION
));
76
77
accelTable->addAccel(
parseKey
(
KEY_v
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_V_MODE_VEHICLE
));
78
accelTable->addAccel(
parseKey
(
KEY_V
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_V_MODE_VEHICLE
));
79
80
accelTable->addAccel(
parseKey
(
KEY_w
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_W_MODE_WIRE_ROUTEDISTRIBUTION
));
81
accelTable->addAccel(
parseKey
(
KEY_W
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_W_MODE_WIRE_ROUTEDISTRIBUTION
));
82
83
accelTable->addAccel(
parseKey
(
KEY_z
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_Z_MODE_TAZ_TAZREL
));
84
accelTable->addAccel(
parseKey
(
KEY_Z
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_Z_MODE_TAZ_TAZREL
));
85
86
// function Hotkeys
87
88
accelTable->addAccel(
parseKey
(
KEY_F1
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F1_ONLINEDOCUMENTATION
));
89
accelTable->addAccel(
parseKey
(
KEY_F2
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F2_SUPERMODE_NETWORK
));
90
accelTable->addAccel(
parseKey
(
KEY_F3
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F3_SUPERMODE_DEMAND
));
91
accelTable->addAccel(
parseKey
(
KEY_F4
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F4_SUPERMODE_DATA
));
92
accelTable->addAccel(
parseKey
(
KEY_F5
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F5_COMPUTE_NETWORK_DEMAND
));
93
accelTable->addAccel(
parseKey
(
KEY_F6
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F6_CLEAN_SOLITARYJUNCTIONS_UNUSEDROUTES
));
94
accelTable->addAccel(
parseKey
(
KEY_F7
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F7_JOIN_SELECTEDJUNCTIONS_ROUTES
));
95
accelTable->addAccel(
parseKey
(
KEY_F8
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F8_CLEANINVALID_CROSSINGS_DEMANDELEMENTS
));
96
accelTable->addAccel(
parseKey
(
KEY_F9
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F9_EDIT_VIEWSCHEME
));
97
accelTable->addAccel(
parseKey
(
KEY_F10
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F10_OPTIONSMENU
));
98
accelTable->addAccel(
parseKey
(
KEY_F11
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F11_FRONTELEMENT
));
99
accelTable->addAccel(
parseKey
(
KEY_F12
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_F12_ABOUT
));
100
101
// other hotkeys
102
103
accelTable->addAccel(
parseKey
(
KEY_ESC
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ESC
));
104
accelTable->addAccel(
parseKey
(
KEY_DEL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_DEL
));
105
accelTable->addAccel(
parseKey
(
KEY_ENTER
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ENTER
));
106
accelTable->addAccel(
parseKey
(
KEY_BACKSPACE
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_BACKSPACE
));
107
108
// control hotkeys
109
110
accelTable->addAccel(
parseKey
(
KEY_a
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_A_STARTSIMULATION_OPENADDITIONALS
));
111
accelTable->addAccel(
parseKey
(
KEY_A
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_A_STARTSIMULATION_OPENADDITIONALS
));
112
113
accelTable->addAccel(
parseKey
(
KEY_b
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_B_EDITBREAKPOINT_OPENDATAELEMENTS
));
114
accelTable->addAccel(
parseKey
(
KEY_B
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_B_EDITBREAKPOINT_OPENDATAELEMENTS
));
115
116
accelTable->addAccel(
parseKey
(
KEY_c
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_C_COPY
));
117
accelTable->addAccel(
parseKey
(
KEY_C
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_C_COPY
));
118
119
accelTable->addAccel(
parseKey
(
KEY_d
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_D_SINGLESIMULATIONSTEP_OPENDEMANDELEMENTS
));
120
accelTable->addAccel(
parseKey
(
KEY_D
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_D_SINGLESIMULATIONSTEP_OPENDEMANDELEMENTS
));
121
122
// special case: we can NOT overwritte here the ctrl+E shortcut in SUMO-GUI
123
if
(!sumogui) {
124
accelTable->addAccel(
parseKey
(
KEY_e
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_E_EDITSELECTION_LOADNETEDITCONFIG
));
125
accelTable->addAccel(
parseKey
(
KEY_E
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_E_EDITSELECTION_LOADNETEDITCONFIG
));
126
}
127
128
accelTable->addAccel(
parseKey
(
KEY_f
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_F_FULSCREENMODE
));
129
accelTable->addAccel(
parseKey
(
KEY_F
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_F_FULSCREENMODE
));
130
131
accelTable->addAccel(
parseKey
(
KEY_g
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_G_GAMINGMODE_TOGGLEGRID
));
132
accelTable->addAccel(
parseKey
(
KEY_G
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_G_GAMINGMODE_TOGGLEGRID
));
133
134
accelTable->addAccel(
parseKey
(
KEY_h
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_H_APPSETTINGS_OPENEDGETYPES
));
135
accelTable->addAccel(
parseKey
(
KEY_H
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_H_APPSETTINGS_OPENEDGETYPES
));
136
137
accelTable->addAccel(
parseKey
(
KEY_i
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_I_EDITVIEWPORT
));
138
accelTable->addAccel(
parseKey
(
KEY_I
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_I_EDITVIEWPORT
));
139
140
accelTable->addAccel(
parseKey
(
KEY_j
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_J_TOGGLEDRAWJUNCTIONSHAPE
));
141
accelTable->addAccel(
parseKey
(
KEY_J
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_J_TOGGLEDRAWJUNCTIONSHAPE
));
142
143
accelTable->addAccel(
parseKey
(
KEY_k
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_K_OPENTLSPROGRAMS
));
144
accelTable->addAccel(
parseKey
(
KEY_K
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_K_OPENTLSPROGRAMS
));
145
146
accelTable->addAccel(
parseKey
(
KEY_l
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_L_SAVEASPLAINXML
));
147
accelTable->addAccel(
parseKey
(
KEY_L
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_L_SAVEASPLAINXML
));
148
149
accelTable->addAccel(
parseKey
(
KEY_m
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_M_OPENSUMOCONFIG
));
150
accelTable->addAccel(
parseKey
(
KEY_M
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_M_OPENSUMOCONFIG
));
151
152
accelTable->addAccel(
parseKey
(
KEY_n
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_N_OPENNETWORK_NEWNETWORK
));
153
accelTable->addAccel(
parseKey
(
KEY_N
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_N_OPENNETWORK_NEWNETWORK
));
154
155
accelTable->addAccel(
parseKey
(
KEY_o
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_O_OPENSIMULATION_OPENNETWORK
));
156
accelTable->addAccel(
parseKey
(
KEY_O
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_O_OPENSIMULATION_OPENNETWORK
));
157
158
accelTable->addAccel(
parseKey
(
KEY_p
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_P_OPENSHAPES
));
159
accelTable->addAccel(
parseKey
(
KEY_P
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_P_OPENSHAPES
));
160
161
accelTable->addAccel(
parseKey
(
KEY_q
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_Q_CLOSE
));
162
accelTable->addAccel(
parseKey
(
KEY_Q
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_Q_CLOSE
));
163
164
accelTable->addAccel(
parseKey
(
KEY_r
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_R_RELOAD
));
165
accelTable->addAccel(
parseKey
(
KEY_R
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_R_RELOAD
));
166
167
accelTable->addAccel(
parseKey
(
KEY_s
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_S_STOPSIMULATION_SAVENETWORK
));
168
accelTable->addAccel(
parseKey
(
KEY_S
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_S_STOPSIMULATION_SAVENETWORK
));
169
170
accelTable->addAccel(
parseKey
(
KEY_t
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_T_OPENNETEDIT_OPENSUMO
));
171
accelTable->addAccel(
parseKey
(
KEY_T
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_T_OPENNETEDIT_OPENSUMO
));
172
173
accelTable->addAccel(
parseKey
(
KEY_u
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_U_OPENEDGEDATA
));
174
accelTable->addAccel(
parseKey
(
KEY_U
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_U_OPENEDGEDATA
));
175
176
accelTable->addAccel(
parseKey
(
KEY_w
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_W_CLOSESIMULATION
));
177
accelTable->addAccel(
parseKey
(
KEY_W
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_W_CLOSESIMULATION
));
178
179
accelTable->addAccel(
parseKey
(
KEY_v
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_V_PASTE
));
180
accelTable->addAccel(
parseKey
(
KEY_V
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_V_PASTE
));
181
182
accelTable->addAccel(
parseKey
(
KEY_x
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_X_CUT
));
183
accelTable->addAccel(
parseKey
(
KEY_X
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_X_CUT
));
184
185
accelTable->addAccel(
parseKey
(
KEY_y
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_Y_REDO
));
186
accelTable->addAccel(
parseKey
(
KEY_Y
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_Y_REDO
));
187
188
accelTable->addAccel(
parseKey
(
KEY_z
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_Z_UNDO
));
189
accelTable->addAccel(
parseKey
(
KEY_Z
,
KEYMODIFIER_CONTROL
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_Z_UNDO
));
190
191
// control + shift hotkeys
192
193
accelTable->addAccel(
parseKey
(
KEY_a
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_A_SAVEADDITIONALS
));
194
accelTable->addAccel(
parseKey
(
KEY_A
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_A_SAVEADDITIONALS
));
195
196
accelTable->addAccel(
parseKey
(
KEY_b
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_B_SAVEDATAELEMENTS
));
197
accelTable->addAccel(
parseKey
(
KEY_B
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_B_SAVEDATAELEMENTS
));
198
199
accelTable->addAccel(
parseKey
(
KEY_c
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_C_SAVENETEDITCONFIG
));
200
accelTable->addAccel(
parseKey
(
KEY_C
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_C_SAVENETEDITCONFIG
));
201
202
accelTable->addAccel(
parseKey
(
KEY_d
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_D_SAVEDEMANDELEMENTS
));
203
accelTable->addAccel(
parseKey
(
KEY_D
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_D_SAVEDEMANDELEMENTS
));
204
205
accelTable->addAccel(
parseKey
(
KEY_e
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_E_SAVENETEDITCONFIG
));
206
accelTable->addAccel(
parseKey
(
KEY_E
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_E_SAVENETEDITCONFIG
));
207
208
accelTable->addAccel(
parseKey
(
KEY_h
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_H_SAVEEDGETYPES
));
209
accelTable->addAccel(
parseKey
(
KEY_H
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_H_SAVEEDGETYPES
));
210
211
accelTable->addAccel(
parseKey
(
KEY_k
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_K_SAVETLS
));
212
accelTable->addAccel(
parseKey
(
KEY_K
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_K_SAVETLS
));
213
214
accelTable->addAccel(
parseKey
(
KEY_m
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_M_SAVEMEANDATAS
));
215
accelTable->addAccel(
parseKey
(
KEY_M
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_M_SAVEMEANDATAS
));
216
217
accelTable->addAccel(
parseKey
(
KEY_n
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_N_NEWWINDOW
));
218
accelTable->addAccel(
parseKey
(
KEY_N
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_N_NEWWINDOW
));
219
220
accelTable->addAccel(
parseKey
(
KEY_o
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_O_OPENNETCONVERTFILE
));
221
accelTable->addAccel(
parseKey
(
KEY_O
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_O_OPENNETCONVERTFILE
));
222
223
accelTable->addAccel(
parseKey
(
KEY_s
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_S_SAVESUMOCONFIG
));
224
accelTable->addAccel(
parseKey
(
KEY_S
,
KEYMODIFIER_CONTROL
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_CTRL_SHIFT_S_SAVESUMOCONFIG
));
225
226
// shift hotkeys
227
228
accelTable->addAccel(
parseKey
(
KEY_a
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_A_LOCATEADDITIONAL
));
229
accelTable->addAccel(
parseKey
(
KEY_A
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_A_LOCATEADDITIONAL
));
230
231
accelTable->addAccel(
parseKey
(
KEY_c
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_C_LOCATECONTAINER
));
232
accelTable->addAccel(
parseKey
(
KEY_C
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_C_LOCATECONTAINER
));
233
234
accelTable->addAccel(
parseKey
(
KEY_e
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_E_LOCATEEDGE
));
235
accelTable->addAccel(
parseKey
(
KEY_E
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_E_LOCATEEDGE
));
236
237
accelTable->addAccel(
parseKey
(
KEY_j
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_J_LOCATEJUNCTION
));
238
accelTable->addAccel(
parseKey
(
KEY_J
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_J_LOCATEJUNCTION
));
239
240
accelTable->addAccel(
parseKey
(
KEY_l
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_L_LOCATEPOLY
));
241
accelTable->addAccel(
parseKey
(
KEY_L
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_L_LOCATEPOLY
));
242
243
accelTable->addAccel(
parseKey
(
KEY_o
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_O_LOCATEPOI
));
244
accelTable->addAccel(
parseKey
(
KEY_O
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_O_LOCATEPOI
));
245
246
accelTable->addAccel(
parseKey
(
KEY_p
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_P_LOCATEPERSON
));
247
accelTable->addAccel(
parseKey
(
KEY_P
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_P_LOCATEPERSON
));
248
249
accelTable->addAccel(
parseKey
(
KEY_t
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_T_LOCATETLS
));
250
accelTable->addAccel(
parseKey
(
KEY_T
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_T_LOCATETLS
));
251
252
accelTable->addAccel(
parseKey
(
KEY_v
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_V_LOCATEVEHICLE
));
253
accelTable->addAccel(
parseKey
(
KEY_V
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_V_LOCATEVEHICLE
));
254
255
accelTable->addAccel(
parseKey
(
KEY_F1
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_F1_TEMPLATE_SET
));
256
accelTable->addAccel(
parseKey
(
KEY_F2
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_F2_TEMPLATE_COPY
));
257
accelTable->addAccel(
parseKey
(
KEY_F3
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_F3_TEMPLATE_CLEAR
));
258
accelTable->addAccel(
parseKey
(
KEY_F5
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_F5_COMPUTEJUNCTIONS_VOLATILE
));
259
accelTable->addAccel(
parseKey
(
KEY_F7
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_F7_ADJUST_PERSON_PLANS
));
260
accelTable->addAccel(
parseKey
(
KEY_F10
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_F10_SUMOOPTIONSMENU
));
261
accelTable->addAccel(
parseKey
(
KEY_F11
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_F11_HALLOFFAME
));
262
accelTable->addAccel(
parseKey
(
KEY_F12
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_F12_FOCUSUPPERELEMENT
));
263
264
accelTable->addAccel(
parseKey
(
KEY_ESC
,
KEYMODIFIER_SHIFT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_SHIFT_ESC_CLEARSELECTION
));
265
266
// alt hotkeys
267
268
accelTable->addAccel(
parseKey
(
KEY_0
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_0_TOGGLEEDITOPTION
));
269
accelTable->addAccel(
parseKey
(
KEY_1
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_1_TOGGLEEDITOPTION
));
270
accelTable->addAccel(
parseKey
(
KEY_2
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_2_TOGGLEEDITOPTION
));
271
accelTable->addAccel(
parseKey
(
KEY_3
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_3_TOGGLEEDITOPTION
));
272
accelTable->addAccel(
parseKey
(
KEY_4
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_4_TOGGLEEDITOPTION
));
273
accelTable->addAccel(
parseKey
(
KEY_5
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_5_TOGGLEEDITOPTION
));
274
accelTable->addAccel(
parseKey
(
KEY_6
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_6_TOGGLEEDITOPTION
));
275
accelTable->addAccel(
parseKey
(
KEY_7
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_7_TOGGLEEDITOPTION
));
276
accelTable->addAccel(
parseKey
(
KEY_8
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_8_TOGGLEEDITOPTION
));
277
accelTable->addAccel(
parseKey
(
KEY_9
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_9_TOGGLEEDITOPTION
));
278
279
accelTable->addAccel(
parseKey
(
KEY_F4
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_F4_CLOSE
));
280
accelTable->addAccel(
parseKey
(
KEY_b
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_B_BREAKPOINT_EARLY
));
281
accelTable->addAccel(
parseKey
(
KEY_B
,
KEYMODIFIER_ALT
), target, FXSEL(SEL_COMMAND,
MID_HOTKEY_ALT_B_BREAKPOINT_EARLY
));
282
}
283
284
285
void
286
GUIShortcutsSubSys::changeAccelerator
(FXAccelTable* accelTable, FXObject* target,
GUIShortcut
keysym,
long
msg) {
287
accelTable->addAccel(
parseKey
(keysym), target, FXSEL(SEL_COMMAND, msg));
288
}
289
290
291
int
292
GUIShortcutsSubSys::parseKey
(
GUIShortcut
key) {
293
// beware!: xx in the key - xx + yy expression may change when the content of enum GUIShortcut is changed (e.g. addition of space key)
294
if
((key >=
KEY_0
) && key <=
KEY_9
) {
295
return
(key + 48);
// 48 is '0' in ASCII
296
}
else
if
((key >=
KEY_a
) && key <=
KEY_z
) {
297
return
(key - 10 + 97);
// 97 is 'a' in ASCII
298
}
else
if
((key >=
KEY_A
) && key <=
KEY_Z
) {
299
return
(key - 36 + 65);
// 65 is 'A' in ASCII
300
}
else
if
(key ==
KEY_SPACE
) {
301
return
(key - 62 + 32);
// 32 is SPACE in ASCII
302
}
else
if
((key >=
KEY_F1
) && key <=
KEY_F12
) {
303
return
(key - 63 + 65470);
// 65470 is 'F1' in ASCII
304
}
else
if
(key ==
KEY_ESC
) {
305
return
parseAccel(
"Esc"
);
306
}
else
if
(key ==
KEY_ENTER
) {
307
return
parseAccel(
"Enter"
);
308
}
else
if
(key ==
KEY_BACKSPACE
) {
309
return
parseAccel(
"Back"
);
310
}
else
if
(key ==
KEY_DEL
) {
311
return
parseAccel(
"Del"
);
312
}
else
{
313
return
0;
314
}
315
}
316
317
318
int
319
GUIShortcutsSubSys::parseKey
(
GUIShortcut
key,
GUIShortcutModifier
firstModifier) {
320
int
keyCode =
parseKey
(key);
321
// add first modifier
322
if
(firstModifier ==
KEYMODIFIER_SHIFT
) {
323
keyCode += 65536;
324
}
else
if
(firstModifier ==
KEYMODIFIER_ALT
) {
325
keyCode += 524288;
326
}
else
if
(firstModifier ==
KEYMODIFIER_CONTROL
) {
327
keyCode += 262144;
328
}
329
return
keyCode;
330
}
331
332
333
int
334
GUIShortcutsSubSys::parseKey
(
GUIShortcut
key,
GUIShortcutModifier
firstModifier,
GUIShortcutModifier
secondModifier) {
335
int
keyCode =
parseKey
(key, firstModifier);
336
// add second modifier
337
if
(secondModifier ==
KEYMODIFIER_SHIFT
) {
338
keyCode += 65536;
339
}
else
if
(secondModifier ==
KEYMODIFIER_ALT
) {
340
keyCode += 524288;
341
}
else
if
(secondModifier ==
KEYMODIFIER_CONTROL
) {
342
keyCode += 262144;
343
}
344
return
keyCode;
345
}
346
347
348
/****************************************************************************/
GUIAppEnum.h
MID_HOTKEY_SHIFT_F10_SUMOOPTIONSMENU
@ MID_HOTKEY_SHIFT_F10_SUMOOPTIONSMENU
open SUMO options menu (used in netedit)
Definition
GUIAppEnum.h:272
MID_HOTKEY_SHIFT_F7_ADJUST_PERSON_PLANS
@ MID_HOTKEY_SHIFT_F7_ADJUST_PERSON_PLANS
Adjust person plans (start und end positions, arrival positions, etc.)
Definition
GUIAppEnum.h:270
MID_HOTKEY_CTRL_Q_CLOSE
@ MID_HOTKEY_CTRL_Q_CLOSE
Main window closes.
Definition
GUIAppEnum.h:115
MID_HOTKEY_SHIFT_F5_COMPUTEJUNCTIONS_VOLATILE
@ MID_HOTKEY_SHIFT_F5_COMPUTEJUNCTIONS_VOLATILE
compute junctions with volatile options
Definition
GUIAppEnum.h:268
MID_HOTKEY_CTRL_SHIFT_B_SAVEDATAELEMENTS
@ MID_HOTKEY_CTRL_SHIFT_B_SAVEDATAELEMENTS
save Data Elements
Definition
GUIAppEnum.h:204
MID_HOTKEY_F3_SUPERMODE_DEMAND
@ MID_HOTKEY_F3_SUPERMODE_DEMAND
select demand supermode in netedit
Definition
GUIAppEnum.h:234
MID_HOTKEY_CTRL_T_OPENNETEDIT_OPENSUMO
@ MID_HOTKEY_CTRL_T_OPENNETEDIT_OPENSUMO
Open current SUMO simulation/network in netedit, or current netedit simulation/network in SUMO.
Definition
GUIAppEnum.h:123
MID_HOTKEY_U_MODE_DECAL_TYPEDISTRIBUTION
@ MID_HOTKEY_U_MODE_DECAL_TYPEDISTRIBUTION
hotkey for mode decal AND type distribution
Definition
GUIAppEnum.h:69
MID_HOTKEY_CTRL_Y_REDO
@ MID_HOTKEY_CTRL_Y_REDO
Undo.
Definition
GUIAppEnum.h:133
MID_HOTKEY_CTRL_SHIFT_H_SAVEEDGETYPES
@ MID_HOTKEY_CTRL_SHIFT_H_SAVEEDGETYPES
save Edge Types
Definition
GUIAppEnum.h:212
MID_HOTKEY_ALT_9_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_9_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:161
MID_HOTKEY_ALT_5_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_5_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:153
MID_HOTKEY_CTRL_W_CLOSESIMULATION
@ MID_HOTKEY_CTRL_W_CLOSESIMULATION
Close simulation - ID.
Definition
GUIAppEnum.h:129
MID_HOTKEY_ALT_2_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_2_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:147
MID_HOTKEY_F7_JOIN_SELECTEDJUNCTIONS_ROUTES
@ MID_HOTKEY_F7_JOIN_SELECTEDJUNCTIONS_ROUTES
join selected junctions in network mode and normalice demand element ids in demand mode
Definition
GUIAppEnum.h:242
MID_HOTKEY_CTRL_D_SINGLESIMULATIONSTEP_OPENDEMANDELEMENTS
@ MID_HOTKEY_CTRL_D_SINGLESIMULATIONSTEP_OPENDEMANDELEMENTS
Perform a single simulation step in SUMO and open Demand Elements in netedit.
Definition
GUIAppEnum.h:89
MID_HOTKEY_F5_COMPUTE_NETWORK_DEMAND
@ MID_HOTKEY_F5_COMPUTE_NETWORK_DEMAND
compute Network in network mode and Demand elements in demand mode
Definition
GUIAppEnum.h:238
MID_HOTKEY_CTRL_O_OPENSIMULATION_OPENNETWORK
@ MID_HOTKEY_CTRL_O_OPENSIMULATION_OPENNETWORK
Open simulation in SUMO and open network in netedit.
Definition
GUIAppEnum.h:111
MID_HOTKEY_Z_MODE_TAZ_TAZREL
@ MID_HOTKEY_Z_MODE_TAZ_TAZREL
hotkey for mode editing TAZ and TAZRel
Definition
GUIAppEnum.h:75
MID_HOTKEY_F9_EDIT_VIEWSCHEME
@ MID_HOTKEY_F9_EDIT_VIEWSCHEME
open edit scheme menu
Definition
GUIAppEnum.h:246
MID_HOTKEY_SHIFT_ESC_CLEARSELECTION
@ MID_HOTKEY_SHIFT_ESC_CLEARSELECTION
clear selection
Definition
GUIAppEnum.h:276
MID_HOTKEY_CTRL_J_TOGGLEDRAWJUNCTIONSHAPE
@ MID_HOTKEY_CTRL_J_TOGGLEDRAWJUNCTIONSHAPE
toggle draw junction shape
Definition
GUIAppEnum.h:101
MID_HOTKEY_DEL
@ MID_HOTKEY_DEL
hot key delete selections or elements
Definition
GUIAppEnum.h:286
MID_HOTKEY_A_MODE_STARTSIMULATION_ADDITIONALS_STOPS
@ MID_HOTKEY_A_MODE_STARTSIMULATION_ADDITIONALS_STOPS
hotkey for start simulation in SUMO and set editing mode additionals AND stops in netedit
Definition
GUIAppEnum.h:43
MID_HOTKEY_CTRL_B_EDITBREAKPOINT_OPENDATAELEMENTS
@ MID_HOTKEY_CTRL_B_EDITBREAKPOINT_OPENDATAELEMENTS
Edit simulation breakpoints in SUMO and open Data Elements in netedit.
Definition
GUIAppEnum.h:85
MID_HOTKEY_ALT_3_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_3_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:149
MID_HOTKEY_F1_ONLINEDOCUMENTATION
@ MID_HOTKEY_F1_ONLINEDOCUMENTATION
open online documentation
Definition
GUIAppEnum.h:230
MID_HOTKEY_CTRL_SHIFT_D_SAVEDEMANDELEMENTS
@ MID_HOTKEY_CTRL_SHIFT_D_SAVEDEMANDELEMENTS
Save Demand Elements.
Definition
GUIAppEnum.h:208
MID_HOTKEY_CTRL_U_OPENEDGEDATA
@ MID_HOTKEY_CTRL_U_OPENEDGEDATA
Load edge data for visualization.
Definition
GUIAppEnum.h:125
MID_HOTKEY_CTRL_R_RELOAD
@ MID_HOTKEY_CTRL_R_RELOAD
Reload the previously loaded simulation.
Definition
GUIAppEnum.h:119
MID_HOTKEY_CTRL_S_STOPSIMULATION_SAVENETWORK
@ MID_HOTKEY_CTRL_S_STOPSIMULATION_SAVENETWORK
Stop the simulation in SUMO and save network in netedit.
Definition
GUIAppEnum.h:117
MID_HOTKEY_D_MODE_SINGLESIMULATIONSTEP_DELETE
@ MID_HOTKEY_D_MODE_SINGLESIMULATIONSTEP_DELETE
hotkey for perform a single simulation step in SUMO and set delete mode in netedit
Definition
GUIAppEnum.h:49
MID_HOTKEY_ESC
@ MID_HOTKEY_ESC
hot key <ESC> abort current edit operation
Definition
GUIAppEnum.h:284
MID_HOTKEY_F10_OPTIONSMENU
@ MID_HOTKEY_F10_OPTIONSMENU
open options menu
Definition
GUIAppEnum.h:248
MID_HOTKEY_F11_FRONTELEMENT
@ MID_HOTKEY_F11_FRONTELEMENT
set/clear front element
Definition
GUIAppEnum.h:250
MID_HOTKEY_F8_CLEANINVALID_CROSSINGS_DEMANDELEMENTS
@ MID_HOTKEY_F8_CLEANINVALID_CROSSINGS_DEMANDELEMENTS
clean invalid crossings in network mode and demand elements in demand mode
Definition
GUIAppEnum.h:244
MID_HOTKEY_C_MODE_CONNECT_CONTAINER
@ MID_HOTKEY_C_MODE_CONNECT_CONTAINER
hotkey for mode connecting lanes AND container
Definition
GUIAppEnum.h:45
MID_HOTKEY_H_MODE_PROHIBITION_CONTAINERPLAN
@ MID_HOTKEY_H_MODE_PROHIBITION_CONTAINERPLAN
hotkey for mode prohibition AND container plan
Definition
GUIAppEnum.h:53
MID_HOTKEY_SHIFT_O_LOCATEPOI
@ MID_HOTKEY_SHIFT_O_LOCATEPOI
Locate poi - button.
Definition
GUIAppEnum.h:182
MID_HOTKEY_W_MODE_WIRE_ROUTEDISTRIBUTION
@ MID_HOTKEY_W_MODE_WIRE_ROUTEDISTRIBUTION
hotkey for mode editing overhead wires AND route distributions
Definition
GUIAppEnum.h:73
MID_HOTKEY_T_MODE_TLS_TYPE
@ MID_HOTKEY_T_MODE_TLS_TYPE
hotkey for mode editing TLS AND Vehicle Types
Definition
GUIAppEnum.h:67
MID_HOTKEY_SHIFT_A_LOCATEADDITIONAL
@ MID_HOTKEY_SHIFT_A_LOCATEADDITIONAL
Locate additional structure - button.
Definition
GUIAppEnum.h:172
MID_HOTKEY_ALT_4_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_4_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:151
MID_HOTKEY_CTRL_I_EDITVIEWPORT
@ MID_HOTKEY_CTRL_I_EDITVIEWPORT
Open viewport editor.
Definition
GUIAppEnum.h:99
MID_HOTKEY_S_MODE_STOPSIMULATION_SELECT
@ MID_HOTKEY_S_MODE_STOPSIMULATION_SELECT
hotkey for stop simulation in SUMO and set select mode in netedit
Definition
GUIAppEnum.h:63
MID_HOTKEY_SHIFT_C_LOCATECONTAINER
@ MID_HOTKEY_SHIFT_C_LOCATECONTAINER
Locate container - button.
Definition
GUIAppEnum.h:174
MID_HOTKEY_CTRL_SHIFT_N_NEWWINDOW
@ MID_HOTKEY_CTRL_SHIFT_N_NEWWINDOW
open a new window (SUMO AND netedit)
Definition
GUIAppEnum.h:218
MID_HOTKEY_SHIFT_V_LOCATEVEHICLE
@ MID_HOTKEY_SHIFT_V_LOCATEVEHICLE
Locate vehicle - button.
Definition
GUIAppEnum.h:192
MID_HOTKEY_SHIFT_F11_HALLOFFAME
@ MID_HOTKEY_SHIFT_F11_HALLOFFAME
show the hall of fame dialog
Definition
GUIAppEnum.h:252
MID_HOTKEY_F4_SUPERMODE_DATA
@ MID_HOTKEY_F4_SUPERMODE_DATA
select data supermode in netedit
Definition
GUIAppEnum.h:236
MID_HOTKEY_SHIFT_L_LOCATEPOLY
@ MID_HOTKEY_SHIFT_L_LOCATEPOLY
Locate polygons - button.
Definition
GUIAppEnum.h:180
MID_HOTKEY_F6_CLEAN_SOLITARYJUNCTIONS_UNUSEDROUTES
@ MID_HOTKEY_F6_CLEAN_SOLITARYJUNCTIONS_UNUSEDROUTES
clean junctions without edges in network mode and unused routes in demand mode
Definition
GUIAppEnum.h:240
MID_HOTKEY_ALT_1_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_1_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:145
MID_HOTKEY_CTRL_K_OPENTLSPROGRAMS
@ MID_HOTKEY_CTRL_K_OPENTLSPROGRAMS
Load file with TLS Programs.
Definition
GUIAppEnum.h:103
MID_HOTKEY_SHIFT_E_LOCATEEDGE
@ MID_HOTKEY_SHIFT_E_LOCATEEDGE
Locate edge - button.
Definition
GUIAppEnum.h:176
MID_HOTKEY_ALT_B_BREAKPOINT_EARLY
@ MID_HOTKEY_ALT_B_BREAKPOINT_EARLY
hotkey for setting a breakpoint ahead of the current time
Definition
GUIAppEnum.h:165
MID_HOTKEY_CTRL_V_PASTE
@ MID_HOTKEY_CTRL_V_PASTE
paste the current selection / element
Definition
GUIAppEnum.h:127
MID_HOTKEY_CTRL_F_FULSCREENMODE
@ MID_HOTKEY_CTRL_F_FULSCREENMODE
Fullscreen mode - menu entry.
Definition
GUIAppEnum.h:93
MID_HOTKEY_R_MODE_CROSSING_ROUTE_EDGERELDATA
@ MID_HOTKEY_R_MODE_CROSSING_ROUTE_EDGERELDATA
hotkey for mode editing crossing, routes and edge rel datas
Definition
GUIAppEnum.h:65
MID_HOTKEY_CTRL_G_GAMINGMODE_TOGGLEGRID
@ MID_HOTKEY_CTRL_G_GAMINGMODE_TOGGLEGRID
Toggle Gaming mode in SUMO and grid in netedit.
Definition
GUIAppEnum.h:95
MID_HOTKEY_ALT_6_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_6_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:155
MID_HOTKEY_CTRL_SHIFT_M_SAVEMEANDATAS
@ MID_HOTKEY_CTRL_SHIFT_M_SAVEMEANDATAS
save Mean Datas
Definition
GUIAppEnum.h:216
MID_HOTKEY_L_MODE_PERSONPLAN
@ MID_HOTKEY_L_MODE_PERSONPLAN
hotkey for mode person plan
Definition
GUIAppEnum.h:57
MID_HOTKEY_V_MODE_VEHICLE
@ MID_HOTKEY_V_MODE_VEHICLE
hotkey for mode create vehicles
Definition
GUIAppEnum.h:71
MID_HOTKEY_SHIFT_P_LOCATEPERSON
@ MID_HOTKEY_SHIFT_P_LOCATEPERSON
Locate person - button.
Definition
GUIAppEnum.h:184
MID_HOTKEY_I_MODE_INSPECT
@ MID_HOTKEY_I_MODE_INSPECT
hotkey for mode inspecting object attributes
Definition
GUIAppEnum.h:55
MID_HOTKEY_CTRL_P_OPENSHAPES
@ MID_HOTKEY_CTRL_P_OPENSHAPES
Load additional file with poi and polygons.
Definition
GUIAppEnum.h:113
MID_HOTKEY_SHIFT_J_LOCATEJUNCTION
@ MID_HOTKEY_SHIFT_J_LOCATEJUNCTION
Locate junction - button.
Definition
GUIAppEnum.h:178
MID_HOTKEY_ALT_0_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_0_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:143
MID_HOTKEY_CTRL_C_COPY
@ MID_HOTKEY_CTRL_C_COPY
Copy the current selection / element.
Definition
GUIAppEnum.h:87
MID_HOTKEY_CTRL_SHIFT_E_SAVENETEDITCONFIG
@ MID_HOTKEY_CTRL_SHIFT_E_SAVENETEDITCONFIG
save netedit Config
Definition
GUIAppEnum.h:210
MID_HOTKEY_B_BREAKPOINT
@ MID_HOTKEY_B_BREAKPOINT
hotkey for setting a breakpoint
Definition
GUIAppEnum.h:47
MID_HOTKEY_ALT_F4_CLOSE
@ MID_HOTKEY_ALT_F4_CLOSE
Main window closes.
Definition
GUIAppEnum.h:163
MID_HOTKEY_CTRL_SHIFT_A_SAVEADDITIONALS
@ MID_HOTKEY_CTRL_SHIFT_A_SAVEADDITIONALS
Save Additional Elements.
Definition
GUIAppEnum.h:202
MID_HOTKEY_SHIFT_F2_TEMPLATE_COPY
@ MID_HOTKEY_SHIFT_F2_TEMPLATE_COPY
copy template
Definition
GUIAppEnum.h:264
MID_HOTKEY_CTRL_A_STARTSIMULATION_OPENADDITIONALS
@ MID_HOTKEY_CTRL_A_STARTSIMULATION_OPENADDITIONALS
Start the simulation in SUMO and open Additionals Elements in netedit.
Definition
GUIAppEnum.h:83
MID_HOTKEY_E_MODE_EDGE_EDGEDATA
@ MID_HOTKEY_E_MODE_EDGE_EDGEDATA
hotkey for mode adding edges AND edgeDatas
Definition
GUIAppEnum.h:51
MID_HOTKEY_ALT_8_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_8_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:159
MID_HOTKEY_CTRL_SHIFT_O_OPENNETCONVERTFILE
@ MID_HOTKEY_CTRL_SHIFT_O_OPENNETCONVERTFILE
open Netconvert file
Definition
GUIAppEnum.h:220
MID_HOTKEY_CTRL_M_OPENSUMOCONFIG
@ MID_HOTKEY_CTRL_M_OPENSUMOCONFIG
open sumo config
Definition
GUIAppEnum.h:107
MID_HOTKEY_CTRL_Z_UNDO
@ MID_HOTKEY_CTRL_Z_UNDO
Redo.
Definition
GUIAppEnum.h:135
MID_HOTKEY_CTRL_H_APPSETTINGS_OPENEDGETYPES
@ MID_HOTKEY_CTRL_H_APPSETTINGS_OPENEDGETYPES
open app setting dialog in SUMO and open edge type files in netedit
Definition
GUIAppEnum.h:97
MID_HOTKEY_BACKSPACE
@ MID_HOTKEY_BACKSPACE
hot key <Backspace> remove last sub-operation
Definition
GUIAppEnum.h:290
MID_HOTKEY_CTRL_SHIFT_S_SAVESUMOCONFIG
@ MID_HOTKEY_CTRL_SHIFT_S_SAVESUMOCONFIG
save SUMOConfig (SUMO AND netedit)
Definition
GUIAppEnum.h:222
MID_HOTKEY_ALT_7_TOGGLEEDITOPTION
@ MID_HOTKEY_ALT_7_TOGGLEEDITOPTION
toggle edit option
Definition
GUIAppEnum.h:157
MID_HOTKEY_F12_ABOUT
@ MID_HOTKEY_F12_ABOUT
open about dialog
Definition
GUIAppEnum.h:254
MID_HOTKEY_CTRL_E_EDITSELECTION_LOADNETEDITCONFIG
@ MID_HOTKEY_CTRL_E_EDITSELECTION_LOADNETEDITCONFIG
Edit selection in SUMO and load neteditConfig in netedit.
Definition
GUIAppEnum.h:91
MID_HOTKEY_ENTER
@ MID_HOTKEY_ENTER
hot key <ENTER> accept current operation
Definition
GUIAppEnum.h:288
MID_HOTKEY_CTRL_SHIFT_K_SAVETLS
@ MID_HOTKEY_CTRL_SHIFT_K_SAVETLS
save TLS Programs
Definition
GUIAppEnum.h:214
MID_HOTKEY_SHIFT_F1_TEMPLATE_SET
@ MID_HOTKEY_SHIFT_F1_TEMPLATE_SET
set template
Definition
GUIAppEnum.h:262
MID_HOTKEY_SHIFT_T_LOCATETLS
@ MID_HOTKEY_SHIFT_T_LOCATETLS
Locate TLS - button.
Definition
GUIAppEnum.h:190
MID_HOTKEY_M_MODE_MOVE_MEANDATA
@ MID_HOTKEY_M_MODE_MOVE_MEANDATA
hotkey for mode moving element AND mean data
Definition
GUIAppEnum.h:59
MID_HOTKEY_F2_SUPERMODE_NETWORK
@ MID_HOTKEY_F2_SUPERMODE_NETWORK
select network supermode in netedit
Definition
GUIAppEnum.h:232
MID_HOTKEY_SHIFT_F12_FOCUSUPPERELEMENT
@ MID_HOTKEY_SHIFT_F12_FOCUSUPPERELEMENT
focus upper element of current frame (only used in netedit)
Definition
GUIAppEnum.h:274
MID_HOTKEY_CTRL_N_OPENNETWORK_NEWNETWORK
@ MID_HOTKEY_CTRL_N_OPENNETWORK_NEWNETWORK
open network in SUMO and create new empty network in netedit
Definition
GUIAppEnum.h:109
MID_HOTKEY_SHIFT_F3_TEMPLATE_CLEAR
@ MID_HOTKEY_SHIFT_F3_TEMPLATE_CLEAR
clear template
Definition
GUIAppEnum.h:266
MID_HOTKEY_CTRL_SHIFT_C_SAVENETEDITCONFIG
@ MID_HOTKEY_CTRL_SHIFT_C_SAVENETEDITCONFIG
Save neteditConfig.
Definition
GUIAppEnum.h:206
MID_HOTKEY_P_MODE_POLYGON_PERSON
@ MID_HOTKEY_P_MODE_POLYGON_PERSON
hotkey for mode creating polygons
Definition
GUIAppEnum.h:61
MID_HOTKEY_CTRL_L_SAVEASPLAINXML
@ MID_HOTKEY_CTRL_L_SAVEASPLAINXML
save network as plain XML
Definition
GUIAppEnum.h:105
MID_HOTKEY_CTRL_X_CUT
@ MID_HOTKEY_CTRL_X_CUT
cut the current selection / element
Definition
GUIAppEnum.h:131
GUIShortcut
GUIShortcut
An enumeration of Shortcuts used by the gui applications.
Definition
GUIShortcuts.h:31
KEY_F4
@ KEY_F4
Definition
GUIShortcuts.h:102
KEY_SPACE
@ KEY_SPACE
Definition
GUIShortcuts.h:97
KEY_P
@ KEY_P
Definition
GUIShortcuts.h:85
KEY_M
@ KEY_M
Definition
GUIShortcuts.h:82
KEY_B
@ KEY_B
Definition
GUIShortcuts.h:71
KEY_F9
@ KEY_F9
Definition
GUIShortcuts.h:107
KEY_z
@ KEY_z
Definition
GUIShortcuts.h:68
KEY_u
@ KEY_u
Definition
GUIShortcuts.h:63
KEY_n
@ KEY_n
Definition
GUIShortcuts.h:56
KEY_2
@ KEY_2
Definition
GUIShortcuts.h:34
KEY_F6
@ KEY_F6
Definition
GUIShortcuts.h:104
KEY_ENTER
@ KEY_ENTER
Definition
GUIShortcuts.h:113
KEY_E
@ KEY_E
Definition
GUIShortcuts.h:74
KEY_I
@ KEY_I
Definition
GUIShortcuts.h:78
KEY_W
@ KEY_W
Definition
GUIShortcuts.h:92
KEY_D
@ KEY_D
Definition
GUIShortcuts.h:73
KEY_6
@ KEY_6
Definition
GUIShortcuts.h:38
KEY_F7
@ KEY_F7
Definition
GUIShortcuts.h:105
KEY_1
@ KEY_1
Definition
GUIShortcuts.h:33
KEY_F10
@ KEY_F10
Definition
GUIShortcuts.h:108
KEY_F
@ KEY_F
Definition
GUIShortcuts.h:75
KEY_i
@ KEY_i
Definition
GUIShortcuts.h:51
KEY_H
@ KEY_H
Definition
GUIShortcuts.h:77
KEY_s
@ KEY_s
Definition
GUIShortcuts.h:61
KEY_X
@ KEY_X
Definition
GUIShortcuts.h:93
KEY_G
@ KEY_G
Definition
GUIShortcuts.h:76
KEY_h
@ KEY_h
Definition
GUIShortcuts.h:50
KEY_DEL
@ KEY_DEL
Definition
GUIShortcuts.h:115
KEY_Y
@ KEY_Y
Definition
GUIShortcuts.h:94
KEY_a
@ KEY_a
Definition
GUIShortcuts.h:43
KEY_9
@ KEY_9
Definition
GUIShortcuts.h:41
KEY_T
@ KEY_T
Definition
GUIShortcuts.h:89
KEY_p
@ KEY_p
Definition
GUIShortcuts.h:58
KEY_r
@ KEY_r
Definition
GUIShortcuts.h:60
KEY_F5
@ KEY_F5
Definition
GUIShortcuts.h:103
KEY_K
@ KEY_K
Definition
GUIShortcuts.h:80
KEY_0
@ KEY_0
Definition
GUIShortcuts.h:32
KEY_c
@ KEY_c
Definition
GUIShortcuts.h:45
KEY_b
@ KEY_b
Definition
GUIShortcuts.h:44
KEY_F12
@ KEY_F12
Definition
GUIShortcuts.h:110
KEY_F2
@ KEY_F2
Definition
GUIShortcuts.h:100
KEY_k
@ KEY_k
Definition
GUIShortcuts.h:53
KEY_f
@ KEY_f
Definition
GUIShortcuts.h:48
KEY_x
@ KEY_x
Definition
GUIShortcuts.h:66
KEY_F3
@ KEY_F3
Definition
GUIShortcuts.h:101
KEY_q
@ KEY_q
Definition
GUIShortcuts.h:59
KEY_C
@ KEY_C
Definition
GUIShortcuts.h:72
KEY_F8
@ KEY_F8
Definition
GUIShortcuts.h:106
KEY_BACKSPACE
@ KEY_BACKSPACE
Definition
GUIShortcuts.h:114
KEY_R
@ KEY_R
Definition
GUIShortcuts.h:87
KEY_t
@ KEY_t
Definition
GUIShortcuts.h:62
KEY_j
@ KEY_j
Definition
GUIShortcuts.h:52
KEY_N
@ KEY_N
Definition
GUIShortcuts.h:83
KEY_A
@ KEY_A
Definition
GUIShortcuts.h:70
KEY_8
@ KEY_8
Definition
GUIShortcuts.h:40
KEY_Z
@ KEY_Z
Definition
GUIShortcuts.h:95
KEY_m
@ KEY_m
Definition
GUIShortcuts.h:55
KEY_S
@ KEY_S
Definition
GUIShortcuts.h:88
KEY_J
@ KEY_J
Definition
GUIShortcuts.h:79
KEY_l
@ KEY_l
Definition
GUIShortcuts.h:54
KEY_o
@ KEY_o
Definition
GUIShortcuts.h:57
KEY_Q
@ KEY_Q
Definition
GUIShortcuts.h:86
KEY_w
@ KEY_w
Definition
GUIShortcuts.h:65
KEY_U
@ KEY_U
Definition
GUIShortcuts.h:90
KEY_F11
@ KEY_F11
Definition
GUIShortcuts.h:109
KEY_d
@ KEY_d
Definition
GUIShortcuts.h:46
KEY_ESC
@ KEY_ESC
Definition
GUIShortcuts.h:112
KEY_7
@ KEY_7
Definition
GUIShortcuts.h:39
KEY_O
@ KEY_O
Definition
GUIShortcuts.h:84
KEY_4
@ KEY_4
Definition
GUIShortcuts.h:36
KEY_L
@ KEY_L
Definition
GUIShortcuts.h:81
KEY_5
@ KEY_5
Definition
GUIShortcuts.h:37
KEY_3
@ KEY_3
Definition
GUIShortcuts.h:35
KEY_e
@ KEY_e
Definition
GUIShortcuts.h:47
KEY_v
@ KEY_v
Definition
GUIShortcuts.h:64
KEY_V
@ KEY_V
Definition
GUIShortcuts.h:91
KEY_g
@ KEY_g
Definition
GUIShortcuts.h:49
KEY_y
@ KEY_y
Definition
GUIShortcuts.h:67
KEY_F1
@ KEY_F1
Definition
GUIShortcuts.h:99
GUIShortcutModifier
GUIShortcutModifier
Definition
GUIShortcuts.h:119
KEYMODIFIER_SHIFT
@ KEYMODIFIER_SHIFT
Definition
GUIShortcuts.h:120
KEYMODIFIER_CONTROL
@ KEYMODIFIER_CONTROL
Definition
GUIShortcuts.h:122
KEYMODIFIER_ALT
@ KEYMODIFIER_ALT
Definition
GUIShortcuts.h:121
GUIShortcutsSubSys.h
GUIShortcutsSubSys::parseKey
static int parseKey(GUIShortcut key)
Definition
GUIShortcutsSubSys.cpp:292
GUIShortcutsSubSys::buildAccelerators
static void buildAccelerators(FXAccelTable *accelTable, FXObject *target, const bool sumogui)
build accelerators
Definition
GUIShortcutsSubSys.cpp:31
GUIShortcutsSubSys::changeAccelerator
static void changeAccelerator(FXAccelTable *accelTable, FXObject *target, GUIShortcut keysym, long msg)
change accelerator (used for toggle dynamically binding space key with start/end simulation)
Definition
GUIShortcutsSubSys.cpp:286
src
utils
gui
shortcuts
GUIShortcutsSubSys.cpp
Generated on Tue Nov 5 2024 00:10:31 for Eclipse SUMO - Simulation of Urban MObility by
1.9.8