MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / enable_max_probes

Method enable_max_probes

DSView/pv/dialogs/deviceoptions.cpp:435–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void DeviceOptions::enable_max_probes() {
436 int cur_ch_num = 0;
437 for (auto box : _probes_checkBox_list) {
438 if (box->isChecked())
439 cur_ch_num++;
440 }
441
442 int vld_ch_num;
443
444 if (_device_agent->get_config_int16(SR_CONF_VLD_CH_NUM, vld_ch_num) == false)
445 return;
446
447 while(cur_ch_num < vld_ch_num && cur_ch_num < (int)_probes_checkBox_list.size()) {
448 auto box = _probes_checkBox_list[cur_ch_num];
449 if (box->isChecked() == false) {
450 box->setChecked(true);
451 cur_ch_num++;
452 }
453 }
454}
455
456void DeviceOptions::enable_all_probes()
457{

Callers

nothing calls this directly

Calls 2

get_config_int16Method · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected