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

Method source_changed

DSView/pv/dock/dsotriggerdock.cpp:272–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void DsoTriggerDock::source_changed()
273{
274 if (check_trig_channel() == false){
275 _auto_radioButton->setChecked(true);
276 _ch1_radioButton->setChecked(false);
277 _ch0a1_radioButton->setChecked(false);
278 _ch0o1_radioButton->setChecked(false);
279
280 QString msg(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_DISABLED_CHANNEL_TRIG), "Disabled channels cannot be used for triggering!"));
281 MsgBox::Show(msg);
282 }
283
284 int id = _source_group->checkedId();
285 int ret;
286
287 dsv_info("Set DSO trig type:%d", id);
288
289 ret = _session->get_device()->set_config_byte(SR_CONF_TRIGGER_SOURCE, id);
290 if (!ret) {
291 QString strMsg(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_CHANGE_SOURCE_FAIL),
292 "Change trigger source failed!"));
293 MsgBox::Show(strMsg);
294 }
295}
296
297void DsoTriggerDock::check_setting()
298{

Callers

nothing calls this directly

Calls 3

ShowFunction · 0.85
set_config_byteMethod · 0.80
get_deviceMethod · 0.80

Tested by

no test coverage detected