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-2025 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
21class QAction;
22class QSize;
23class BibleTime;
24class BtTextBrowser;
25
26namespace InfoDisplay {
27
28class CInfoDisplay: public QWidget {
29
30 Q_OBJECT
31
32public: // 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
43public Q_SLOTS:
44
45 void setInfo(Rendering::InfoType const, QString const & data);
46 void setInfo(CSwordModuleInfo * module);
47
48private:
49 void setBrowserFont(const CSwordModuleInfo* const module);
50
51private: // fields:
52
55
56};
57
58} //end of InfoDisplay namespace
A QTextBrowser subclass which adds the ability to start drags for references.
void setInfo(const QString &renderedData, const QString &lang=QString())
QSize sizeHint() const override
void setBrowserFont(const CSwordModuleInfo *const module)
BtTextBrowser * m_textBrowser
QList< InfoData > ListInfoData