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_move_top_cards_until.h
Go to the documentation of this file.
1
6
7
#ifndef DLG_MOVE_TOP_CARDS_UNTIL_H
8
#define DLG_MOVE_TOP_CARDS_UNTIL_H
9
10
#include <QDialog>
11
#include <QList>
12
#include <QString>
13
#include <QStringList>
14
#include <qtmetamacros.h>
15
16
class
FilterString
;
17
class
QCheckBox;
18
class
QComboBox;
19
class
QDialogButtonBox;
20
class
QLabel;
21
class
QSpinBox;
22
class
QWidget;
23
24
struct
MoveTopCardsUntilOptions
25
{
26
QStringList
exprs
= {};
27
int
numberOfHits
= 1;
28
bool
autoPlay
=
false
;
29
};
30
31
class
DlgMoveTopCardsUntil
:
public
QDialog
32
{
33
Q_OBJECT
34
35
QLabel *
exprLabel
, *
numberOfHitsLabel
;
36
QComboBox *
exprComboBox
;
37
QSpinBox *
numberOfHitsEdit
;
38
QDialogButtonBox *
buttonBox
;
39
QCheckBox *
autoPlayCheckBox
;
40
41
void
validateAndAccept
();
42
bool
validateMatchExists
(
const
FilterString
&filterString);
43
44
[[nodiscard]] QStringList
getExprs
()
const
;
45
46
public
:
47
explicit
DlgMoveTopCardsUntil
(QWidget *parent =
nullptr
,
const
MoveTopCardsUntilOptions
&options = {});
48
[[nodiscard]] QString
getExpr
()
const
;
49
[[nodiscard]]
MoveTopCardsUntilOptions
getOptions
()
const
;
50
};
51
52
#endif
// DLG_MOVE_TOP_CARDS_UNTIL_H
DlgMoveTopCardsUntil::validateAndAccept
void validateAndAccept()
Definition
dlg_move_top_cards_until.cpp:101
DlgMoveTopCardsUntil::exprComboBox
QComboBox * exprComboBox
Definition
dlg_move_top_cards_until.h:36
DlgMoveTopCardsUntil::DlgMoveTopCardsUntil
DlgMoveTopCardsUntil(QWidget *parent=nullptr, const MoveTopCardsUntilOptions &options={})
Definition
dlg_move_top_cards_until.cpp:23
DlgMoveTopCardsUntil::getExprs
QStringList getExprs() const
Definition
dlg_move_top_cards_until.cpp:136
DlgMoveTopCardsUntil::validateMatchExists
bool validateMatchExists(const FilterString &filterString)
Validates that a card matching the expr exists in the card database. If no match is found,...
Definition
dlg_move_top_cards_until.cpp:85
DlgMoveTopCardsUntil::getOptions
MoveTopCardsUntilOptions getOptions() const
Definition
dlg_move_top_cards_until.cpp:129
DlgMoveTopCardsUntil::exprLabel
QLabel * exprLabel
Definition
dlg_move_top_cards_until.h:35
DlgMoveTopCardsUntil::numberOfHitsLabel
QLabel * numberOfHitsLabel
Definition
dlg_move_top_cards_until.h:35
DlgMoveTopCardsUntil::buttonBox
QDialogButtonBox * buttonBox
Definition
dlg_move_top_cards_until.h:38
DlgMoveTopCardsUntil::getExpr
QString getExpr() const
Definition
dlg_move_top_cards_until.cpp:124
DlgMoveTopCardsUntil::autoPlayCheckBox
QCheckBox * autoPlayCheckBox
Definition
dlg_move_top_cards_until.h:39
DlgMoveTopCardsUntil::numberOfHitsEdit
QSpinBox * numberOfHitsEdit
Definition
dlg_move_top_cards_until.h:37
FilterString
Definition
filter_string.h:35
MoveTopCardsUntilOptions
Definition
dlg_move_top_cards_until.h:25
MoveTopCardsUntilOptions::exprs
QStringList exprs
Definition
dlg_move_top_cards_until.h:26
MoveTopCardsUntilOptions::autoPlay
bool autoPlay
Definition
dlg_move_top_cards_until.h:28
MoveTopCardsUntilOptions::numberOfHits
int numberOfHits
Definition
dlg_move_top_cards_until.h:27
cockatrice
src
game_graphics
dialogs
dlg_move_top_cards_until.h
Generated by
1.18.0