20 #ifndef __TDESHORTCUTMENU_H 21 #define __TDESHORTCUTMENU_H 24 #include <tqpopupmenu.h> 26 #include "tdeshortcut.h" 30 class TDEAccelActions;
35 class TDECORE_EXPORT TDEShortcutMenu :
public TQPopupMenu
39 TDEShortcutMenu( TQWidget* pParent, TDEAccelActions* pActions,
KKeySequence seq );
43 void updateShortcuts();
46 void keyPressEvent( TQKeyEvent* pEvent );
49 int searchForKey(
KKey key );
50 void keepItemsMatching(
KKey key );
53 typedef TQMap<uint, KKeySequence> IndexToKKeySequence;
55 TDEAccelActions* m_pActions;
58 IndexToKKeySequence m_seqs;
61 #endif // __TDESHORTCUTMENU_H A KKeySequence object holds a sequence of up to 4 keys.
A KKey object represents a single key with possible modifiers (Shift, Ctrl, Alt, Win).