| 235 | } |
| 236 | |
| 237 | void Screenshoter::ProcessNextPoint() |
| 238 | { |
| 239 | if (m_pointsToProcess.empty()) |
| 240 | { |
| 241 | ChangeState(State::Done); |
| 242 | return; |
| 243 | } |
| 244 | |
| 245 | std::string const postfix = "_" + languages::GetCurrentNorm(); |
| 246 | std::stringstream ss; |
| 247 | ss << "point_" << std::setfill('0') << std::setw(4) << m_itemsCount - m_pointsToProcess.size() << postfix; |
| 248 | |
| 249 | m_nextScreenshotName = ss.str(); |
| 250 | |
| 251 | auto const pointZoom = m_pointsToProcess.front(); |
| 252 | m_pointsToProcess.pop_front(); |
| 253 | |
| 254 | ChangeState(State::WaitPosition); |
| 255 | m_framework.SetViewportCenter(pointZoom.first, pointZoom.second, false /* animation */); |
| 256 | WaitPosition(); |
| 257 | } |
| 258 | |
| 259 | void Screenshoter::PrepareCountries() |
| 260 | { |
nothing calls this directly
no test coverage detected