1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 03:54:40 +00:00

Bug 752, cleanup

This commit is contained in:
riothamus 2013-05-16 13:51:54 -04:00
parent db981a72fe
commit 36f1197b51
2 changed files with 4 additions and 6 deletions

View File

@ -18,8 +18,8 @@ namespace MWGui
mOkButton->eventMouseButtonClick += MyGUI::newDelegate(this, &CountDialog::onOkButtonClicked);
mItemEdit->eventEditTextChange += MyGUI::newDelegate(this, &CountDialog::onEditTextChange);
mSlider->eventScrollChangePosition += MyGUI::newDelegate(this, &CountDialog::onSliderMoved);
// make sure we read the enter key being pressed to accept multiple items
mItemEdit->eventEditSelectAccept += MyGUI::newDelegate(this, &CountDialog::onEnterKeyPressed);
// make sure we read the enter key being pressed to accept multiple items
mItemEdit->eventEditSelectAccept += MyGUI::newDelegate(this, &CountDialog::onEnterKeyPressed);
}
void CountDialog::open(const std::string& item, const std::string& message, const int maxCount)
@ -64,9 +64,7 @@ namespace MWGui
{
eventOkClicked(NULL, mSlider->getScrollPosition()+1);
setVisible(false);
eventDone(this);
setVisible(false);
}
void CountDialog::onEditTextChange(MyGUI::EditBox* _sender)

View File

@ -30,7 +30,7 @@ namespace MWGui
void onOkButtonClicked(MyGUI::Widget* _sender);
void onEditTextChange(MyGUI::EditBox* _sender);
void onSliderMoved(MyGUI::ScrollBar* _sender, size_t _position);
void onEnterKeyPressed(MyGUI::EditBox* _sender);
void onEnterKeyPressed(MyGUI::EditBox* _sender);
};
}