summaryrefslogtreecommitdiff
path: root/src/frontend/searchdialog/csearchresultview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/searchdialog/csearchresultview.h')
-rw-r--r--src/frontend/searchdialog/csearchresultview.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/frontend/searchdialog/csearchresultview.h b/src/frontend/searchdialog/csearchresultview.h
index 52e6929..b3a09ee 100644
--- a/src/frontend/searchdialog/csearchresultview.h
+++ b/src/frontend/searchdialog/csearchresultview.h
@@ -2,7 +2,7 @@
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
-* Copyright 1999-2008 by the BibleTime developers.
+* Copyright 1999-2011 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/
@@ -10,11 +10,13 @@
#ifndef CSEARCHRESULTSVIEW_H
#define CSEARCHRESULTSVIEW_H
-class CSwordModuleInfo;
-
#include <QTreeWidget>
+// Sword includes
+#include <listkey.h>
+
+class CSwordModuleInfo;
class CReadDisplay;
class QAction;
class QMenu;
@@ -26,8 +28,13 @@ class CSearchResultView : public QTreeWidget {
public:
CSearchResultView(QWidget* parent);
virtual ~CSearchResultView();
- /** Returns the module which is currently used. */
- CSwordModuleInfo* module();
+
+ /**
+ \returns the module which is currently used.
+ */
+ inline const CSwordModuleInfo *module() const {
+ return m_module;
+ }
protected: // Protected methods
/**
@@ -42,11 +49,13 @@ class CSearchResultView : public QTreeWidget {
public slots: // Public slots
void saveItems();
+
/**
- * Setups the list with the given module.
+ Setups the list with the given module.
*/
- void setupTree(CSwordModuleInfo*);
- void setupStrongsTree(CSwordModuleInfo*, QStringList*);
+ void setupTree(const CSwordModuleInfo *m, const sword::ListKey &results);
+
+ void setupStrongsTree(CSwordModuleInfo*, const QStringList&);
void copyItemsWithText();
void copyItems();
void saveItemsWithText();
@@ -88,7 +97,7 @@ class CSearchResultView : public QTreeWidget {
m_actions;
QMenu* m_popup;
- CSwordModuleInfo* m_module;
+ const CSwordModuleInfo *m_module;
signals: // Signals
void keySelected(const QString&);