Eclipse SUMO - Simulation of Urban MObility
GUIShortcutsSubSys.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
14 // Helper for Shortcuts
15 /****************************************************************************/
16 #ifndef GUIShortcutsSubSys_h
17 #define GUIShortcutsSubSys_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <fx.h>
26 #include "GUIShortcuts.h"
27 
28 // ===========================================================================
29 // class declaration
30 // ==========================================================================
33 
34 // ===========================================================================
35 // class definitions
36 // ===========================================================================
38 public:
40  static void buildSUMOAccelerators(GUIApplicationWindow* GUIApp);
41 
44 
45 private:
46  // @brief parse GUIShortcut to int
47  static int parseKey(GUIShortcut key);
48 
49  // @brief parse GUIShortcut to int with a modifier
50  static int parseKey(GUIShortcut key, GUIShortcutModifier firstModifier);
51 
52  // @brief parse GUIShortcut to int with two modifiers
53  static int parseKey(GUIShortcut key, GUIShortcutModifier firstModifier, GUIShortcutModifier secondModifier);
54 };
55 
56 
57 #endif
58 
59 /****************************************************************************/
60 
GUIShortcutsSubSys::buildSUMOAccelerators
static void buildSUMOAccelerators(GUIApplicationWindow *GUIApp)
build SUMO Accelerators
Definition: GUIShortcutsSubSys.cpp:35
GUIShortcutModifier
GUIShortcutModifier
Definition: GUIShortcuts.h:119
GNEApplicationWindow
The main window of the Netedit.
Definition: GNEApplicationWindow.h:58
GUIShortcutsSubSys::parseKey
static int parseKey(GUIShortcut key)
Definition: GUIShortcutsSubSys.cpp:295
GUIShortcutsSubSys::buildNETEDITAccelerators
static void buildNETEDITAccelerators(GNEApplicationWindow *GNEApp)
build NETEDIT Accelerators
Definition: GUIShortcutsSubSys.cpp:108
GUIShortcut
GUIShortcut
An enumeration of Shortcuts used by the gui applications.
Definition: GUIShortcuts.h:33
GUIShortcuts.h
GUIApplicationWindow
The main window of the SUMO-gui.
Definition: GUIApplicationWindow.h:65
GUIShortcutsSubSys
Definition: GUIShortcutsSubSys.h:37
config.h