You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.4 KiB
54 lines
1.4 KiB
15 years ago
|
#ifndef __KACCELPRIVATE_H
|
||
|
#define __KACCELPRIVATE_H
|
||
|
|
||
|
#include "kkeyserver_x11.h"
|
||
15 years ago
|
#include <tqtimer.h>
|
||
15 years ago
|
|
||
12 years ago
|
class TDEAccelAction;
|
||
15 years ago
|
|
||
|
/**
|
||
|
* @internal
|
||
|
*/
|
||
12 years ago
|
class TDECORE_EXPORT TDEAccelPrivate : public TQObject, public TDEAccelBase
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
12 years ago
|
TDEAccel* m_pAccel;
|
||
15 years ago
|
TQWidget* m_pWatch;
|
||
|
TQMap<int, int> m_mapIDToKey;
|
||
12 years ago
|
TQMap<int, TDEAccelAction*> m_mapIDToAction;
|
||
15 years ago
|
TQTimer m_timerShowMenu;
|
||
15 years ago
|
|
||
12 years ago
|
TDEAccelPrivate( TDEAccel* pParent, TQWidget* pWatch );
|
||
15 years ago
|
|
||
|
virtual void setEnabled( bool bEnabled );
|
||
|
|
||
15 years ago
|
bool setEnabled( const TQString& sAction, bool bEnable );
|
||
15 years ago
|
|
||
15 years ago
|
virtual bool removeAction( const TQString& sAction );
|
||
15 years ago
|
|
||
12 years ago
|
virtual bool emitSignal( TDEAccelBase::Signal signal );
|
||
|
virtual bool connectKey( TDEAccelAction& action, const KKeyServer::Key& key );
|
||
15 years ago
|
virtual bool connectKey( const KKeyServer::Key& key );
|
||
12 years ago
|
virtual bool disconnectKey( TDEAccelAction& action, const KKeyServer::Key& key );
|
||
15 years ago
|
virtual bool disconnectKey( const KKeyServer::Key& key );
|
||
|
|
||
|
signals:
|
||
|
void menuItemActivated();
|
||
12 years ago
|
void menuItemActivated(TDEAccelAction*);
|
||
15 years ago
|
|
||
|
private:
|
||
|
#ifndef Q_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
|
||
12 years ago
|
void emitActivatedSignal(TDEAccelAction*);
|
||
15 years ago
|
#endif
|
||
|
|
||
|
private slots:
|
||
|
void slotKeyPressed( int id );
|
||
|
void slotShowMenu();
|
||
|
void slotMenuActivated( int iAction );
|
||
|
|
||
14 years ago
|
bool eventFilter( TQObject* pWatched, TQEvent* pEvent ); // virtual method from QObject
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif // !__KACCELPRIVATE_H
|