Send an event with the progress of the laser
| 472 | |
| 473 | // Send an event with the progress of the laser |
| 474 | void ScanThread::SendScanProgress(int laserPos) |
| 475 | { |
| 476 | // compute percentage done |
| 477 | int progress = int( 100.0 * float(laserPos - laserMaxLeft)/(float(laserMaxRight - laserMaxLeft)) + 0.5); |
| 478 | |
| 479 | wxCommandEvent event2(SCAN_PROGRESS_EVENT, GetId()); |
| 480 | event2.SetInt(progress); |
| 481 | window->GetEventHandler()->AddPendingEvent(event2); |
| 482 | } |
| 483 | |
| 484 | // Send a scan finished event |
| 485 | void ScanThread::SendScanFinishedEvent() |
nothing calls this directly
no outgoing calls
no test coverage detected