mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
738 B
C++
41 lines
738 B
C++
#ifndef TEXTINPUTDIALOG_HPP
|
|
#define TEXTINPUTDIALOG_HPP
|
|
|
|
#include <QDialog>
|
|
|
|
#include "lineedit.hpp"
|
|
|
|
class QDialogButtonBox;
|
|
|
|
namespace Launcher
|
|
{
|
|
class TextInputDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
class DialogLineEdit : public LineEdit
|
|
{
|
|
public:
|
|
explicit DialogLineEdit (QWidget *parent = 0);
|
|
};
|
|
|
|
DialogLineEdit *mLineEdit;
|
|
QDialogButtonBox *mButtonBox;
|
|
|
|
public:
|
|
|
|
explicit TextInputDialog(const QString& title, const QString &text, QWidget *parent = 0);
|
|
~TextInputDialog () {}
|
|
|
|
QString getText() const;
|
|
|
|
int exec();
|
|
|
|
private slots:
|
|
void slotUpdateOkButton(QString text);
|
|
|
|
};
|
|
}
|
|
|
|
#endif // TEXTINPUTDIALOG_HPP
|