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

tdecore

tdeaccelprivate.h
00001 #ifndef __TDEACCELPRIVATE_H
00002 #define __TDEACCELPRIVATE_H
00003 
00004 #include "kkeyserver_x11.h"
00005 #include <tqtimer.h>
00006 
00007 class TDEAccelAction;
00008 
00012 class TDECORE_EXPORT TDEAccelPrivate : public TQObject, public TDEAccelBase
00013 {
00014     Q_OBJECT
00015  public:
00016     TDEAccel* m_pAccel;
00017     TQWidget* m_pWatch;
00018     TQMap<int, int> m_mapIDToKey;
00019     TQMap<int, TDEAccelAction*> m_mapIDToAction;
00020     TQTimer m_timerShowMenu;
00021 
00022     TDEAccelPrivate( TDEAccel* 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( TDEAccelBase::Signal signal );
00031     virtual bool connectKey( TDEAccelAction& action, const KKeyServer::Key& key );
00032     virtual bool connectKey( const KKeyServer::Key& key );
00033     virtual bool disconnectKey( TDEAccelAction& action, const KKeyServer::Key& key );
00034     virtual bool disconnectKey( const KKeyServer::Key& key );
00035 
00036  signals:
00037     void menuItemActivated();
00038     void menuItemActivated(TDEAccelAction*);
00039 
00040  private:
00041 #ifndef Q_WS_WIN 
00042     void emitActivatedSignal(TDEAccelAction*);
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 // !__TDEACCELPRIVATE_H

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