5 #include <QKeySequence>
7 #define NEXT_KEY Qt::Key_Space
8 #define PREV_KEY Qt::Key_Backspace
9 #define FIRST_KEY Qt::Key_Home
10 #define LAST_KEY Qt::Key_End
11 #define MODIFIER_KEY Qt::Key_Shift
12 #define MODIFIER Qt::ShiftModifier
13 #define ZOOM_IN Qt::Key_Plus
14 #define ZOOM_OUT Qt::Key_Minus
15 #define TOGGLE_GRAPH_TYPE_KEY Qt::Key_X
16 #define TOGGLE_TIME_TYPE_KEY Qt::Key_T
17 #define TOGGLE_MARKER_INFO_KEY Qt::Key_I
19 #define QUIT_SHORTCUT QKeySequence(QKeySequence::Quit)
20 #define OPEN_SHORTCUT QKeySequence(QKeySequence::Open)
21 #define CLOSE_SHORTCUT QKeySequence(QKeySequence::Close)
22 #define RELOAD_SHORTCUT QKeySequence(QKeySequence::Refresh)
23 #define PDF_EXPORT_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_E)
24 #define PNG_EXPORT_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_X)
25 #define SHOW_POI_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_P)
26 #define SHOW_MAP_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_M)
27 #define NEXT_MAP_SHORTCUT QKeySequence(QKeySequence::Forward)
28 #define PREV_MAP_SHORTCUT QKeySequence(QKeySequence::Back)
29 #define SHOW_GRAPHS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_G)
30 #define STATISTICS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_S)
31 #define DOWNLOAD_DEM_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_D)
32 #define SHOW_TRACKS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_T)
33 #define FULLSCREEN_SHORTCUT (QKeySequence(QKeySequence::FullScreen).isEmpty() \
34 ? QKeySequence(Qt::Key_F11) \
35 : QKeySequence(QKeySequence::FullScreen))