-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreceivewindow.h
More file actions
50 lines (41 loc) · 995 Bytes
/
receivewindow.h
File metadata and controls
50 lines (41 loc) · 995 Bytes
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
#ifndef RECEIVERWINDOW_H
#define RECEIVERWINDOW_H
#include <QWidget>
#include <QFrame>
#include <QVBoxLayout>
#include <QImage>
#include <QLabel>
#include <QPainter>
#include <receivethread.h>
#include <drawingarea.h>
#include <cmath>
#include "sharedPins.h"
class ReceiveWindow : public QWidget
{
Q_OBJECT
public:
explicit ReceiveWindow(QWidget *parent = nullptr);
void paintEvent(QPaintEvent *event) override;
//function for drawing line between two QPoints
void drawLineTo();
//mutators for attributes
void setSX(int c);
void setSY(int c);
void setEX(int c);
void setEY(int c);
public slots:
//function to be called after having read the data from sharedPins
void receiveData();
void clearScreen();
private:
receiveThread rThread;
int sCoordinateX;
int sCoordinateY;
int eCoordinateX;
int eCoordinateY;
QImage image;
QRect rect;
QPoint startPoint;
QPoint endPoint;
};
#endif // RECEIVERWINDOW_H