20 #ifndef __KSHORTCUTMENU_H
21 #define __KSHORTCUTMENU_H
24 #include <tqpopupmenu.h>
26 #include "kshortcut.h"
35 class KDECORE_EXPORT KShortcutMenu :
public TQPopupMenu
39 KShortcutMenu( TQWidget* pParent, KAccelActions* 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 KAccelActions* m_pActions;
58 IndexToKKeySequence m_seqs;
61 #endif // __KSHORTCUTMENU_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).