#ifndef TEXTINPUTDIALOG_HPP #define TEXTINPUTDIALOG_HPP #include //#include "lineedit.hpp" class QDialogButtonBox; namespace EsxView { class LineEdit; } class TextInputDialog : public QDialog { Q_OBJECT public: explicit TextInputDialog(const QString& title, const QString &text, QWidget *parent = 0); inline EsxView::LineEdit *lineEdit() { return mLineEdit; } void setOkButtonEnabled(bool enabled); EsxView::LineEdit *mLineEdit; int exec(); private: QDialogButtonBox *mButtonBox; }; #endif // TEXTINPUTDIALOG_HPP