MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / gotoView

Function gotoView

source/ui/mainui.cpp:154–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void gotoView(int viewId, BString tab, BString param1) {
155 if (!currentView || currentView->saveChanges()) {
156 if (currentView) {
157 delete currentView;
158 currentView = nullptr;
159 }
160 currentViewDeprecated = viewId;
161 if (viewId == VIEW_OPTIONS) {
162 currentView = new OptionsView(tab);
163 } else if (viewId == VIEW_INSTALL) {
164 currentView = new InstallView(param1, tab);
165 } else if (viewId == VIEW_CONTAINERS) {
166 currentView = new ContainersView(tab, param1);
167 } else if (viewId == VIEW_HELP) {
168 currentView = new HelpView(tab);
169 }
170 }
171}
172
173void createButton() {
174 appButtons.clear();

Callers 11

createButtonFunction · 0.85
loadAppsFunction · 0.85
uiLoopFunction · 0.85
uiShowFunction · 0.85
askToDownloadDefaultWineFunction · 0.85
installMethod · 0.85
ContainersViewMethod · 0.85
deleteContainerMethod · 0.85
onInstallMethod · 0.85
createThemeTabMethod · 0.85

Calls 1

saveChangesMethod · 0.45

Tested by

no test coverage detected