| 270 | } |
| 271 | |
| 272 | void 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 | |
| 297 | void DsoTriggerDock::check_setting() |
| 298 | { |
nothing calls this directly
no test coverage detected