mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-06 02:52:42 +08:00
* [plotter] implementing a realtime plotter in python based on pyqtgraph it should implement most of the functionalities of the legacy ocaml plotter it is replacing the previous implementation in python * Format code. * Add requirements * refactor plotter --------- Co-authored-by: Fabien-B <fabien.bonneval@gmail.com>
303 lines
8.1 KiB
XML
303 lines
8.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>RT_Plotter</class>
|
|
<widget class="QWidget" name="RT_Plotter">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>910</width>
|
|
<height>404</height>
|
|
</rect>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="acceptDrops">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Real-time plotter</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="0" column="1">
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>update</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="2">
|
|
<widget class="QLabel" name="dt_label">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>0.50 s</string>
|
|
</property>
|
|
<property name="margin">
|
|
<number>5</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="5">
|
|
<widget class="QLabel" name="size_label">
|
|
<property name="text">
|
|
<string>30 s</string>
|
|
</property>
|
|
<property name="margin">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="13">
|
|
<widget class="QToolButton" name="menu_button">
|
|
<property name="contextMenuPolicy">
|
|
<enum>Qt::ActionsContextMenu</enum>
|
|
</property>
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset theme="format-justify-fill"/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="4">
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="text">
|
|
<string>size</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="10">
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>scale next by</string>
|
|
</property>
|
|
<property name="margin">
|
|
<number>0</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="3">
|
|
<widget class="QSlider" name="dt_slider">
|
|
<property name="toolTip">
|
|
<string>update time (s)</string>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>100</number>
|
|
</property>
|
|
<property name="sliderPosition">
|
|
<number>50</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="7">
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>constant</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="6">
|
|
<widget class="QSlider" name="size_slider">
|
|
<property name="toolTip">
|
|
<string>display time interval</string>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>240</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>30</number>
|
|
</property>
|
|
<property name="sliderPosition">
|
|
<number>30</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="11">
|
|
<widget class="QDoubleSpinBox" name="scale_spin">
|
|
<property name="toolTip">
|
|
<string>scaling factor</string>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-9999.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>9999.989999999999782</double>
|
|
</property>
|
|
<property name="value">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QPushButton" name="autoscale">
|
|
<property name="toolTip">
|
|
<string>restart autoscale on Y axis</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>auto scale</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="8">
|
|
<widget class="QLineEdit" name="constant_input">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Ignored" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>45</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>enter a number and press enter to draw a line</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="12">
|
|
<widget class="QDoubleSpinBox" name="offset_spin">
|
|
<property name="toolTip">
|
|
<string>offset</string>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-9999.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>9999.989999999999782</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="9">
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Fixed</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
<action name="action_new_plot">
|
|
<property name="text">
|
|
<string>New plot</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+N</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_reset">
|
|
<property name="text">
|
|
<string>Reset</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>reset data for all plots</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+L</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_suspend">
|
|
<property name="text">
|
|
<string>Suspend</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>freeze plotter view</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+S</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_restart">
|
|
<property name="text">
|
|
<string>Restart</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>restart suspended plotter</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+X</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_close">
|
|
<property name="text">
|
|
<string>Close</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>close plotter window</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+W</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_quit">
|
|
<property name="text">
|
|
<string>Quit</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>quit realtime plotter (close all windows)</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+Q</string>
|
|
</property>
|
|
</action>
|
|
<action name="action_dark_background">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>Dark background</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>change background from white to black</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+B</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|