author | insilmaril |
Tue, 02 Mar 2010 13:59:19 +0000 | |
changeset 825 | 1ad892c1a709 |
parent 824 | 36eb4b8f409e |
child 842 | bec082472471 |
permissions | -rw-r--r-- |
1 #ifndef SHORTCUTS_H
2 #define SHORTCUTS_H
4 #include <QAction>
5 #include <QShortcut>
6 #include <QString>
8 class Shortcut:public QShortcut {
9 public:
10 Shortcut(QWidget *parent=NULL);
11 void setGroup(const QString &);
12 QString getGroup ();
13 void setContextName (const QString &);
14 QString getContextName();
16 protected:
17 QString group;
18 QString context;
19 };
21 class Switchboard {
22 public:
23 Switchboard ();
24 void addConnection(QAction *a,const QString &s);
25 void print();
26 protected:
27 QMultiMap <QString,QAction*> actions;
28 };
30 #endif