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

Method notifyEndDialog

Tools/SkinEditor/SettingsResourcesControl.cpp:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void SettingsResourcesControl::notifyEndDialog(Dialog* _sender, bool _result)
89 {
90 mTextFieldControl->endModal();
91
92 if (_result)
93 {
94 if (!mTextFieldControl->getTextField().empty())
95 {
96 mResources->setItemNameAt(mResources->getItemCount() - 1, mTextFieldControl->getTextField());
97 return;
98 }
99 }
100
101 mResources->removeItemAt(mResources->getItemCount() - 1);
102 }
103
104 void SettingsResourcesControl::OnCommand(std::string_view _command)
105 {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected