3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
5
* Copyright 1999-2006 by the BibleTime developers.
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
12
#ifndef CSEARCHRESULTSVIEW_H
13
#define CSEARCHRESULTSVIEW_H
16
#include "backend/cswordmoduleinfo.h"
19
#include <klistview.h>
21
//forward declarations
39
class CSearchResultView : public KListView {
42
CSearchResultView(QWidget* parent, const char* name = 0);
43
virtual ~CSearchResultView();
44
/** Returns the module which is currently used. */
45
CSwordModuleInfo* const module();
47
protected: // Protected methods
49
* Initializes the view of this widget.
52
void initConnections();
53
virtual QDragObject* dragObject();
55
public slots: // Public slots
58
* Setups the list with the given module.
60
void setupTree(CSwordModuleInfo*);
61
void setupStrongsTree(CSwordModuleInfo*, QStringList*);
62
void copyItemsWithText();
64
void saveItemsWithText();
66
* Reimplementation to show the popup menu.
68
virtual void showPopup(KListView*, QListViewItem* i, const QPoint& point);
70
protected slots: // Protected slots
73
* Is connected to the signal executed, which is emitted when a mew item was chosen.
75
void executed(QListViewItem*);
79
KActionMenu* saveMenu;
82
KAction* resultWithText;
86
KActionMenu* printMenu;
92
KActionMenu* copyMenu;
95
KAction* resultWithText;
102
CSwordModuleInfo* m_module;
105
void keySelected(const QString&);
108
} //end of namespace Result
109
} //end of namespace Search