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

Method notifyAction

Tools/LayoutEditor/PanelProperties.cpp:112–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 void PanelProperties::notifyAction(std::string_view _name, std::string_view _value, bool _final)
113 {
114 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(mCurrentWidget);
115
116 EditorWidgets::getInstance().tryToApplyProperty(widgetContainer->getWidget(), _name, _value);
117
118 if (_final)
119 {
120 if (_value.empty())
121 widgetContainer->clearProperty(_name);
122 else
123 widgetContainer->setProperty(_name, _value);
124
125 UndoManager::getInstance().addValue(PR_PROPERTIES);
126 }
127 }
128
129 void PanelProperties::hidePropertyFields()
130 {

Callers

nothing calls this directly

Calls 7

tryToApplyPropertyMethod · 0.80
getWidgetMethod · 0.80
clearPropertyMethod · 0.80
addValueMethod · 0.80
findMethod · 0.45
emptyMethod · 0.45
setPropertyMethod · 0.45

Tested by

no test coverage detected