BibleTime
btbookshelfremovefinalpage.cpp
Go to the documentation of this file.
1 /*********
2 *
3 * In the name of the Father, and of the Son, and of the Holy Spirit.
4 *
5 * This file is part of BibleTime's source code, https://bibletime.info/
6 *
7 * Copyright 1999-2021 by the BibleTime developers.
8 * The BibleTime source code is licensed under the GNU General Public License
9 * version 2.0.
10 *
11 **********/
12 
14 
15 #include <QLabel>
16 #include <QSizePolicy>
17 #include <QSpacerItem>
18 #include <QStringLiteral>
19 #include <Qt>
20 #include <QVBoxLayout>
21 #include "../../backend/drivers/btmoduleset.h"
22 #include "../../backend/managers/cswordbackend.h"
23 #include "btbookshelfwizard.h"
24 
25 
26 namespace {
27 const QString groupingOrderKey ("GUI/BookshelfWizard/InstallPage/grouping");
28 const QString installPathKey ("GUI/BookshelfWizard/InstallPage/installPathIndex");
29 } // anonymous namespace
30 
32  : BtBookshelfWizardPage(parent)
33 {
34  m_verticalLayout = new QVBoxLayout(this);
35 
36  m_verticalLayout->addItem(new QSpacerItem(20,
37  40,
38  QSizePolicy::Minimum,
39  QSizePolicy::Expanding));
40 
41  m_msgLabel = new QLabel(this);
42  m_msgLabel->setAlignment(Qt::AlignCenter);
43  m_msgLabel->setWordWrap(true);
44  m_verticalLayout->addWidget(m_msgLabel);
45 
46  m_verticalLayout->addItem(new QSpacerItem(20,
47  40,
48  QSizePolicy::Minimum,
49  QSizePolicy::Expanding));
50 }
51 
53 { m_msgLabel->setText(tr("The selected works have been removed.")); }
54 
56  retranslateUi();
57 
58  // Remove works:
60 }
61 
62 bool BtBookshelfRemoveFinalPage::isComplete() const { return true; }
63 
64 int BtBookshelfRemoveFinalPage::nextId() const { return -1; }
int nextId() const final override
BtBookshelfRemoveFinalPage(QWidget *parent=nullptr)
bool isComplete() const final override
BtBookshelfWizard & btWizard() const noexcept
static CSwordBackend & instance() noexcept
Definition: cswordbackend.h:98
void uninstallModules(BtConstModuleSet const &modules)
Uninstalls the given modules.
const QString installPathKey("GUI/BookshelfWizard/InstallPage/installPathIndex")
const QString groupingOrderKey("GUI/BookshelfWizard/InstallPage/grouping")