BibleTime
btbookshelfview.h
Go to the documentation of this file.
1 /*********
2 *
3 * In the name of the Father, and of the Son, and of the Holy Spirit.
4 *
5 * This file is part of BibleTime's source code, https://bibletime.info/
6 *
7 * Copyright 1999-2021 by the BibleTime developers.
8 * The BibleTime source code is licensed under the GNU General Public License
9 * version 2.0.
10 *
11 **********/
12 
13 #pragma once
14 
15 #include <QTreeView>
16 
17 #include <QObject>
18 #include <QString>
19 
20 
21 class CSwordModuleInfo;
22 class QKeyEvent;
23 class QModelIndex;
24 class QMouseEvent;
25 class QPoint;
26 class QWidget;
27 
28 class BtBookshelfView: public QTreeView {
29  Q_OBJECT
30  public:
31  BtBookshelfView(QWidget *parent = nullptr);
32 
33  CSwordModuleInfo *getModule(const QModelIndex &index) const;
34 
35  Q_SIGNALS:
36  void contextMenuActivated(QPoint pos);
38  QPoint pos);
41 
42  protected:
43  void keyPressEvent(QKeyEvent *event) override;
44  void mousePressEvent(QMouseEvent *event) override;
45 
46 };
void moduleHovered(CSwordModuleInfo *item)
void moduleActivated(CSwordModuleInfo *item)
void mousePressEvent(QMouseEvent *event) override
void contextMenuActivated(QPoint pos)
void moduleContextMenuActivated(CSwordModuleInfo *item, QPoint pos)
void keyPressEvent(QKeyEvent *event) override
CSwordModuleInfo * getModule(const QModelIndex &index) const
BtBookshelfView(QWidget *parent=nullptr)