Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
dlg_roll_dice.h
Go to the documentation of this file.
1
6
7#ifndef DLG_ROLL_DICE_H
8#define DLG_ROLL_DICE_H
9
10#include <QDialog>
11#include <qtmetamacros.h>
12#include <sys/types.h>
13
14class QDialogButtonBox;
15class QLabel;
16class QSpinBox;
17class QWidget;
18
19class DlgRollDice : public QDialog
20{
21 Q_OBJECT
22
23 static constexpr uint DEFAULT_NUMBER_SIDES_DIE = 20;
24 static constexpr uint DEFAULT_NUMBER_DICE_TO_ROLL = 1;
25
28 QDialogButtonBox *buttonBox;
29
30public:
31 explicit DlgRollDice(QWidget *parent = nullptr);
32 [[nodiscard]] uint getDieSideCount() const;
33 [[nodiscard]] uint getDiceToRollCount() const;
34};
35
36#endif // DLG_ROLL_DICE_H
uint getDiceToRollCount() const
Definition dlg_roll_dice.cpp:51
DlgRollDice(QWidget *parent=nullptr)
Definition dlg_roll_dice.cpp:13
uint getDieSideCount() const
Definition dlg_roll_dice.cpp:46
QSpinBox * numberOfSidesEdit
Definition dlg_roll_dice.h:27
QLabel * numberOfSidesLabel
Definition dlg_roll_dice.h:26
QSpinBox * numberOfDiceEdit
Definition dlg_roll_dice.h:27
static constexpr uint DEFAULT_NUMBER_SIDES_DIE
Definition dlg_roll_dice.h:23
static constexpr uint DEFAULT_NUMBER_DICE_TO_ROLL
Definition dlg_roll_dice.h:24
QLabel * numberOfDiceLabel
Definition dlg_roll_dice.h:26
QDialogButtonBox * buttonBox
Definition dlg_roll_dice.h:28