2017-06-06 15:33:23 +00:00
|
|
|
#ifndef OPENMW_TEXTINPUTDIALOG_HPP
|
|
|
|
#define OPENMW_TEXTINPUTDIALOG_HPP
|
|
|
|
|
2017-06-06 16:06:10 +00:00
|
|
|
#include "apps/openmw/mwgui/windowbase.hpp"
|
2017-06-06 15:33:23 +00:00
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class WindowManager;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class TextInputDialog : public MWGui::WindowModal
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TextInputDialog();
|
|
|
|
|
|
|
|
std::string getTextInput() const;
|
|
|
|
void setTextInput(const std::string &text);
|
|
|
|
|
|
|
|
void setNextButtonShow(bool shown);
|
|
|
|
void setTextLabel(const std::string &label);
|
2017-07-02 10:07:10 +00:00
|
|
|
void setTextNote(const std::string ¬e);
|
2017-06-06 15:33:23 +00:00
|
|
|
|
|
|
|
void setEditPassword(bool value);
|
|
|
|
|
2017-10-07 20:33:36 +00:00
|
|
|
virtual void onOpen();
|
2017-10-07 23:42:41 +00:00
|
|
|
virtual bool exit();
|
2017-06-06 15:33:23 +00:00
|
|
|
|
|
|
|
/** 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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-08-26 09:33:28 +00:00
|
|
|
#endif //OPENMW_TEXTINPUTDIALOG_HPP
|