37 from python_qt_binding
import loadUi
38 from python_qt_binding.QtCore
import Signal, Slot
39 from python_qt_binding.QtWidgets
import QWidget
48 This class defines the pane where timeline and its related components 51 status_updated = Signal(list)
52 pause_changed = Signal(bool)
53 position_changed = Signal(int)
58 Because this class is intended to be instantiated via Qt's .ui file, 59 taking argument other than parent widget is not possible, which is 60 ported to set_timeline_data method. That said, set_timeline_data must 61 be called (soon) after an object of this is instantiated. 63 super(TimelinePane, self).
__init__(parent=parent)
66 ui_file = os.path.join(rp.get_path(
'rqt_robot_monitor'),
71 self._timeline_view.show()
78 self._pause_button.setChecked(paused)
83 self.pause_changed.emit(paused)
86 self.position_changed.emit(position)
90 self._pause_button.setChecked(paused)
95 :param levels: List of status levels 97 self._timeline_view.set_levels(levels)
101 self._timeline_view.set_marker_pos(position)
105 self._timeline_view.redraw.emit()
def set_levels(self, levels)
def _signal_pause_changed(self, paused)
def set_paused(self, paused)
def __init__(self, parent, paused=False)
def _signal_position_changed(self, position)
def set_position(self, position)