12
10
#ifndef CMODULERESULTSVIEW_H
13
11
#define CMODULERESULTSVIEW_H
16
#include "btsearchresultarea.h"
13
#include <QTreeWidget>
20
#include <QTreeWidget>
23
//forward declarations
16
#include "frontend/searchdialog/btsearchresultarea.h"
24
19
class CSwordModuleInfo;
21
class QContextMenuEvent;
30
class QContextMenuEvent;
32
25
class StrongsResultClass;
38
29
class CModuleResultView : public QTreeWidget {
41
CModuleResultView(QWidget* parent);
45
* Setups the tree using the given list of modules.
47
void setupTree( QList<CSwordModuleInfo*> modules, const QString& searchedText );
49
* Returns the currently active module.
51
CSwordModuleInfo* activeModule();
53
virtual QSize sizeHint() {return m_size;}
57
* Initializes this widget.
61
* Initializes the connections of this widget
63
void initConnections();
66
void setupStrongsResults(CSwordModuleInfo* module, QTreeWidgetItem* parent, const QString& searchedText);
70
* Is executed when an item was selected in the list.
72
void executed(QTreeWidgetItem*, QTreeWidgetItem*);
74
* Copies the whole search result with the text into the clipboard.
76
void copyResultWithText();
78
* Copies the whole search result into the clipboard.
82
* This event handler (reimplemented from QWidget) opens the popup menu at the given position.
84
void contextMenuEvent( QContextMenuEvent * event );
86
* Appends the whole search result to the printer queue.
90
* Saves the search result with it's text.
92
void saveResultWithText();
94
* Saves the search result keys.
99
void moduleSelected(CSwordModuleInfo*);
100
void moduleChanged();
101
void strongsSelected(CSwordModuleInfo*, QStringList*);
108
QAction* resultWithText;
121
QAction* resultWithText;
129
StrongsResultClass* strongsResults;
32
CModuleResultView(QWidget* parent);
36
* Setups the tree using the given list of modules.
38
void setupTree( QList<CSwordModuleInfo*> modules, const QString& searchedText );
40
* Returns the currently active module.
42
CSwordModuleInfo* activeModule();
44
virtual QSize sizeHint() {
50
* Initializes this widget.
54
* Initializes the connections of this widget
56
void initConnections();
59
void setupStrongsResults(CSwordModuleInfo* module, QTreeWidgetItem* parent, const QString& searchedText);
63
* Is executed when an item was selected in the list.
65
void executed(QTreeWidgetItem*, QTreeWidgetItem*);
67
* Copies the whole search result with the text into the clipboard.
69
void copyResultWithText();
71
* Copies the whole search result into the clipboard.
75
* This event handler (reimplemented from QWidget) opens the popup menu at the given position.
77
void contextMenuEvent( QContextMenuEvent * event );
79
* Appends the whole search result to the printer queue.
83
* Saves the search result with it's text.
85
void saveResultWithText();
87
* Saves the search result keys.
92
void moduleSelected(CSwordModuleInfo*);
94
void strongsSelected(CSwordModuleInfo*, QStringList*);
101
QAction* resultWithText;
114
QAction* resultWithText;
122
QHash<CSwordModuleInfo*, StrongsResultClass*> strongsResults;