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 //***************************************************************************
Definition: App.h:33
ShortcutWrapper(QWidget *parent, const QKeySequence &key, int id)
void activated(int id)