MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / addItem

Method addItem

forms/listbox.cpp:275–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void ListBox::addItem(sp<Control> Item)
276{
277 Item->setParent(shared_from_this());
278 Item->ToolTipFont = this->ToolTipFont;
279 resolveLocation();
280 if (selected == nullptr && AutoSelect)
281 {
282 selected = Item;
283 }
284 this->setDirty();
285}
286
287void ListBox::replaceItem(sp<Control> Item)
288{

Callers 15

updateLocationMethod · 0.45
addAgentsToListMethod · 0.45
addVehiclesToListMethod · 0.45
MapSelectorMethod · 0.45
loadListMethod · 0.45
MessageLogScreenMethod · 0.45
OptionsMenuMethod · 0.45
beginMethod · 0.45
RecruitScreenMethod · 0.45
setDisplayTypeMethod · 0.45
populateUILabListMethod · 0.45

Calls 2

setParentMethod · 0.80
setDirtyMethod · 0.80

Tested by

no test coverage detected