Cockatrice 2026-04-21-Development-2.11.0-beta.61
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 <QCheckBox>
11#include <QComboBox>
12#include <QDialog>
13#include <QDialogButtonBox>
14#include <QLabel>
15#include <QSpinBox>
16
17class FilterString;
18
20{
21 QStringList exprs = {};
22 int numberOfHits = 1;
23 bool autoPlay = false;
24};
25
26class DlgMoveTopCardsUntil : public QDialog
27{
28 Q_OBJECT
29
31 QComboBox *exprComboBox;
33 QDialogButtonBox *buttonBox;
34 QCheckBox *autoPlayCheckBox;
35
36 void validateAndAccept();
37 bool validateMatchExists(const FilterString &filterString);
38
39 [[nodiscard]] QStringList getExprs() const;
40
41public:
42 explicit DlgMoveTopCardsUntil(QWidget *parent = nullptr, const MoveTopCardsUntilOptions &options = {});
43 [[nodiscard]] QString getExpr() const;
44 [[nodiscard]] MoveTopCardsUntilOptions getOptions() const;
45};
46
47#endif // DLG_MOVE_TOP_CARDS_UNTIL_H
void validateAndAccept()
Definition dlg_move_top_cards_until.cpp:92
QComboBox * exprComboBox
Definition dlg_move_top_cards_until.h:31
DlgMoveTopCardsUntil(QWidget *parent=nullptr, const MoveTopCardsUntilOptions &options={})
Definition dlg_move_top_cards_until.cpp:15
QStringList getExprs() const
Definition dlg_move_top_cards_until.cpp:127
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:76
MoveTopCardsUntilOptions getOptions() const
Definition dlg_move_top_cards_until.cpp:120
QLabel * exprLabel
Definition dlg_move_top_cards_until.h:30
QLabel * numberOfHitsLabel
Definition dlg_move_top_cards_until.h:30
QDialogButtonBox * buttonBox
Definition dlg_move_top_cards_until.h:33
QString getExpr() const
Definition dlg_move_top_cards_until.cpp:115
QCheckBox * autoPlayCheckBox
Definition dlg_move_top_cards_until.h:34
QSpinBox * numberOfHitsEdit
Definition dlg_move_top_cards_until.h:32
Definition filter_string.h:34
Definition dlg_move_top_cards_until.h:20
QStringList exprs
Definition dlg_move_top_cards_until.h:21
bool autoPlay
Definition dlg_move_top_cards_until.h:23
int numberOfHits
Definition dlg_move_top_cards_until.h:22