kwave
18.07.70
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
f
h
i
l
m
o
p
r
s
t
u
w
y
z
Functions
Typedefs
Enumerations
+
Enumerator
a
b
c
f
i
l
o
p
r
s
u
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
+
Variables
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
i
l
m
p
q
r
s
t
x
z
Variables
Typedefs
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
ShortcutWrapper.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
ShortcutWrapper.cpp - 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
#include "config.h"
19
20
#include <QKeySequence>
21
#include <QObject>
22
23
#include "
ShortcutWrapper.h
"
24
25
//***************************************************************************
26
Kwave::ShortcutWrapper::ShortcutWrapper
(QWidget *parent,
27
const
QKeySequence &key,
28
int
id
)
29
:QShortcut(key, parent), m_id(id)
30
{
31
connect
(
this
, SIGNAL(
activated
()),
32
this
, SLOT(
triggered
()));
33
}
34
35
//***************************************************************************
36
Kwave::ShortcutWrapper::~ShortcutWrapper
()
37
{
38
}
39
40
//***************************************************************************
41
void
Kwave::ShortcutWrapper::triggered
()
42
{
43
emit
activated
(
m_id
);
44
}
45
46
//***************************************************************************
47
//***************************************************************************
Kwave::ShortcutWrapper::triggered
void triggered()
Definition:
ShortcutWrapper.cpp:41
Kwave::connect
bool connect(Kwave::StreamObject &source, const char *output, Kwave::StreamObject &sink, const char *input)
Definition:
Connect.cpp:48
Kwave::ShortcutWrapper::ShortcutWrapper
ShortcutWrapper(QWidget *parent, const QKeySequence &key, int id)
Definition:
ShortcutWrapper.cpp:26
ShortcutWrapper.h
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.cpp
Generated on Sat Mar 24 2018 09:10:24 for kwave by
1.8.13