BibleTime
src
frontend
tips
bttipdialog.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 <QDialog>
16
17
#include <QObject>
18
#include <QString>
19
#include <QStringList>
20
#include <Qt>
21
22
23
class
QCheckBox;
24
class
QDialogButtonBox;
25
class
QTextBrowser
;
26
class
QWidget
;
27
/**
28
The Tip Of The Day dialog.
29
*/
30
class
BtTipDialog
:
public
QDialog
{
31
Q_OBJECT
32
33
public
:
// methods:
34
35
BtTipDialog
(
QWidget
*parent =
nullptr
, Qt::WindowFlags wflags = Qt::Dialog);
36
37
private
:
// methods:
38
39
void
retranslateUi
();
40
41
/** Sends the current tip to the web view */
42
void
displayTip
();
43
44
private
:
// fields:
45
46
QDialogButtonBox*
m_buttonBox
;
47
QTextBrowser
*
m_tipView
;
48
QCheckBox*
m_showTipsCheckBox
;
49
int
m_tipNumber
;
50
QStringList
m_tips
;
51
};
BtTipDialog
Definition:
bttipdialog.h:30
BtTipDialog::m_tipView
QTextBrowser * m_tipView
Definition:
bttipdialog.h:47
BtTipDialog::retranslateUi
void retranslateUi()
Definition:
bttipdialog.cpp:134
BtTipDialog::m_buttonBox
QDialogButtonBox * m_buttonBox
Definition:
bttipdialog.h:46
BtTipDialog::displayTip
void displayTip()
Definition:
bttipdialog.cpp:200
BtTipDialog::m_tips
QStringList m_tips
Definition:
bttipdialog.h:50
BtTipDialog::BtTipDialog
BtTipDialog(QWidget *parent=nullptr, Qt::WindowFlags wflags=Qt::Dialog)
Definition:
bttipdialog.cpp:75
BtTipDialog::m_showTipsCheckBox
QCheckBox * m_showTipsCheckBox
Definition:
bttipdialog.h:48
BtTipDialog::m_tipNumber
int m_tipNumber
Definition:
bttipdialog.h:49
QDialog
QTextBrowser
QWidget
Generated by
1.9.1