| 70 | } |
| 71 | |
| 72 | void UiManager::Update(UiUpdateAction action) |
| 73 | { |
| 74 | for (auto it = m_widgets.begin(); it != m_widgets.end(); ++it) |
| 75 | { |
| 76 | IUiWindow *w = (*it); |
| 77 | |
| 78 | if (action == UI_UPDATE_ACTION_LANG){ |
| 79 | w->UpdateLanguage(); |
| 80 | } |
| 81 | else if (action == UI_UPDATE_ACTION_THEME){ |
| 82 | w->UpdateTheme(); |
| 83 | } |
| 84 | else if (action == UI_UPDATE_ACTION_FONT){ |
| 85 | w->UpdateFont(); |
| 86 | } |
| 87 | } |
| 88 | } |
no test coverage detected