diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 15:56:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-06 15:56:40 -0600 |
commit | e16866e072f94410321d70daedbcb855ea878cac (patch) | |
tree | ee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /tdecore/kaccelprivate.h | |
parent | a58c20c1a7593631a1b50213c805507ebc16adaf (diff) | |
download | tdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip |
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'tdecore/kaccelprivate.h')
-rw-r--r-- | tdecore/kaccelprivate.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tdecore/kaccelprivate.h b/tdecore/kaccelprivate.h new file mode 100644 index 000000000..0a6cdc19b --- /dev/null +++ b/tdecore/kaccelprivate.h @@ -0,0 +1,53 @@ +#ifndef __KACCELPRIVATE_H +#define __KACCELPRIVATE_H + +#include "kkeyserver_x11.h" +#include <tqtimer.h> + +class KAccelAction; + +/** + * @internal + */ +class KDECORE_EXPORT KAccelPrivate : public TQObject, public KAccelBase +{ + Q_OBJECT + public: + KAccel* m_pAccel; + TQWidget* m_pWatch; + TQMap<int, int> m_mapIDToKey; + TQMap<int, KAccelAction*> m_mapIDToAction; + TQTimer m_timerShowMenu; + + KAccelPrivate( KAccel* pParent, TQWidget* pWatch ); + + virtual void setEnabled( bool bEnabled ); + + bool setEnabled( const TQString& sAction, bool bEnable ); + + virtual bool removeAction( const TQString& sAction ); + + virtual bool emitSignal( KAccelBase::Signal signal ); + virtual bool connectKey( KAccelAction& action, const KKeyServer::Key& key ); + virtual bool connectKey( const KKeyServer::Key& key ); + virtual bool disconnectKey( KAccelAction& action, const KKeyServer::Key& key ); + virtual bool disconnectKey( const KKeyServer::Key& key ); + + signals: + void menuItemActivated(); + void menuItemActivated(KAccelAction*); + + private: +#ifndef Q_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */ + void emitActivatedSignal(KAccelAction*); +#endif + + private slots: + void slotKeyPressed( int id ); + void slotShowMenu(); + void slotMenuActivated( int iAction ); + + bool eventFilter( TQObject* pWatched, TQEvent* pEvent ); // virtual method from QObject +}; + +#endif // !__KACCELPRIVATE_H |