mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
36 lines
919 B
C++
36 lines
919 B
C++
#ifndef DLG_MOVE_TOP_CARDS_UNTIL_H
|
|
#define DLG_MOVE_TOP_CARDS_UNTIL_H
|
|
|
|
#include <QCheckBox>
|
|
#include <QDialog>
|
|
#include <QDialogButtonBox>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QSpinBox>
|
|
|
|
class FilterString;
|
|
|
|
class DlgMoveTopCardsUntil : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
QLabel *exprLabel, *numberOfHitsLabel;
|
|
QLineEdit *exprEdit;
|
|
QSpinBox *numberOfHitsEdit;
|
|
QDialogButtonBox *buttonBox;
|
|
QCheckBox *autoPlayCheckBox;
|
|
|
|
void validateAndAccept();
|
|
bool validateMatchExists(const FilterString &filterString);
|
|
|
|
public:
|
|
explicit DlgMoveTopCardsUntil(QWidget *parent = nullptr,
|
|
QString expr = QString(),
|
|
uint numberOfHits = 1,
|
|
bool autoPlay = false);
|
|
QString getExpr() const;
|
|
uint getNumberOfHits() const;
|
|
bool isAutoPlay() const;
|
|
};
|
|
|
|
#endif // DLG_MOVE_TOP_CARDS_UNTIL_H
|