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
18
class
QWidget;
19
20
class
DialogConvertDeckToCodFormat
:
public
QDialog
21
{
22
Q_OBJECT
23
24
public
:
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
45
private
:
46
QVBoxLayout *
layout
;
47
QLabel *
label
;
48
QCheckBox *
dontAskAgainCheckbox
;
49
QDialogButtonBox *
buttonBox
;
50
51
Q_DISABLE_COPY(
DialogConvertDeckToCodFormat
)
52
};
53
54
#endif
// DIALOG_CONVERT_DECK_TO_COD_FORMAT_H
DialogConvertDeckToCodFormat::promptIfRequired
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
DialogConvertDeckToCodFormat::retranslateUi
void retranslateUi()
Definition
dlg_convert_deck_to_cod_format.cpp:36
DialogConvertDeckToCodFormat::label
QLabel * label
Definition
dlg_convert_deck_to_cod_format.h:47
DialogConvertDeckToCodFormat::DialogConvertDeckToCodFormat
DialogConvertDeckToCodFormat(QWidget *parent)
Definition
dlg_convert_deck_to_cod_format.cpp:16
DialogConvertDeckToCodFormat::dontAskAgainCheckbox
QCheckBox * dontAskAgainCheckbox
Definition
dlg_convert_deck_to_cod_format.h:48
DialogConvertDeckToCodFormat::dontAskAgain
bool dontAskAgain() const
Definition
dlg_convert_deck_to_cod_format.cpp:45
DialogConvertDeckToCodFormat::layout
QVBoxLayout * layout
Definition
dlg_convert_deck_to_cod_format.h:46
DialogConvertDeckToCodFormat::buttonBox
QDialogButtonBox * buttonBox
Definition
dlg_convert_deck_to_cod_format.h:49
cockatrice
src
interface
widgets
dialogs
dlg_convert_deck_to_cod_format.h
Generated by
1.16.1