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

kdeui

  • kdeui
kshortcutdialog.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2002,2003 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 _KSHORTCUTDIALOG_H_
21 #define _KSHORTCUTDIALOG_H_
22 
23 #include "kdialogbase.h"
24 #include "kshortcut.h"
25 
26 class TQVBox;
27 class KPushButton;
28 class KShortcutDialogSimple;
29 class KShortcutDialogAdvanced;
30 
41 class KDEUI_EXPORT KShortcutDialog : public KDialogBase
42 {
43  Q_OBJECT
44 public:
45  KShortcutDialog( const KShortcut& shortcut, bool bQtShortcut, TQWidget* parent = 0, const char* name = 0 );
46  ~KShortcutDialog();
47 
48  void setShortcut( const KShortcut & shortcut );
49  const KShortcut& shortcut() const { return m_shortcut; }
50 
51 private:
52  // true if qt shortcut, false if native shortcut
53  bool m_bQtShortcut;
54 
55  KShortcut m_shortcut;
56  bool m_bGrab;
57  KPushButton* m_ptxtCurrent;
58  uint m_iSeq;
59  uint m_iKey;
60  bool m_bRecording;
61  uint m_mod;
62  KShortcutDialogSimple *m_simple;
63  KShortcutDialogAdvanced *m_adv;
64  TQVBox *m_stack;
65 
66  void updateShortcutDisplay();
67  //void displayMods();
68  void keyPressed( KKey key );
69  void updateDetails();
70 
71  #ifdef Q_WS_X11
72  virtual bool x11Event( XEvent *pEvent );
73  //void x11EventKeyPress( XEvent *pEvent );
74  void x11KeyPressEvent( XEvent* pEvent );
75  void x11KeyReleaseEvent( XEvent* pEvent );
76  #endif
77  #ifdef Q_WS_WIN
78  virtual void keyPressEvent( TQKeyEvent * e );
79  virtual bool event(TQEvent * e);
80  #endif
81 
82 protected slots:
83  void slotDetails();
84  void slotSelectPrimary();
85  void slotSelectAlternate();
86  void slotClearShortcut();
87  void slotClearPrimary();
88  void slotClearAlternate();
89  void slotMultiKeyMode( bool bOn );
90 
91 private:
92  class KShortcutDialogPrivate* d;
93  static bool s_showMore;
94 };
95 
96 #endif // _KSHORTCUTDIALOG_H_

kdeui

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

kdeui

Skip menu "kdeui"
  • 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 kdeui by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |