You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
794 B
C++
39 lines
794 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;
|
|
void setTextInput(const std::string &text);
|
|
|
|
void setNextButtonShow(bool shown);
|
|
void setTextLabel(const std::string &label);
|
|
virtual void open();
|
|
|
|
/** Event : Dialog finished, OK button clicked.\n
|
|
signature : void method()\n
|
|
*/
|
|
EventHandle_WindowBase eventDone;
|
|
|
|
protected:
|
|
void onOkClicked(MyGUI::Widget* _sender);
|
|
void onTextAccepted(MyGUI::Edit* _sender);
|
|
|
|
private:
|
|
MyGUI::EditBox* mTextEdit;
|
|
};
|
|
}
|
|
#endif
|