![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <dlg_convert_deck_to_cod_format.h>
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 |
|
explicit |
|
nodiscard |
|
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.
| parent | The widget to parent the prompt to. |
| filePath | The path of the deck file to check. |
| convert | Called to convert the deck once the user agrees. |
| void DialogConvertDeckToCodFormat::retranslateUi | ( | ) |
|
private |
|
private |
|
private |
|
private |