Cockatrice 2026-10-19-Development-3.1.2-beta.2
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 <QDialog>
12#include <QString>
13#include <QtGlobal>
14#include <functional>
15#include <qtmetamacros.h>
16
17class QWidget;
18class QCheckBox;
19class QDialogButtonBox;
20class QLabel;
21class QVBoxLayout;
22
23class DialogConvertDeckToCodFormat : public QDialog
24{
25 Q_OBJECT
26
27public:
28 explicit DialogConvertDeckToCodFormat(QWidget *parent);
29 void retranslateUi();
30
31 [[nodiscard]] bool dontAskAgain() const;
32
46 static bool promptIfRequired(QWidget *parent, const QString &filePath, const std::function<bool()> &convert);
47
48private:
49 QVBoxLayout *layout;
50 QLabel *label;
52 QDialogButtonBox *buttonBox;
53
54 Q_DISABLE_COPY(DialogConvertDeckToCodFormat)
55};
56
57#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:71
void retranslateUi()
Definition dlg_convert_deck_to_cod_format.cpp:37
QLabel * label
Definition dlg_convert_deck_to_cod_format.h:50
DialogConvertDeckToCodFormat(QWidget *parent)
Definition dlg_convert_deck_to_cod_format.cpp:17
QCheckBox * dontAskAgainCheckbox
Definition dlg_convert_deck_to_cod_format.h:51
bool dontAskAgain() const
Definition dlg_convert_deck_to_cod_format.cpp:46
QVBoxLayout * layout
Definition dlg_convert_deck_to_cod_format.h:49
QDialogButtonBox * buttonBox
Definition dlg_convert_deck_to_cod_format.h:52