blob: 3004e0cc28bce9b4e3636ca745e4a44bd97123fd (
plain) (
blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
#ifndef FRAME_H_
#define FRAME_H_
#include <QtGui>
#include "../util/vncClientThread.h"
class VNCClientThread;
class ConnectionWindow;
class ConnectionFrame;
class MainWindow;
class Frame: public QLabel
{
Q_OBJECT
public:
Frame(const QString & text, QWidget * parent = 0 );
virtual ~Frame();
void setVNCThreadConnection(VNCClientThread * VNCclientThread);
void stopVNCThreadConnection();
VNCClientThread * getVNCClientThread()
{
return _clientVNCThread;
}
void setConFrame (ConnectionFrame* cf)
{
_cFrame = cf;
}
ConnectionFrame* getConFrame()
{
return _cFrame;
}
void setToolButtonListVisible(bool visible);
void setLockStatus(bool lock);
bool getLockStatus()
{
return _isLocked;
}
bool isDozent()
{
return _dozent;
}
int X,Y;
QString ip;
QToolButton* button_closeUp;
QToolButton* button_foto;
QToolButton* button_lock;
QToolButton* button_unlock;
QToolButton* button_dozent;
QList<QToolButton*> toolButtonList;
public Q_SLOTS:
void updateImage(int x, int y, int w, int h);
void iamDown();
void slotClicked();
QImage image()
{
return _clientImg;
};
void setImage(QImage img)
{
_clientImg = img;
};
QImage getImageForFoto();
void closeUp();
void foto();
void setLock();
//void unlock();
void setDozent();
signals:
void clicked();
protected:
void paintEvent(QPaintEvent *event);
void mousePressEvent ( QMouseEvent * event );
void mouseReleaseEvent ( QMouseEvent * event );
private:
QToolButton* createToolButton(const QString &toolTip, const QIcon &icon, const char *member);
void addButton(QToolButton *button);
VNCClientThread *_clientVNCThread;
ConnectionFrame *_cFrame;
QImage _clientImg;
bool _isLocked;
bool _dozent;
int _ux, _uy;
};
#endif /* FRAME_H_ */
|