shortcuts.h
author convert-repo
Fri, 23 Jul 2010 16:43:49 +0000
changeset 849 988f1908a7c4
parent 842 bec082472471
permissions -rw-r--r--
update tags
     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 print();
    26 	void printLaTeX();
    27 protected:  
    28 	QMultiMap <QString,QAction*> actions;
    29 };
    30 
    31 #endif