MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyChangeDataSelector

Method notifyChangeDataSelector

Tools/EditorFramework/PropertyPanelController.cpp:55–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 void PropertyPanelController::notifyChangeDataSelector(DataPtr _data, bool _changeOnlySelection)
56 {
57 if (mControl != nullptr)
58 {
59 DataPtr selected = _data != nullptr ? _data->getChildSelected() : nullptr;
60
61 // выделяем только данные с типом скопа
62 if (selected != nullptr)
63 {
64 if (selected->getType()->getName() != ScopeManager::getInstance().getCurrentScope() &&
65 selected->getType()->getFriend() != ScopeManager::getInstance().getCurrentScope())
66 selected = nullptr;
67 }
68
69 mControl->setCurrentData(selected);
70 }
71 }
72
73}

Callers

nothing calls this directly

Calls 3

getChildSelectedMethod · 0.80
setCurrentDataMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected