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

Method pos_changed

DSView/pv/dock/dsotriggerdock.cpp:217–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void DsoTriggerDock::pos_changed(int pos)
218{
219 int ret;
220 ret = _session->get_device()->set_config_byte(
221 SR_CONF_HORIZ_TRIGGERPOS,pos);
222 if (!ret) {
223 if (_session->get_device()->is_hardware() || true){
224 QString strMsg(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_CHANGE_HOR_TRI_POS_FAIL),
225 "Change horiz trigger position failed!"));
226
227 MsgBox::Show(strMsg);
228 }
229
230 return;
231 }
232 set_trig_pos(pos);
233}
234
235void DsoTriggerDock::hold_changed(int hold)
236{

Callers

nothing calls this directly

Calls 4

ShowFunction · 0.85
set_config_byteMethod · 0.80
get_deviceMethod · 0.80
is_hardwareMethod · 0.80

Tested by

no test coverage detected