mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
Convert informal TODO and FIXME comments to Doxygen-recognized
\todo format.
- // TODO comments → //! \todo ...
- // FIXME comments → //! \todo ...
- /** @todo ... */ blocks → //! \todo ...
- @brief TODO: placeholders → //! \todo (moved outside doc blocks)
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/**
|
|
* @file dlg_move_top_cards_until.h
|
|
* @ingroup GameDialogs
|
|
*/
|
|
//! \todo Document this file.
|
|
|
|
#ifndef DLG_MOVE_TOP_CARDS_UNTIL_H
|
|
#define DLG_MOVE_TOP_CARDS_UNTIL_H
|
|
|
|
#include <QCheckBox>
|
|
#include <QComboBox>
|
|
#include <QDialog>
|
|
#include <QDialogButtonBox>
|
|
#include <QLabel>
|
|
#include <QSpinBox>
|
|
|
|
class FilterString;
|
|
|
|
struct MoveTopCardsUntilOptions
|
|
{
|
|
QStringList exprs = {};
|
|
int numberOfHits = 1;
|
|
bool autoPlay = false;
|
|
};
|
|
|
|
class DlgMoveTopCardsUntil : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
QLabel *exprLabel, *numberOfHitsLabel;
|
|
QComboBox *exprComboBox;
|
|
QSpinBox *numberOfHitsEdit;
|
|
QDialogButtonBox *buttonBox;
|
|
QCheckBox *autoPlayCheckBox;
|
|
|
|
void validateAndAccept();
|
|
bool validateMatchExists(const FilterString &filterString);
|
|
|
|
[[nodiscard]] QStringList getExprs() const;
|
|
|
|
public:
|
|
explicit DlgMoveTopCardsUntil(QWidget *parent = nullptr, const MoveTopCardsUntilOptions &options = {});
|
|
[[nodiscard]] QString getExpr() const;
|
|
[[nodiscard]] MoveTopCardsUntilOptions getOptions() const;
|
|
};
|
|
|
|
#endif // DLG_MOVE_TOP_CARDS_UNTIL_H
|