/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ #ifndef TEXTENTERDIALOG_H #define TEXTENTERDIALOG_H #include #include class QLineEdit; class QPushButton; class QString; class TextEnterDialog : public QDialog { Q_OBJECT public: TextEnterDialog(const QString &text, QWidget *parent = 0, Qt::WindowFlags f = 0); ~TextEnterDialog() {}; const QString text() const { return mText->text(); }; private: QPushButton *mOk; QPushButton *mClose; QLineEdit *mText; }; #endif