Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform 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 <QCheckBox>
11#include <QComboBox>
12#include <QDialog>
13#include <QDialogButtonBox>
14#include <QLabel>
15#include <QSpinBox>
16
17class FilterString;
18
19class DlgMoveTopCardsUntil : public QDialog
20{
21 Q_OBJECT
22
24 QComboBox *exprComboBox;
26 QDialogButtonBox *buttonBox;
27 QCheckBox *autoPlayCheckBox;
28
29 void validateAndAccept();
30 bool validateMatchExists(const FilterString &filterString);
31
32public:
33 explicit DlgMoveTopCardsUntil(QWidget *parent = nullptr,
34 QStringList exprs = QStringList(),
35 uint numberOfHits = 1,
36 bool autoPlay = false);
37 [[nodiscard]] QString getExpr() const;
38 [[nodiscard]] QStringList getExprs() const;
39 [[nodiscard]] uint getNumberOfHits() const;
40 [[nodiscard]] bool isAutoPlay() const;
41};
42
43#endif // DLG_MOVE_TOP_CARDS_UNTIL_H
void validateAndAccept()
Definition dlg_move_top_cards_until.cpp:93
DlgMoveTopCardsUntil(QWidget *parent=nullptr, QStringList exprs=QStringList(), uint numberOfHits=1, bool autoPlay=false)
Definition dlg_move_top_cards_until.cpp:15
bool isAutoPlay() const
Definition dlg_move_top_cards_until.cpp:135
QComboBox * exprComboBox
Definition dlg_move_top_cards_until.h:24
uint getNumberOfHits() const
Definition dlg_move_top_cards_until.cpp:130
QStringList getExprs() const
Definition dlg_move_top_cards_until.cpp:121
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:77
QLabel * exprLabel
Definition dlg_move_top_cards_until.h:23
QLabel * numberOfHitsLabel
Definition dlg_move_top_cards_until.h:23
QDialogButtonBox * buttonBox
Definition dlg_move_top_cards_until.h:26
QString getExpr() const
Definition dlg_move_top_cards_until.cpp:116
QCheckBox * autoPlayCheckBox
Definition dlg_move_top_cards_until.h:27
QSpinBox * numberOfHitsEdit
Definition dlg_move_top_cards_until.h:25
Definition filter_string.h:34