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

Method notifyClickAdd

Tools/LayoutEditor/SettingsUpdateResourcesControl.cpp:67–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void SettingsUpdateResourcesControl::notifyClickAdd(MyGUI::Widget* _sender)
68 {
69 mResources->addItem(MyGUI::UString());
70 mResources->beginToItemAt(mResources->getItemCount() - 1);
71
72 mTextFieldControl->setCaption(replaceTags("CaptionAddResource"));
73 mTextFieldControl->setTextField(MyGUI::UString());
74
75 MyGUI::Widget* widget = mResources->getWidgetByIndex(mResources->getItemCount() - 1);
76 if (widget != nullptr)
77 mTextFieldControl->setCoord(MyGUI::IntCoord(
78 widget->getAbsoluteLeft(),
79 widget->getAbsoluteTop(),
80 widget->getWidth(),
81 widget->getHeight()));
82
83 mTextFieldControl->doModal();
84 }
85
86 void SettingsUpdateResourcesControl::notifyClickDelete(MyGUI::Widget* _sender)
87 {

Callers

nothing calls this directly

Calls 13

UStringFunction · 0.85
replaceTagsFunction · 0.85
setTextFieldMethod · 0.80
IntCoordFunction · 0.50
addItemMethod · 0.45
beginToItemAtMethod · 0.45
getItemCountMethod · 0.45
setCaptionMethod · 0.45
getWidgetByIndexMethod · 0.45
setCoordMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected