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

Method notifyApplyProperties

Tools/LayoutEditor/PropertyFieldEditBox.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 void PropertyFieldEditBox::notifyApplyProperties(MyGUI::Widget* _sender, bool _force)
38 {
39 std::string DEFAULT_VALUE = replaceTags("ColourDefault") + DEFAULT_STRING;
40
41 std::string value = mField->getOnlyText();
42 if (value == DEFAULT_STRING && mField->getCaption() == DEFAULT_VALUE)
43 value.clear();
44
45 bool goodData = onCheckValue();
46
47 if (goodData || _force)
48 {
49 onAction(value, true);
50 }
51 }
52
53 void PropertyFieldEditBox::onAction(std::string_view _value, bool _final)
54 {

Callers

nothing calls this directly

Calls 3

replaceTagsFunction · 0.85
getOnlyTextMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected