mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
36 lines
800 B
C++
36 lines
800 B
C++
#ifndef MWGUI_TEXT_INPUT_H
|
|
#define MWGUI_TEXT_INPUT_H
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
class TextInputDialog : public WindowModal
|
|
{
|
|
public:
|
|
TextInputDialog();
|
|
|
|
std::string getTextInput() const;
|
|
void setTextInput(const std::string& text);
|
|
|
|
void setNextButtonShow(bool shown);
|
|
void setTextLabel(std::string_view label);
|
|
void onOpen() override;
|
|
|
|
bool exit() override { return false; }
|
|
|
|
/** Event : Dialog finished, OK button clicked.\n
|
|
signature : void method()\n
|
|
*/
|
|
EventHandle_WindowBase eventDone;
|
|
|
|
protected:
|
|
void onOkClicked(MyGUI::Widget* _sender);
|
|
void onTextAccepted(MyGUI::EditBox* _sender);
|
|
|
|
private:
|
|
MyGUI::EditBox* mTextEdit;
|
|
};
|
|
}
|
|
#endif
|