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

tdeui

  • tdeui
tdeshortcutdialog.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 _TDESHORTCUTDIALOG_H_
21#define _TDESHORTCUTDIALOG_H_
22
23#include "kdialogbase.h"
24#include "tdeshortcut.h"
25
26class TQVBox;
27class KPushButton;
28class TDEShortcutDialogSimple;
29class TDEShortcutDialogAdvanced;
30
41class TDEUI_EXPORT TDEShortcutDialog : public KDialogBase
42{
43 TQ_OBJECT
44public:
45 TDEShortcutDialog( const TDEShortcut& shortcut, bool bQtShortcut, TQWidget* parent = 0, const char* name = 0 );
46 ~TDEShortcutDialog();
47
48 void setShortcut( const TDEShortcut & shortcut );
49 const TDEShortcut& shortcut() const { return m_shortcut; }
50
51private:
52 // true if qt shortcut, false if native shortcut
53 bool m_bQtShortcut;
54
55 TDEShortcut m_shortcut;
56 KPushButton* m_ptxtCurrent;
57 uint m_iSeq;
58 uint m_iKey;
59 bool m_bRecording;
60 uint m_mod;
61 TDEShortcutDialogSimple *m_simple;
62 TDEShortcutDialogAdvanced *m_adv;
63 TQVBox *m_stack;
64
65 void updateShortcutDisplay();
66 //void displayMods();
67 void keyPressed( KKey key );
68 void updateDetails();
69
70 #ifdef TQ_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 TQ_WS_WIN
77 virtual void keyPressEvent( TQKeyEvent * e );
78 virtual bool event(TQEvent * e);
79 #endif
80
81protected 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
90private:
91 class TDEShortcutDialogPrivate* d;
92 static bool s_showMore;
93};
94
95#endif // _TDESHORTCUTDIALOG_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
TDEShortcutDialog
Dialog for configuring a shortcut.
Definition: tdeshortcutdialog.h:42
TDEShortcut

tdeui

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

tdeui

Skip menu "tdeui"
  • 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 tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.