mirror of
https://github.com/YikeStone/Qt-Advent.git
synced 2025-08-02 18:04:08 +05:30
651 lines
18 KiB
XML
651 lines
18 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>MainWindow</class>
|
|
<widget class="QMainWindow" name="MainWindow">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>1566</width>
|
|
<height>549</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>MainWindow</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralWidget">
|
|
<widget class="QFrame" name="frame">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>671</width>
|
|
<height>451</height>
|
|
</rect>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::StyledPanel</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Raised</enum>
|
|
</property>
|
|
<widget class="QWidget" name="horizontalLayoutWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>671</width>
|
|
<height>121</height>
|
|
</rect>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinAndMaxSize</enum>
|
|
</property>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_5">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinAndMaxSize</enum>
|
|
</property>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinAndMaxSize</enum>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>75</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>75</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>PWM_Left</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinAndMaxSize</enum>
|
|
</property>
|
|
<item>
|
|
<widget class="QSlider" name="horizontalSlider">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Maximum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>22</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>510</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>255</number>
|
|
</property>
|
|
<property name="sliderPosition">
|
|
<number>255</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEdit">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>35</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>4</number>
|
|
</property>
|
|
<property name="clearButtonEnabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_6">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinAndMaxSize</enum>
|
|
</property>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinAndMaxSize</enum>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>75</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>75</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>PWM_Right</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinAndMaxSize</enum>
|
|
</property>
|
|
<item>
|
|
<widget class="QSlider" name="horizontalSlider_2">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Maximum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>22</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>510</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>255</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEdit_2">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>35</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>4</number>
|
|
</property>
|
|
<property name="clearButtonEnabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="verticalLayoutWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>120</y>
|
|
<width>671</width>
|
|
<height>251</height>
|
|
</rect>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
|
<item>
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>KP</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSlider" name="horizontalSlider_6">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>99</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEdit_8">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>3</string>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
|
<item>
|
|
<widget class="QSlider" name="horizontalSlider_3">
|
|
<property name="maximum">
|
|
<number>10000000</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="tickPosition">
|
|
<enum>QSlider::NoTicks</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEdit_3">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>3.0</string>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>20</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_10">
|
|
<item>
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>KI</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSlider" name="horizontalSlider_7">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>99</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEdit_7">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
|
<item>
|
|
<widget class="QSlider" name="horizontalSlider_5">
|
|
<property name="maximum">
|
|
<number>10000000</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEdit_5">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>20</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_11">
|
|
<item>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>KD</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSlider" name="horizontalSlider_8">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>99</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEdit_6">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>3</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
|
<item>
|
|
<widget class="QSlider" name="horizontalSlider_4">
|
|
<property name="maximum">
|
|
<number>10000000</number>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEdit_4">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
<property name="maxLength">
|
|
<number>20</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QTextBrowser" name="textBrowser">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>410</y>
|
|
<width>671</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="verticalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
|
</property>
|
|
<property name="horizontalScrollBarPolicy">
|
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
|
</property>
|
|
</widget>
|
|
<widget class="QWidget" name="horizontalLayoutWidget_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>360</y>
|
|
<width>671</width>
|
|
<height>41</height>
|
|
</rect>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_12">
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButton_3">
|
|
<property name="text">
|
|
<string>cmd Mode</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButton">
|
|
<property name="contextMenuPolicy">
|
|
<enum>Qt::PreventContextMenu</enum>
|
|
</property>
|
|
<property name="text">
|
|
<string>PWM/ PID mode</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButton_2">
|
|
<property name="layoutDirection">
|
|
<enum>Qt::LeftToRight</enum>
|
|
</property>
|
|
<property name="text">
|
|
<string>Key Mode</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QCustomPlot" name="widget" native="true">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>690</x>
|
|
<y>30</y>
|
|
<width>851</width>
|
|
<height>471</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLineEdit" name="lineEdit_9">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>450</y>
|
|
<width>671</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menuBar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>1566</width>
|
|
<height>26</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
<widget class="QToolBar" name="mainToolBar">
|
|
<attribute name="toolBarArea">
|
|
<enum>TopToolBarArea</enum>
|
|
</attribute>
|
|
<attribute name="toolBarBreak">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
</widget>
|
|
<widget class="QStatusBar" name="statusBar"/>
|
|
</widget>
|
|
<layoutdefault spacing="6" margin="11"/>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>QCustomPlot</class>
|
|
<extends>QWidget</extends>
|
|
<header>../../qcustomplot.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|