| 211 | } |
| 212 | |
| 213 | void Screenshoter::ProcessNextRect() |
| 214 | { |
| 215 | if (m_rectsToProcess.empty()) |
| 216 | { |
| 217 | ChangeState(State::Done); |
| 218 | return; |
| 219 | } |
| 220 | |
| 221 | std::string const postfix = "_" + languages::GetCurrentNorm(); |
| 222 | std::stringstream ss; |
| 223 | ss << "rect_" << std::setfill('0') << std::setw(4) << m_itemsCount - m_rectsToProcess.size() << postfix; |
| 224 | |
| 225 | m_nextScreenshotName = ss.str(); |
| 226 | |
| 227 | auto const rect = m_rectsToProcess.front(); |
| 228 | m_rectsToProcess.pop_front(); |
| 229 | |
| 230 | CHECK(rect.IsValid(), ()); |
| 231 | |
| 232 | ChangeState(State::WaitPosition); |
| 233 | m_framework.ShowRect(rect, -1 /* maxScale */, false /* animation */, false /* useVisibleViewport */); |
| 234 | WaitPosition(); |
| 235 | } |
| 236 | |
| 237 | void Screenshoter::ProcessNextPoint() |
| 238 | { |