BibleTime
btbookshelfsourcespage.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-2025 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
16
17#include <QObject>
18#include <QString>
19#include <QStringList>
20
21
22class QStandardItemModel;
23class QTableView;
24class QVBoxLayout;
25class QWidget;
26
28
29 Q_OBJECT
30
31public: // methods:
32
33 BtBookshelfSourcesPage(QWidget * parent = nullptr);
34
35 bool isComplete() const final override;
36 void initializePage() final override;
37 int nextId() const final override;
38 QStringList selectedSources() const;
39
40private Q_SLOTS:
41
42 void slotButtonClicked(int row);
43
44private: // methods:
45
46 void retranslateUi();
47 void selectSourcesInModel(QStringList const & sources);
48 void updateSourcesModel();
49
50private: // fields:
51
52 bool m_firstTimeInit = true;
53 QTableView * m_sourcesTableView;
54 QVBoxLayout * m_verticalLayout;
55 QStandardItemModel * m_model;
56
57}; /* class BtBookshelfSourcesPage */
void selectSourcesInModel(QStringList const &sources)
QStandardItemModel * m_model
void initializePage() final override
bool isComplete() const final override
QStringList selectedSources() const
int nextId() const final override