-
Notifications
You must be signed in to change notification settings - Fork 0
/
diceroller.h
52 lines (41 loc) · 1.16 KB
/
diceroller.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
#ifndef DICEROLLER_H
#define DICEROLLER_H
#include "QPainter"
#include <QStyleOption>
#include <QWidget>
#include "indicators.h"
namespace Ui {
class DiceRoller;
}
class DiceRoller : public QWidget
{
Q_OBJECT
public:
DiceRoller(QWidget *parent = nullptr);
DiceRoller(QWidget *parent = nullptr, const QStringList &listOfAttributes = QStringList(), const QStringList &listOfSkills = QStringList(), Indicators *indicatorPointer = nullptr);
void refreshText();
~DiceRoller();
private slots:
void on_pushButton_clicked();
void on_rollButton_clicked();
void on_rerollButton_clicked();
void spinBoxHandling();
void on_frenzyRollButton_clicked();
void on_rouseRollButton_clicked();
void on_clearDices_clicked();
private:
Ui::DiceRoller *ui;
Indicators *indicatorPoint;
void paintEvent(QPaintEvent *)
{
QStyleOption opt;
opt.initFrom(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}
int lastFrenzyDiceRoll = 0;
void deleteDices(int size_);
void createDices(int size_);
void deleteFrenzyRouseDices(int size_);
};
#endif // DICEROLLER_H