Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
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
16class FilterString;
17class QCheckBox;
18class QComboBox;
19class QDialogButtonBox;
20class QLabel;
21class QSpinBox;
22class QWidget;
23
25{
26 QStringList exprs = {};
27 int numberOfHits = 1;
28 bool autoPlay = false;
29};
30
31class DlgMoveTopCardsUntil : public QDialog
32{
33 Q_OBJECT
34
36 QComboBox *exprComboBox;
38 QDialogButtonBox *buttonBox;
39 QCheckBox *autoPlayCheckBox;
40
41 void validateAndAccept();
42 bool validateMatchExists(const FilterString &filterString);
43
44 [[nodiscard]] QStringList getExprs() const;
45
46public:
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
void validateAndAccept()
Definition dlg_move_top_cards_until.cpp:101
QComboBox * exprComboBox
Definition dlg_move_top_cards_until.h:36
DlgMoveTopCardsUntil(QWidget *parent=nullptr, const MoveTopCardsUntilOptions &options={})
Definition dlg_move_top_cards_until.cpp:23
QStringList getExprs() const
Definition dlg_move_top_cards_until.cpp:136
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
MoveTopCardsUntilOptions getOptions() const
Definition dlg_move_top_cards_until.cpp:129
QLabel * exprLabel
Definition dlg_move_top_cards_until.h:35
QLabel * numberOfHitsLabel
Definition dlg_move_top_cards_until.h:35
QDialogButtonBox * buttonBox
Definition dlg_move_top_cards_until.h:38
QString getExpr() const
Definition dlg_move_top_cards_until.cpp:124
QCheckBox * autoPlayCheckBox
Definition dlg_move_top_cards_until.h:39
QSpinBox * numberOfHitsEdit
Definition dlg_move_top_cards_until.h:37
Definition filter_string.h:35
Definition dlg_move_top_cards_until.h:25
QStringList exprs
Definition dlg_move_top_cards_until.h:26
bool autoPlay
Definition dlg_move_top_cards_until.h:28
int numberOfHits
Definition dlg_move_top_cards_until.h:27