Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DlgMoveTopCardsUntil Class Reference

#include <dlg_move_top_cards_until.h>

Inheritance diagram for DlgMoveTopCardsUntil:
[legend]
Collaboration diagram for DlgMoveTopCardsUntil:
[legend]

Public Member Functions

 DlgMoveTopCardsUntil (QWidget *parent=nullptr, QStringList exprs=QStringList(), uint numberOfHits=1, bool autoPlay=false)
QString getExpr () const
QStringList getExprs () const
uint getNumberOfHits () const
bool isAutoPlay () const

Private Member Functions

void validateAndAccept ()
bool validateMatchExists (const FilterString &filterString)
 Validates that a card matching the expr exists in the card database. If no match is found, then pop up a window to warn the user, giving them a chance to back out.

Private Attributes

QLabel * exprLabel
QLabel * numberOfHitsLabel
QComboBox * exprComboBox
QSpinBox * numberOfHitsEdit
QDialogButtonBox * buttonBox
QCheckBox * autoPlayCheckBox

Constructor & Destructor Documentation

◆ DlgMoveTopCardsUntil()

DlgMoveTopCardsUntil::DlgMoveTopCardsUntil ( QWidget * parent = nullptr,
QStringList exprs = QStringList(),
uint numberOfHits = 1,
bool autoPlay = false )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ getExpr()

QString DlgMoveTopCardsUntil::getExpr ( ) const
nodiscard
Here is the caller graph for this function:

◆ getExprs()

QStringList DlgMoveTopCardsUntil::getExprs ( ) const
nodiscard
Here is the caller graph for this function:

◆ getNumberOfHits()

uint DlgMoveTopCardsUntil::getNumberOfHits ( ) const
nodiscard
Here is the caller graph for this function:

◆ isAutoPlay()

bool DlgMoveTopCardsUntil::isAutoPlay ( ) const
nodiscard
Here is the caller graph for this function:

◆ validateAndAccept()

void DlgMoveTopCardsUntil::validateAndAccept ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validateMatchExists()

bool DlgMoveTopCardsUntil::validateMatchExists ( const FilterString & filterString)
private

Validates that a card matching the expr exists in the card database. If no match is found, then pop up a window to warn the user, giving them a chance to back out.

Returns
whether to proceed with the action
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ autoPlayCheckBox

QCheckBox* DlgMoveTopCardsUntil::autoPlayCheckBox
private

◆ buttonBox

QDialogButtonBox* DlgMoveTopCardsUntil::buttonBox
private

◆ exprComboBox

QComboBox* DlgMoveTopCardsUntil::exprComboBox
private

◆ exprLabel

QLabel* DlgMoveTopCardsUntil::exprLabel
private

◆ numberOfHitsEdit

QSpinBox* DlgMoveTopCardsUntil::numberOfHitsEdit
private

◆ numberOfHitsLabel

QLabel * DlgMoveTopCardsUntil::numberOfHitsLabel
private

The documentation for this class was generated from the following files: