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-2021 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 
20 namespace Search {
21 class BtSearchResultArea;
22 }
23 class QPushButton;
24 class QWidget;
25 
26 namespace Search {
27 
28 /**
29  \note destroys itself on close
30 */
31 class 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
Definition: btmodulelist.h:21
BtSearchOptionsArea * m_searchOptionsArea
Definition: csearchdialog.h:54
QPushButton * m_closeButton
Definition: csearchdialog.h:52
CSearchDialog(QWidget *parent)
BtSearchResultArea * m_searchResultArea
Definition: csearchdialog.h:53
QPushButton * m_analyseButton
Definition: csearchdialog.h:50
QPushButton * m_manageIndexes
Definition: csearchdialog.h:51
void reset(BtConstModuleList modules, QString const &searchText)