BibleTime
|
#include <cmoduleresultview.h>
Signals | |
void | moduleChanged () |
void | moduleSelected (CSwordModuleInfo const *, CSwordModuleSearch::ModuleResultList const &) |
void | strongsSelected (CSwordModuleInfo *, const QStringList &) |
Public Member Functions | |
CSwordModuleInfo * | activeModule () |
CModuleResultView (QWidget *parent) | |
void | setupTree (const CSwordModuleSearch::Results &results, const QString &searchedText) |
QSize | sizeHint () const override |
~CModuleResultView () override | |
Protected Slots | |
void | contextMenuEvent (QContextMenuEvent *event) override |
void | executed (QTreeWidgetItem *, QTreeWidgetItem *) |
Protected Member Functions | |
void | initConnections () |
void | initView () |
Private Attributes | |
struct { | |
struct { | |
QAction * result | |
QAction * resultWithText | |
} copy | |
QMenu * copyMenu | |
struct { | |
QAction * result | |
QMenu * printMenu | |
struct { | |
QAction * result | |
QAction * resultWithText | |
} save | |
QMenu * saveMenu | |
} | m_actions |
QMenu * | m_popup |
QHash< CSwordModuleInfo const *, CSwordModuleSearch::ModuleResultList > | m_results |
QSize | m_size |
QHash< CSwordModuleInfo const *, QList< StrongsResult > > | m_strongsResults |
Definition at line 36 of file cmoduleresultview.h.
Search::CModuleResultView::CModuleResultView | ( | QWidget * | parent | ) |
Definition at line 135 of file cmoduleresultview.cpp.
References initConnections(), and initView().
|
overridedefault |
CSwordModuleInfo * Search::CModuleResultView::activeModule | ( | ) |
Returns the currently active module.
Definition at line 324 of file cmoduleresultview.cpp.
References BT_ASSERT, CSwordBackend::findModuleByName(), and CSwordBackend::instance().
Referenced by executed(), and Search::BtSearchResultArea::updatePreview().
|
overrideprotectedslot |
This event handler (reimplemented from QWidget) opens the popup menu at the given position.
Reimplementation from QWidget.
Definition at line 337 of file cmoduleresultview.cpp.
References m_popup.
|
protectedslot |
Is executed when an item was selected in the list.
Is executed when an item was selected in the list.
Definition at line 298 of file cmoduleresultview.cpp.
References activeModule(), CSwordBackend::instance(), m_results, m_strongsResults, moduleChanged(), moduleSelected(), and strongsSelected().
Referenced by initConnections().
|
protected |
Initializes the connections of this widget
Initializes the connections of this widget,
Definition at line 230 of file cmoduleresultview.cpp.
References BT_CONNECT, and executed().
Referenced by CModuleResultView().
|
protected |
Initializes this widget.
Definition at line 144 of file cmoduleresultview.cpp.
References BT_CONNECT, m_actions, m_popup, m_size, and util::tool::mWidth().
Referenced by CModuleResultView().
|
signal |
Referenced by Search::BtSearchResultArea::BtSearchResultArea(), and executed().
|
signal |
Referenced by Search::BtSearchResultArea::BtSearchResultArea(), and executed().
void Search::CModuleResultView::setupTree | ( | const CSwordModuleSearch::Results & | results, |
const QString & | searchedText | ||
) |
Setups the tree using the given list of modules.
Definition at line 236 of file cmoduleresultview.cpp.
References BT_ASSERT, util::tool::getIconForModule(), m_results, m_strongsResults, Search::anonymous_namespace{cmoduleresultview.cpp}::populateStrongsResultList(), and result.
Referenced by Search::BtSearchResultArea::setSearchResult().
|
inlineoverride |
Definition at line 53 of file cmoduleresultview.h.
References m_size.
Referenced by Search::BtSearchResultArea::loadDialogSettings().
|
signal |
Referenced by Search::BtSearchResultArea::BtSearchResultArea(), and executed().
struct { ... } Search::CModuleResultView::copy |
QMenu* Search::CModuleResultView::copyMenu |
Definition at line 98 of file cmoduleresultview.h.
struct { ... } Search::CModuleResultView::m_actions |
Referenced by initView().
|
private |
Definition at line 107 of file cmoduleresultview.h.
Referenced by contextMenuEvent(), and initView().
|
private |
Definition at line 110 of file cmoduleresultview.h.
Referenced by executed(), and setupTree().
|
private |
Definition at line 112 of file cmoduleresultview.h.
Referenced by initView(), and sizeHint().
|
private |
Definition at line 111 of file cmoduleresultview.h.
Referenced by executed(), and setupTree().
struct { ... } Search::CModuleResultView::print |
QMenu* Search::CModuleResultView::printMenu |
Definition at line 92 of file cmoduleresultview.h.
QAction* Search::CModuleResultView::result |
Definition at line 87 of file cmoduleresultview.h.
Referenced by setupTree().
QAction* Search::CModuleResultView::resultWithText |
Definition at line 88 of file cmoduleresultview.h.
struct { ... } Search::CModuleResultView::save |
QMenu* Search::CModuleResultView::saveMenu |
Definition at line 85 of file cmoduleresultview.h.