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

Method adv_trigger

DSView/pv/dock/triggerdock.cpp:197–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void TriggerDock::adv_trigger()
198{
199 if (_session->get_device()->is_hardware_logic()) {
200 bool stream = false;
201 _session->get_device()->get_config_bool(SR_CONF_STREAM, stream);
202
203 if (stream) {
204 QString strMsg(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_STREAM_NO_AD_TRIGGER),
205 "Stream Mode Don't Support Advanced Trigger!"));
206 MsgBox::Show(strMsg);
207 _simple_radioButton->setChecked(true);
208 }
209 else {
210 widget_enable(0);
211 }
212 }
213 else if (_session->get_device()->is_file() == false){
214 QString strMsg(L_S(STR_PAGE_MSG, S_ID(IDS_MSG_AD_TRIGGER_NEED_HARDWARE),
215 "Advanced Trigger need DSLogic Hardware Support!"));
216 MsgBox::Show(strMsg);
217 _simple_radioButton->setChecked(true);
218 }
219}
220
221void TriggerDock::widget_enable(int index)
222{

Callers

nothing calls this directly

Calls 5

ShowFunction · 0.85
is_hardware_logicMethod · 0.80
get_deviceMethod · 0.80
get_config_boolMethod · 0.80
is_fileMethod · 0.45

Tested by

no test coverage detected