Sayonara Player
src
Gui
Preferences
Shortcuts
GUI_ShortcutEntry.h
1
2
/* Copyright (C) 2011-2019 Lucio Carreras
3
*
4
* This file is part of sayonara player
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef GUI_SHORTCUTENTRY_H
21
#define GUI_SHORTCUTENTRY_H
22
23
#include "Gui/Utils/Shortcuts/Shortcut.h"
24
#include "Gui/Utils/Shortcuts/ShortcutHandler.h"
25
#include "Gui/Utils/Widgets/Widget.h"
26
#include "Utils/Pimpl.h"
27
28
#include <QKeySequence>
29
30
UI_FWD(
GUI_ShortcutEntry
)
31
32
37
class
GUI_ShortcutEntry
:
38
public Gui::Widget
39
{
40
Q_OBJECT
41
UI_CLASS(
GUI_ShortcutEntry
)
42
PIMPL(
GUI_ShortcutEntry
)
43
44
signals:
49
void
sig_test_pressed(
const
QList<QKeySequence>
& sequences);
50
51
void
sig_sequence_entered();
52
53
public
:
54
explicit
GUI_ShortcutEntry
(ShortcutIdentifier identifier, QWidget* parent=
nullptr
);
55
~
GUI_ShortcutEntry
();
56
57
QList<QKeySequence>
sequences()
const
;
58
void
show_sequence_error();
59
60
public
slots:
61
void
commit();
62
void
clear();
63
void
revert();
64
65
66
private
slots:
67
void
edit_clicked();
68
void
default_clicked();
69
void
test_clicked();
70
71
void
language_changed()
override
;
72
void
skin_changed()
override
;
73
};
74
75
#endif // GUI_SHORTCUTENTRY_H
GUI_ShortcutEntry
The delegate class for displaying a shortcut.
Definition:
GUI_ShortcutEntry.h:37
QList
Definition:
EngineUtils.h:33
Generated on Thu Jan 30 2020 00:00:00 for Sayonara Player by
1.8.17