-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.h
63 lines (47 loc) · 1.29 KB
/
home.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef HOME_H
#define HOME_H
#include <QWidget>
#include <QTimer>
#include <QFont>
#include <QMessageBox>
#include <QGraphicsDropShadowEffect>
#include "globals.h"
#include <pthread.h>
namespace Ui {
class Home;
}
class Home : public QWidget
{
Q_OBJECT
public:
explicit Home(QWidget *parent = nullptr);
~Home();
static void* relayThreadFn(void* arg);
void runThread();
signals:
void nextClicked();
void newDateTime();
void newPage();
void createButton();
void go();
void send5();
private slots:
void on_changePage_clicked();
void on_dial_valueChanged(int value);
void on_dial_2_valueChanged(int value);
void updateTime();
void createNewPage();
void onpushButtonclicked();
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_pushButton_4_clicked();
private:
Ui::Home *ui;
bool _unlocked[2] = {false}; //left dial is _unlocked[0] right dial is _unlocked[1]
int _dialPos = rand() % 356 + 2; //random position for left dial
int _dial2Pos = rand() % 356 + 2; //random position for right dial
QGraphicsDropShadowEffect *_bodyShadowDial = new QGraphicsDropShadowEffect,
*_bodyShadowDial2 = new QGraphicsDropShadowEffect;
void setDials();
};
#endif // HOME_H