mainwindow.ui 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QMainWindow" name="MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>1086</width>
  10. <height>750</height>
  11. </rect>
  12. </property>
  13. <property name="font">
  14. <font>
  15. <family>微软雅黑</family>
  16. <pointsize>14</pointsize>
  17. </font>
  18. </property>
  19. <property name="windowTitle">
  20. <string>串口调试器V1.0</string>
  21. </property>
  22. <widget class="QWidget" name="centralwidget">
  23. <property name="font">
  24. <font>
  25. <family>微软雅黑</family>
  26. <pointsize>12</pointsize>
  27. </font>
  28. </property>
  29. <layout class="QGridLayout" name="gridLayout_3">
  30. <item row="0" column="0">
  31. <widget class="QSplitter" name="splitter_left_right">
  32. <property name="orientation">
  33. <enum>Qt::Horizontal</enum>
  34. </property>
  35. <widget class="QWidget" name="">
  36. <layout class="QVBoxLayout" name="verticalLayout_2">
  37. <item>
  38. <widget class="QGroupBox" name="groupBox_setting">
  39. <property name="title">
  40. <string>串口设置</string>
  41. </property>
  42. <layout class="QGridLayout" name="gridLayout">
  43. <item row="0" column="0">
  44. <widget class="QLabel" name="label_port">
  45. <property name="text">
  46. <string>串口号</string>
  47. </property>
  48. </widget>
  49. </item>
  50. <item row="0" column="1">
  51. <widget class="QComboBox" name="comboBox_port"/>
  52. </item>
  53. <item row="1" column="0">
  54. <widget class="QLabel" name="label_baud">
  55. <property name="text">
  56. <string>波特率</string>
  57. </property>
  58. </widget>
  59. </item>
  60. <item row="1" column="1">
  61. <widget class="QComboBox" name="comboBox_baud"/>
  62. </item>
  63. <item row="2" column="0">
  64. <widget class="QLabel" name="label_databit">
  65. <property name="text">
  66. <string>数据位</string>
  67. </property>
  68. </widget>
  69. </item>
  70. <item row="2" column="1">
  71. <widget class="QComboBox" name="comboBox_databit"/>
  72. </item>
  73. <item row="3" column="0">
  74. <widget class="QLabel" name="label_stopbit">
  75. <property name="text">
  76. <string>停止位</string>
  77. </property>
  78. </widget>
  79. </item>
  80. <item row="3" column="1">
  81. <widget class="QComboBox" name="comboBox_stopbit"/>
  82. </item>
  83. <item row="4" column="0">
  84. <widget class="QLabel" name="label_parity">
  85. <property name="text">
  86. <string>校验位</string>
  87. </property>
  88. </widget>
  89. </item>
  90. <item row="4" column="1">
  91. <widget class="QComboBox" name="comboBox_parity"/>
  92. </item>
  93. <item row="5" column="0" colspan="2">
  94. <widget class="QPushButton" name="pushButton_open">
  95. <property name="text">
  96. <string>打开</string>
  97. </property>
  98. </widget>
  99. </item>
  100. </layout>
  101. </widget>
  102. </item>
  103. <item>
  104. <widget class="QGroupBox" name="groupBox_option">
  105. <property name="baseSize">
  106. <size>
  107. <width>10</width>
  108. <height>0</height>
  109. </size>
  110. </property>
  111. <property name="title">
  112. <string>选项</string>
  113. </property>
  114. <layout class="QGridLayout" name="gridLayout_2">
  115. <item row="0" column="0" colspan="2">
  116. <widget class="QCheckBox" name="checkBox_hex">
  117. <property name="text">
  118. <string>hex模式</string>
  119. </property>
  120. </widget>
  121. </item>
  122. <item row="1" column="0" colspan="2">
  123. <widget class="QCheckBox" name="checkBox_timestamp">
  124. <property name="text">
  125. <string>显示时间戳</string>
  126. </property>
  127. </widget>
  128. </item>
  129. <item row="2" column="0" colspan="2">
  130. <widget class="QCheckBox" name="checkBox_autoline">
  131. <property name="text">
  132. <string>接收区自动换行</string>
  133. </property>
  134. </widget>
  135. </item>
  136. <item row="3" column="0" colspan="2">
  137. <widget class="QCheckBox" name="checkBox_autosend">
  138. <property name="text">
  139. <string>循环发送</string>
  140. </property>
  141. </widget>
  142. </item>
  143. <item row="4" column="0">
  144. <widget class="QLabel" name="label_time">
  145. <property name="text">
  146. <string>定时(ms)</string>
  147. </property>
  148. </widget>
  149. </item>
  150. <item row="4" column="1">
  151. <widget class="QLineEdit" name="lineEdit_time">
  152. <property name="minimumSize">
  153. <size>
  154. <width>133</width>
  155. <height>20</height>
  156. </size>
  157. </property>
  158. <property name="baseSize">
  159. <size>
  160. <width>12</width>
  161. <height>0</height>
  162. </size>
  163. </property>
  164. </widget>
  165. </item>
  166. </layout>
  167. </widget>
  168. </item>
  169. </layout>
  170. </widget>
  171. <widget class="QSplitter" name="splitter_top_bot">
  172. <property name="orientation">
  173. <enum>Qt::Vertical</enum>
  174. </property>
  175. <widget class="QTextBrowser" name="textBrowser"/>
  176. <widget class="QWidget" name="">
  177. <layout class="QVBoxLayout" name="verticalLayout">
  178. <item>
  179. <layout class="QHBoxLayout" name="horizontalLayout">
  180. <item>
  181. <widget class="QPushButton" name="pushButton_clean_recv">
  182. <property name="text">
  183. <string>清除接收区</string>
  184. </property>
  185. </widget>
  186. </item>
  187. <item>
  188. <widget class="QPushButton" name="pushButton_clean_send">
  189. <property name="text">
  190. <string>清除发送区</string>
  191. </property>
  192. </widget>
  193. </item>
  194. <item>
  195. <widget class="QPushButton" name="pushButton_send">
  196. <property name="text">
  197. <string>发送</string>
  198. </property>
  199. </widget>
  200. </item>
  201. </layout>
  202. </item>
  203. <item>
  204. <widget class="QTextEdit" name="textEdit"/>
  205. </item>
  206. </layout>
  207. </widget>
  208. </widget>
  209. </widget>
  210. </item>
  211. </layout>
  212. </widget>
  213. <widget class="QMenuBar" name="menubar">
  214. <property name="geometry">
  215. <rect>
  216. <x>0</x>
  217. <y>0</y>
  218. <width>1086</width>
  219. <height>31</height>
  220. </rect>
  221. </property>
  222. </widget>
  223. <widget class="QStatusBar" name="statusbar"/>
  224. </widget>
  225. <resources/>
  226. <connections/>
  227. </ui>