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

tdeui

tdeshortcutdialog.h
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2002,2003 Ellis Whitehead <ellis@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef _TDESHORTCUTDIALOG_H_
00021 #define _TDESHORTCUTDIALOG_H_
00022 
00023 #include "kdialogbase.h"
00024 #include "tdeshortcut.h"
00025 
00026 class TQVBox;
00027 class KPushButton;
00028 class TDEShortcutDialogSimple;
00029 class TDEShortcutDialogAdvanced;
00030 
00041 class TDEUI_EXPORT TDEShortcutDialog : public KDialogBase
00042 {
00043     Q_OBJECT
00044 public:
00045     TDEShortcutDialog( const TDEShortcut& shortcut, bool bQtShortcut, TQWidget* parent = 0, const char* name = 0 );
00046     ~TDEShortcutDialog();
00047 
00048     void setShortcut( const TDEShortcut & shortcut );
00049     const TDEShortcut& shortcut() const { return m_shortcut; }
00050 
00051 private:
00052     // true if qt shortcut, false if native shortcut
00053     bool m_bQtShortcut;
00054 
00055     TDEShortcut m_shortcut;
00056     bool m_bGrab;
00057     KPushButton* m_ptxtCurrent;
00058     uint m_iSeq;
00059     uint m_iKey;
00060     bool m_bRecording;
00061     uint m_mod;
00062     TDEShortcutDialogSimple *m_simple;
00063     TDEShortcutDialogAdvanced *m_adv;
00064     TQVBox *m_stack;
00065     
00066     void updateShortcutDisplay();
00067     //void displayMods();
00068     void keyPressed( KKey key );
00069     void updateDetails();
00070 
00071     #ifdef Q_WS_X11
00072     virtual bool x11Event( XEvent *pEvent );
00073     //void x11EventKeyPress( XEvent *pEvent );
00074     void x11KeyPressEvent( XEvent* pEvent );
00075     void x11KeyReleaseEvent( XEvent* pEvent );
00076     #endif
00077     #ifdef Q_WS_WIN
00078     virtual void keyPressEvent( TQKeyEvent * e );
00079     virtual bool event(TQEvent * e);
00080     #endif
00081 
00082 protected slots:
00083     void slotDetails();
00084     void slotSelectPrimary();
00085     void slotSelectAlternate();
00086     void slotClearShortcut();
00087     void slotClearPrimary();
00088     void slotClearAlternate();
00089     void slotMultiKeyMode( bool bOn );
00090 
00091 private:
00092         class TDEShortcutDialogPrivate* d;
00093         static bool s_showMore;
00094 };
00095 
00096 #endif // _TDESHORTCUTDIALOG_H_

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.7.6.1
This website is maintained by Timothy Pearson.