BibleTime
|
#include <btbookshelfwidget.h>
Public Member Functions | |
BtBookshelfWidget (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) | |
QMenu * | contextMenu () const |
bool | eventFilter (QObject *object, QEvent *event) override |
QToolButton * | groupingButton () const |
BtBookshelfGroupingMenu * | groupingMenu () const |
QMenu * | itemContextMenu () const |
QWidget * | leftCornerWidget () const |
void | loadBookshelfState () |
QLineEdit * | nameFilterEdit () const |
QLabel * | nameFilterLabel () const |
BtBookshelfFilterModel * | postFilterModel () const |
QWidget * | rightCornerWidget () const |
void | saveBookshelfState () |
void | setContextMenu (QMenu *newMenu) |
void | setItemContextMenu (QMenu *newMenu) |
void | setLeftCornerWidget (QWidget *w) |
void | setRightCornerWidget (QWidget *w) |
void | setSourceModel (std::shared_ptr< QAbstractItemModel > model) |
void | setTreeModel (BtBookshelfTreeModel *model) |
QAction * | showHideAction () const |
QToolButton * | showHideButton () const |
BtBookshelfTreeModel * | treeModel () const |
BtBookshelfView * | treeView () const |
Protected Member Functions | |
void | findExpanded (const QModelIndex &index, QString prefix, QStringList *expandedPaths) |
void | initActions () |
void | initMenus () |
void | initWidgets () |
void | restoreExpanded (const QModelIndex &index, const QStringList &nodeList) |
void | retranslateUi () |
Private Attributes | |
QMenu * | m_contextMenu |
QToolButton * | m_groupingButton |
BtBookshelfGroupingMenu * | m_groupingMenu |
QAction * | m_itemAboutAction |
QActionGroup * | m_itemActionGroup |
QMenu * | m_itemContextMenu |
QAction * | m_itemEditHtmlAction |
QMenu * | m_itemEditMenu |
QAction * | m_itemEditPlainAction |
QAction * | m_itemOpenAction |
QAction * | m_itemSearchAction |
QAction * | m_itemUnlockAction |
QWidget * | m_leftCornerWidget |
QLineEdit * | m_nameFilterEdit |
QLabel * | m_nameFilterLabel |
BtBookshelfFilterModel * | m_postFilterModel |
QWidget * | m_rightCornerWidget |
QAction * | m_showHideAction |
QToolButton * | m_showHideButton |
std::shared_ptr< QAbstractItemModel > | m_sourceModel |
QHBoxLayout * | m_toolBar |
BtBookshelfTreeModel * | m_treeModel |
BtBookshelfView * | m_treeView |
Definition at line 39 of file btbookshelfwidget.h.
|
explicit |
Definition at line 41 of file btbookshelfwidget.cpp.
References BT_CONNECT, BtBookshelfView::contextMenuActivated(), initActions(), initMenus(), initWidgets(), m_contextMenu, m_itemContextMenu, m_nameFilterEdit, m_postFilterModel, m_treeView, BtBookshelfView::moduleContextMenuActivated(), retranslateUi(), and BtBookshelfFilterModel::setNameFilterFixedString().
|
inline |
Definition at line 64 of file btbookshelfwidget.h.
References m_contextMenu.
|
override |
Definition at line 177 of file btbookshelfwidget.cpp.
References BT_ASSERT, m_nameFilterEdit, and m_treeView.
|
protected |
Definition at line 195 of file btbookshelfwidget.cpp.
References m_postFilterModel, and m_treeView.
Referenced by saveBookshelfState().
|
inline |
Definition at line 58 of file btbookshelfwidget.h.
References m_groupingButton.
|
inline |
Definition at line 62 of file btbookshelfwidget.h.
References m_groupingMenu.
|
protected |
Definition at line 110 of file btbookshelfwidget.cpp.
References BT_CONNECT, m_postFilterModel, m_showHideAction, and BtBookshelfFilterModel::setShowHidden().
Referenced by BtBookshelfWidget().
|
protected |
Definition at line 118 of file btbookshelfwidget.cpp.
References BT_CONNECT, m_contextMenu, m_groupingMenu, m_itemContextMenu, m_showHideAction, m_treeModel, m_treeView, BtBookshelfTreeModel::setGroupingOrder(), and BtBookshelfGroupingMenu::signalGroupingOrderChanged().
Referenced by BtBookshelfWidget().
|
protected |
Definition at line 137 of file btbookshelfwidget.cpp.
References m_groupingButton, m_groupingMenu, m_nameFilterEdit, m_nameFilterLabel, m_showHideAction, m_showHideButton, m_toolBar, and m_treeView.
Referenced by BtBookshelfWidget().
|
inline |
Definition at line 65 of file btbookshelfwidget.h.
References m_itemContextMenu.
|
inline |
Definition at line 55 of file btbookshelfwidget.h.
References m_leftCornerWidget.
void BtBookshelfWidget::loadBookshelfState | ( | ) |
Definition at line 230 of file btbookshelfwidget.cpp.
References btConfig(), m_treeView, restoreExpanded(), and BtConfigCore::value().
Referenced by BtBookshelfDockWidget::loadBookshelfState().
|
inline |
Definition at line 57 of file btbookshelfwidget.h.
References m_nameFilterEdit.
|
inline |
Definition at line 56 of file btbookshelfwidget.h.
References m_nameFilterLabel.
|
inline |
Definition at line 48 of file btbookshelfwidget.h.
References m_postFilterModel.
|
protected |
Definition at line 212 of file btbookshelfwidget.cpp.
References m_postFilterModel, and m_treeView.
Referenced by loadBookshelfState().
|
protected |
Definition at line 169 of file btbookshelfwidget.cpp.
References m_groupingButton, m_groupingMenu, m_nameFilterLabel, and m_showHideAction.
Referenced by BtBookshelfWidget().
|
inline |
Definition at line 60 of file btbookshelfwidget.h.
References m_rightCornerWidget.
void BtBookshelfWidget::saveBookshelfState | ( | ) |
Definition at line 241 of file btbookshelfwidget.cpp.
References btConfig(), findExpanded(), m_treeView, and BtConfigCore::setValue().
Referenced by BtBookshelfDockWidget::saveBookshelfState().
|
inline |
Definition at line 75 of file btbookshelfwidget.h.
References m_contextMenu.
|
inline |
Definition at line 76 of file btbookshelfwidget.h.
References m_itemContextMenu.
Referenced by BtBookshelfDockWidget::BtBookshelfDockWidget().
void BtBookshelfWidget::setLeftCornerWidget | ( | QWidget * | w | ) |
Definition at line 98 of file btbookshelfwidget.cpp.
References m_leftCornerWidget, and m_toolBar.
void BtBookshelfWidget::setRightCornerWidget | ( | QWidget * | w | ) |
Definition at line 104 of file btbookshelfwidget.cpp.
References m_rightCornerWidget, and m_toolBar.
void BtBookshelfWidget::setSourceModel | ( | std::shared_ptr< QAbstractItemModel > | model | ) |
Definition at line 78 of file btbookshelfwidget.cpp.
References BT_ASSERT, m_sourceModel, m_treeModel, and BtBookshelfTreeModel::setSourceModel().
Referenced by BtBookshelfDockWidget::BtBookshelfDockWidget(), and BtSearchModuleChooserDialog::BtSearchModuleChooserDialog().
void BtBookshelfWidget::setTreeModel | ( | BtBookshelfTreeModel * | model | ) |
Definition at line 88 of file btbookshelfwidget.cpp.
References BT_ASSERT, m_postFilterModel, m_sourceModel, m_treeModel, and BtBookshelfTreeModel::setSourceModel().
Referenced by BtBookshelfDockWidget::BtBookshelfDockWidget(), and BtSearchModuleChooserDialog::BtSearchModuleChooserDialog().
|
inline |
Definition at line 72 of file btbookshelfwidget.h.
References m_showHideAction.
Referenced by BtSearchModuleChooserDialog::BtSearchModuleChooserDialog().
|
inline |
Definition at line 59 of file btbookshelfwidget.h.
References m_showHideButton.
Referenced by BtSearchModuleChooserDialog::BtSearchModuleChooserDialog().
|
inline |
Definition at line 47 of file btbookshelfwidget.h.
References m_treeModel.
Referenced by BtSearchModuleChooserDialog::checkedModules(), and BtSearchModuleChooserDialog::setCheckedModules().
|
inline |
Definition at line 61 of file btbookshelfwidget.h.
References m_treeView.
Referenced by BtBookshelfDockWidget::BtBookshelfDockWidget(), and BtModuleChooserDialog::BtModuleChooserDialog().
|
private |
Definition at line 109 of file btbookshelfwidget.h.
Referenced by BtBookshelfWidget(), contextMenu(), initMenus(), and setContextMenu().
|
private |
Definition at line 104 of file btbookshelfwidget.h.
Referenced by groupingButton(), initWidgets(), and retranslateUi().
|
private |
Definition at line 110 of file btbookshelfwidget.h.
Referenced by groupingMenu(), initMenus(), initWidgets(), and retranslateUi().
|
private |
Definition at line 120 of file btbookshelfwidget.h.
|
private |
Definition at line 113 of file btbookshelfwidget.h.
|
private |
Definition at line 112 of file btbookshelfwidget.h.
Referenced by BtBookshelfWidget(), initMenus(), itemContextMenu(), and setItemContextMenu().
|
private |
Definition at line 118 of file btbookshelfwidget.h.
|
private |
Definition at line 116 of file btbookshelfwidget.h.
|
private |
Definition at line 117 of file btbookshelfwidget.h.
|
private |
Definition at line 114 of file btbookshelfwidget.h.
|
private |
Definition at line 115 of file btbookshelfwidget.h.
|
private |
Definition at line 119 of file btbookshelfwidget.h.
|
private |
Definition at line 100 of file btbookshelfwidget.h.
Referenced by leftCornerWidget(), and setLeftCornerWidget().
|
private |
Definition at line 103 of file btbookshelfwidget.h.
Referenced by BtBookshelfWidget(), eventFilter(), initWidgets(), and nameFilterEdit().
|
private |
Definition at line 102 of file btbookshelfwidget.h.
Referenced by initWidgets(), nameFilterLabel(), and retranslateUi().
|
private |
Definition at line 96 of file btbookshelfwidget.h.
Referenced by BtBookshelfWidget(), findExpanded(), initActions(), postFilterModel(), restoreExpanded(), and setTreeModel().
|
private |
Definition at line 101 of file btbookshelfwidget.h.
Referenced by rightCornerWidget(), and setRightCornerWidget().
|
private |
Definition at line 111 of file btbookshelfwidget.h.
Referenced by initActions(), initMenus(), initWidgets(), retranslateUi(), and showHideAction().
|
private |
Definition at line 105 of file btbookshelfwidget.h.
Referenced by initWidgets(), and showHideButton().
|
private |
Definition at line 94 of file btbookshelfwidget.h.
Referenced by setSourceModel(), and setTreeModel().
|
private |
Definition at line 99 of file btbookshelfwidget.h.
Referenced by initWidgets(), setLeftCornerWidget(), and setRightCornerWidget().
|
private |
Definition at line 95 of file btbookshelfwidget.h.
Referenced by initMenus(), setSourceModel(), setTreeModel(), and treeModel().
|
private |
Definition at line 106 of file btbookshelfwidget.h.
Referenced by BtBookshelfWidget(), eventFilter(), findExpanded(), initMenus(), initWidgets(), loadBookshelfState(), restoreExpanded(), saveBookshelfState(), and treeView().