3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
5
* Copyright 1999-2006 by the BibleTime developers.
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
12
#ifndef CMANAGEINDICESWIDGET_H
13
#define CMANAGEINDICESWIDGET_H
15
#include "frontend/manageindicesform.h" // uic generated
21
namespace BookshelfManager {
24
* This class encapsulates the "Manage search indices" page of the Bookshelf
25
* Manager. It allows for creation and deletion of search indicies for each
26
* installed module. It also allows for deletion of orphaned indices.
28
class CManageIndicesWidget : public ManageIndicesForm
36
CManageIndicesWidget(QWidget* parent, const char* name = 0);
41
~CManageIndicesWidget();
45
* Initializes the look and feel of this page
49
* Populates the module list with installed modules and orphaned indices
51
void populateModuleList();
54
QCheckListItem* m_modsWithIndices;
55
QCheckListItem* m_modsWithoutIndices;
59
* Creates indices for selected modules if no index currently exists
63
* Deletes indices for selected modules
69
* Deletes orphaned indices if the autoDeleteOrphanedIndices is true
70
* Always deletes indices of existing modules where hasIndex() returns false
72
static void deleteOrphanedIndices();