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

tdecore

  • tdecore
tdeaccelprivate.h
1 #ifndef __TDEACCELPRIVATE_H
2 #define __TDEACCELPRIVATE_H
3 
4 #include "kkeyserver_x11.h"
5 #include <tqtimer.h>
6 
7 class TDEAccelAction;
8 
12 class TDECORE_EXPORT TDEAccelPrivate : public TQObject, public TDEAccelBase
13 {
14  TQ_OBJECT
15  public:
16  TDEAccel* m_pAccel;
17  TQWidget* m_pWatch;
18  TQMap<int, int> m_mapIDToKey;
19  TQMap<int, TDEAccelAction*> m_mapIDToAction;
20  TQTimer m_timerShowMenu;
21 
22  TDEAccelPrivate( TDEAccel* 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( TDEAccelBase::Signal signal );
31  virtual bool connectKey( TDEAccelAction& action, const KKeyServer::Key& key );
32  virtual bool connectKey( const KKeyServer::Key& key );
33  virtual bool disconnectKey( TDEAccelAction& action, const KKeyServer::Key& key );
34  virtual bool disconnectKey( const KKeyServer::Key& key );
35 
36  signals:
37  void menuItemActivated();
38  void menuItemActivated(TDEAccelAction*);
39 
40  private:
41 #ifndef TQ_WS_WIN
42  void emitActivatedSignal(TDEAccelAction*);
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 TQObject
51 };
52 
53 #endif // !__TDEACCELPRIVATE_H
TDEAccel
Handle shortcuts.
Definition: tdeaccel.h:94
KKeyServer::Key
Represents a key press.
Definition: kkeyserver_x11.h:138

tdecore

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

tdecore

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