Cosmetics
[GPXSee.git] / src / keys.h
blob29013a4d007404e2ec6e316dfc3e83976a36d35f
1 #ifndef KEYS_H
2 #define KEYS_H
4 #include <Qt>
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 Qt::ShiftModifier
13 #define ZOOM_IN QKeySequence::ZoomIn
14 #define ZOOM_OUT QKeySequence::ZoomOut
16 #define QUIT_SHORTCUT QKeySequence(QKeySequence::Quit)
17 #define OPEN_SHORTCUT QKeySequence(QKeySequence::Open)
18 #define CLOSE_SHORTCUT QKeySequence(QKeySequence::Close)
19 #define RELOAD_SHORTCUT QKeySequence(QKeySequence::Refresh)
20 #define EXPORT_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_E)
21 #define SHOW_POI_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_P)
22 #define SHOW_MAP_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_M)
23 #define NEXT_MAP_SHORTCUT QKeySequence(QKeySequence::Forward)
24 #define PREV_MAP_SHORTCUT QKeySequence(QKeySequence::Back)
25 #define SHOW_GRAPHS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_G)
26 #define DISTANCE_GRAPH_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_D)
27 #define TIME_GRAPH_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_T)
29 #ifdef Q_OS_MAC
30 #define FULLSCREEN_SHORTCUT QKeySequence(Qt::META + Qt::CTRL + Qt::Key_F)
31 #else // Q_OS_MAC
32 #define FULLSCREEN_SHORTCUT QKeySequence(Qt::Key_F11)
33 #endif // Q_OS_MAC
35 #endif // KEYS_H