From 2d1ec937947a6f654dff6bc2af7adcdb42efcf34 Mon Sep 17 00:00:00 2001 From: Thorvald Natvig Date: Mon, 29 Oct 2007 10:12:23 +0000 Subject: QVariant Shortcut for Linux git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@825 05730e5d-ab1b-0410-a4ac-84af385074fa --- src/mumble/GlobalShortcut_unix.h | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/mumble/GlobalShortcut_unix.h') 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 qpButton; - -struct Shortcut { - GlobalShortcut *gs; - int iNumDown; - bool bActive; - QList 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 qhGlobalToX; QList qlInputDevices; - bool globalEvent(XEvent *); - bool bGrabbing; - void grab(); - void release(); - QMultiHash qmhKeyToShortcut; - void handleEvent(int evtcode, bool down); GlobalShortcutX(); ~GlobalShortcutX(); void run(); - void remap(); - void resetMap(); - void add(GlobalShortcut *); - void remove(GlobalShortcut *); - QList getCurrentButtons(); QString buttonName(const QVariant &); public slots: void inputReadyRead(int); - signals: - void buttonPressed(bool); }; -- cgit v1.2.3