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

Method notifyClickAdd

Tools/FontEditor/PropertyInt2ListControl.cpp:92–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 void PropertyInt2ListControl::notifyClickAdd(MyGUI::Widget* _sender)
93 {
94 mList->addItem(MyGUI::UString());
95 mList->beginToItemAt(mList->getItemCount() - 1);
96
97 mTextFieldControl->setCaption(replaceTags("CaptionAddResource"));
98 mTextFieldControl->setTextField(MyGUI::UString());
99
100 MyGUI::Widget* widget = mList->getWidgetByIndex(mList->getItemCount() - 1);
101 if (widget != nullptr)
102 mTextFieldControl->setCoord(MyGUI::IntCoord(
103 widget->getAbsoluteLeft(),
104 widget->getAbsoluteTop(),
105 widget->getWidth(),
106 widget->getHeight()));
107
108 mTextFieldControl->doModal();
109 }
110
111 void PropertyInt2ListControl::notifyClickDelete(MyGUI::Widget* _sender)
112 {

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