BibleTime
csearchdialog.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 <QString>
18#include "btsearchoptionsarea.h"
19
20namespace Search {
21class BtSearchResultArea;
22}
23class QPushButton;
24class QWidget;
25
26namespace Search {
27
28/**
29 \note destroys itself on close
30*/
31class CSearchDialog final: public QDialog {
32 Q_OBJECT
33 public:
34
35 CSearchDialog(QWidget *parent);
36 ~CSearchDialog() override;
37
38 /**
39 * Resets the parts to the default.
40 */
41 void reset(BtConstModuleList modules, QString const & searchText);
42
43 private Q_SLOTS:
44 /**
45 Starts the search with the set modules and the set search text.
46 */
47 void startSearch();
48
49 private:
50 QPushButton* m_analyseButton;
51 QPushButton* m_manageIndexes;
52 QPushButton* m_closeButton;
55};
56
57
58} //end of namespace Search
QList< CSwordModuleInfo const * > BtConstModuleList
BtSearchOptionsArea * m_searchOptionsArea
QPushButton * m_closeButton
BtSearchResultArea * m_searchResultArea
QPushButton * m_analyseButton
QPushButton * m_manageIndexes
void reset(BtConstModuleList modules, QString const &searchText)