• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

  • kdecore
kshortcutmenu.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2002 Ellis Whitehead <ellis@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef __KSHORTCUTMENU_H
21 #define __KSHORTCUTMENU_H
22 
23 #include <tqmap.h>
24 #include <tqpopupmenu.h>
25 
26 #include "kshortcut.h"
27 
28 class TQLabel;
29 
30 class KAccelActions;
31 
35 class KDECORE_EXPORT KShortcutMenu : public TQPopupMenu
36 {
37  Q_OBJECT
38  public:
39  KShortcutMenu( TQWidget* pParent, KAccelActions* pActions, KKeySequence seq );
40 
41  bool insertAction( uint iAction, KKeySequence seq );
42 
43  void updateShortcuts();
44 
45  protected:
46  void keyPressEvent( TQKeyEvent* pEvent );
47 
48  private:
49  int searchForKey( KKey key );
50  void keepItemsMatching( KKey key );
51 
52  private:
53  typedef TQMap<uint, KKeySequence> IndexToKKeySequence;
54 
55  KAccelActions* m_pActions;
56  KKeySequence m_seq;
57  TQLabel* pTitle;
58  IndexToKKeySequence m_seqs;
59 };
60 
61 #endif // __KSHORTCUTMENU_H
KKeySequence
A KKeySequence object holds a sequence of up to 4 keys.
Definition: kshortcut.h:289
KKey
A KKey object represents a single key with possible modifiers (Shift, Ctrl, Alt, Win).
Definition: kshortcut.h:41

kdecore

Skip menu "kdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |