1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:49:56 +00:00
openmw-tes3mp/apps/openmw/mwmp/GUI/TextInputDialog.hpp

46 lines
991 B
C++
Raw Normal View History

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);
void setTextNote(const std::string &note);
2017-06-06 15:33:23 +00:00
void setEditPassword(bool value);
virtual void onOpen();
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;
};
}
#endif //OPENMW_TEXTINPUTDIALOG_HPP