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

Method notifyApplyProperties

Tools/LayoutEditor/PropertyFieldColour.cpp:53–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 void PropertyFieldColour::notifyApplyProperties(MyGUI::Widget* _sender, bool _force)
54 {
55 bool goodData = onCheckValue();
56
57 if (goodData || _force)
58 {
59 std::string DEFAULT_VALUE = replaceTags("ColourDefault") + DEFAULT_STRING;
60
61 std::string value = mField->getOnlyText();
62 if (value == DEFAULT_STRING && mField->getCaption() == DEFAULT_VALUE)
63 value.clear();
64
65 onAction(value, true);
66 }
67 }
68
69 void PropertyFieldColour::onAction(std::string_view _value, bool _final)
70 {

Callers

nothing calls this directly

Calls 3

replaceTagsFunction · 0.85
getOnlyTextMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected