aboutsummaryrefslogtreecommitdiffstats
path: root/Keyboard.h
blob: 67f47f22e8747194d69fb6edda9701a4c84e4778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __KEYBOARD_H__
#define __KEYBOARD_H__

#include <QWidget>
#include <QRect>
#include <QLabel>
#include <QSignalMapper>

class Keyboard : public QWidget
{
    Q_OBJECT
    public:
        explicit Keyboard(QRect r, QWidget *parent = Q_NULLPTR);
        virtual ~Keyboard();

    signals:
        void specialKeyClicked(int key);
        void keyClicked(const QString &text);

    private slots:
        void buttonClicked(int key);

    private:
        QRect rect;
        QLabel background;
        QSignalMapper *mapper;
};

#endif // __KEYBOARD_H__