MCPcopy Create free account
hub / github.com/chrxh/alien / processWorkspace

Method processWorkspace

source/Gui/BrowserWindow.cpp:347–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void 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
379void BrowserWindow::processWorkspaceSelectionAndFilter()
380{

Callers

nothing calls this directly

Calls 2

ImVec2Class · 0.85
scaleFunction · 0.85

Tested by

no test coverage detected