2012-10-22 23:47:07 +00:00
|
|
|
#ifndef TEXTINPUTDIALOG_HPP
|
|
|
|
#define TEXTINPUTDIALOG_HPP
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2013-10-23 02:52:35 +00:00
|
|
|
#include "lineedit.hpp"
|
2013-08-18 20:11:29 +00:00
|
|
|
|
2013-10-23 02:52:35 +00:00
|
|
|
class QDialogButtonBox;
|
2013-08-18 20:11:29 +00:00
|
|
|
|
2013-10-25 16:17:26 +00:00
|
|
|
namespace Launcher
|
2012-10-22 23:47:07 +00:00
|
|
|
{
|
2013-10-25 16:17:26 +00:00
|
|
|
class TextInputDialog : public QDialog
|
2013-10-23 02:52:35 +00:00
|
|
|
{
|
2013-10-25 16:17:26 +00:00
|
|
|
Q_OBJECT
|
2013-10-23 02:52:35 +00:00
|
|
|
|
2013-10-25 16:17:26 +00:00
|
|
|
public:
|
2020-11-13 07:39:47 +00:00
|
|
|
explicit TextInputDialog(const QString& title, const QString& text, QWidget* parent = nullptr);
|
2021-05-19 00:42:24 +00:00
|
|
|
~TextInputDialog() override;
|
2013-10-25 16:17:26 +00:00
|
|
|
|
2014-04-16 14:54:55 +00:00
|
|
|
inline LineEdit* lineEdit() { return mLineEdit; }
|
|
|
|
void setOkButtonEnabled(bool enabled);
|
2013-10-07 02:13:47 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
int exec() override;
|
2012-10-22 23:47:07 +00:00
|
|
|
|
2014-04-16 14:54:55 +00:00
|
|
|
private:
|
|
|
|
QDialogButtonBox* mButtonBox;
|
|
|
|
LineEdit* mLineEdit;
|
2013-10-25 16:17:26 +00:00
|
|
|
};
|
|
|
|
}
|
2012-10-22 23:47:07 +00:00
|
|
|
|
|
|
|
#endif // TEXTINPUTDIALOG_HPP
|