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

Method update_view_status

DSView/pv/toolbars/trigbar.cpp:333–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331 }
332
333 void TrigBar::update_view_status()
334 {
335 bool bEnable = _session->is_working() == false;
336
337 _trig_button.setEnabled(bEnable);
338 _protocol_button.setEnabled(bEnable);
339 _measure_button.setEnabled(bEnable);
340 _search_button.setEnabled(bEnable);
341 _function_button.setEnabled(bEnable);
342 _setting_button.setEnabled(bEnable);
343
344 if (_session->is_working() && _session->get_device()->get_work_mode() == DSO){
345 if (_session->is_instant() == false){
346 _trig_button.setEnabled(true);
347 _measure_button.setEnabled(true);
348 _function_button.setEnabled(true);
349 _setting_button.setEnabled(true);
350 }
351 }
352 }
353
354void TrigBar::update_checked_status()
355{

Callers 2

OnMessageMethod · 0.45

Calls 4

is_workingMethod · 0.80
get_work_modeMethod · 0.80
get_deviceMethod · 0.80
is_instantMethod · 0.80

Tested by

no test coverage detected