| 66 | } |
| 67 | |
| 68 | void 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 | |
| 87 | void StatisticsWindow::processIntern() |
| 88 | { |