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

Method analog_channel_check

DSView/pv/dialogs/deviceoptions.cpp:557–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557void DeviceOptions::analog_channel_check()
558{
559 QCheckBox* sc=dynamic_cast<QCheckBox*>(sender());
560 if(sc != NULL)
561 {
562 for (const GSList *l = _device_agent->get_channels(); l; l = l->next) {
563 sr_channel *const probe = (sr_channel*)l->data;
564
565 if (sc->property("index").toInt() == probe->index){
566 _device_agent->set_config_bool(SR_CONF_PROBE_MAP_DEFAULT, sc->isChecked(), probe);
567 }
568 }
569 }
570
571 _lst_probe_enabled_status.clear();
572 for (auto ck : _probes_checkBox_list){
573 _lst_probe_enabled_status.push_back(ck->isChecked());
574 }
575
576 build_dynamic_panel();
577 try_resize_scroll();
578}
579
580void DeviceOptions::on_analog_channel_enable()
581{

Callers

nothing calls this directly

Calls 3

get_channelsMethod · 0.80
set_config_boolMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected