From ada7b40da88974c6f4596c7c9d1317eb19095a0e Mon Sep 17 00:00:00 2001 From: tao_z <tzj0429@163.com> Date: Sun, 29 May 2022 23:26:03 +0800 Subject: [PATCH] 新增bootloader界面以及函数 --- main.ui | 821 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 760 insertions(+), 61 deletions(-) diff --git a/main.ui b/main.ui index 5b944af..53c5e64 100644 --- a/main.ui +++ b/main.ui @@ -7,14 +7,14 @@ <rect> <x>0</x> <y>0</y> - <width>800</width> - <height>575</height> + <width>1050</width> + <height>800</height> </rect> </property> <property name="minimumSize"> <size> - <width>800</width> - <height>575</height> + <width>1050</width> + <height>800</height> </size> </property> <property name="windowTitle"> @@ -29,15 +29,15 @@ </property> <property name="minimumSize"> <size> - <width>800</width> - <height>575</height> + <width>1050</width> + <height>800</height> </size> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <layout class="QVBoxLayout" name="verticalLayout_5" stretch="4,0,2"> <item> - <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="2,8"> + <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="2,6"> <property name="spacing"> <number>10</number> </property> @@ -194,90 +194,79 @@ <string notr="true"/> </property> <property name="currentIndex"> - <number>0</number> + <number>3</number> </property> <widget class="QWidget" name="tab"> <attribute name="title"> <string>UDS</string> </attribute> - <layout class="QVBoxLayout" name="verticalLayout_9"> + <layout class="QVBoxLayout" name="verticalLayout_9" stretch="6,1,1"> <item> <widget class="QGroupBox" name="groupBox_2"> <property name="title"> <string>DataIdentifier</string> </property> - <layout class="QVBoxLayout" name="verticalLayout_2" stretch="1,5"> + <layout class="QVBoxLayout" name="verticalLayout_2" stretch="1,5,0"> <item> - <layout class="QVBoxLayout" name="verticalLayout_6" stretch="0,0"> + <layout class="QVBoxLayout" name="verticalLayout_6" stretch="0"> <property name="spacing"> <number>1</number> </property> <item> - <layout class="QHBoxLayout" name="horizontalLayout_8" stretch="1,4,2,2"> - <item> - <widget class="QLabel" name="label_2"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>DID</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> + <layout class="QHBoxLayout" name="horizontalLayout_9" stretch="0,3,0,1,0,3,1,1"> <item> <widget class="QLabel" name="label_4"> <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> - <string>Description</string> + <string>Name:</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> - <item> - <widget class="QLabel" name="label_5"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Value</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="label_6"> - <property name="text"> - <string/> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_9" stretch="1,4,2,1,1"> <item> <widget class="QComboBox" name="comboBox_6"/> </item> <item> + <widget class="QLabel" name="label_2"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>DID:</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> <widget class="QLineEdit" name="lineEdit"/> + </item> + <item> + <widget class="QLabel" name="label_5"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Value:</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> </item> <item> <widget class="QLineEdit" name="lineEdit_2"/> @@ -554,6 +543,19 @@ </item> </layout> </item> + <item> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> </layout> </widget> </item> @@ -574,7 +576,7 @@ <item> <widget class="QGroupBox" name="SessionContrl_gbx_3"> <property name="title"> - <string> ECUReset(0x11)</string> + <string>Security(0x27)</string> </property> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> @@ -633,14 +635,698 @@ </layout> </item> <item> - <spacer name="verticalSpacer_2"> + <widget class="QGroupBox" name="groupBox_3"> + <property name="title"> + <string>Security Access</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_10"> + <item> + <widget class="QPushButton" name="pushButton_31"> + <property name="text"> + <string>Unlock Level 1</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_32"> + <property name="text"> + <string>Unlock Level 3</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab_2"> + <attribute name="title"> + <string>校准</string> + </attribute> + <layout class="QVBoxLayout" name="verticalLayout_10"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_11"> + <item> + <widget class="QPushButton" name="pushButton_9"> + <property name="text"> + <string>Start Calibration</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_11"> + <property name="text"> + <string>Calibration Z</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_13"> + <property name="text"> + <string>Calibration M</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_18"> + <property name="text"> + <string>Calibration M+</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_22"> + <property name="text"> + <string>Calibration M-</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_24"> + <property name="text"> + <string>Calibration X2</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_26"> + <property name="text"> + <string>Calibration X1</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_27"> + <property name="text"> + <string>Calibration Y1</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_28"> + <property name="text"> + <string>Calibration Y2</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_29"> + <property name="text"> + <string>Calibration Gap</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab_3"> + <attribute name="title"> + <string>功能指示</string> + </attribute> + <layout class="QHBoxLayout" name="horizontalLayout_14"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_15" stretch="5,1"> + <item> + <widget class="QGroupBox" name="groupBox_6"> + <property name="title"> + <string>换挡器状态</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_8"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_13" stretch="2,2,2"> + <item> + <widget class="QPushButton" name="pushButton_35"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset;</string> + </property> + <property name="text"> + <string>M+</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_39"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset;</string> + </property> + <property name="text"> + <string>M</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_36"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset;</string> + </property> + <property name="text"> + <string>M-</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_12" stretch="1,1,1,1,1"> + <item> + <widget class="QPushButton" name="pushButton_37"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset; +</string> + </property> + <property name="text"> + <string>X2</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_38"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset; +</string> + </property> + <property name="text"> + <string>X1</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_30"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset;</string> + </property> + <property name="text"> + <string>Z</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_33"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset;</string> + </property> + <property name="text"> + <string>Y1</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_34"> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset;</string> + </property> + <property name="text"> + <string>Y2</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_14" stretch="1,1"> + <item> + <widget class="QPushButton" name="pushButton_41"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset;</string> + </property> + <property name="text"> + <string>Unlock</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_40"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="styleSheet"> + <string notr="true">background-color: rgb(123, 123, 123); +color: rgb(255,255,255); +border-radius: 30px; +font: 9pt "AcadEref"; +border-style: outset;</string> + </property> + <property name="text"> + <string>Park</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_11" stretch="2,5"> + <item> + <widget class="QGroupBox" name="groupBox_5"> + <property name="title"> + <string>换挡器CAN</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_13"> + <item> + <widget class="QLabel" name="label_6"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>10</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>60</height> + </size> + </property> + <property name="text"> + <string>CAN error:</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="lineEdit_17"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>0</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>60</width> + <height>16777215</height> + </size> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="groupBox_4"> + <property name="title"> + <string>TCU Command</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_12"> + <item> + <widget class="QPushButton" name="pushButton_42"> + <property name="text"> + <string>P</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_45"> + <property name="text"> + <string>R</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_44"> + <property name="text"> + <string>N</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_43"> + <property name="text"> + <string>D</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab_4"> + <attribute name="title"> + <string>Bootloader</string> + </attribute> + <layout class="QVBoxLayout" name="verticalLayout_18"> + <item> + <widget class="QGroupBox" name="groupBox_7"> + <property name="title"> + <string>Set File</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_17"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_17" stretch="1,6,1"> + <item> + <widget class="QLabel" name="label_22"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>12</height> + </size> + </property> + <property name="text"> + <string>Load APP:</string> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="comboBox_4"/> + </item> + <item> + <widget class="QPushButton" name="pushButton_46"> + <property name="text"> + <string>Load APP</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_16" stretch="1,6,1"> + <item> + <widget class="QLabel" name="label_23"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>12</height> + </size> + </property> + <property name="text"> + <string>Set Log:</string> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="comboBox_10"/> + </item> + <item> + <widget class="QPushButton" name="pushButton_47"> + <property name="text"> + <string>Set Log</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QRadioButton" name="radioButton_2"> + <property name="text"> + <string>Start from boot</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="groupBox_8"> + <property name="title"> + <string>Progress</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_18"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_15" stretch="1,6,1"> + <item> + <widget class="QLabel" name="label_24"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>60</width> + <height>12</height> + </size> + </property> + <property name="text"> + <string>Progress:</string> + </property> + </widget> + </item> + <item> + <widget class="QProgressBar" name="progressBar"> + <property name="value"> + <number>24</number> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_48"> + <property name="text"> + <string>Program</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <spacer name="verticalSpacer_3"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> - <height>40</height> + <height>282</height> </size> </property> </spacer> @@ -668,7 +1354,7 @@ <enum>QTabWidget::West</enum> </property> <property name="currentIndex"> - <number>0</number> + <number>2</number> </property> <widget class="QWidget" name="tab_logger"> <attribute name="title"> @@ -743,6 +1429,19 @@ </item> </layout> </widget> + <widget class="QWidget" name="tab_Consloe"> + <property name="locale"> + <locale language="Chinese" country="China"/> + </property> + <attribute name="title"> + <string>Console</string> + </attribute> + <layout class="QVBoxLayout" name="verticalLayout_16"> + <item> + <widget class="QTextEdit" name="textEdit_2"/> + </item> + </layout> + </widget> </widget> </item> </layout> -- Gitblit v1.8.0