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
|
|
|
|
public:
|
|
|
|
explicit TextInputDialog(const QString& title, const QString &text, QWidget *parent = 0);
|
2013-09-22 04:06:29 +00:00
|
|
|
inline ContentSelectorView::LineEdit *lineEdit() { return mLineEdit; }
|
2012-10-22 23:47:07 +00:00
|
|
|
void setOkButtonEnabled(bool enabled);
|
|
|
|
|
2013-09-22 04:06:29 +00:00
|
|
|
ContentSelectorView::LineEdit *mLineEdit;
|
2012-10-22 23:47:07 +00:00
|
|
|
|
|
|
|
int exec();
|
|
|
|
|
|
|
|
private:
|
|
|
|
QDialogButtonBox *mButtonBox;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TEXTINPUTDIALOG_HPP
|