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

Method notifyNewGridStep

Tools/ImageEditor/SettingsGeneralControl.cpp:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void SettingsGeneralControl::notifyNewGridStep(MyGUI::Widget* _sender, MyGUI::Widget* _new)
55 {
56 mGridStep = MyGUI::utility::parseInt(mGridEdit->getOnlyText());
57 mGridStep = (std::max)(1, mGridStep);
58 mGridEdit->setCaption(MyGUI::utility::toString(mGridStep));
59 }
60
61 void SettingsGeneralControl::notifyNewGridStepAccept(MyGUI::EditBox* _sender)
62 {

Callers

nothing calls this directly

Calls 4

parseIntFunction · 0.85
toStringFunction · 0.85
getOnlyTextMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected