| 90 | } |
| 91 | |
| 92 | void PropertyInt2ListControl::notifyClickAdd(MyGUI::Widget* _sender) |
| 93 | { |
| 94 | mList->addItem(MyGUI::UString()); |
| 95 | mList->beginToItemAt(mList->getItemCount() - 1); |
| 96 | |
| 97 | mTextFieldControl->setCaption(replaceTags("CaptionAddResource")); |
| 98 | mTextFieldControl->setTextField(MyGUI::UString()); |
| 99 | |
| 100 | MyGUI::Widget* widget = mList->getWidgetByIndex(mList->getItemCount() - 1); |
| 101 | if (widget != nullptr) |
| 102 | mTextFieldControl->setCoord(MyGUI::IntCoord( |
| 103 | widget->getAbsoluteLeft(), |
| 104 | widget->getAbsoluteTop(), |
| 105 | widget->getWidth(), |
| 106 | widget->getHeight())); |
| 107 | |
| 108 | mTextFieldControl->doModal(); |
| 109 | } |
| 110 | |
| 111 | void PropertyInt2ListControl::notifyClickDelete(MyGUI::Widget* _sender) |
| 112 | { |
nothing calls this directly
no test coverage detected