| 50 | } |
| 51 | |
| 52 | void PanelUserData::update(MyGUI::Widget* _currentWidget) |
| 53 | { |
| 54 | mCurrentWidget = _currentWidget; |
| 55 | if (mCurrentWidget == nullptr) |
| 56 | return; |
| 57 | |
| 58 | mMultilist->removeAllItems(); |
| 59 | |
| 60 | WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(_currentWidget); |
| 61 | WidgetContainer::UserDataEnumerator userData = widgetContainer->getUserDataEnumerator(); |
| 62 | while (userData.next()) |
| 63 | { |
| 64 | if (checkUserData(widgetContainer, userData.current().first)) |
| 65 | { |
| 66 | mMultilist->addItem(userData.current().first); |
| 67 | mMultilist->setSubItemNameAt( |
| 68 | 1, |
| 69 | mMultilist->getItemCount() - 1, |
| 70 | MyGUI::TextIterator::toTagsString(userData.current().second)); |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | void PanelUserData::notifyChangeWidth(int _width) |
| 76 | { |
nothing calls this directly
no test coverage detected