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:
|
|
|
|
|
|
|
|
explicit TextInputDialog(const QString& title, const QString &text, QWidget *parent = 0);
|
2014-04-16 14:54:55 +00:00
|
|
|
~TextInputDialog ();
|
2013-10-23 02:52:35 +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
|
|
|
|
2013-10-25 16:17:26 +00:00
|
|
|
int exec();
|
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
|