orca-robotics INTRODUCTION Overview Download and Install Documentation REPOSITORY Interfaces Drivers Libraries Utilities Software Map DEVELOPER Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
shortcutkeymanager.h00001 #ifndef HYDROQGUI_SHORTCUTKEYMANAGER_H 00002 #define HYDROQGUI_SHORTCUTKEYMANAGER_H 00003 00004 #include <QWidget> 00005 #include <QAction> 00006 #include <QKeySequence> 00007 #include <hydroutil/uncopyable.h> 00008 00009 namespace hydroqguielementutil { 00010 00011 namespace detail { 00012 class ShortcutKey; 00013 } 00014 00027 class ShortcutKeyManager : public hydroutil::Uncopyable 00028 { 00029 00030 public: 00031 00032 ShortcutKeyManager( QWidget *mainWidget ); 00033 00034 ~ShortcutKeyManager(); 00035 00040 void subscribeToShortcutKey( QAction *elementAction, 00041 QKeySequence key, 00042 bool ownExclusively, 00043 QObject *triggeree ); 00044 00046 void unsubscribeFromShortcutKey( QKeySequence key, 00047 QObject *triggeree ); 00048 00049 private: 00050 00051 // list of shorcut actions 00052 QList<detail::ShortcutKey*> shortcutKeys_; 00053 00054 QWidget *mainWidget_; 00055 }; 00056 00057 } 00058 00059 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)