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

Method on_trigger_timer

DSView/pv/view/viewport.cpp:2047–2068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2045}
2046
2047void Viewport::on_trigger_timer()
2048{
2049 _timer_cnt++;
2050
2051 if (!_is_checked_trig)
2052 {
2053 if (_view.session().get_device()->get_work_mode() == LOGIC
2054 && _view.session().get_device()->is_file() == false)
2055 {
2056 if (_view.session().is_triged()){
2057 _is_checked_trig = true;
2058 _view.get_viewstatus()->set_trig_time(_view.session().get_trig_time());
2059 _view.get_viewstatus()->update();
2060 }
2061 }
2062 else{
2063 _is_checked_trig = true;
2064 }
2065 }
2066
2067 update(UpdateEventType::UPDATE_EV_GENERIC); // To refresh the trigger status information.
2068}
2069
2070void Viewport::on_drag_timer()
2071{

Callers

nothing calls this directly

Calls 9

get_work_modeMethod · 0.80
get_deviceMethod · 0.80
sessionMethod · 0.80
is_trigedMethod · 0.80
set_trig_timeMethod · 0.80
get_viewstatusMethod · 0.80
get_trig_timeMethod · 0.80
is_fileMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected