mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
* Sort *every* file into a doxygen group. Took 7 hours 9 minutes Took 18 seconds Took 2 minutes * Lint some ingroup definitions. Took 10 minutes Took 2 seconds * Just include the groups in the Doxyfile in this commit. Took 3 minutes * Update some group comments so they link! Took 14 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
32 lines
720 B
C++
32 lines
720 B
C++
/**
|
|
* @file dlg_roll_dice.h
|
|
* @ingroup GameDialogs
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef DLG_ROLL_DICE_H
|
|
#define DLG_ROLL_DICE_H
|
|
|
|
#include <QDialog>
|
|
#include <QDialogButtonBox>
|
|
#include <QLabel>
|
|
#include <QSpinBox>
|
|
|
|
class DlgRollDice : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
static constexpr uint DEFAULT_NUMBER_SIDES_DIE = 20;
|
|
static constexpr uint DEFAULT_NUMBER_DICE_TO_ROLL = 1;
|
|
|
|
QLabel *numberOfSidesLabel, *numberOfDiceLabel;
|
|
QSpinBox *numberOfSidesEdit, *numberOfDiceEdit;
|
|
QDialogButtonBox *buttonBox;
|
|
|
|
public:
|
|
explicit DlgRollDice(QWidget *parent = nullptr);
|
|
[[nodiscard]] uint getDieSideCount() const;
|
|
[[nodiscard]] uint getDiceToRollCount() const;
|
|
};
|
|
|
|
#endif // DLG_ROLL_DICE_H
|