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

Method shutdownIntern

source/Gui/StatisticsWindow.cpp:68–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void StatisticsWindow::shutdownIntern()
69{
70 GlobalSettings::get().setValue("windows.statistics.starting path", _startingPath);
71 GlobalSettings::get().setValue("windows.statistics.settings.open", _settingsOpen);
72 GlobalSettings::get().setValue("windows.statistics.settings.height", _settingsHeight);
73 GlobalSettings::get().setValue("windows.statistics.plot height", _plotHeight);
74 GlobalSettings::get().setValue("windows.statistics.mode", _plotMode);
75 GlobalSettings::get().setValue("windows.statistics.live horizon", _timeHorizonForLiveStatistics);
76 GlobalSettings::get().setValue("windows.statistics.long term horizon", _timeHorizonForLongtermStatistics);
77 GlobalSettings::get().setValue("windows.statistics.plot type", _plotType);
78 GlobalSettings::get().setValue("windows.statistics.plot scale", _plotScale);
79
80 std::vector<std::string> collapsedPlotIndexStrings;
81 for (auto const& index : _collapsedPlotIndices) {
82 collapsedPlotIndexStrings.emplace_back(std::to_string(index));
83 }
84 GlobalSettings::get().setValue("windows.statistics.collapsed plot indices", boost::join(collapsedPlotIndexStrings, " "));
85}
86
87void StatisticsWindow::processIntern()
88{

Callers

nothing calls this directly

Calls 2

to_stringFunction · 0.85
setValueMethod · 0.80

Tested by

no test coverage detected