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

Method notifyEndDialog

Tools/LayoutEditor/PropertyFieldColour.cpp:153–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 }
152
153 void PropertyFieldColour::notifyEndDialog(Dialog* _sender, bool _result)
154 {
155 mColourPanel->endModal();
156
157 if (_result)
158 {
159 setColour(mColourPanel->getColour(), true);
160 }
161 else
162 {
163 if (mGoodData)
164 {
165 setColour(mPreviewColour, true);
166 }
167 else
168 {
169 std::string DEFAULT_VALUE = replaceTags("ColourDefault") + DEFAULT_STRING;
170 mField->setCaption(DEFAULT_VALUE);
171 updateColourPlace(false);
172 onAction(std::string_view{}, true);
173 }
174 }
175 }
176
177 void PropertyFieldColour::showColourDialog()
178 {

Callers

nothing calls this directly

Calls 4

replaceTagsFunction · 0.85
endModalMethod · 0.45
getColourMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected