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

Method onFillValues

Tools/LayoutEditor/PropertyFieldType.cpp:20–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19
20 void PropertyFieldType::onFillValues()
21 {
22 WidgetStyle::VectorString values;
23
24 VectorWidgetType types = WidgetTypes::getInstance().getWidgetTypes();
25 for (auto& type : types)
26 {
27 bool exist = MyGUI::WidgetManager::getInstance().isFactoryExist(type->name);
28 if (exist && !type->internalType)
29 values.push_back(type->name);
30 }
31
32 mField->removeAllItems();
33 for (auto& value : values)
34 mField->addItem(value);
35 mField->beginToItemFirst();
36 }
37
38}

Callers

nothing calls this directly

Calls 6

getWidgetTypesMethod · 0.80
isFactoryExistMethod · 0.45
push_backMethod · 0.45
removeAllItemsMethod · 0.45
addItemMethod · 0.45
beginToItemFirstMethod · 0.45

Tested by

no test coverage detected