| 152 | } |
| 153 | |
| 154 | void 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 | |
| 173 | void createButton() { |
| 174 | appButtons.clear(); |
no test coverage detected