BibleTime
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
BtBookshelfWidget Class Reference

#include <btbookshelfwidget.h>

Inheritance diagram for BtBookshelfWidget:

Public Member Functions

 BtBookshelfWidget (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
 
QMenucontextMenu () const
 
bool eventFilter (QObject *object, QEvent *event) override
 
QToolButtongroupingButton () const
 
BtBookshelfGroupingMenugroupingMenu () const
 
QMenuitemContextMenu () const
 
QWidgetleftCornerWidget () const
 
void loadBookshelfState ()
 
QLineEditnameFilterEdit () const
 
QLabel * nameFilterLabel () const
 
BtBookshelfFilterModelpostFilterModel () const
 
QWidgetrightCornerWidget () 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)
 
QActionshowHideAction () const
 
QToolButtonshowHideButton () const
 
BtBookshelfTreeModeltreeModel () const
 
BtBookshelfViewtreeView () 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

QMenum_contextMenu
 
QToolButtonm_groupingButton
 
BtBookshelfGroupingMenum_groupingMenu
 
QActionm_itemAboutAction
 
QActionGroup * m_itemActionGroup
 
QMenum_itemContextMenu
 
QActionm_itemEditHtmlAction
 
QMenum_itemEditMenu
 
QActionm_itemEditPlainAction
 
QActionm_itemOpenAction
 
QActionm_itemSearchAction
 
QActionm_itemUnlockAction
 
QWidgetm_leftCornerWidget
 
QLineEditm_nameFilterEdit
 
QLabel * m_nameFilterLabel
 
BtBookshelfFilterModelm_postFilterModel
 
QWidgetm_rightCornerWidget
 
QActionm_showHideAction
 
QToolButtonm_showHideButton
 
std::shared_ptr< QAbstractItemModelm_sourceModel
 
QHBoxLayout * m_toolBar
 
BtBookshelfTreeModelm_treeModel
 
BtBookshelfViewm_treeView
 

Detailed Description

Definition at line 39 of file btbookshelfwidget.h.

Constructor & Destructor Documentation

◆ BtBookshelfWidget()

BtBookshelfWidget::BtBookshelfWidget ( QWidget parent = nullptr,
Qt::WindowFlags  flags = Qt::WindowFlags() 
)
explicit

Member Function Documentation

◆ contextMenu()

QMenu* BtBookshelfWidget::contextMenu ( ) const
inline

Definition at line 64 of file btbookshelfwidget.h.

References m_contextMenu.

◆ eventFilter()

bool BtBookshelfWidget::eventFilter ( QObject object,
QEvent *  event 
)
override

Definition at line 177 of file btbookshelfwidget.cpp.

References BT_ASSERT, m_nameFilterEdit, and m_treeView.

◆ findExpanded()

void BtBookshelfWidget::findExpanded ( const QModelIndex &  index,
QString  prefix,
QStringList *  expandedPaths 
)
protected

Definition at line 195 of file btbookshelfwidget.cpp.

References m_postFilterModel, and m_treeView.

Referenced by saveBookshelfState().

◆ groupingButton()

QToolButton* BtBookshelfWidget::groupingButton ( ) const
inline

Definition at line 58 of file btbookshelfwidget.h.

References m_groupingButton.

◆ groupingMenu()

BtBookshelfGroupingMenu* BtBookshelfWidget::groupingMenu ( ) const
inline

Definition at line 62 of file btbookshelfwidget.h.

References m_groupingMenu.

◆ initActions()

void BtBookshelfWidget::initActions ( )
protected

◆ initMenus()

void BtBookshelfWidget::initMenus ( )
protected

◆ initWidgets()

void BtBookshelfWidget::initWidgets ( )
protected

◆ itemContextMenu()

QMenu* BtBookshelfWidget::itemContextMenu ( ) const
inline

Definition at line 65 of file btbookshelfwidget.h.

References m_itemContextMenu.

◆ leftCornerWidget()

QWidget* BtBookshelfWidget::leftCornerWidget ( ) const
inline

Definition at line 55 of file btbookshelfwidget.h.

References m_leftCornerWidget.

◆ loadBookshelfState()

void BtBookshelfWidget::loadBookshelfState ( )

◆ nameFilterEdit()

QLineEdit* BtBookshelfWidget::nameFilterEdit ( ) const
inline

Definition at line 57 of file btbookshelfwidget.h.

References m_nameFilterEdit.

◆ nameFilterLabel()

QLabel* BtBookshelfWidget::nameFilterLabel ( ) const
inline

Definition at line 56 of file btbookshelfwidget.h.

References m_nameFilterLabel.

◆ postFilterModel()

BtBookshelfFilterModel* BtBookshelfWidget::postFilterModel ( ) const
inline

Definition at line 48 of file btbookshelfwidget.h.

References m_postFilterModel.

◆ restoreExpanded()

void BtBookshelfWidget::restoreExpanded ( const QModelIndex &  index,
const QStringList &  nodeList 
)
protected

Definition at line 212 of file btbookshelfwidget.cpp.

References m_postFilterModel, and m_treeView.

Referenced by loadBookshelfState().

◆ retranslateUi()

void BtBookshelfWidget::retranslateUi ( )
protected

◆ rightCornerWidget()

QWidget* BtBookshelfWidget::rightCornerWidget ( ) const
inline

Definition at line 60 of file btbookshelfwidget.h.

References m_rightCornerWidget.

◆ saveBookshelfState()

void BtBookshelfWidget::saveBookshelfState ( )

◆ setContextMenu()

void BtBookshelfWidget::setContextMenu ( QMenu newMenu)
inline

Definition at line 75 of file btbookshelfwidget.h.

References m_contextMenu.

◆ setItemContextMenu()

void BtBookshelfWidget::setItemContextMenu ( QMenu newMenu)
inline

