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

Method updateProperty

Tools/SkinEditor/PropertyAlignControl.cpp:64–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 void PropertyAlignControl::updateProperty()
65 {
66 PropertyPtr proper = getProperty();
67 if (proper != nullptr)
68 {
69 mComboBox->setEnabled(!proper->getType()->getReadOnly());
70 size_t index = getComboIndex(proper->getValue());
71 mComboBox->setIndexSelected(index);
72 }
73 else
74 {
75 mComboBox->setIndexSelected(MyGUI::ITEM_NONE);
76 mComboBox->setEnabled(false);
77 }
78 }
79
80 void PropertyAlignControl::notifyComboChangePosition(MyGUI::ComboBox* _sender, size_t _index)
81 {

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