| 42 | } |
| 43 | |
| 44 | void GenomeEditorWindow::initIntern(SimulationFacade simulationFacade) |
| 45 | { |
| 46 | _simulationFacade = simulationFacade; |
| 47 | |
| 48 | _tabDatas = {TabData()}; |
| 49 | |
| 50 | auto path = std::filesystem::current_path(); |
| 51 | if (path.has_parent_path()) { |
| 52 | path = path.parent_path(); |
| 53 | } |
| 54 | _startingPath = GlobalSettings::get().getValue("windows.genome editor.starting path", path.string()); |
| 55 | _previewHeight = GlobalSettings::get().getValue("windows.genome editor.preview height", scale(PreviewHeight)); |
| 56 | ChangeColorDialog::get().setup([&] { return getCurrentGenome(); }, [&](GenomeDescription const& genome) { setCurrentGenome(genome); }); |
| 57 | } |
| 58 | |
| 59 | void GenomeEditorWindow::shutdownIntern() |
| 60 | { |