wiiqt6/saveToy/textdialog.h
giantpune@gmail.com 1994e8bdda * adding stuff to convert to/from data.bin for saves
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@34 389f4c8b-5dfe-645f-db0e-df882bc27289
2011-01-02 06:15:26 +00:00

30 lines
500 B
C++

#ifndef TEXTDIALOG_H
#define TEXTDIALOG_H
#include <QDialog>
namespace Ui {
class TextDialog;
}
//generic dialog to get text
class TextDialog : public QDialog
{
Q_OBJECT
public:
explicit TextDialog(QWidget *parent = 0, const QString &txt = QString() );
~TextDialog();
static QString GetText( QWidget *parent = 0, const QString &txt = QString() );
private:
Ui::TextDialog *ui;
QString ret;
private slots:
void on_buttonBox_accepted();
};
#endif // TEXTDIALOG_H