BibleTime
csearchresultview.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 <QTreeWidget>
16
17#include "../../backend/cswordmodulesearch.h"
18
19
21class CReadDisplay;
22class QAction;
23class QMenu;
24
25namespace Search {
26
28 Q_OBJECT
29 public:
31
32 /**
33 \returns the module which is currently used.
34 */
35 CSwordModuleInfo const * module() const { return m_module; }
36
37 protected: // methods:
38 /**
39 * Initializes the view of this widget.
40 */
41 void initView();
42 void initConnections();
43
44 //from QTreeWidget
45 QMimeData * mimeData(QList<QTreeWidgetItem *> const & items)
46 const override;
47 QStringList mimeTypes () const override;
48
49 public Q_SLOTS:
50
51 /**
52 Setups the list with the given module.
53 */
54 void setupTree(CSwordModuleInfo const * m,
56
57 void setupStrongsTree(CSwordModuleInfo*, const QStringList&);
58
59 void contextMenuEvent(QContextMenuEvent* event) override;
60
61 private:
62 struct {
64 struct {
67 }
69
71 struct {
73 }
75
77 struct {
80 }
82 }
84
87
88 Q_SIGNALS:
89 void keySelected(const QString&);
91};
92
93} //end of namespace Search
void contextMenuEvent(QContextMenuEvent *event) override
void setupStrongsTree(CSwordModuleInfo *, const QStringList &)
struct Search::CSearchResultView::@21::@23 print
struct Search::CSearchResultView::@21 m_actions
void keySelected(const QString &)
CSwordModuleInfo const * module() const
struct Search::CSearchResultView::@21::@24 copy
QStringList mimeTypes() const override
void setupTree(CSwordModuleInfo const *m, CSwordModuleSearch::ModuleResultList const &results)
const CSwordModuleInfo * m_module
QMimeData * mimeData(QList< QTreeWidgetItem * > const &items) const override
struct Search::CSearchResultView::@21::@22 save
std::vector< std::shared_ptr< sword::SWKey const > > ModuleResultList