MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / onNextScan

Method onNextScan

Source/GUI/MemScanner/MemScanWidget.cpp:489–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489void MemScanWidget::onNextScan()
490{
491 Common::MemOperationReturnCode scannerReturn =
492 m_memScanner->nextScan(getSelectedFilter(), m_txbSearchTerm1->text().toStdString(),
493 m_txbSearchTerm2->text().toStdString());
494 if (scannerReturn != Common::MemOperationReturnCode::OK)
495 {
496 handleScannerErrors(scannerReturn);
497 }
498 else
499 {
500 const size_t resultsFound{m_memScanner->getResultCount()};
501 m_lblResultCount->setText(tr("%1 result(s) found", "", static_cast<int>(resultsFound))
502 .arg(QString::number(resultsFound)));
503 if (resultsFound <= m_showThreshold && resultsFound != 0)
504 {
505 m_btnAddAll->setEnabled(true);
506 m_btnAddSelection->setEnabled(true);
507 m_btnRemoveSelection->setEnabled(true);
508 }
509
510 m_btnUndoScan->setEnabled(m_memScanner->hasUndo());
511 }
512}
513
514void MemScanWidget::onUndoScan()
515{

Callers

nothing calls this directly

Calls 3

nextScanMethod · 0.80
hasUndoMethod · 0.80
getResultCountMethod · 0.45

Tested by

no test coverage detected