diff options
Diffstat (limited to 'src/frontend/tips/bttipdialog.h')
-rw-r--r-- | src/frontend/tips/bttipdialog.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/frontend/tips/bttipdialog.h b/src/frontend/tips/bttipdialog.h new file mode 100644 index 0000000..cd00394 --- /dev/null +++ b/src/frontend/tips/bttipdialog.h @@ -0,0 +1,62 @@ +/********* +* +* This file is part of BibleTime's source code, http://www.bibletime.info/. +* +* Copyright 1999-2011 by the BibleTime developers. +* The BibleTime source code is licensed under the GNU General Public License version 2.0. +* +**********/ + +#ifndef BTTIPDIALOG_H +#define BTTIPDIALOG_H + +#include <QDialog> +#include <QStringList> + + +class QAbstractButton; +class QCheckBox; +class QDialogButtonBox; +class QPushButton; +class QUrl; +class QWebView; + +/** + The Tip Of The Day dialog. +*/ +class BtTipDialog: public QDialog { + Q_OBJECT + + public: /* Methods: */ + + BtTipDialog(QWidget *parent = 0, Qt::WindowFlags wflags = Qt::Dialog); + + private: /* Methods: */ + + /** Enter tips in this function */ + void initTips(); + + /** Sends the current tip to the web view */ + void displayTip(); + + private slots: + + /** Called when the show tips at startup checkbox changes. */ + void startupBoxChanged(bool checked); + + /** Called when the next tip button is pressed. */ + void nextTip(); + + /** Called when any link in a tip is clicked. */ + void linkClicked(const QUrl& url); + + private: /* Fields: */ + + QDialogButtonBox* m_buttonBox; + QWebView* m_tipView; + QCheckBox* m_showTipsCheckBox; + int m_tipNumber; + QStringList m_tips; +}; + +#endif |