diff -r fc7a93ff97c3 -r 2a33304714ba shortcuts.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/shortcuts.h Tue Nov 17 08:24:59 2009 +0000 @@ -0,0 +1,32 @@ +#ifndef SHORTCUTS_H +#define SHORTCUTS_H + +#include +#include +#include + +class Shortcut:public QShortcut { +public: + Shortcut(QWidget *parent=NULL); + void setGroup(const QString &); + QString getGroup (); + void setContextName (const QString &); + QString getContextName(); + +protected: + QString group; + QString context; +}; + +class Switchboard { +public: + Switchboard (); + void addConnection(QAction *a,const QString &s); +// void addFunction (Function, + void print(); +protected: + QList keys; + QList actions; +}; + +#endif