|
|
|
@ -47,10 +47,22 @@ void TextInputDialog::open()
|
|
|
|
|
|
|
|
|
|
void TextInputDialog::onOkClicked(MyGUI::Widget* _sender)
|
|
|
|
|
{
|
|
|
|
|
eventDone(this);
|
|
|
|
|
if (mTextEdit->getCaption() == "")
|
|
|
|
|
{
|
|
|
|
|
mWindowManager.messageBox ("#{sNotifyMessage37}", std::vector<std::string>());
|
|
|
|
|
MyGUI::InputManager::getInstance ().setKeyFocusWidget (mTextEdit);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
eventDone(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TextInputDialog::onTextAccepted(MyGUI::Edit* _sender)
|
|
|
|
|
{
|
|
|
|
|
eventDone(this);
|
|
|
|
|
if (mTextEdit->getCaption() == "")
|
|
|
|
|
{
|
|
|
|
|
mWindowManager.messageBox ("#{sNotifyMessage37}", std::vector<std::string>());
|
|
|
|
|
MyGUI::InputManager::getInstance ().setKeyFocusWidget (mTextEdit);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
eventDone(this);
|
|
|
|
|
}
|
|
|
|
|