shortcuts.h
author insilmaril
Fri, 19 Feb 2010 13:47:03 +0000
changeset 823 0bba81dde1bc
parent 806 2a33304714ba
child 824 36eb4b8f409e
permissions -rw-r--r--
More fixes
     1 #ifndef SHORTCUTS_H
     2 #define SHORTCUTS_H
     3 
     4 #include <QAction>
     5 #include <QShortcut>
     6 #include <QString>
     7 
     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();
    15 
    16 protected:
    17 	QString group;
    18 	QString context;
    19 };
    20 
    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 };
    31 
    32 #endif