Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
14
class
QDialogButtonBox;
15
class
QLabel;
16
class
QSpinBox;
17
class
QWidget;
18
19
class
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
26
QLabel *
numberOfSidesLabel
, *
numberOfDiceLabel
;
27
QSpinBox *
numberOfSidesEdit
, *
numberOfDiceEdit
;
28
QDialogButtonBox *
buttonBox
;
29
30
public
:
31
explicit
DlgRollDice
(QWidget *parent =
nullptr
);
32
[[nodiscard]] uint
getDieSideCount
()
const
;
33
[[nodiscard]] uint
getDiceToRollCount
()
const
;
34
};
35
36
#endif
// DLG_ROLL_DICE_H
DlgRollDice::getDiceToRollCount
uint getDiceToRollCount() const
Definition
dlg_roll_dice.cpp:51
DlgRollDice::DlgRollDice
DlgRollDice(QWidget *parent=nullptr)
Definition
dlg_roll_dice.cpp:13
DlgRollDice::getDieSideCount
uint getDieSideCount() const
Definition
dlg_roll_dice.cpp:46
DlgRollDice::numberOfSidesEdit
QSpinBox * numberOfSidesEdit
Definition
dlg_roll_dice.h:27
DlgRollDice::numberOfSidesLabel
QLabel * numberOfSidesLabel
Definition
dlg_roll_dice.h:26
DlgRollDice::numberOfDiceEdit
QSpinBox * numberOfDiceEdit
Definition
dlg_roll_dice.h:27
DlgRollDice::DEFAULT_NUMBER_SIDES_DIE
static constexpr uint DEFAULT_NUMBER_SIDES_DIE
Definition
dlg_roll_dice.h:23
DlgRollDice::DEFAULT_NUMBER_DICE_TO_ROLL
static constexpr uint DEFAULT_NUMBER_DICE_TO_ROLL
Definition
dlg_roll_dice.h:24
DlgRollDice::numberOfDiceLabel
QLabel * numberOfDiceLabel
Definition
dlg_roll_dice.h:26
DlgRollDice::buttonBox
QDialogButtonBox * buttonBox
Definition
dlg_roll_dice.h:28
cockatrice
src
game_graphics
dialogs
dlg_roll_dice.h
Generated by
1.18.0