author | insilmaril |
Wed Nov 25 15:28:05 2009 +0000 (2009-11-25) | |
changeset 809 | 0a1abd218f36 |
child 824 | 36eb4b8f409e |
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 addFunction (Function,
26 void print();
27 protected:
28 QList <QKeySequence*> keys;
29 QList <QAction*> actions;
30 };
32 #endif