1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/shortcuts.h Mon Jan 04 20:36:06 2010 +0000
1.3 @@ -0,0 +1,32 @@
1.4 +#ifndef SHORTCUTS_H
1.5 +#define SHORTCUTS_H
1.6 +
1.7 +#include <QAction>
1.8 +#include <QShortcut>
1.9 +#include <QString>
1.10 +
1.11 +class Shortcut:public QShortcut {
1.12 +public:
1.13 + Shortcut(QWidget *parent=NULL);
1.14 + void setGroup(const QString &);
1.15 + QString getGroup ();
1.16 + void setContextName (const QString &);
1.17 + QString getContextName();
1.18 +
1.19 +protected:
1.20 + QString group;
1.21 + QString context;
1.22 +};
1.23 +
1.24 +class Switchboard {
1.25 +public:
1.26 + Switchboard ();
1.27 + void addConnection(QAction *a,const QString &s);
1.28 +// void addFunction (Function,
1.29 + void print();
1.30 +protected:
1.31 + QList <QKeySequence*> keys;
1.32 + QList <QAction*> actions;
1.33 +};
1.34 +
1.35 +#endif