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

Method apply_sample_count

DSView/pv/toolbars/samplingbar.cpp:678–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676 }
677
678 void SamplingBar::apply_sample_count(double &hori_res)
679 {
680 hori_res = -1;
681
682 if (_device_agent->get_work_mode() == DSO){
683 hori_res = commit_hori_res();
684
685 if (_session->have_view_data() == false){
686 _session->apply_samplerate();
687 }
688 }
689
690 _session->broadcast_msg(DSV_MSG_DEVICE_DURATION_UPDATED);
691 }
692
693 void SamplingBar::on_samplecount_sel(int index)
694 {

Callers

nothing calls this directly

Calls 4

get_work_modeMethod · 0.80
have_view_dataMethod · 0.80
apply_samplerateMethod · 0.80
broadcast_msgMethod · 0.80

Tested by

no test coverage detected