2015-10-05 01:43:48 +02:00
|
|
|
#ifndef KEYS_H
|
|
|
|
#define KEYS_H
|
|
|
|
|
2016-04-11 22:08:00 +02:00
|
|
|
#include <Qt>
|
|
|
|
#include <QKeySequence>
|
|
|
|
|
|
|
|
#define NEXT_KEY Qt::Key_Space
|
|
|
|
#define PREV_KEY Qt::Key_Backspace
|
|
|
|
#define FIRST_KEY Qt::Key_Home
|
|
|
|
#define LAST_KEY Qt::Key_End
|
|
|
|
#define MODIFIER Qt::ShiftModifier
|
|
|
|
|
|
|
|
#define QUIT_SHORTCUT QKeySequence::Quit
|
|
|
|
#define OPEN_SHORTCUT QKeySequence::Open
|
|
|
|
#define CLOSE_SHORTCUT QKeySequence::Close
|
|
|
|
#define RELOAD_SHORTCUT QKeySequence::Refresh
|
2016-05-15 22:38:15 +02:00
|
|
|
#define EXPORT_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_E)
|
2016-04-11 22:08:00 +02:00
|
|
|
#define SHOW_POI_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_P)
|
|
|
|
#define SHOW_MAP_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_M)
|
|
|
|
#define NEXT_MAP_SHORTCUT QKeySequence::Forward
|
|
|
|
#define PREV_MAP_SHORTCUT QKeySequence::Back
|
|
|
|
#define SHOW_GRAPHS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_G)
|
2016-04-13 22:04:14 +02:00
|
|
|
#ifdef Q_OS_MAC
|
|
|
|
#define FULLSCREEN_SHORTCUT QKeySequence(Qt::META + Qt::CTRL + Qt::Key_F)
|
|
|
|
#else // Q_OS_MAC
|
2016-04-11 22:08:00 +02:00
|
|
|
#define FULLSCREEN_SHORTCUT QKeySequence(Qt::Key_F11)
|
2016-04-13 22:04:14 +02:00
|
|
|
#endif // Q_OS_MAC
|
2015-10-05 01:43:48 +02:00
|
|
|
|
|
|
|
#endif // KEYS_H
|