MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / Update

Method Update

DSView/pv/ui/uimanager.cpp:72–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void 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}

Callers 3

switchLanguageMethod · 0.80
switchThemeMethod · 0.80
OnMessageMethod · 0.80

Calls 4

endMethod · 0.45
UpdateLanguageMethod · 0.45
UpdateThemeMethod · 0.45
UpdateFontMethod · 0.45

Tested by

no test coverage detected