32 from .message_view
import MessageView
34 from python_qt_binding.QtGui
import QIcon
36 from python_qt_binding.QtGui
import QAction, QToolBar
38 from python_qt_binding.QtWidgets
import QAction, QToolBar
43 A message view with a toolbar for navigating messages in a single topic. 46 MessageView.__init__(self, timeline, topic)
50 self.
_name = parent.objectName()
65 parent.layout().addWidget(self.
toolbar)
78 _, _, self.
_stamp = msg_details[:3]
82 for entry
in self.timeline.get_entries([self.topic], *self.timeline._timeline_frame.play_region):
83 self.timeline._timeline_frame.playhead = entry.time
88 for entry
in self.timeline.get_entries([self.topic], self.timeline._timeline_frame.start_stamp, self.timeline._timeline_frame.playhead):
89 if entry.time < self.timeline._timeline_frame.playhead:
93 self.timeline._timeline_frame.playhead = last_entry.time
96 for entry
in self.timeline.get_entries([self.topic], self.timeline._timeline_frame.playhead, self.timeline._timeline_frame.end_stamp):
97 if entry.time > self.timeline._timeline_frame.playhead:
98 self.timeline._timeline_frame.playhead = entry.time
103 for entry
in self.timeline.get_entries([self.topic], *self.timeline._timeline_frame.play_region):
107 self.timeline._timeline_frame.playhead = last_entry.time
def message_viewed(self, bag, msg_details)
def navigate_previous(self)
def __init__(self, timeline, parent, topic)