Go to the documentation of this file.00001
00004 #ifndef BPSKEYFILTER_H
00005 #define BPSKEYFILTER_H
00006
00007 #include "bpsgui_global.h"
00008 #include <QObject>
00009
00029 class BPSGUI_EXPORT BpsKeyFilter : public QObject
00030 {
00031 Q_OBJECT
00032 BPS_PRIVATE(BpsKeyFilter)
00033
00034 public:
00038 enum {
00039 Enter,
00040 F1,
00041 F2,
00042 F3,
00043 F4,
00044 F5,
00045 F6,
00046 F7,
00047 F8,
00048 F9,
00049 F10,
00050 F11,
00051 F12,
00052 CtrlEnter,
00053 CtrlF1,
00054 CtrlF2,
00055 CtrlF3,
00056 CtrlF4,
00057 CtrlF5,
00058 CtrlF6,
00059 CtrlF7,
00060 CtrlF8,
00061 CtrlF9,
00062 CtrlF10,
00063 CtrlF11,
00064 CtrlF12,
00065 AltEnter,
00066 AltF1,
00067 AltF2,
00068 AltF3,
00069 AltF4,
00070 AltF5,
00071 AltF6,
00072 AltF7,
00073 AltF8,
00074 AltF9,
00075 AltF10,
00076 AltF11,
00077 AltF12
00078 };
00079
00085 BpsKeyFilter(int aKey, QObject* aParent = 0);
00086
00092 BpsKeyFilter(const QSet<int>& aKeys, QObject* aParent = 0);
00093
00095 virtual ~BpsKeyFilter();
00096 virtual bool eventFilter(QObject* aWatched, QEvent* aEvent);
00098
00099 signals:
00100
00105 void keyPressed();
00106
00111 void keyPressed(int aKey);
00112
00117 void keyReleased();
00118
00123 void keyReleased(int aKey);
00124
00125 };
00126
00127 #endif // BPSKEYFILTER_H