Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DialogConvertDeckToCodFormat Class Reference

#include <dlg_convert_deck_to_cod_format.h>

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

Public Member Functions

 DialogConvertDeckToCodFormat (QWidget *parent)
void retranslateUi ()
bool dontAskAgain () const

Static Public Member Functions

static bool promptIfRequired (QWidget *parent, const QString &filePath, const std::function< bool()> &convert)
 Checks whether the deck file at filePath can store tags.

Private Attributes

QVBoxLayout * layout
QLabel * label
QCheckBox * dontAskAgainCheckbox
QDialogButtonBox * buttonBox

Constructor & Destructor Documentation

◆ DialogConvertDeckToCodFormat()

DialogConvertDeckToCodFormat::DialogConvertDeckToCodFormat ( QWidget * parent)
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ dontAskAgain()

bool DialogConvertDeckToCodFormat::dontAskAgain ( ) const
nodiscard
Here is the caller graph for this function:

◆ promptIfRequired()

bool DialogConvertDeckToCodFormat::promptIfRequired ( QWidget * parent,
const QString & filePath,
const std::function< bool()> & convert )
static

Checks whether the deck file at filePath can store tags.

If the file is not a .cod deck, prompts the user for conversion to the Cockatrice format, honoring the saved "always convert / don't ask again" preference. On acceptance convert is called to perform the conversion.

Parameters
parentThe widget to parent the prompt to.
filePathThe path of the deck file to check.
convertCalled to convert the deck once the user agrees.
Returns
true if tags can be stored (no conversion needed, or the conversion was performed), false if the user declined to convert.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void DialogConvertDeckToCodFormat::retranslateUi ( )
Here is the caller graph for this function:

Member Data Documentation

◆ buttonBox

QDialogButtonBox* DialogConvertDeckToCodFormat::buttonBox
private

◆ dontAskAgainCheckbox

QCheckBox* DialogConvertDeckToCodFormat::dontAskAgainCheckbox
private

◆ label

QLabel* DialogConvertDeckToCodFormat::label
private

◆ layout

QVBoxLayout* DialogConvertDeckToCodFormat::layout
private

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