32 from .message_view
import MessageView
34 from python_qt_binding.QtGui
import QIcon
35 from python_qt_binding.QtWidgets
import QAction, QToolBar
41 A message view with a toolbar for navigating messages in a single topic. 45 MessageView.__init__(self, timeline, topic)
49 self.
_name = parent.objectName()
64 parent.layout().addWidget(self.
toolbar)
77 _, _, self.
_stamp = msg_details[:3]
81 for entry
in self.timeline.get_entries([self.topic], *self.timeline._timeline_frame.play_region):
82 self.timeline._timeline_frame.playhead = entry.time
87 for entry
in self.timeline.get_entries([self.topic], self.timeline._timeline_frame.start_stamp, self.timeline._timeline_frame.playhead):
88 if entry.time < self.timeline._timeline_frame.playhead:
92 self.timeline._timeline_frame.playhead = last_entry.time
95 for entry
in self.timeline.get_entries([self.topic], self.timeline._timeline_frame.playhead, self.timeline._timeline_frame.end_stamp):
96 if entry.time > self.timeline._timeline_frame.playhead:
97 self.timeline._timeline_frame.playhead = entry.time
102 for entry
in self.timeline.get_entries([self.topic], *self.timeline._timeline_frame.play_region):
106 self.timeline._timeline_frame.playhead = last_entry.time
def navigate_previous(self)
def message_viewed(self, bag, msg_details)
def __init__(self, timeline, parent, topic)