| 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 | { |
nothing calls this directly
no test coverage detected