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
/****************************************************************************/
15
// Helper for Shortcuts
16
/****************************************************************************/
17
#ifndef GUIShortcutsSubSys_h
18
#define GUIShortcutsSubSys_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include <fx.h>
27
#include "
GUIShortcuts.h
"
28
29
// ===========================================================================
30
// class declaration
31
// ==========================================================================
32
class
GNEApplicationWindow
;
33
class
GUIApplicationWindow
;
34
35
// ===========================================================================
36
// class definitions
37
// ===========================================================================
38
class
GUIShortcutsSubSys
{
39
public
:
41
static
void
buildSUMOAccelerators
(
GUIApplicationWindow
* GUIApp);
42
44
static
void
buildNETEDITAccelerators
(
GNEApplicationWindow
* GNEApp);
45
46
private
:
47
// @brief parse GUIShortcut to int
48
static
int
parseKey
(
GUIShortcut
key);
49
50
// @brief parse GUIShortcut to int with a modifier
51
static
int
parseKey
(
GUIShortcut
key,
GUIShortcutModifier
firstModifier);
52
53
// @brief parse GUIShortcut to int with two modifiers
54
static
int
parseKey
(
GUIShortcut
key,
GUIShortcutModifier
firstModifier,
GUIShortcutModifier
secondModifier);
55
};
56
57
58
#endif
59
60
/****************************************************************************/
61
GUIShortcutsSubSys::buildSUMOAccelerators
static void buildSUMOAccelerators(GUIApplicationWindow *GUIApp)
build SUMO Accelerators
Definition:
GUIShortcutsSubSys.cpp:36
GUIShortcutModifier
GUIShortcutModifier
Definition:
GUIShortcuts.h:120
GNEApplicationWindow
The main window of the Netedit.
Definition:
GNEApplicationWindow.h:59
GUIShortcutsSubSys::parseKey
static int parseKey(GUIShortcut key)
Definition:
GUIShortcutsSubSys.cpp:269
GUIShortcutsSubSys::buildNETEDITAccelerators
static void buildNETEDITAccelerators(GNEApplicationWindow *GNEApp)
build NETEDIT Accelerators
Definition:
GUIShortcutsSubSys.cpp:103
GUIShortcut
GUIShortcut
An enumeration of Shortcuts used by the gui applications.
Definition:
GUIShortcuts.h:34
GUIShortcuts.h
GUIApplicationWindow
The main window of the SUMO-gui.
Definition:
GUIApplicationWindow.h:66
GUIShortcutsSubSys
Definition:
GUIShortcutsSubSys.h:38
config.h
src
utils
gui
shortcuts
GUIShortcutsSubSys.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16