15 #include <QApplication>
18 #include <QRadioButton>
19 #include <QSizePolicy>
20 #include <QSpacerItem>
21 #include <QStringLiteral>
22 #include <QVBoxLayout>
23 #include "../../backend/managers/cswordbackend.h"
37 new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding));
41 QVBoxLayout *
const vLayout =
new QVBoxLayout(
m_groupBox);
44 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
45 sizePolicy.setHorizontalStretch(0);
46 sizePolicy.setVerticalStretch(0);
47 sizePolicy.setHeightForWidth(
54 sizePolicy.setHeightForWidth(
65 new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding));
75 setTitle(QApplication::translate(
"BookshelfWizard",
76 "Bookshelf Manager"));
77 setSubTitle(QApplication::translate(
"BookshelfWizard",
78 "Install, update, or remove works on your bookshelf."));
80 QApplication::translate(
82 "<html><head/><body><p><span style=\" font-weight:600;\">"
83 "WARNING</span>: Installing or updating works uses the "
84 "internet. If you live in a persecuted country you may not "
85 "want to do this.</p></body></html>"));
86 m_groupBox->setTitle(QApplication::translate(
"BookshelfWizard",
89 QApplication::translate(
91 "Install additional works (uses internet)"));
93 QApplication::translate(
"BookshelfWizard",
94 "Update installed works (uses internet)"));
96 QApplication::translate(
"BookshelfWizard",
97 "Remove installed works"));
QVBoxLayout * m_verticalLayout
bool timeToUpdate() const
QRadioButton * m_removeRadioButton
QRadioButton * m_installRadioButton
BtBookshelfTaskPage(QWidget *parent=nullptr)
QRadioButton * m_updateRadioButton
WizardTaskType taskType() const
int nextId() const final override
static bool autoUpdateSources()
static CSwordBackend & instance() noexcept