mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 08:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
	
		
			738 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
	
		
			738 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef TEXTINPUTDIALOG_HPP
 | 
						|
#define TEXTINPUTDIALOG_HPP
 | 
						|
 | 
						|
#include <QDialog>
 | 
						|
 | 
						|
#include "lineedit.hpp"
 | 
						|
 | 
						|
class QDialogButtonBox;
 | 
						|
 | 
						|
namespace Launcher
 | 
						|
{
 | 
						|
    class TextInputDialog : public QDialog
 | 
						|
    {
 | 
						|
        Q_OBJECT
 | 
						|
 | 
						|
        class DialogLineEdit : public LineEdit
 | 
						|
        {
 | 
						|
        public:
 | 
						|
            explicit DialogLineEdit (QWidget *parent = 0);
 | 
						|
        };
 | 
						|
 | 
						|
        DialogLineEdit *mLineEdit;
 | 
						|
        QDialogButtonBox *mButtonBox;
 | 
						|
 | 
						|
    public:
 | 
						|
 | 
						|
        explicit TextInputDialog(const QString& title, const QString &text, QWidget *parent = 0);
 | 
						|
        ~TextInputDialog () {}
 | 
						|
 | 
						|
        QString getText() const;
 | 
						|
 | 
						|
        int exec();
 | 
						|
 | 
						|
    private slots:
 | 
						|
        void slotUpdateOkButton(QString text);
 | 
						|
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif // TEXTINPUTDIALOG_HPP
 |