kwave
18.07.70
ShortcutWrapper.h
Go to the documentation of this file.
1
/***************************************************************************
2
ShortcutWrapper.h - wrapper for keyboard shortcuts
3
-------------------
4
begin : Sat Jan 12 2008
5
copyright : (C) 2008 by Thomas Eschenbacher
6
email : Thomas.Eschenbacher@gmx.de
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef SHORTCUT_WRAPPER_H
19
#define SHORTCUT_WRAPPER_H
20
21
#include "config.h"
22
23
#include <QObject>
24
#include <QShortcut>
25
26
class
QWidget;
27
class
QKeySequence;
28
32
namespace
Kwave
33
{
34
class
ShortcutWrapper
:
public
QShortcut
35
{
36
Q_OBJECT
37
public
:
44
ShortcutWrapper
(QWidget *parent,
const
QKeySequence &key,
int
id
);
45
47
virtual
~ShortcutWrapper
();
48
49
signals:
54
void
activated
(
int
id
);
55
56
private
slots:
57
59
void
triggered
();
60
61
private
:
62
64
int
m_id
;
65
};
66
}
67
68
#endif
/* SHORTCUT_WRAPPER_H */
69
70
//***************************************************************************
71
//***************************************************************************
Kwave
Definition:
App.h:33
Kwave::ShortcutWrapper::triggered
void triggered()
Definition:
ShortcutWrapper.cpp:41
Kwave::ShortcutWrapper::ShortcutWrapper
ShortcutWrapper(QWidget *parent, const QKeySequence &key, int id)
Definition:
ShortcutWrapper.cpp:26
Kwave::ShortcutWrapper::activated
void activated(int id)
Kwave::ShortcutWrapper::~ShortcutWrapper
virtual ~ShortcutWrapper()
Definition:
ShortcutWrapper.cpp:36
Kwave::ShortcutWrapper::m_id
int m_id
Definition:
ShortcutWrapper.h:64
Kwave::ShortcutWrapper
Definition:
ShortcutWrapper.h:34
kwave
ShortcutWrapper.h
Generated on Sat Mar 24 2018 09:10:24 for kwave by
1.8.13