diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2007-10-29 13:12:23 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2007-10-29 13:12:23 +0300 |
commit | 2d1ec937947a6f654dff6bc2af7adcdb42efcf34 (patch) | |
tree | b82d687c94700c4d765d2533eb7e82f2c1f279f2 /src/mumble/GlobalShortcut_unix.h | |
parent | 98a1f8fcc26f7ac5b0c0dfc56e3401178d851f25 (diff) |
QVariant Shortcut for Linux
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@825 05730e5d-ab1b-0410-a4ac-84af385074fa
Diffstat (limited to 'src/mumble/GlobalShortcut_unix.h')
-rw-r--r-- | src/mumble/GlobalShortcut_unix.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mumble/GlobalShortcut_unix.h b/src/mumble/GlobalShortcut_unix.h index 7654aa88f..fd8692f39 100644 --- a/src/mumble/GlobalShortcut_unix.h +++ b/src/mumble/GlobalShortcut_unix.h @@ -31,46 +31,19 @@ #include "GlobalShortcut.h" #include "ConfigDialog.h" -typedef QPair<int, unsigned int> qpButton; - -struct Shortcut { - GlobalShortcut *gs; - int iNumDown; - bool bActive; - QList<int> qlButtons; -}; - #define NUM_BUTTONS 0x2ff class GlobalShortcutX : public GlobalShortcutEngine { Q_OBJECT public: Display *display; - int ref; bool bRunning; - bool activeMap[NUM_BUTTONS]; - bool touchMap[NUM_BUTTONS]; - bool bFirstMouseReleased; - QHash<GlobalShortcut *, Shortcut *> qhGlobalToX; QList<QFile *> qlInputDevices; - bool globalEvent(XEvent *); - bool bGrabbing; - void grab(); - void release(); - QMultiHash<int, Shortcut *> qmhKeyToShortcut; - void handleEvent(int evtcode, bool down); GlobalShortcutX(); ~GlobalShortcutX(); void run(); - void remap(); - void resetMap(); - void add(GlobalShortcut *); - void remove(GlobalShortcut *); - QList<QVariant> getCurrentButtons(); QString buttonName(const QVariant &); public slots: void inputReadyRead(int); - signals: - void buttonPressed(bool); }; |