kaccelprivate.h
00001 #ifndef __KACCELPRIVATE_H
00002 #define __KACCELPRIVATE_H
00003
00004 #include "kkeyserver_x11.h"
00005
00009 class KAccelPrivate : public QObject, public KAccelBase
00010 {
00011 Q_OBJECT
00012 public:
00013 KAccel* m_pAccel;
00014 QWidget* m_pWatch;
00015 QMap<int, int> m_mapIDToKey;
00016 QMap<int, KAccelAction*> m_mapIDToAction;
00017 QTimer m_timerShowMenu;
00018
00019 KAccelPrivate( KAccel* pParent, QWidget* pWatch );
00020
00021 virtual void setEnabled( bool );
00022
00023 bool setEnabled( const QString& sAction, bool bEnable );
00024
00025 virtual bool removeAction( const QString& sAction );
00026
00027 virtual bool emitSignal( KAccelBase::Signal );
00028 virtual bool connectKey( KAccelAction&, const KKeyServer::Key& );
00029 virtual bool connectKey( const KKeyServer::Key& );
00030 virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& );
00031 virtual bool disconnectKey( const KKeyServer::Key& );
00032
00033 signals:
00034 void menuItemActivated();
00035 void activateInt( int );
00036
00037 private slots:
00038 void slotKeyPressed( int id );
00039 void slotShowMenu();
00040 void slotMenuActivated( int iAction );
00041
00042 bool eventFilter( QObject* pWatched, QEvent* pEvent );
00043 };
00044
00045 #endif // !__KACCELPRIVATE_H
This file is part of the documentation for kdelibs Version 3.1.4.