From 0dd120ab4ecd6598a832f74da92805712f5ea35c Mon Sep 17 00:00:00 2001 From: Michael Jeronimo Date: Fri, 9 Oct 2020 09:01:21 -0700 Subject: [PATCH] Update a few minor status bar-related items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add tooltips for ‘playback speed’ and ‘bag size’ in the status bar * Update existing status bar tooltip strings for clarity and consistency * Show the full timestamp in the status bar * Adjust some status bar field widths to avoid clipping Signed-off-by: Michael Jeronimo --- rqt_bag/resource/bag_widget.ui | 18 ++++++++++++------ rqt_bag/src/rqt_bag/bag_widget.py | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/rqt_bag/resource/bag_widget.ui b/rqt_bag/resource/bag_widget.ui index 9ab11cd..385154a 100644 --- a/rqt_bag/resource/bag_widget.ui +++ b/rqt_bag/resource/bag_widget.ui @@ -324,12 +324,12 @@ - 125 + 185 16777215 - Time Stamp of the current playhead + Timestamp of the current playhead location QFrame::Panel @@ -349,12 +349,12 @@ - 180 + 185 16777215 - Date and time of the playhead + Date and time of the current playhead location QFrame::Panel @@ -380,12 +380,12 @@ - 110 + 90 16777215 - Number of Seconds from the beginning of the current playhead + Number of seconds the current playhead location is from the beginning of the bag QFrame::Panel @@ -403,6 +403,9 @@ + + Playback speed + 80 @@ -425,6 +428,9 @@ + + Bag size + 80 diff --git a/rqt_bag/src/rqt_bag/bag_widget.py b/rqt_bag/src/rqt_bag/bag_widget.py index bee3bdb..4cf1f6e 100644 --- a/rqt_bag/src/rqt_bag/bag_widget.py +++ b/rqt_bag/src/rqt_bag/bag_widget.py @@ -339,7 +339,7 @@ def _update_status_bar(self): self.progress_bar.setValue(self._timeline.background_progress) # Raw timestamp - self.stamp_label.setText('%.3fs' % self._timeline._timeline_frame.playhead.to_sec()) + self.stamp_label.setText('%.9fs' % self._timeline._timeline_frame.playhead.to_sec()) # Human-readable time self.date_label.setText(