1<?xml version="1.0" encoding="UTF-8"?> 2<ui version="4.0"> 3 <class>SerialAssistantWidget</class> 4 <widget class="QWidget" name="SerialAssistantWidget"> 5 <property name="geometry"> 6 <rect> 7 <x>0</x> 8 <y>0</y> 9 <width>695</width> 10 <height>325</height> 11 </rect> 12 </property> 13 <property name="windowTitle"> 14 <string>Form</string> 15 </property> 16 <layout class="QGridLayout" name="gridLayout"> 17 <item row="4" column="1"> 18 <widget class="QPushButton" name="sendFileBtn"> 19 <property name="maximumSize"> 20 <size> 21 <width>150</width> 22 <height>16777215</height> 23 </size> 24 </property> 25 <property name="text"> 26 <string>发送文件</string> 27 </property> 28 </widget> 29 </item> 30 <item row="1" column="0" colspan="2"> 31 <widget class="QTextBrowser" name="textBrowser"/> 32 </item> 33 <item row="0" column="0" colspan="2"> 34 <layout class="QHBoxLayout" name="horizontalLayout_2"> 35 <item> 36 <widget class="QLabel" name="label_9"> 37 <property name="text"> 38 <string>接收</string> 39 </property> 40 </widget> 41 </item> 42 <item> 43 <spacer name="horizontalSpacer_2"> 44 <property name="orientation"> 45 <enum>Qt::Horizontal</enum> 46 </property> 47 <property name="sizeHint" stdset="0"> 48 <size> 49 <width>498</width> 50 <height>20</height> 51 </size> 52 </property> 53 </spacer> 54 </item> 55 </layout> 56 </item> 57 <item row="2" column="0" colspan="2"> 58 <layout class="QHBoxLayout" name="horizontalLayout"> 59 <item> 60 <widget class="QLabel" name="label_10"> 61 <property name="text"> 62 <string>发送</string> 63 </property> 64 </widget> 65 </item> 66 <item> 67 <spacer name="horizontalSpacer"> 68 <property name="orientation"> 69 <enum>Qt::Horizontal</enum> 70 </property> 71 <property name="sizeHint" stdset="0"> 72 <size> 73 <width>40</width> 74 <height>20</height> 75 </size> 76 </property> 77 </spacer> 78 </item> 79 <item> 80 <widget class="QCheckBox" name="timerCheckBox"> 81 <property name="text"> 82 <string>定时发送</string> 83 </property> 84 </widget> 85 </item> 86 <item> 87 <widget class="QLineEdit" name="timeEdt"> 88 <property name="sizePolicy"> 89 <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> 90 <horstretch>0</horstretch> 91 <verstretch>0</verstretch> 92 </sizepolicy> 93 </property> 94 <property name="maximumSize"> 95 <size> 96 <width>50</width> 97 <height>16777215</height> 98 </size> 99 </property> 100 <property name="text"> 101 <string>500</string> 102 </property> 103 <property name="placeholderText"> 104 <string>20ms</string> 105 </property> 106 </widget> 107 </item> 108 <item> 109 <widget class="QLabel" name="label_11"> 110 <property name="text"> 111 <string>ms</string> 112 </property> 113 </widget> 114 </item> 115 <item> 116 <widget class="QCheckBox" name="hexcheckBox"> 117 <property name="text"> 118 <string>HEX 发送</string> 119 </property> 120 </widget> 121 </item> 122 <item> 123 <widget class="QPushButton" name="clearTXBtn"> 124 <property name="minimumSize"> 125 <size> 126 <width>50</width> 127 <height>0</height> 128 </size> 129 </property> 130 <property name="maximumSize"> 131 <size> 132 <width>50</width> 133 <height>16777215</height> 134 </size> 135 </property> 136 <property name="text"> 137 <string>清空</string> 138 </property> 139 </widget> 140 </item> 141 </layout> 142 </item> 143 <item row="3" column="0" colspan="2"> 144 <widget class="QPlainTextEdit" name="plainTextEdit"> 145 <property name="maximumSize"> 146 <size> 147 <width>16777215</width> 148 <height>50</height> 149 </size> 150 </property> 151 <property name="focusPolicy"> 152 <enum>Qt::ClickFocus</enum> 153 </property> 154 </widget> 155 </item> 156 <item row="4" column="0"> 157 <widget class="QPushButton" name="sendBtn"> 158 <property name="text"> 159 <string>发送</string> 160 </property> 161 </widget> 162 </item> 163 <item row="0" column="2" rowspan="5"> 164 <widget class="QFrame" name="frame"> 165 <property name="minimumSize"> 166 <size> 167 <width>300</width> 168 <height>0</height> 169 </size> 170 </property> 171 <property name="maximumSize"> 172 <size> 173 <width>300</width> 174 <height>16777215</height> 175 </size> 176 </property> 177 <property name="frameShape"> 178 <enum>QFrame::StyledPanel</enum> 179 </property> 180 <property name="frameShadow"> 181 <enum>QFrame::Raised</enum> 182 </property> 183 <layout class="QVBoxLayout" name="verticalLayout_4"> 184 <property name="spacing"> 185 <number>0</number> 186 </property> 187 <property name="leftMargin"> 188 <number>0</number> 189 </property> 190 <property name="topMargin"> 191 <number>0</number> 192 </property> 193 <property name="rightMargin"> 194 <number>0</number> 195 </property> 196 <property name="bottomMargin"> 197 <number>0</number> 198 </property> 199 <item> 200 <layout class="QFormLayout" name="formLayout"> 201 <property name="horizontalSpacing"> 202 <number>6</number> 203 </property> 204 <property name="verticalSpacing"> 205 <number>10</number> 206 </property> 207 <property name="leftMargin"> 208 <number>6</number> 209 </property> 210 <property name="topMargin"> 211 <number>6</number> 212 </property> 213 <property name="rightMargin"> 214 <number>6</number> 215 </property> 216 <property name="bottomMargin"> 217 <number>6</number> 218 </property> 219 <item row="0" column="0"> 220 <widget class="QLabel" name="label_6"> 221 <property name="text"> 222 <string>串口</string> 223 </property> 224 </widget> 225 </item> 226 <item row="0" column="1"> 227 <widget class="QComboBox" name="serialPortInfoListBox"/> 228 </item> 229 <item row="1" column="0"> 230 <widget class="QLabel" name="label"> 231 <property name="text"> 232 <string>波特率</string> 233 </property> 234 </widget> 235 </item> 236 <item row="1" column="1"> 237 <widget class="QComboBox" name="baudRateBox"/> 238 </item> 239 <item row="2" column="0"> 240 <widget class="QLabel" name="label_2"> 241 <property name="text"> 242 <string>数据位</string> 243 </property> 244 </widget> 245 </item> 246 <item row="2" column="1"> 247 <widget class="QComboBox" name="dataBitsBox"/> 248 </item> 249 <item row="3" column="0"> 250 <widget class="QLabel" name="label_3"> 251 <property name="text"> 252 <string>奇偶校验</string> 253 </property> 254 </widget> 255 </item> 256 <item row="3" column="1"> 257 <widget class="QComboBox" name="parityBox"/> 258 </item> 259 <item row="4" column="0"> 260 <widget class="QLabel" name="label_4"> 261 <property name="text"> 262 <string>停止位</string> 263 </property> 264 </widget> 265 </item> 266 <item row="4" column="1"> 267 <widget class="QComboBox" name="stopBitsBox"/> 268 </item> 269 <item row="5" column="0"> 270 <widget class="QLabel" name="label_5"> 271 <property name="text"> 272 <string>悬浮控制</string> 273 </property> 274 </widget> 275 </item> 276 <item row="5" column="1"> 277 <widget class="QComboBox" name="flowControlBox"/> 278 </item> 279 <item row="6" column="1"> 280 <widget class="QLabel" name="label_7"> 281 <property name="text"> 282 <string/> 283 </property> 284 </widget> 285 </item> 286 <item row="7" column="0"> 287 <widget class="QLabel" name="label_8"> 288 <property name="text"> 289 <string/> 290 </property> 291 </widget> 292 </item> 293 <item row="7" column="1"> 294 <layout class="QVBoxLayout" name="verticalLayout"> 295 <property name="spacing"> 296 <number>10</number> 297 </property> 298 <item> 299 <widget class="QPushButton" name="openBtn"> 300 <property name="text"> 301 <string>打开</string> 302 </property> 303 </widget> 304 </item> 305 </layout> 306 </item> 307 </layout> 308 </item> 309 <item> 310 <widget class="QWidget" name="switchWidget" native="true"> 311 <property name="sizePolicy"> 312 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 313 <horstretch>0</horstretch> 314 <verstretch>0</verstretch> 315 </sizepolicy> 316 </property> 317 <property name="minimumSize"> 318 <size> 319 <width>0</width> 320 <height>0</height> 321 </size> 322 </property> 323 <property name="maximumSize"> 324 <size> 325 <width>16777215</width> 326 <height>50</height> 327 </size> 328 </property> 329 <layout class="QVBoxLayout" name="verticalLayout_2"> 330 <property name="spacing"> 331 <number>0</number> 332 </property> 333 <property name="leftMargin"> 334 <number>0</number> 335 </property> 336 <property name="topMargin"> 337 <number>9</number> 338 </property> 339 <property name="rightMargin"> 340 <number>0</number> 341 </property> 342 <property name="bottomMargin"> 343 <number>0</number> 344 </property> 345 </layout> 346 </widget> 347 </item> 348 </layout> 349 </widget> 350 </item> 351 </layout> 352 </widget> 353 <resources/> 354 <connections/> 355</ui> 356