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

Method notifyClickAdd

Tools/SkinEditor/SettingsResourcesControl.cpp:62–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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