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

Method notifyChangeScope

Tools/EditorFramework/PropertyPanelController.cpp:34–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 void PropertyPanelController::notifyChangeScope(std::string_view _scope)
35 {
36 if (mParentType != nullptr)
37 {
38 DataSelectorManager::getInstance().getEvent(mParentType->getName())->disconnect(this);
39 mParentType = nullptr;
40 }
41
42 mParentType = DataTypeManager::getInstance().getParentType(_scope);
43
44 if (mParentType != nullptr)
45 {
46 DataSelectorManager::getInstance()
47 .getEvent(mParentType->getName())
48 ->connect(this, &PropertyPanelController::notifyChangeDataSelector);
49
50 DataPtr parentData = DataUtility::getSelectedDataByType(mParentType->getName());
51 notifyChangeDataSelector(parentData, false);
52 }
53 }
54
55 void PropertyPanelController::notifyChangeDataSelector(DataPtr _data, bool _changeOnlySelection)
56 {

Callers

nothing calls this directly

Calls 4

getParentTypeMethod · 0.80
disconnectMethod · 0.45
getEventMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected