BibleTime
btbookshelflanguagespage.h
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 
13 #pragma once
14 
15 #include "btbookshelfwizardpage.h"
16 
17 #include <QObject>
18 #include <QString>
19 #include <QStringList>
20 
21 
22 class QListView;
23 class QStandardItemModel;
24 class QVBoxLayout;
25 class QWidget;
26 
28 
29  Q_OBJECT
30 
31 public: // methods:
32 
33  BtBookshelfLanguagesPage(QWidget * parent = nullptr);
34 
35  void initializeLanguages();
36  void initializePage() final override;
37  bool isComplete() const final override;
38  int nextId() const final override;
39  QStringList selectedLanguages() const;
40  bool skipPage() const noexcept;
41 
42 private Q_SLOTS:
43 
44  void slotDataChanged();
45 
46 private: // methods:
47 
48  void retranslateUi();
49 
50 private: // fields:
51 
52  bool m_firstTimeInit = true;
53  QListView * m_languagesListView;
54  QVBoxLayout * m_verticalLayout;
55  QStandardItemModel * m_model;
56 
57 }; /* class BtBookshelfLanguagesPage */
void initializePage() final override
int nextId() const final override
bool isComplete() const final override
BtBookshelfLanguagesPage(QWidget *parent=nullptr)