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

kdecore

  • kdecore
kaccelprivate.h
1 #ifndef __KACCELPRIVATE_H
2 #define __KACCELPRIVATE_H
3 
4 #include "kkeyserver_x11.h"
5 #include <tqtimer.h>
6 
7 class KAccelAction;
8 
12 class KDECORE_EXPORT KAccelPrivate : public TQObject, public KAccelBase
13 {
14  Q_OBJECT
15  public:
16  KAccel* m_pAccel;
17  TQWidget* m_pWatch;
18  TQMap<int, int> m_mapIDToKey;
19  TQMap<int, KAccelAction*> m_mapIDToAction;
20  TQTimer m_timerShowMenu;
21 
22  KAccelPrivate( KAccel* pParent, TQWidget* pWatch );
23 
24  virtual void setEnabled( bool bEnabled );
25 
26  bool setEnabled( const TQString& sAction, bool bEnable );
27 
28  virtual bool removeAction( const TQString& sAction );
29 
30  virtual bool emitSignal( KAccelBase::Signal signal );
31  virtual bool connectKey( KAccelAction& action, const KKeyServer::Key& key );
32  virtual bool connectKey( const KKeyServer::Key& key );
33  virtual bool disconnectKey( KAccelAction& action, const KKeyServer::Key& key );
34  virtual bool disconnectKey( const KKeyServer::Key& key );
35 
36  signals:
37  void menuItemActivated();
38  void menuItemActivated(KAccelAction*);
39 
40  private:
41 #ifndef Q_WS_WIN
42  void emitActivatedSignal(KAccelAction*);
43 #endif
44 
45  private slots:
46  void slotKeyPressed( int id );
47  void slotShowMenu();
48  void slotMenuActivated( int iAction );
49 
50  bool eventFilter( TQObject* pWatched, TQEvent* pEvent ); // virtual method from QObject
51 };
52 
53 #endif // !__KACCELPRIVATE_H
KAccel
Handle shortcuts.
Definition: kaccel.h:93
KKeyServer::Key
Represents a key press.
Definition: kkeyserver_x11.h:137

kdecore

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

kdecore

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