| 47 | } |
| 48 | |
| 49 | void PanelControllers::update(MyGUI::Widget* _currentWidget) |
| 50 | { |
| 51 | destroyPropertyFields(); |
| 52 | |
| 53 | mCurrentWidget = _currentWidget; |
| 54 | if (mCurrentWidget == nullptr) |
| 55 | return; |
| 56 | |
| 57 | WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(_currentWidget); |
| 58 | |
| 59 | mList->removeAllItems(); |
| 60 | for (auto& iter : widgetContainer->mController) |
| 61 | { |
| 62 | mList->addItem(iter->mType, iter); |
| 63 | } |
| 64 | |
| 65 | mPanelCell->setClientHeight(mButtonDelete->getCoord().bottom()); |
| 66 | } |
| 67 | |
| 68 | void PanelControllers::notifyChangeWidth(int _width) |
| 69 | { |
nothing calls this directly
no test coverage detected