save file
| 594 | |
| 595 | // save file |
| 596 | void MainWindow::on_save() |
| 597 | { |
| 598 | using pv::dialogs::StoreProgress; |
| 599 | |
| 600 | if (_device_agent->have_instance() == false) |
| 601 | { |
| 602 | dsv_info("Have no device, can't to save data."); |
| 603 | return; |
| 604 | } |
| 605 | |
| 606 | if (_session->is_working()){ |
| 607 | dsv_info("Save data: stop the current device."); |
| 608 | _session->stop_capture(); |
| 609 | } |
| 610 | |
| 611 | _session->set_saving(true); |
| 612 | |
| 613 | StoreProgress *dlg = new StoreProgress(_session, this); |
| 614 | dlg->SetView(_view); |
| 615 | dlg->save_run(this); |
| 616 | } |
| 617 | |
| 618 | void MainWindow::on_export() |
| 619 | { |
nothing calls this directly
no test coverage detected