BibleTime
src
frontend
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
53
BtTextBrowser
*
m_textBrowser
;
54
BibleTime
*
m_mainWindow
;
55
56
};
57
58
}
//end of InfoDisplay namespace
BibleTime
Definition:
bibletime.h:129
BtTextBrowser
A QTextBrowser subclass which adds the ability to start drags for references.
Definition:
bttextbrowser.h:24
CSwordModuleInfo
Definition:
cswordmoduleinfo.h:49
InfoDisplay::CInfoDisplay
Definition:
cinfodisplay.h:28
InfoDisplay::CInfoDisplay::setInfo
void setInfo(const QString &renderedData, const QString &lang=QString())
Definition:
cinfodisplay.cpp:97
InfoDisplay::CInfoDisplay::m_mainWindow
BibleTime * m_mainWindow
Definition:
cinfodisplay.h:54
InfoDisplay::CInfoDisplay::CInfoDisplay
CInfoDisplay(BibleTime *parent=nullptr)
Definition:
cinfodisplay.cpp:38
InfoDisplay::CInfoDisplay::unsetInfo
void unsetInfo()
Definition:
cinfodisplay.cpp:82
InfoDisplay::CInfoDisplay::updateColors
void updateColors()
Definition:
cinfodisplay.cpp:90
InfoDisplay::CInfoDisplay::sizeHint
QSize sizeHint() const override
Definition:
cinfodisplay.cpp:147
InfoDisplay::CInfoDisplay::setBrowserFont
void setBrowserFont(const CSwordModuleInfo *const module)
Definition:
cinfodisplay.cpp:138
InfoDisplay::CInfoDisplay::m_textBrowser
BtTextBrowser * m_textBrowser
Definition:
cinfodisplay.h:53
QAction
QList
QWidget
InfoDisplay
Definition:
bibletime.h:24
Rendering::InfoType
InfoType
Definition:
btinforendering.h:24
Generated by
1.9.1