MCPcopy Create free account
hub / github.com/comaps/comaps / LoadSettings

Method LoadSettings

qt/routing_settings_dialog.cpp:194–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void 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
221void RoutingSettings::ShowModal()
222{

Callers

nothing calls this directly

Calls 3

TryGetFunction · 0.85
DefaultRouterIndexFunction · 0.85
setCheckedMethod · 0.65

Tested by

no test coverage detected