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
|
|
|
class DialogLineEdit : public LineEdit
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit DialogLineEdit (QWidget *parent = 0);
|
|
|
|
};
|
2012-10-23 01:47:07 +02:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
DialogLineEdit *mLineEdit;
|
|
|
|
QDialogButtonBox *mButtonBox;
|
2012-10-23 01:47:07 +02:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
public:
|
|
|
|
|
|
|
|
explicit TextInputDialog(const QString& title, const QString &text, QWidget *parent = 0);
|
|
|
|
~TextInputDialog () {}
|
2013-10-22 21:52:35 -05:00
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
QString getText() const;
|
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
|
|
|
|
2013-10-25 11:17:26 -05:00
|
|
|
private slots:
|
|
|
|
void slotUpdateOkButton(QString text);
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
2012-10-23 01:47:07 +02:00
|
|
|
|
|
|
|
#endif // TEXTINPUTDIALOG_HPP
|