#include <dlg_convert_deck_to_cod_format.h>
|
| static bool | promptIfRequired (QWidget *parent, const QString &filePath, const std::function< bool()> &convert) |
| | Checks whether the deck file at filePath can store tags.
|
◆ DialogConvertDeckToCodFormat()
| DialogConvertDeckToCodFormat::DialogConvertDeckToCodFormat |
( |
QWidget * | parent | ) |
|
|
explicit |
◆ dontAskAgain()
| bool DialogConvertDeckToCodFormat::dontAskAgain |
( |
| ) |
const |
|
nodiscard |
◆ 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
-
| 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. |
- Returns
- true if tags can be stored (no conversion needed, or the conversion was performed), false if the user declined to convert.
◆ retranslateUi()
| void DialogConvertDeckToCodFormat::retranslateUi |
( |
| ) |
|
◆ 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: