-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerator.h
More file actions
42 lines (36 loc) · 826 Bytes
/
generator.h
File metadata and controls
42 lines (36 loc) · 826 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
#pragma once
#include <QDir>
#include <QMediaPlayer>
#include <QTimer>
#include <QUrl>
#include <QWidget>
namespace Ui {
class Generator;
}
class Generator : public QWidget {
Q_OBJECT
public:
explicit Generator(QWidget *parent = 0);
~Generator();
std::vector<std::vector<int>> possibleTasks;
int tasksAmount = 0;
QMediaPlayer *background;
private slots:
void FireworkNextFrame();
void NextStudentNumber();
void NextTaskNumber();
void PossibleTaskNumber();
private:
void Generate();
QMediaPlayer *player1;
QMediaPlayer *player2;
QMediaPlayer *player3;
QMediaPlayer *gong;
QMovie *movie;
int nextPlayer = 1;
int fireworkFrameNumber = 1;
Ui::Generator *ui;
std::mt19937 mt_rand;
int previousNumber = 0;
int studentNumber = 0;
};