-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathkeyboard.h
40 lines (32 loc) · 839 Bytes
/
keyboard.h
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
30
31
32
33
34
35
36
37
38
39
40
#ifndef KEYBOARD_H
#define KEYBOARD_H
#include <QWidget>
#include <QLabel>
#include <QVector>
#include <QString>
class key;
class Keyboard : public QWidget
{
Q_OBJECT
public:
Keyboard(QWidget *p);
signals:
void keyPressed( QString t);
void backspacePressed( );
void returnPressed( );
private :
void paintEvent(QPaintEvent*);
void mousePressEvent(QMouseEvent * E);
void mouseMoveEvent(QMouseEvent * e);
void mouseReleaseEvent(QMouseEvent *);
void initTooltip();
void initKeys( int indexArraykeys,const char *keymap[]);
key *findKey(QPoint p);
void setKeyPressed( key *k,QPoint );
QVector<QVector< key * > > keys;
QLabel *tooltip;
key *currentKey;
int currentindexkeyboard;
bool uppercase ;
};
#endif // KEYBOARD_H