Definition at line 76 of file btbookshelfwidget.h.

References m_itemContextMenu.

Referenced by BtBookshelfDockWidget::BtBookshelfDockWidget().

◆ setLeftCornerWidget()

void BtBookshelfWidget::setLeftCornerWidget ( QWidget w)

Definition at line 98 of file btbookshelfwidget.cpp.

References m_leftCornerWidget, and m_toolBar.

◆ setRightCornerWidget()

void BtBookshelfWidget::setRightCornerWidget ( QWidget w)

Definition at line 104 of file btbookshelfwidget.cpp.

References m_rightCornerWidget, and m_toolBar.

◆ setSourceModel()

void BtBookshelfWidget::setSourceModel ( std::shared_ptr< QAbstractItemModel model)

◆ setTreeModel()

void BtBookshelfWidget::setTreeModel ( BtBookshelfTreeModel model)

◆ showHideAction()

QAction* BtBookshelfWidget::showHideAction ( ) const
inline

◆ showHideButton()

QToolButton* BtBookshelfWidget::showHideButton ( ) const
inline

◆ treeModel()

BtBookshelfTreeModel* BtBookshelfWidget::treeModel ( ) const
inline

◆ treeView()

BtBookshelfView* BtBookshelfWidget::treeView ( ) const
inline

Member Data Documentation

◆ m_contextMenu

QMenu* BtBookshelfWidget::m_contextMenu
private

Definition at line 109 of file btbookshelfwidget.h.

Referenced by BtBookshelfWidget(), contextMenu(), initMenus(), and setContextMenu().

◆ m_groupingButton

QToolButton* BtBookshelfWidget::m_groupingButton
private

Definition at line 104 of file btbookshelfwidget.h.

Referenced by groupingButton(), initWidgets(), and retranslateUi().

◆ m_groupingMenu

BtBookshelfGroupingMenu* BtBookshelfWidget::m_groupingMenu
private

Definition at line 110 of file btbookshelfwidget.h.

Referenced by groupingMenu(), initMenus(), initWidgets(), and retranslateUi().

◆ m_itemAboutAction

QAction* BtBookshelfWidget::m_itemAboutAction
private

Definition at line 120 of file btbookshelfwidget.h.

◆ m_itemActionGroup

QActionGroup* BtBookshelfWidget::m_itemActionGroup
private

Definition at line 113 of file btbookshelfwidget.h.

◆ m_itemContextMenu

QMenu* BtBookshelfWidget::m_itemContextMenu
private

◆ m_itemEditHtmlAction

QAction* BtBookshelfWidget::m_itemEditHtmlAction
private

Definition at line 118 of file btbookshelfwidget.h.

◆ m_itemEditMenu

QMenu* BtBookshelfWidget::m_itemEditMenu
private

Definition at line 116 of file btbookshelfwidget.h.

◆ m_itemEditPlainAction

QAction* BtBookshelfWidget::m_itemEditPlainAction
private

Definition at line 117 of file btbookshelfwidget.h.

◆ m_itemOpenAction

QAction* BtBookshelfWidget::m_itemOpenAction
private

Definition at line 114 of file btbookshelfwidget.h.

◆ m_itemSearchAction

QAction* BtBookshelfWidget::m_itemSearchAction
private

Definition at line 115 of file btbookshelfwidget.h.

◆ m_itemUnlockAction

QAction* BtBookshelfWidget::m_itemUnlockAction
private

Definition at line 119 of file btbookshelfwidget.h.

◆ m_leftCornerWidget

QWidget* BtBookshelfWidget::m_leftCornerWidget
private

Definition at line 100 of file btbookshelfwidget.h.

Referenced by leftCornerWidget(), and setLeftCornerWidget().

◆ m_nameFilterEdit

QLineEdit* BtBookshelfWidget::m_nameFilterEdit
private

Definition at line 103 of file btbookshelfwidget.h.

Referenced by BtBookshelfWidget(), eventFilter(), initWidgets(), and nameFilterEdit().

◆ m_nameFilterLabel

QLabel* BtBookshelfWidget::m_nameFilterLabel
private

Definition at line 102 of file btbookshelfwidget.h.

Referenced by initWidgets(), nameFilterLabel(), and retranslateUi().

◆ m_postFilterModel

BtBookshelfFilterModel* BtBookshelfWidget::m_postFilterModel
private

◆ m_rightCornerWidget

QWidget* BtBookshelfWidget::m_rightCornerWidget
private

Definition at line 101 of file btbookshelfwidget.h.

Referenced by rightCornerWidget(), and setRightCornerWidget().

◆ m_showHideAction

QAction* BtBookshelfWidget::m_showHideAction
private

◆ m_showHideButton

QToolButton* BtBookshelfWidget::m_showHideButton
private

Definition at line 105 of file btbookshelfwidget.h.

Referenced by initWidgets(), and showHideButton().

◆ m_sourceModel

std::shared_ptr<QAbstractItemModel> BtBookshelfWidget::m_sourceModel
private

Definition at line 94 of file btbookshelfwidget.h.

Referenced by setSourceModel(), and setTreeModel().

◆ m_toolBar

QHBoxLayout* BtBookshelfWidget::m_toolBar
private

Definition at line 99 of file btbookshelfwidget.h.

Referenced by initWidgets(), setLeftCornerWidget(), and setRightCornerWidget().

◆ m_treeModel

BtBookshelfTreeModel* BtBookshelfWidget::m_treeModel
private

Definition at line 95 of file btbookshelfwidget.h.

Referenced by initMenus(), setSourceModel(), setTreeModel(), and treeModel().

◆ m_treeView

BtBookshelfView* BtBookshelfWidget::m_treeView
private

The documentation for this class was generated from the following files: