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-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
15#include <QDialog>
16
17#include <QObject>
18#include <QString>
19#include <Qt>
20
21
22class QCheckBox;
23class QPushButton;
24class QTreeWidget;
25class QTreeWidgetItem;
26class 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*/
33class BtIndexDialog final: public QDialog {
34
35 Q_OBJECT
36
37public: // methods:
38
39 BtIndexDialog(QWidget * parent = nullptr,
40 Qt::WindowFlags f = Qt::WindowFlags());
41
42private: // methods:
43
44 void populateModuleList();
45 void retranslateUi();
46
47private Q_SLOTS:
48
49 void autoDeleteOrphanedIndicesChanged(int newState);
51 void createIndices();
52 void deleteIndices();
53
54private: // 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
QPushButton * m_closeButton
QPushButton * m_createButton
QTreeWidget * m_moduleList
void slotSwordSetupChanged()
void autoDeleteOrphanedIndicesChanged(int newState)
void populateModuleList()
QPushButton * m_deleteButton
QTreeWidgetItem * m_modsWithoutIndices
QTreeWidgetItem * m_modsWithIndices