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

tdecore

  • tdecore
tdeshortcutmenu.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 __TDESHORTCUTMENU_H
21 #define __TDESHORTCUTMENU_H
22 
23 #include <tqmap.h>
24 #include <tqpopupmenu.h>
25 
26 #include "tdeshortcut.h"
27 
28 class TQLabel;
29 
30 class TDEAccelActions;
31 
35 class TDECORE_EXPORT TDEShortcutMenu : public TQPopupMenu
36 {
37  TQ_OBJECT
38  public:
39  TDEShortcutMenu( TQWidget* pParent, TDEAccelActions* 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  TDEAccelActions* m_pActions;
56  KKeySequence m_seq;
57  TQLabel* pTitle;
58  IndexToKKeySequence m_seqs;
59 };
60 
61 #endif // __TDESHORTCUTMENU_H
KKeySequence
A KKeySequence object holds a sequence of up to 4 keys.
Definition: tdeshortcut.h:289
KKey
A KKey object represents a single key with possible modifiers (Shift, Ctrl, Alt, Win).
Definition: tdeshortcut.h:41

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.1
This website is maintained by Timothy Pearson.