Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
dlg_convert_deck_to_cod_format.h
Go to the documentation of this file.
1
7
8#ifndef DIALOG_CONVERT_DECK_TO_COD_FORMAT_H
9#define DIALOG_CONVERT_DECK_TO_COD_FORMAT_H
10
11#include <QCheckBox>
12#include <QDialog>
13#include <QDialogButtonBox>
14#include <QLabel>
15#include <QVBoxLayout>
16#include <functional>
17
18class QWidget;
19
20class DialogConvertDeckToCodFormat : public QDialog
21{
22 Q_OBJECT
23
24public:
25 explicit DialogConvertDeckToCodFormat(QWidget *parent);
26 void retranslateUi();
27
28 [[nodiscard]] bool dontAskAgain() const;
29
43 static bool promptIfRequired(QWidget *parent, const QString &filePath, const std::function<bool()> &convert);
44
45private:
46 QVBoxLayout *layout;
47 QLabel *label;
49 QDialogButtonBox *buttonBox;
50
51 Q_DISABLE_COPY(DialogConvertDeckToCodFormat)
52};
53
54#endif // DIALOG_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.
Definition dlg_convert_deck_to_cod_format.cpp:70
void retranslateUi()
Definition dlg_convert_deck_to_cod_format.cpp:36
QLabel * label
Definition dlg_convert_deck_to_cod_format.h:47
DialogConvertDeckToCodFormat(QWidget *parent)
Definition dlg_convert_deck_to_cod_format.cpp:16
QCheckBox * dontAskAgainCheckbox
Definition dlg_convert_deck_to_cod_format.h:48
bool dontAskAgain() const
Definition dlg_convert_deck_to_cod_format.cpp:45
QVBoxLayout * layout
Definition dlg_convert_deck_to_cod_format.h:46
QDialogButtonBox * buttonBox
Definition dlg_convert_deck_to_cod_format.h:49