2012-10-22 23:47:07 +00:00
|
|
|
#ifndef TEXTINPUTDIALOG_HPP
|
|
|
|
#define TEXTINPUTDIALOG_HPP
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class QDialogButtonBox;
|
2013-08-18 20:11:29 +00:00
|
|
|
|
2013-09-22 04:06:29 +00:00
|
|
|
namespace ContentSelectorView {
|
2013-08-18 20:11:29 +00:00
|
|
|
class LineEdit;
|
|
|
|
}
|
|
|
|
|
2012-10-22 23:47:07 +00:00
|
|
|
|
|
|
|
class TextInputDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2013-09-22 04:06:29 +00:00
|
|
|
ContentSelectorView::LineEdit *mLineEdit;
|
2013-10-07 02:13:47 +00:00
|
|
|
QDialogButtonBox *mButtonBox;
|
2012-10-22 23:47:07 +00:00
|
|
|
|
2013-10-07 02:13:47 +00:00
|
|
|
public:
|
2012-10-22 23:47:07 +00:00
|
|
|
|
2013-10-07 02:13:47 +00:00
|
|
|
explicit TextInputDialog(const QString& title, const QString &text, QWidget *parent = 0);
|
|
|
|
QString getText() const;
|
|
|
|
|
|
|
|
int exec();
|
2012-10-22 23:47:07 +00:00
|
|
|
|
2013-10-07 02:13:47 +00:00
|
|
|
private slots:
|
|
|
|
void slotUpdateOkButton(QString text);
|
2012-10-22 23:47:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TEXTINPUTDIALOG_HPP
|