|
|
@ -20,7 +20,7 @@ namespace MWGui
|
|
|
|
okButton->eventMouseButtonClick += MyGUI::newDelegate(this, &TextInputDialog::onOkClicked);
|
|
|
|
okButton->eventMouseButtonClick += MyGUI::newDelegate(this, &TextInputDialog::onOkClicked);
|
|
|
|
|
|
|
|
|
|
|
|
// Make sure the edit box has focus
|
|
|
|
// Make sure the edit box has focus
|
|
|
|
MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit);
|
|
|
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TextInputDialog::setNextButtonShow(bool shown)
|
|
|
|
void TextInputDialog::setNextButtonShow(bool shown)
|
|
|
@ -43,7 +43,7 @@ namespace MWGui
|
|
|
|
{
|
|
|
|
{
|
|
|
|
WindowModal::open();
|
|
|
|
WindowModal::open();
|
|
|
|
// Make sure the edit box has focus
|
|
|
|
// Make sure the edit box has focus
|
|
|
|
MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit);
|
|
|
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// widget controls
|
|
|
|
// widget controls
|
|
|
@ -53,7 +53,7 @@ namespace MWGui
|
|
|
|
if (mTextEdit->getCaption() == "")
|
|
|
|
if (mTextEdit->getCaption() == "")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage37}");
|
|
|
|
MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage37}");
|
|
|
|
MyGUI::InputManager::getInstance ().setKeyFocusWidget (mTextEdit);
|
|
|
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget (mTextEdit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
eventDone(this);
|
|
|
|
eventDone(this);
|
|
|
@ -64,7 +64,7 @@ namespace MWGui
|
|
|
|
if (mTextEdit->getCaption() == "")
|
|
|
|
if (mTextEdit->getCaption() == "")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage37}");
|
|
|
|
MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage37}");
|
|
|
|
MyGUI::InputManager::getInstance ().setKeyFocusWidget (mTextEdit);
|
|
|
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget (mTextEdit);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
eventDone(this);
|
|
|
|
eventDone(this);
|
|
|
|