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