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

Method notifyEndDialog

Tools/FontEditor/PropertyInt2ListControl.cpp:121–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 void PropertyInt2ListControl::notifyEndDialog(Dialog* _sender, bool _result)
122 {
123 mTextFieldControl->endModal();
124
125 if (_result)
126 {
127 if (!mTextFieldControl->getTextField().empty())
128 {
129 mList->setItemNameAt(mList->getItemCount() - 1, mTextFieldControl->getTextField());
130 executeAction(getValue());
131 return;
132 }
133 }
134
135 mList->removeItemAt(mList->getItemCount() - 1);
136 }
137
138}

Callers

nothing calls this directly

Calls 7

getTextFieldMethod · 0.80
getValueFunction · 0.50
endModalMethod · 0.45
emptyMethod · 0.45
setItemNameAtMethod · 0.45
getItemCountMethod · 0.45
removeItemAtMethod · 0.45

Tested by

no test coverage detected