| 192 | } |
| 193 | |
| 194 | void RoutingSettings::LoadSettings() |
| 195 | { |
| 196 | std::string startCoordsText; |
| 197 | settings::TryGet(kStartCoordsCachedSettings, startCoordsText); |
| 198 | m_startInput->setText(startCoordsText.c_str()); |
| 199 | |
| 200 | std::string finishCoordsText; |
| 201 | settings::TryGet(kFinishCoordsCachedSettings, finishCoordsText); |
| 202 | m_finishInput->setText(finishCoordsText.c_str()); |
| 203 | |
| 204 | int routerType = DefaultRouterIndex(); |
| 205 | settings::TryGet(kRouterTypeCachedSettings, routerType); |
| 206 | m_routerType->setCurrentIndex(routerType); |
| 207 | |
| 208 | bool showTurns = false; |
| 209 | settings::TryGet(kShowTurnsSettings, showTurns); |
| 210 | m_showTurnsCheckbox->setChecked(showTurns); |
| 211 | |
| 212 | bool useGuides = false; |
| 213 | settings::TryGet(kUseDebugGuideSettings, useGuides); |
| 214 | m_useDebugGuideCheckbox->setChecked(useGuides); |
| 215 | |
| 216 | bool saveSession = false; |
| 217 | settings::TryGet(kUseCachedRoutingSettings, saveSession); |
| 218 | m_saveSessionCheckbox->setChecked(saveSession); |
| 219 | } |
| 220 | |
| 221 | void RoutingSettings::ShowModal() |
| 222 | { |
nothing calls this directly
no test coverage detected