Sayonara Player
src
GUI
Preferences
Shortcuts
GUI_Shortcuts.h
1
/* GUI_Shortcuts.h */
2
3
/* Copyright (C) 2011-2017 Lucio Carreras
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef GUI_SHORTCUTS_H
22
#define GUI_SHORTCUTS_H
23
24
#include "Interfaces/PreferenceDialog/PreferenceWidgetInterface.h"
25
26
namespace
Ui
{
class
GUI_Shortcuts
; }
27
28
class
ShortcutHandler
;
29
class
GUI_ShortcutEntry
;
30
35
class
GUI_Shortcuts
final:
36
public
PreferenceWidgetInterface
37
{
38
Q_OBJECT
39
40
public
:
41
explicit
GUI_Shortcuts
(QWidget* parent=
nullptr
);
42
~
GUI_Shortcuts
();
43
44
void
revert()
override
;
45
void
commit()
override
;
46
47
QString get_action_name()
const override
;
48
49
protected
:
50
void
init_ui()
override
;
51
void
retranslate_ui()
override
;
52
53
private
:
54
Ui::GUI_Shortcuts
* ui=
nullptr
;
55
56
ShortcutHandler
* _sch =
nullptr
;
57
QList<GUI_ShortcutEntry*>
_entries;
58
59
private
slots:
60
void
test_pressed(
const
QList<QKeySequence>
& sequences);
61
void
sequence_entered();
62
};
63
64
#endif // GUI_SHORTCUTS_H
GUI_ShortcutEntry
Definition:
GUI_ShortcutEntry.h:34
Ui::GUI_Shortcuts
Definition:
ui_GUI_Shortcuts.h:92
Ui
Definition:
GUI_SomaFM.h:34
ShortcutHandler
A singleton class for retrieving shortcuts.
Definition:
ShortcutHandler.h:35
PreferenceWidgetInterface
Abstract Interface you should use when creating a preferences item.
Definition:
PreferenceWidgetInterface.h:39
GUI_Shortcuts
The GUI_Shortcuts class.
Definition:
GUI_Shortcuts.h:35
QList
Definition:
org_mpris_media_player2_adaptor.h:20
Generated on Thu May 11 2017 07:37:14 for Sayonara Player by
1.8.13