~unity-2d-team/unity-2d/shell-rogue-declaration

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/hotkey.h

[shell][launcher] Enabled Super+NumKey[0..9] shortcuts for launcher tiles.
We need separate hotkey's for them. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <QObject>
24
24
 
 
25
typedef unsigned long KeySym;
 
26
 
25
27
class Hotkey : public QObject
26
28
{
27
29
    friend class HotkeyMonitor;
33
35
public:
34
36
    Qt::Key key() const { return m_key; }
35
37
    Qt::KeyboardModifiers modifiers() const { return m_modifiers; }
 
38
    bool isX11Keysym() const { return m_isX11keysym; }
36
39
 
37
40
Q_SIGNALS:
38
41
    void keyChanged(Qt::Key key);
45
48
    virtual void disconnectNotify(const char * signal);
46
49
 
47
50
private:
48
 
    Hotkey(Qt::Key key, Qt::KeyboardModifiers modifiers, QObject *parent);
 
51
    Hotkey(Qt::Key key, Qt::KeyboardModifiers modifiers, QObject *parent, bool isX11keysym = false);
49
52
    bool processNativeEvent(uint x11Keycode, uint x11Modifiers, bool isPressEvent);
50
53
 
51
54
private:
52
55
    uint m_connections;
53
56
    Qt::Key m_key;
54
57
    Qt::KeyboardModifiers m_modifiers;
 
58
    bool m_isX11keysym;
55
59
    uint m_x11key;
56
60
    uint m_x11modifiers;
57
61
};