BibleTime
bteditbookmarkdialog.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 <QLineEdit>
18 #include <QObject>
19 #include <QString>
20 #include <Qt>
21 #include <QTextEdit>
22 
23 
24 class QDialogButtonBox;
25 class QFormLayout;
26 class QLabel;
27 class QWidget;
28 
29 /**
30  \brief A dialog box for editing bookmarks.
31 */
32 class BtEditBookmarkDialog : public QDialog {
33  Q_OBJECT
34 
35  public: // methods:
36  BtEditBookmarkDialog(const QString &key,
37  const QString &title,
38  const QString &description,
39  QWidget *parent = nullptr,
40  Qt::WindowFlags wflags = Qt::Dialog);
41 
42  /**
43  * Returns the description written in the description box.
44  */
45  QString descriptionText() { return m_descriptionEdit->toPlainText(); }
46 
47  /**
48  * Returns the title written in the title box.
49  */
50  QString titleText() { return m_titleEdit->text(); }
51 
52  protected: // methods:
53  void retranslateUi();
54 
55  private: // fields:
56  QFormLayout *m_layout;
57  QLabel *m_keyLabel;
58  QLabel *m_keyTextLabel;
59  QLabel *m_titleLabel;
63  QDialogButtonBox *m_buttonBox;
64 
65 };
A dialog box for editing bookmarks.
QDialogButtonBox * m_buttonBox
BtEditBookmarkDialog(const QString &key, const QString &title, const QString &description, QWidget *parent=nullptr, Qt::WindowFlags wflags=Qt::Dialog)