• 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  KPushButton* m_ptxtCurrent;
57  uint m_iSeq;
58  uint m_iKey;
59  bool m_bRecording;
60  uint m_mod;
61  KShortcutDialogSimple *m_simple;
62  KShortcutDialogAdvanced *m_adv;
63  TQVBox *m_stack;
64 
65  void updateShortcutDisplay();
66  //void displayMods();
67  void keyPressed( KKey key );
68  void updateDetails();
69 
70  #ifdef Q_WS_X11
71  virtual bool x11Event( XEvent *pEvent );
72  //void x11EventKeyPress( XEvent *pEvent );
73  void x11KeyPressEvent( XEvent* pEvent );
74  void x11KeyReleaseEvent( XEvent* pEvent );
75  #endif
76  #ifdef Q_WS_WIN
77  virtual void keyPressEvent( TQKeyEvent * e );
78  virtual bool event(TQEvent * e);
79  #endif
80 
81 protected slots:
82  void slotDetails();
83  void slotSelectPrimary();
84  void slotSelectAlternate();
85  void slotClearShortcut();
86  void slotClearPrimary();
87  void slotClearAlternate();
88  void slotMultiKeyMode( bool bOn );
89 
90 private:
91  class KShortcutDialogPrivate* d;
92  static bool s_showMore;
93 };
94 
95 #endif // _KSHORTCUTDIALOG_H_
KDialogBase
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:192
KDialogBase::slotDetails
virtual void slotDetails()
Activated when the Details button has been clicked.
Definition: kdialogbase.cpp:1107
KDialogBase::keyPressEvent
virtual void keyPressEvent(TQKeyEvent *e)
Maps some keys to the actions buttons.
Definition: kdialogbase.cpp:1553
KKey
KPushButton
This is nothing but a TQPushButton with drag-support and KGuiItem support.
Definition: kpushbutton.h:38
KShortcutDialog
Dialog for configuring a shortcut.
Definition: kshortcutdialog.h:42
KShortcut

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.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |