You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bibletime/bibletime/frontend/cmanageindiceswidget.h

79 lines
1.6 KiB

/*********
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
* Copyright 1999-2006 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
#ifndef CMANAGEINDICESWIDGET_H
#define CMANAGEINDICESWIDGET_H
#include "frontend/manageindicesform.h" // uic generated
#include <tqwidget.h>
class TQCheckListItem;
namespace BookshelfManager {
/**
* 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.
*/
class CManageIndicesWidget : public ManageIndicesForm
{
Q_OBJECT
public:
/**
* Constructor
*/
CManageIndicesWidget(TQWidget* parent, const char* name = 0);
/**
* Destructor
*/
~CManageIndicesWidget();
protected:
/**
* Initializes the look and feel of this page
*/
void initView();
/**
* Populates the module list with installed modules and orphaned indices
*/
void populateModuleList();
// member variables
TQCheckListItem* m_modsWithIndices;
TQCheckListItem* m_modsWithoutIndices;
public slots:
/**
* Creates indices for selected modules if no index currently exists
*/
void createIndices();
/**
* Deletes indices for selected modules
*/
void deleteIndices();
public:
/**
* Deletes orphaned indices if the autoDeleteOrphanedIndices is true
* Always deletes indices of existing modules where hasIndex() returns false
*/
static void deleteOrphanedIndices();
};
}
#endif