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

Method notifyActionLayer

Tools/LayoutEditor/PanelMainProperties.cpp:168–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167
168 void PanelMainProperties::notifyActionLayer(std::string_view /*_type*/, std::string_view _value, bool _final)
169 {
170 if (_final)
171 {
172 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(mCurrentWidget);
173 widgetContainer->setLayerName(_value);
174
175 UndoManager::getInstance().addValue(PR_PROPERTIES);
176 }
177 }
178
179 void PanelMainProperties::notifyActionName(std::string_view /*_type*/, std::string_view _value, bool _final)
180 {

Callers

nothing calls this directly

Calls 3

addValueMethod · 0.80
findMethod · 0.45
setLayerNameMethod · 0.45

Tested by

no test coverage detected