| 286 | } |
| 287 | |
| 288 | void GenomeEditorWindow::processTab(TabData& tab) |
| 289 | { |
| 290 | _previewHeight = std::min(ImGui::GetContentRegionAvail().y - 10.0f, std::max(10.0f, _previewHeight)); |
| 291 | if (ImGui::BeginChild("##", ImVec2(0, ImGui::GetContentRegionAvail().y - _previewHeight), true)) { |
| 292 | AlienImGui::Group("General properties"); |
| 293 | processGenomeHeader(tab); |
| 294 | |
| 295 | AlienImGui::Group("Construction sequence"); |
| 296 | processConstructionSequence(tab); |
| 297 | } |
| 298 | ImGui::EndChild(); |
| 299 | |
| 300 | AlienImGui::MovableSeparator(AlienImGui::MovableSeparatorParameters().additive(false), _previewHeight); |
| 301 | |
| 302 | AlienImGui::Group("Preview (reference configuration)", Const::GenomePreviewTooltip); |
| 303 | ImGui::SameLine(); |
| 304 | if (ImGui::BeginChild("##child4", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar)) { |
| 305 | showPreview(tab); |
| 306 | } |
| 307 | ImGui::EndChild(); |
| 308 | } |
| 309 | |
| 310 | void GenomeEditorWindow::processGenomeHeader(TabData& tab) |
| 311 | { |
nothing calls this directly
no test coverage detected