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

kdecore

kaccelprivate.h
00001 #ifndef __KACCELPRIVATE_H
00002 #define __KACCELPRIVATE_H
00003 
00004 #include "kkeyserver_x11.h"
00005 #include <tqtimer.h>
00006 
00007 class KAccelAction;
00008 
00012 class KDECORE_EXPORT KAccelPrivate : public TQObject, public KAccelBase
00013 {
00014     Q_OBJECT
00015  public:
00016     KAccel* m_pAccel;
00017     TQWidget* m_pWatch;
00018     TQMap<int, int> m_mapIDToKey;
00019     TQMap<int, KAccelAction*> m_mapIDToAction;
00020     TQTimer m_timerShowMenu;
00021 
00022     KAccelPrivate( KAccel* pParent, TQWidget* pWatch );
00023 
00024     virtual void setEnabled( bool bEnabled );
00025 
00026     bool setEnabled( const TQString& sAction, bool bEnable );
00027 
00028     virtual bool removeAction( const TQString& sAction );
00029 
00030     virtual bool emitSignal( KAccelBase::Signal signal );
00031     virtual bool connectKey( KAccelAction& action, const KKeyServer::Key& key );
00032     virtual bool connectKey( const KKeyServer::Key& key );
00033     virtual bool disconnectKey( KAccelAction& action, const KKeyServer::Key& key );
00034     virtual bool disconnectKey( const KKeyServer::Key& key );
00035 
00036  signals:
00037     void menuItemActivated();
00038     void menuItemActivated(KAccelAction*);
00039 
00040  private:
00041 #ifndef Q_WS_WIN 
00042     void emitActivatedSignal(KAccelAction*);
00043 #endif
00044 
00045  private slots:
00046     void slotKeyPressed( int id );
00047     void slotShowMenu();
00048     void slotMenuActivated( int iAction );
00049     
00050     bool eventFilter( TQObject* pWatched, TQEvent* pEvent ); // virtual method from QObject
00051 };
00052 
00053 #endif // !__KACCELPRIVATE_H

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