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

Method updateProperty

Tools/SkinEditor/PropertyRegionTextTypeControl.cpp:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void PropertyRegionTextTypeControl::updateProperty()
49 {
50 PropertyPtr proper = getProperty();
51 if (proper != nullptr)
52 {
53 mComboBox->setEnabled(!proper->getType()->getReadOnly());
54 size_t index = getComboIndex(proper->getValue());
55 mComboBox->setIndexSelected(index);
56 }
57 else
58 {
59 mComboBox->setIndexSelected(MyGUI::ITEM_NONE);
60 mComboBox->setEnabled(false);
61 }
62 }
63
64 void PropertyRegionTextTypeControl::notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index)
65 {

Callers

nothing calls this directly

Calls 5

getReadOnlyMethod · 0.80
setEnabledMethod · 0.45
getTypeMethod · 0.45
getValueMethod · 0.45
setIndexSelectedMethod · 0.45

Tested by

no test coverage detected