| 2045 | } |
| 2046 | |
| 2047 | void 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 | |
| 2070 | void Viewport::on_drag_timer() |
| 2071 | { |
nothing calls this directly
no test coverage detected