Sayonara Player
src
GUI
Preferences
Shortcuts
GUI_ShortcutEntry.h
1
2
/* Copyright (C) 2011-2017 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 <QList>
29
#include <QKeySequence>
30
31
UI_FWD(
GUI_ShortcutEntry
)
32
33
38
class
GUI_ShortcutEntry
:
39
public
Gui
::Widget
40
{
41
Q_OBJECT
42
UI_CLASS(
GUI_ShortcutEntry
)
43
PIMPL(
GUI_ShortcutEntry
)
44
45
signals:
50
void
sig_test_pressed(
const
QList<QKeySequence>
& sequences);
51
52
void
sig_sequence_entered();
53
54
public
:
55
explicit
GUI_ShortcutEntry
(ShortcutIdentifier identifier, QWidget* parent=
nullptr
);
56
~
GUI_ShortcutEntry
();
57
58
QList<QKeySequence>
sequences()
const
;
59
void
show_sequence_error();
60
61
public
slots:
62
void
commit();
63
void
clear();
64
void
revert();
65
66
67
private
slots:
68
void
edit_clicked();
69
void
default_clicked();
70
void
test_clicked();
71
72
void
language_changed()
override
;
73
void
skin_changed()
override
;
74
};
75
76
#endif // GUI_SHORTCUTENTRY_H
GUI_ShortcutEntry
The delegate class for displaying a shortcut.
Definition:
GUI_ShortcutEntry.h:38
Gui
Definition:
GUI_ControlsBase.h:43
QList
Definition:
org_mpris_media_player2_adaptor.h:20
Generated on Mon Sep 10 2018 12:32:55 for Sayonara Player by
1.8.13