BibleTime
btindexdialog.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 <QDialog>
16 
17 #include <QObject>
18 #include <QString>
19 #include <Qt>
20 
21 
22 class QCheckBox;
23 class QPushButton;
24 class QTreeWidget;
25 class QTreeWidgetItem;
26 class QWidget;
27 
28 /**
29 * This class encapsulates the "Manage search indices" page of the Bookshelf
30 * Manager. It allows for creation and deletion of search indicies for each
31 * installed module. It also allows for deletion of orphaned indices.
32 */
33 class BtIndexDialog final: public QDialog {
34 
35  Q_OBJECT
36 
37 public: // methods:
38 
39  BtIndexDialog(QWidget * parent = nullptr,
40  Qt::WindowFlags f = Qt::WindowFlags());
41 
42 private: // methods:
43 
44  void populateModuleList();
45  void retranslateUi();
46 
47 private Q_SLOTS:
48 
49  void autoDeleteOrphanedIndicesChanged(int newState);
50  void slotSwordSetupChanged();
51  void createIndices();
52  void deleteIndices();
53 
54 private: // fields:
55 
58  QPushButton * m_deleteButton;
59  QPushButton * m_createButton;
60  QPushButton * m_closeButton;
61 
62  QTreeWidgetItem * m_modsWithIndices;
63  QTreeWidgetItem * m_modsWithoutIndices;
64 
65 };
QCheckBox * m_autoDeleteOrphanedIndicesBox
Definition: btindexdialog.h:56
QPushButton * m_closeButton
Definition: btindexdialog.h:60
QPushButton * m_createButton
Definition: btindexdialog.h:59
QTreeWidget * m_moduleList
Definition: btindexdialog.h:57
void slotSwordSetupChanged()
void autoDeleteOrphanedIndicesChanged(int newState)
void populateModuleList()
QPushButton * m_deleteButton
Definition: btindexdialog.h:58
QTreeWidgetItem * m_modsWithoutIndices
Definition: btindexdialog.h:63
QTreeWidgetItem * m_modsWithIndices
Definition: btindexdialog.h:62
BtIndexDialog(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())