BibleTime
btedittextwizard.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 <QWizard>
16 
17 #include <QObject>
18 #include <QString>
19 #include <Qt>
20 
21 
22 class BtPlainOrHtmlPage;
23 class BtEditTextPage;
24 class QFont;
25 class QWidget;
26 
27 /** \brief The Edit Text wizard for editing the personal commentary. */
28 class BtEditTextWizard final: public QWizard {
29 
30  Q_OBJECT
31 
32 public: // methods:
33 
34  BtEditTextWizard(QWidget * parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
35 
36  bool htmlMode() const;
37  void setFont(const QFont& font);
38  void setText(const QString& text);
39  void setTitle(const QString& text);
40  QString text() const;
41 
42 public Q_SLOTS:
43 
44  void accept() final override;
45 
46 private:
47 
48  void retranslateUi();
49 
52 
53 }; /* class BtEditTextWizard */
The Edit Text wizard for editing the personal commentary.
QString text() const
BtEditTextWizard(QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
void accept() final override
BtPlainOrHtmlPage *const m_plainOrHtmlPage
void setFont(const QFont &font)
void setText(const QString &text)
bool htmlMode() const
BtEditTextPage *const m_editTextPage
void setTitle(const QString &text)