| 345 | } |
| 346 | |
| 347 | void BrowserWindow::processWorkspace() |
| 348 | { |
| 349 | auto sizeAvailable = ImGui::GetContentRegionAvail(); |
| 350 | if (ImGui::BeginChild( |
| 351 | "##1", |
| 352 | ImVec2(sizeAvailable.x - scale(_userTableWidth), sizeAvailable.y - scale(BrowserBottomSpace)), |
| 353 | false, |
| 354 | ImGuiWindowFlags_HorizontalScrollbar)) { |
| 355 | if (ImGui::BeginTabBar("##Type", ImGuiTabBarFlags_FittingPolicyResizeDown)) { |
| 356 | if (ImGui::BeginTabItem("Simulations", nullptr, ImGuiTabItemFlags_None)) { |
| 357 | if (_currentWorkspace.resourceType != NetworkResourceType_Simulation) { |
| 358 | _currentWorkspace.resourceType = NetworkResourceType_Simulation; |
| 359 | _selectedTreeTO = nullptr; |
| 360 | } |
| 361 | processSimulationList(); |
| 362 | ImGui::EndTabItem(); |
| 363 | } |
| 364 | if (ImGui::BeginTabItem("Genomes", nullptr, ImGuiTabItemFlags_None)) { |
| 365 | if (_currentWorkspace.resourceType != NetworkResourceType_Genome) { |
| 366 | _currentWorkspace.resourceType = NetworkResourceType_Genome; |
| 367 | _selectedTreeTO = nullptr; |
| 368 | } |
| 369 | processGenomeList(); |
| 370 | ImGui::EndTabItem(); |
| 371 | } |
| 372 | ImGui::EndTabBar(); |
| 373 | } |
| 374 | processWorkspaceSelectionAndFilter(); |
| 375 | } |
| 376 | ImGui::EndChild(); |
| 377 | } |
| 378 | |
| 379 | void BrowserWindow::processWorkspaceSelectionAndFilter() |
| 380 | { |