| 74 | } |
| 75 | |
| 76 | void MainMenuControl::command_UpdateAppCaption(const MyGUI::UString& _commandName, bool& _result) |
| 77 | { |
| 78 | if (mScaleMenu != nullptr) |
| 79 | { |
| 80 | MyGUI::MenuControl* menu = mScaleMenu->getItemChild(); |
| 81 | if (menu != nullptr) |
| 82 | { |
| 83 | int value = MyGUI::utility::parseValue<int>(replaceTags("CurrentScale")); |
| 84 | std::string id = MyGUI::utility::toString("Command_ChangeScale", ".", value); |
| 85 | for (size_t index = 0; index < menu->getItemCount(); index++) |
| 86 | { |
| 87 | MyGUI::MenuItem* item = menu->getItemAt(index); |
| 88 | item->setItemChecked(item->getItemId() == id); |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | } |
nothing calls this directly
no test coverage detected