| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691 |
- <?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>1288</width>
- <height>790</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>MainWindow</string>
- </property>
- <widget class="QWidget" name="centralwidget">
- <widget class="QGroupBox" name="groupBox">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>90</y>
- <width>481</width>
- <height>651</height>
- </rect>
- </property>
- <property name="title">
- <string>输入信息</string>
- </property>
- <widget class="QWidget" name="verticalLayoutWidget">
- <property name="geometry">
- <rect>
- <x>9</x>
- <y>139</y>
- <width>251</width>
- <height>451</height>
- </rect>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QLineEdit" name="lineEdit_oldFile0">
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_oldFile1">
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_oldFile2">
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_oldFile3">
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_oldFile4">
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_oldFile5">
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_oldFile6">
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_oldFile7">
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="horizontalLayoutWidget">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>20</y>
- <width>392</width>
- <height>31</height>
- </rect>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <item>
- <widget class="QLabel" name="label">
- <property name="text">
- <string>新bin文件入口地址:0x</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="lineEdit_ep">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="text">
- <string>80000000</string>
- </property>
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>例如0x80000000</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="horizontalLayoutWidget_2">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>70</y>
- <width>371</width>
- <height>31</height>
- </rect>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <item>
- <widget class="QLineEdit" name="lineEdit_newFile">
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_newFile">
- <property name="text">
- <string>选择新bin文件</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="verticalLayoutWidget_2">
- <property name="geometry">
- <rect>
- <x>269</x>
- <y>139</y>
- <width>171</width>
- <height>451</height>
- </rect>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <item>
- <widget class="QPushButton" name="pushButton_oldFile0">
- <property name="text">
- <string>第1个旧版本bin文件</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_oldFile1">
- <property name="text">
- <string>第2个旧版本bin文件</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_oldFile2">
- <property name="text">
- <string>第3个旧版本bin文件</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_oldFile3">
- <property name="text">
- <string>第4个旧版本bin文件</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_oldFile4">
- <property name="text">
- <string>第5个旧版本bin文件</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_oldFile5">
- <property name="text">
- <string>第6个旧版本bin文件</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_oldFile6">
- <property name="text">
- <string>第7个旧版本bin文件</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_oldFile7">
- <property name="text">
- <string>第8个旧版本bin文件</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="horizontalLayoutWidget_3">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>589</y>
- <width>431</width>
- <height>51</height>
- </rect>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout_3">
- <item>
- <widget class="QLineEdit" name="lineEdit_pkgFile">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_pkgFile">
- <property name="text">
- <string>打包bin文件</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="verticalLayoutWidget_3">
- <property name="geometry">
- <rect>
- <x>450</x>
- <y>130</y>
- <width>31</width>
- <height>461</height>
- </rect>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_3">
- <item>
- <widget class="QCheckBox" name="checkBox_old0">
- <property name="text">
- <string/>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="checkBox_old1">
- <property name="text">
- <string/>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="checkBox_old2">
- <property name="text">
- <string/>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="checkBox_old3">
- <property name="text">
- <string/>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="checkBox_old4">
- <property name="text">
- <string/>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="checkBox_old5">
- <property name="text">
- <string/>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="checkBox_old6">
- <property name="text">
- <string/>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="checkBox_old7">
- <property name="text">
- <string/>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="horizontalLayoutWidget_5">
- <property name="geometry">
- <rect>
- <x>270</x>
- <y>110</y>
- <width>195</width>
- <height>31</height>
- </rect>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout_5">
- <item>
- <widget class="QPushButton" name="pushButton_check_none">
- <property name="text">
- <string>全不选</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_check_all">
- <property name="text">
- <string>全选</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </widget>
- <widget class="QWidget" name="horizontalLayoutWidget_4">
- <property name="geometry">
- <rect>
- <x>730</x>
- <y>30</y>
- <width>551</width>
- <height>51</height>
- </rect>
- </property>
- <layout class="QHBoxLayout" name="horizontalLayout_4">
- <item>
- <widget class="QPushButton" name="pushButton_pkg_create">
- <property name="text">
- <string>升级包生成</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_pkg_read">
- <property name="text">
- <string>包读取</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_pkg_check">
- <property name="text">
- <string>包校验</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_clrLog">
- <property name="text">
- <string>清除日志</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_exit">
- <property name="text">
- <string>退出</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QTextEdit" name="textEdit_log">
- <property name="geometry">
- <rect>
- <x>520</x>
- <y>80</y>
- <width>761</width>
- <height>621</height>
- </rect>
- </property>
- <property name="html">
- <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
- <html><head><meta name="qrichtext" content="1" /><style type="text/css">
- p, li { white-space: pre-wrap; }
- </style></head><body style=" font-family:'SimSun'; font-size:9pt; font-weight:400; font-style:normal;">
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">注意事项:</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">1,文件格式必须是【.bin】;</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2,文件名必须以版本号结尾例如:【XXXX_01013002.bin】;</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">3,文件大小不能超过256K字节;</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">4,主程序路径下会自动生成初始化文件【dfotaConfig.ini】,记录相关信息以备下次使用;</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">5,输入的,无论新/旧文件,如果尾部有20个附加字节,则会被剪掉;</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">6,生成的打包bin文件,与new文件同路径;</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">7,在当前路径下,生成log子目录,存放日志文件;</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">8,在当前路径下,生成tmp子目录,存放过程临时文件;</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">9,生成包选项:</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> d_flag=0,z_flag=0,无差分,无压缩;只有new文件的内容,没有old文件内容</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> d_flag=0,z_flag=1,无差分,有压缩;只有new文件的内容,没有old文件内容</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> d_flag=1,z_flag=0,禁止选项</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> d_flag=1,z_flag=1,有差分,有压缩;有new文件的内容,有old文件内容(最多8个old)</p>
- <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p></body></html></string>
- </property>
- </widget>
- <widget class="QProgressBar" name="progressBar">
- <property name="geometry">
- <rect>
- <x>520</x>
- <y>710</y>
- <width>751</width>
- <height>23</height>
- </rect>
- </property>
- <property name="value">
- <number>24</number>
- </property>
- </widget>
- <widget class="QCheckBox" name="checkBox_d">
- <property name="geometry">
- <rect>
- <x>570</x>
- <y>40</y>
- <width>61</width>
- <height>31</height>
- </rect>
- </property>
- <property name="layoutDirection">
- <enum>Qt::RightToLeft</enum>
- </property>
- <property name="autoFillBackground">
- <bool>false</bool>
- </property>
- <property name="text">
- <string>差分</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QCheckBox" name="checkBox_z">
- <property name="geometry">
- <rect>
- <x>650</x>
- <y>40</y>
- <width>51</width>
- <height>31</height>
- </rect>
- </property>
- <property name="layoutDirection">
- <enum>Qt::RightToLeft</enum>
- </property>
- <property name="text">
- <string>压缩</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- <widget class="QLabel" name="label_bar_msg">
- <property name="geometry">
- <rect>
- <x>623</x>
- <y>705</y>
- <width>491</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>--</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- <widget class="QPushButton" name="pushButton_test">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="geometry">
- <rect>
- <x>1180</x>
- <y>0</y>
- <width>104</width>
- <height>28</height>
- </rect>
- </property>
- <property name="text">
- <string>测试2</string>
- </property>
- </widget>
- <widget class="QLineEdit" name="lineEdit_time_string">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="geometry">
- <rect>
- <x>250</x>
- <y>0</y>
- <width>221</width>
- <height>21</height>
- </rect>
- </property>
- <property name="text">
- <string>1900-00-00 00:00:00.000</string>
- </property>
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- <widget class="QLineEdit" name="lineEdit_time_stamp">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="geometry">
- <rect>
- <x>120</x>
- <y>0</y>
- <width>111</width>
- <height>21</height>
- </rect>
- </property>
- <property name="text">
- <string>0</string>
- </property>
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- <widget class="QLabel" name="label_time_stamp">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>0</y>
- <width>91</width>
- <height>21</height>
- </rect>
- </property>
- <property name="text">
- <string>时间戳测试:</string>
- </property>
- </widget>
- <widget class="QPushButton" name="pushButton_crc32_test">
- <property name="geometry">
- <rect>
- <x>350</x>
- <y>40</y>
- <width>121</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>CRC32测试</string>
- </property>
- </widget>
- <widget class="QLineEdit" name="lineEdit_crc32_test">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="geometry">
- <rect>
- <x>250</x>
- <y>40</y>
- <width>81</width>
- <height>31</height>
- </rect>
- </property>
- <property name="text">
- <string>4</string>
- </property>
- <property name="placeholderText">
- <string/>
- </property>
- </widget>
- <widget class="QLabel" name="label_3">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>40</y>
- <width>231</width>
- <height>29</height>
- </rect>
- </property>
- <property name="text">
- <string>STM32 CRC32测试:切掉尾部长度=</string>
- </property>
- </widget>
- <widget class="Line" name="line">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>20</y>
- <width>461</width>
- <height>16</height>
- </rect>
- </property>
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
- <widget class="Line" name="line_2">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>70</y>
- <width>461</width>
- <height>16</height>
- </rect>
- </property>
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
- </widget>
- <widget class="QMenuBar" name="menubar">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>1288</width>
- <height>26</height>
- </rect>
- </property>
- <widget class="QMenu" name="menuFile">
- <property name="title">
- <string>File</string>
- </property>
- <addaction name="actionOpen"/>
- </widget>
- <addaction name="menuFile"/>
- </widget>
- <widget class="QStatusBar" name="statusbar"/>
- <action name="actionOpen">
- <property name="text">
- <string>Open</string>
- </property>
- </action>
- </widget>
- <resources/>
- <connections/>
- </ui>
|