summaryrefslogtreecommitdiffstats
path: root/tdecore/tdeaccelprivate.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 17:25:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 17:25:43 -0600
commitd888cfa39e8b38abe17f3d425d19cb8235136a79 (patch)
tree7ae5487b84106036fdb781beec26fab10678a595 /tdecore/tdeaccelprivate.h
parentdeac2ca49faed824fe83066080714eb6d653615b (diff)
downloadtdelibs-d888cfa39e8b38abe17f3d425d19cb8235136a79.tar.gz
tdelibs-d888cfa39e8b38abe17f3d425d19cb8235136a79.zip
Fix FTBFS
Diffstat (limited to 'tdecore/tdeaccelprivate.h')
-rw-r--r--tdecore/tdeaccelprivate.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/tdecore/tdeaccelprivate.h b/tdecore/tdeaccelprivate.h
new file mode 100644
index 000000000..0d967998d
--- /dev/null
+++ b/tdecore/tdeaccelprivate.h
@@ -0,0 +1,53 @@
+#ifndef __KACCELPRIVATE_H
+#define __KACCELPRIVATE_H
+
+#include "kkeyserver_x11.h"
+#include <tqtimer.h>
+
+class TDEAccelAction;
+
+/**
+ * @internal
+ */
+class TDECORE_EXPORT TDEAccelPrivate : public TQObject, public TDEAccelBase
+{
+ Q_OBJECT
+ public:
+ TDEAccel* m_pAccel;
+ TQWidget* m_pWatch;
+ TQMap<int, int> m_mapIDToKey;
+ TQMap<int, TDEAccelAction*> m_mapIDToAction;
+ TQTimer m_timerShowMenu;
+
+ TDEAccelPrivate( TDEAccel* pParent, TQWidget* pWatch );
+
+ virtual void setEnabled( bool bEnabled );
+
+ bool setEnabled( const TQString& sAction, bool bEnable );
+
+ virtual bool removeAction( const TQString& sAction );
+
+ virtual bool emitSignal( TDEAccelBase::Signal signal );
+ virtual bool connectKey( TDEAccelAction& action, const KKeyServer::Key& key );
+ virtual bool connectKey( const KKeyServer::Key& key );
+ virtual bool disconnectKey( TDEAccelAction& action, const KKeyServer::Key& key );
+ virtual bool disconnectKey( const KKeyServer::Key& key );
+
+ signals:
+ void menuItemActivated();
+ void menuItemActivated(TDEAccelAction*);
+
+ private:
+#ifndef Q_WS_WIN /** @todo TEMP: new implementation (commit #424926) didn't work */
+ void emitActivatedSignal(TDEAccelAction*);
+#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