BibleTime
btmessageinputdialog.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-2025 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 <Qt>
20
21
22class QLineEdit;
23class QWidget;
24
25/**
26 * @brief The BtMessageInputDialog class provides a editable
27 * field for user input. Optionally it displays a larger
28 * message.
29 */
30
32{
33 Q_OBJECT
34
35public: // types:
36
38
39public: // methods:
40
41 /**
42 * @brief The BtMessageInputDialog class provides a editable
43 * field for user input. Optionally it displays a larger message.
44 * @param title dialog title
45 * @param inputLabel short text displayed above input field
46 * @param inputType The type of user input field to display
47 * @param inputText user input field which may be preloaded with text
48 * @param infoMessage optional larger message displayed above the inputLabel
49 * @param parent parent window for dialog
50 * @param f optional window flags
51 */
52 BtMessageInputDialog(QString const & title,
53 QString const & inputLabel,
54 InputType inputType,
55 QString const & inputText,
56 QString const & infoMessage = QString(),
57 QWidget * parent = nullptr,
58 Qt::WindowFlags f = Qt::Dialog);
59
60 /**
61 * @brief getUserInput
62 * @returns edited text from user
63 */
64 QString getUserInput() const;
65
66private:
68};
The BtMessageInputDialog class provides a editable field for user input. Optionally it displays a lar...
QString getUserInput() const
getUserInput