mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 08:56:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			709 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			709 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef MWGUI_TEXT_INPUT_H
 | 
						|
#define MWGUI_TEXT_INPUT_H
 | 
						|
 | 
						|
#include "windowbase.hpp"
 | 
						|
 | 
						|
namespace MWGui
 | 
						|
{
 | 
						|
    class WindowManager;
 | 
						|
}
 | 
						|
 | 
						|
namespace MWGui
 | 
						|
{
 | 
						|
    class TextInputDialog : public WindowModal
 | 
						|
    {
 | 
						|
    public:
 | 
						|
        TextInputDialog();
 | 
						|
 | 
						|
        std::string getTextInput() const { return mTextEdit->getCaption(); }
 | 
						|
        void setTextInput(const std::string &text) { mTextEdit->setCaption(text); }
 | 
						|
 | 
						|
        void setNextButtonShow(bool shown);
 | 
						|
        void setTextLabel(const std::string &label);
 | 
						|
        virtual void open();
 | 
						|
 | 
						|
    protected:
 | 
						|
        void onOkClicked(MyGUI::Widget* _sender);
 | 
						|
        void onTextAccepted(MyGUI::Edit* _sender);
 | 
						|
 | 
						|
    private:
 | 
						|
        MyGUI::EditBox* mTextEdit;
 | 
						|
    };
 | 
						|
}
 | 
						|
#endif
 |