OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
textinputdialog.hpp
Go to the documentation of this file.
1 #ifndef TEXTINPUTDIALOG_HPP
2 #define TEXTINPUTDIALOG_HPP
3 
4 #include <QDialog>
5 
6 #include "lineedit.hpp"
7 
8 class QDialogButtonBox;
9 
10 namespace Launcher
11 {
12  class TextInputDialog : public QDialog
13  {
14  Q_OBJECT
15 
16  public:
17 
18  explicit TextInputDialog(const QString& title, const QString &text, QWidget *parent = 0);
20 
21  inline LineEdit *lineEdit() { return mLineEdit; }
22  void setOkButtonEnabled(bool enabled);
23 
24  int exec();
25 
26  private:
27 
28  QDialogButtonBox *mButtonBox;
30 
31  };
32 }
33 
34 #endif // TEXTINPUTDIALOG_HPP
TextInputDialog(const QString &title, const QString &text, QWidget *parent=0)
Definition: textinputdialog.cpp:10
QDialogButtonBox * mButtonBox
Definition: textinputdialog.hpp:28
Definition: lineedit.hpp:20
LineEdit * mLineEdit
Definition: textinputdialog.hpp:29
int exec()
Definition: textinputdialog.cpp:50
~TextInputDialog()
Definition: textinputdialog.cpp:46
Definition: textinputdialog.hpp:12
LineEdit * lineEdit()
Definition: textinputdialog.hpp:21
void setOkButtonEnabled(bool enabled)
Definition: textinputdialog.cpp:57