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

Method initIntern

source/Gui/GenomeEditorWindow.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void 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
59void GenomeEditorWindow::shutdownIntern()
60{

Callers

nothing calls this directly

Calls 4

TabDataClass · 0.85
scaleFunction · 0.85
getValueMethod · 0.80
setupMethod · 0.45

Tested by

no test coverage detected