shortcuts.h
author insilmaril
Thu, 25 Feb 2010 11:03:52 +0000
changeset 824 36eb4b8f409e
parent 806 2a33304714ba
child 842 bec082472471
permissions -rw-r--r--
Added dialog for HTML export. Grouping in Switchboard shortcuts
     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 protected:  
    27 	QMultiMap <QString,QAction*> actions;
    28 };
    29 
    30 #endif