BibleTime
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;
48  QCheckBox* m_showTipsCheckBox;
50  QStringList m_tips;
51 };
QTextBrowser * m_tipView
Definition: bttipdialog.h:47
void retranslateUi()
QDialogButtonBox * m_buttonBox
Definition: bttipdialog.h:46
void displayTip()
QStringList m_tips
Definition: bttipdialog.h:50
BtTipDialog(QWidget *parent=nullptr, Qt::WindowFlags wflags=Qt::Dialog)
Definition: bttipdialog.cpp:75
QCheckBox * m_showTipsCheckBox
Definition: bttipdialog.h:48
int m_tipNumber
Definition: bttipdialog.h:49