BibleTime
|
#include <btindexdialog.h>
Public Member Functions | |
BtIndexDialog (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) | |
Private Slots | |
void | autoDeleteOrphanedIndicesChanged (int newState) |
void | createIndices () |
void | deleteIndices () |
void | slotSwordSetupChanged () |
Private Member Functions | |
void | populateModuleList () |
void | retranslateUi () |
Private Attributes | |
QCheckBox * | m_autoDeleteOrphanedIndicesBox |
QPushButton * | m_closeButton |
QPushButton * | m_createButton |
QPushButton * | m_deleteButton |
QTreeWidgetItem * | m_modsWithIndices |
QTreeWidgetItem * | m_modsWithoutIndices |
QTreeWidget * | m_moduleList |
This class encapsulates the "Manage search indices" page of the Bookshelf Manager. It allows for creation and deletion of search indicies for each installed module. It also allows for deletion of orphaned indices.
Definition at line 33 of file btindexdialog.h.
BtIndexDialog::BtIndexDialog | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | f = Qt::WindowFlags() |
||
) |
Definition at line 35 of file btindexdialog.cpp.
References autoDeleteOrphanedIndicesChanged(), BT_CONNECT, btConfig(), createIndices(), deleteIndices(), CSwordBackend::instance(), m_autoDeleteOrphanedIndicesBox, m_closeButton, m_createButton, m_deleteButton, m_moduleList, util::tool::mWidth(), retranslateUi(), CSwordBackend::sigSwordSetupChanged(), and slotSwordSetupChanged().
|
privateslot |
Definition at line 152 of file btindexdialog.cpp.
References btConfig(), and BtConfigCore::setValue().
Referenced by BtIndexDialog().
|
privateslot |
Creates indices for selected modules if no index currently exists
Definition at line 159 of file btindexdialog.cpp.
References BtInstallBackend::backend(), BtModuleIndexDialog::indexAllModules(), CSwordBackend::instance(), m_modsWithoutIndices, and populateModuleList().
Referenced by BtIndexDialog().
|
privateslot |
Deletes indices for selected modules
Definition at line 178 of file btindexdialog.cpp.
References BtInstallBackend::backend(), CSwordBackend::instance(), m_modsWithIndices, and populateModuleList().
Referenced by BtIndexDialog().
|
private |
Populates the module list with installed modules and orphaned indices
Definition at line 94 of file btindexdialog.cpp.
References CSwordBackend::instance(), m_modsWithIndices, m_modsWithoutIndices, and m_moduleList.
Referenced by createIndices(), deleteIndices(), retranslateUi(), and slotSwordSetupChanged().
|
private |
Definition at line 129 of file btindexdialog.cpp.
References m_autoDeleteOrphanedIndicesBox, m_closeButton, m_createButton, m_deleteButton, m_moduleList, and populateModuleList().
Referenced by BtIndexDialog().
|
privateslot |
Definition at line 198 of file btindexdialog.cpp.
References populateModuleList().
Referenced by BtIndexDialog().
|
private |
Definition at line 56 of file btindexdialog.h.
Referenced by BtIndexDialog(), and retranslateUi().
|
private |
Definition at line 60 of file btindexdialog.h.
Referenced by BtIndexDialog(), and retranslateUi().
|
private |
Definition at line 59 of file btindexdialog.h.
Referenced by BtIndexDialog(), and retranslateUi().
|
private |
Definition at line 58 of file btindexdialog.h.
Referenced by BtIndexDialog(), and retranslateUi().
|
private |
Definition at line 62 of file btindexdialog.h.
Referenced by deleteIndices(), and populateModuleList().
|
private |
Definition at line 63 of file btindexdialog.h.
Referenced by createIndices(), and populateModuleList().
|
private |
Definition at line 57 of file btindexdialog.h.
Referenced by BtIndexDialog(), populateModuleList(), and retranslateUi().