BibleTime
btbookshelfdockwidget.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 <QDockWidget>
16 
17 #include <QObject>
18 #include <QString>
19 #include <Qt>
20 #include "../backend/bookshelfmodel/btbookshelftreemodel.h"
21 
22 
23 class BtBookshelfWidget;
24 class CSwordModuleInfo;
25 class QAction;
26 class QLabel;
27 class QMenu;
28 class QPushButton;
29 class QStackedWidget;
30 class QWidget;
31 
33  Q_OBJECT
34  public:
35  BtBookshelfDockWidget(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
36 
38 
40  { return m_treeModel->groupingOrder(); }
41 
42  void loadBookshelfState();
43  void saveBookshelfState();
44 
45  Q_SIGNALS:
53 
54  protected:
55  void initMenus();
56  void retranslateUi();
57 
58  protected:
60 
61  QStackedWidget *m_stackedWidget;
64  QLabel *m_installLabel;
65  QPushButton *m_installButton;
66 
67  // Item context menu:
73 
75 };
BtBookshelfTreeModel::Grouping groupingOrder() const
void moduleUnlockTriggered(CSwordModuleInfo *module)
static BtBookshelfDockWidget * m_instance
void moduleHovered(CSwordModuleInfo *module)
BtBookshelfDockWidget(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
BtBookshelfWidget * m_bookshelfWidget
void moduleOpenTriggered(CSwordModuleInfo *module)
static BtBookshelfDockWidget * getInstance()
void groupingOrderChanged(BtBookshelfTreeModel::Grouping newGrouping)
QStackedWidget * m_stackedWidget
BtBookshelfTreeModel * m_treeModel
void moduleAboutTriggered(CSwordModuleInfo *module)
void moduleSearchTriggered(CSwordModuleInfo *module)
Grouping const & groupingOrder() const