BibleTime
cinfodisplay.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 <QWidget>
16 
17 #include <QPair>
18 #include "../backend/rendering/btinforendering.h"
19 
20 
21 class QAction;
22 class QSize;
23 class BibleTime;
24 class BtTextBrowser;
25 
26 namespace InfoDisplay {
27 
28 class CInfoDisplay: public QWidget {
29 
30  Q_OBJECT
31 
32 public: // methods:
33 
34  CInfoDisplay(BibleTime * parent = nullptr);
35 
36  void unsetInfo();
37  void setInfo(const QString & renderedData,
38  const QString & lang = QString());
39  void setInfo(Rendering::ListInfoData const &);
40  QSize sizeHint() const override;
41  void updateColors();
42 
43 public Q_SLOTS:
44 
45  void setInfo(Rendering::InfoType const, QString const & data);
46  void setInfo(CSwordModuleInfo * module);
47 
48 private:
49  void setBrowserFont(const CSwordModuleInfo* const module);
50 
51 private: // fields:
52 
55 
56 };
57 
58 } //end of InfoDisplay namespace
A QTextBrowser subclass which adds the ability to start drags for references.
Definition: bttextbrowser.h:24
void setInfo(const QString &renderedData, const QString &lang=QString())
CInfoDisplay(BibleTime *parent=nullptr)
QSize sizeHint() const override
void setBrowserFont(const CSwordModuleInfo *const module)
BtTextBrowser * m_textBrowser
Definition: cinfodisplay.h:53