| 278 | |
| 279 | |
| 280 | void ByteView::refreshLines() |
| 281 | { |
| 282 | uint64_t addr = m_topAddr; |
| 283 | m_lines.clear(); |
| 284 | m_topLine = 0; |
| 285 | m_bottomAddr = m_topAddr; |
| 286 | updateRanges(); |
| 287 | if (m_allocatedLength > 0x7fffffff) |
| 288 | m_scrollBarMultiplier = (m_allocatedLength / 0x7fffffff) + 1; |
| 289 | else |
| 290 | m_scrollBarMultiplier = 1; |
| 291 | m_updatingScrollBar = true; |
| 292 | verticalScrollBar()->setRange(0, (int)((m_allocatedLength - 1) / m_scrollBarMultiplier)); |
| 293 | verticalScrollBar()->setValue((int)(getContiguousOffsetForAddress(addr) / m_scrollBarMultiplier)); |
| 294 | m_updatingScrollBar = false; |
| 295 | updateCache(); |
| 296 | viewport()->update(); |
| 297 | UIContext::updateStatus(); |
| 298 | } |
| 299 | |
| 300 | |
| 301 | void ByteView::refreshAtCurrentLocation() |