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>
|
|
|
|
|
2016-09-19 00:56:10 +02:00
|
|
|
#define NEXT_KEY Qt::Key_Space
|
|
|
|
#define PREV_KEY Qt::Key_Backspace
|
|
|
|
#define FIRST_KEY Qt::Key_Home
|
|
|
|
#define LAST_KEY Qt::Key_End
|
2020-11-13 20:15:17 +01:00
|
|
|
#define MODIFIER_KEY Qt::Key_Shift
|
2016-09-19 00:56:10 +02:00
|
|
|
#define MODIFIER Qt::ShiftModifier
|
2018-05-09 18:18:58 +02:00
|
|
|
#define ZOOM_IN Qt::Key_Plus
|
|
|
|
#define ZOOM_OUT Qt::Key_Minus
|
2017-09-26 07:46:46 +02:00
|
|
|
#define TOGGLE_GRAPH_TYPE_KEY Qt::Key_X
|
|
|
|
#define TOGGLE_TIME_TYPE_KEY Qt::Key_T
|
2021-02-12 22:41:38 +01:00
|
|
|
#define TOGGLE_MARKER_INFO_KEY Qt::Key_I
|
2017-09-26 07:46:46 +02:00
|
|
|
|
2017-02-02 20:06:17 +01:00
|
|
|
#define QUIT_SHORTCUT QKeySequence(QKeySequence::Quit)
|
|
|
|
#define OPEN_SHORTCUT QKeySequence(QKeySequence::Open)
|
|
|
|
#define CLOSE_SHORTCUT QKeySequence(QKeySequence::Close)
|
|
|
|
#define RELOAD_SHORTCUT QKeySequence(QKeySequence::Refresh)
|
2020-10-07 22:57:30 +02:00
|
|
|
#define PDF_EXPORT_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_E)
|
|
|
|
#define PNG_EXPORT_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_X)
|
2016-09-19 00:56:10 +02:00
|
|
|
#define SHOW_POI_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_P)
|
|
|
|
#define SHOW_MAP_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_M)
|
2017-02-02 20:06:17 +01:00
|
|
|
#define NEXT_MAP_SHORTCUT QKeySequence(QKeySequence::Forward)
|
|
|
|
#define PREV_MAP_SHORTCUT QKeySequence(QKeySequence::Back)
|
2016-09-19 00:56:10 +02:00
|
|
|
#define SHOW_GRAPHS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_G)
|
2018-07-21 16:13:18 +02:00
|
|
|
#define STATISTICS_SHORTCUT QKeySequence(Qt::CTRL + Qt::Key_S)
|
2021-05-29 00:17:53 +02:00
|
|
|
#define FULLSCREEN_SHORTCUT (QKeySequence(QKeySequence::FullScreen).isEmpty() \
|
|
|
|
? QKeySequence(Qt::Key_F11) \
|
|
|
|
: QKeySequence(QKeySequence::FullScreen))
|
2015-10-05 01:43:48 +02:00
|
|
|
|
|
|
|
#endif // KEYS_H
|