MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / on_save

Method on_save

DSView/pv/mainwindow.cpp:596–616  ·  view source on GitHub ↗

save file

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 6

have_instanceMethod · 0.80
is_workingMethod · 0.80
stop_captureMethod · 0.80
set_savingMethod · 0.80
SetViewMethod · 0.80
save_runMethod · 0.80

Tested by

no test coverage detected