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

Method command_ProjectRenameItem

Tools/LayoutEditor/ProjectControl.cpp:196–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 }
195
196 void ProjectControl::command_ProjectRenameItem(const MyGUI::UString& _commandName, bool& _result)
197 {
198 if (!checkCommand())
199 return;
200
201 size_t index = mList->getIndexSelected();
202 if (index == MyGUI::ITEM_NONE)
203 return;
204
205 mTextFieldControl->setCaption(replaceTags("CaptionRenameLayout"));
206 mTextFieldControl->setTextField(MyGUI::TextIterator::getOnlyText(mList->getItemNameAt(index)));
207 mTextFieldControl->doModal();
208
209 _result = true;
210 }
211
212 void ProjectControl::command_ProjectAddItem(const MyGUI::UString& _commandName, bool& _result)
213 {

Callers

nothing calls this directly

Calls 5

replaceTagsFunction · 0.85
setTextFieldMethod · 0.80
getIndexSelectedMethod · 0.45
setCaptionMethod · 0.45
doModalMethod · 0.45

Tested by

no test coverage detected