Screen01.ui.qml 91 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453
  1. /*
  2. This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only.
  3. It is supposed to be strictly declarative and only uses a subset of QML. If you edit
  4. this file manually, you might introduce QML code that is not supported by Qt Design Studio.
  5. Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files.
  6. */
  7. import QtQuick
  8. import QtQuick.Window
  9. import QtQuick.Controls
  10. import QtQuick.Layouts
  11. //import IOT_UI
  12. Rectangle {
  13. id: mainScreen1
  14. width: Constants.width
  15. height: Constants.height
  16. color: "#ffffff"
  17. border.color: "#ffffff"
  18. property alias shortcut_Btn19: shortcut_Btn19
  19. property alias shortcut_Btn18: shortcut_Btn18
  20. property alias shortcut_Btn17: shortcut_Btn17
  21. property alias shortcut_Btn16: shortcut_Btn16
  22. property alias shortcut_Btn15: shortcut_Btn15
  23. property alias shortcut_Btn14: shortcut_Btn14
  24. property alias shortcut_Btn13: shortcut_Btn13
  25. property alias shortcut_Btn12: shortcut_Btn12
  26. property alias shortcut_Btn11: shortcut_Btn11
  27. property alias shortcut_Btn10: shortcut_Btn10
  28. property alias shortcut_Btn9: shortcut_Btn9
  29. property alias shortcut_Btn8: shortcut_Btn8
  30. property alias shortcut_Btn7: shortcut_Btn7
  31. property alias shortcut_Btn6: shortcut_Btn6
  32. property alias shortcut_Btn5: shortcut_Btn5
  33. property alias shortcut_Btn4: shortcut_Btn4
  34. property alias shortcut_Btn3: shortcut_Btn3
  35. property alias shortcut_Btn2: shortcut_Btn2
  36. property alias shortcut_Btn1: shortcut_Btn1
  37. property alias shortcut_Texti: shortcut_Texti
  38. property alias shortcut_Texth: shortcut_Texth
  39. property alias shortcut_Textg: shortcut_Textg
  40. property alias shortcut_Textf: shortcut_Textf
  41. property alias shortcut_Texte: shortcut_Texte
  42. property alias shortcut_Textd: shortcut_Textd
  43. property alias shortcut_Textc: shortcut_Textc
  44. property alias shortcut_Textb: shortcut_Textb
  45. property alias shortcut_Texta: shortcut_Texta
  46. property alias shortcut_AltText5: shortcut_AltText5
  47. property alias shortcut_AltText4: shortcut_AltText4
  48. property alias shortcut_AltText3: shortcut_AltText3
  49. property alias shortcut_AltText2: shortcut_AltText2
  50. property alias shortcut_AltText1: shortcut_AltText1
  51. property alias shortcut_CtrlText5: shortcut_CtrlText5
  52. property alias shortcut_CtrlText4: shortcut_CtrlText4
  53. property alias shortcut_CtrlText3: shortcut_CtrlText3
  54. property alias shortcut_CtrlText2: shortcut_CtrlText2
  55. property alias shortcut_CtrlText1: shortcut_CtrlText1
  56. property alias shortcut_titleTextMouse: shortcut_titleTextMouse
  57. property alias shortcut_titleText: shortcut_titleText
  58. property alias ip_nameCombo: ip_nameCombo
  59. property alias txByteText: txByteText
  60. property alias rxByteText: rxByteText
  61. property alias txClearBtn: txClearBtn
  62. property alias rxClearBtn: rxClearBtn
  63. property alias ip_switch: ip_switch
  64. property alias subButton: subButton
  65. property alias subField: subField
  66. property alias ip_otherPortText: ip_otherPortText
  67. property alias ip_otherAddrText: ip_otherAddrText
  68. property alias ip_myPortText: ip_myPortText
  69. property alias ip_myAddrText: ip_myAddrText
  70. property alias serial_stopBitCombo: serial_stopBitCombo
  71. property alias serial_dataBitCombo: serial_dataBitCombo
  72. property alias serial_checkBitCombo: serial_checkBitCombo
  73. property alias autoSendTimePage: autoSendTimePage
  74. property alias hoverDescriptionText: hoverDescriptionText
  75. property alias hoverDescriptionPage: hoverDescriptionPage
  76. property alias myMouseArea: myMouseArea
  77. property alias slider_color: slider_color
  78. property alias serial_boudCombo: serial_boudCombo
  79. property alias serial_descriptionLab: serial_descriptionLab
  80. property alias serial_ip_page: serial_ip_page
  81. property alias txSuffixCombo: txSuffixCombo
  82. property alias ip_leftSidePage: ip_leftSidePage
  83. property alias autoSendTime: autoSendTime
  84. property alias recDataEdit: recDataEdit
  85. property alias recDataMouse: recDataMouse
  86. property alias vbar1: vbar1
  87. property alias recDataPage: recDataPage
  88. property alias sendDataEdit: sendDataEdit
  89. property alias sendDataMouse: sendDataMouse
  90. property alias vbar2: vbar2
  91. property alias sendDataPage: sendDataPage
  92. property alias txAutoSend_btn: txAutoSend_btn
  93. property alias txSend_btn: txSend_btn
  94. property alias txClear_btn: txClear_btn
  95. property alias txCode_btn: txCode_btn
  96. property alias rxClear_btn: rxClear_btn
  97. property alias saveFile_btn: saveFile_btn
  98. property alias displayDate_btn: displayDate_btn
  99. property alias serial_leftSidePage: serial_leftSidePage
  100. property alias serial_nameCombo: serial_nameCombo
  101. property alias rxCode_btn: rxCode_btn
  102. property alias txEN_btn: txEN_btn
  103. property alias rxEN_btn: rxEN_btn
  104. property alias serial_switch: serial_switch
  105. property alias data_chineseByteTextinput: data_chineseByteTextinput
  106. property alias data_englishByteTextinput: data_englishByteTextinput
  107. property alias data_codeCombo: data_codeCombo
  108. property alias data_changeBtn: data_changeBtn
  109. property alias data_fine2Btn: data_fine2Btn
  110. property alias data_fine1Btn: data_fine1Btn
  111. property alias data_deleta2Btn: data_deleta2Btn
  112. property alias data_target2TitleMouse: data_target2TitleMouse
  113. property alias data_target1TitleMouse: data_target1TitleMouse
  114. property alias data_deleta1Btn: data_deleta1Btn
  115. property alias data_vbar3: data_vbar3
  116. property alias data_vbar2: data_vbar2
  117. property alias data_vbar1: data_vbar1
  118. property alias data_target2Edit: data_target2Edit
  119. property alias data_target1Edit: data_target1Edit
  120. property alias data_target2Mouse: data_target2Mouse
  121. property alias data_target1Mouse: data_target1Mouse
  122. property alias data_originEdit: data_originEdit
  123. property alias data_originMouse: data_originMouse
  124. property alias data_originTitleText: data_originTitleText
  125. property alias data_originTitleMouse: data_originTitleMouse
  126. property alias data_page: data_page
  127. property alias test_page: test_page
  128. property alias tabBar: tabBar
  129. // 连接C++的信号
  130. Connections {
  131. target: mySerial
  132. onReadSignal: function (recByte) {
  133. mainScreen.recDataDisplay(recByte)
  134. }
  135. onSendSuccess: function (sendByte) {
  136. mainScreen.sendDataDisplay(sendByte)
  137. }
  138. }
  139. Connections {
  140. target: myNetwork
  141. onTcpServer_readSuccess: function (recByte) {
  142. mainScreen.recDataDisplay(recByte)
  143. }
  144. onTcpServer_sendSuccess: function (sendByte) {
  145. mainScreen.sendDataDisplay(sendByte)
  146. }
  147. onTcpClient_readSuccess: function (recByte) {
  148. mainScreen.recDataDisplay(recByte)
  149. }
  150. onTcpClient_sendSuccess: function (sendByte) {
  151. mainScreen.sendDataDisplay(sendByte)
  152. }
  153. onUdp_readSuccess: function (recByte) {
  154. mainScreen.recDataDisplay(recByte)
  155. }
  156. onUdp_sendSuccess: function (sendByte) {
  157. mainScreen.sendDataDisplay(sendByte)
  158. }
  159. }
  160. Connections {
  161. target: myMqtt
  162. onMqttclient_readSuccess: function (recByte) {
  163. mainScreen.recDataDisplay(recByte)
  164. }
  165. }
  166. TabBar {
  167. id: tabBar
  168. height: 18
  169. anchors.left: parent.left
  170. anchors.right: parent.right
  171. anchors.top: parent.top
  172. font.pixelSize: 16
  173. contentWidth: 320
  174. contentHeight: 48
  175. topPadding: -15
  176. anchors.rightMargin: 0
  177. anchors.leftMargin: 0
  178. anchors.topMargin: 0
  179. font.weight: Font.DemiBold
  180. TabButton {
  181. id: serialTool
  182. y: 9
  183. height: 40
  184. text: qsTr("串口调试")
  185. anchors.left: parent.left
  186. icon.source: "../../Res/Icon/button-background-checked.9.png"
  187. icon.color: "#97e91e"
  188. anchors.leftMargin: 0
  189. }
  190. TabButton {
  191. id: ipTool
  192. y: 9
  193. height: 40
  194. text: qsTr("网络调试")
  195. anchors.left: serialTool.right
  196. icon.color: "#ffffff"
  197. anchors.leftMargin: 0
  198. }
  199. TabButton {
  200. id: dataTool
  201. y: 9
  202. height: 40
  203. text: qsTr("数据操作")
  204. anchors.left: ipTool.right
  205. anchors.leftMargin: 0
  206. }
  207. TabButton {
  208. id: testTool
  209. y: 9
  210. height: 40
  211. text: qsTr("图像预览")
  212. anchors.left: dataTool.right
  213. anchors.leftMargin: 0
  214. }
  215. }
  216. Rectangle {
  217. id: data_page
  218. visible: false
  219. color: "#40000000"
  220. anchors.left: parent.left
  221. anchors.right: parent.right
  222. anchors.top: tabBar.bottom
  223. anchors.bottom: parent.bottom
  224. anchors.topMargin: 3
  225. Rectangle {
  226. id: data_originTitlePage
  227. height: 26
  228. visible: true
  229. color: "#00000000"
  230. anchors.left: parent.left
  231. anchors.right: parent.right
  232. anchors.top: parent.top
  233. anchors.rightMargin: 20
  234. anchors.leftMargin: 20
  235. Text {
  236. id: data_originTitleText
  237. width: 200
  238. visible: true
  239. color: "#000000"
  240. text: qsTr("源数据")
  241. anchors.left: parent.left
  242. anchors.top: parent.top
  243. anchors.bottom: parent.bottom
  244. font.pixelSize: 18
  245. verticalAlignment: Text.AlignVCenter
  246. anchors.bottomMargin: 0
  247. anchors.leftMargin: 0
  248. anchors.topMargin: 0
  249. MouseArea {
  250. id: data_originTitleMouse
  251. visible: true
  252. anchors.fill: parent
  253. }
  254. }
  255. Text {
  256. id: data_englishByteText
  257. x: 630
  258. text: qsTr("英文字节数")
  259. anchors.right: data_englishByteTextinput.left
  260. anchors.top: parent.top
  261. anchors.bottom: parent.bottom
  262. font.pixelSize: 16
  263. verticalAlignment: Text.AlignVCenter
  264. anchors.rightMargin: 0
  265. anchors.bottomMargin: 0
  266. anchors.topMargin: 0
  267. }
  268. TextInput {
  269. id: data_englishByteTextinput
  270. width: 120
  271. text: qsTr("0")
  272. anchors.right: data_chineseByteText.left
  273. anchors.top: parent.top
  274. anchors.bottom: parent.bottom
  275. font.pixelSize: 16
  276. horizontalAlignment: Text.AlignRight
  277. verticalAlignment: Text.AlignVCenter
  278. anchors.rightMargin: 30
  279. clip: true
  280. anchors.bottomMargin: 0
  281. anchors.topMargin: 0
  282. }
  283. Text {
  284. id: data_chineseByteText
  285. x: 840
  286. text: qsTr("中文字节数")
  287. anchors.right: data_chineseByteTextinput.left
  288. anchors.top: parent.top
  289. anchors.bottom: parent.bottom
  290. font.pixelSize: 16
  291. verticalAlignment: Text.AlignVCenter
  292. anchors.rightMargin: 0
  293. anchors.bottomMargin: 0
  294. anchors.topMargin: 0
  295. }
  296. TextInput {
  297. id: data_chineseByteTextinput
  298. x: 869
  299. width: 120
  300. height: 20
  301. text: qsTr("0")
  302. anchors.right: parent.right
  303. anchors.top: parent.top
  304. anchors.bottom: parent.bottom
  305. font.pixelSize: 16
  306. horizontalAlignment: Text.AlignRight
  307. verticalAlignment: Text.AlignVCenter
  308. clip: true
  309. anchors.rightMargin: 0
  310. anchors.bottomMargin: 0
  311. anchors.topMargin: 0
  312. }
  313. }
  314. Rectangle {
  315. id: data_originPage
  316. height: parent.height * 0.65
  317. color: "#e0000000"
  318. radius: 10
  319. border.width: 0
  320. anchors.left: data_originTitlePage.left
  321. anchors.right: data_originTitlePage.right
  322. anchors.top: data_originTitlePage.bottom
  323. anchors.rightMargin: 0
  324. anchors.leftMargin: 0
  325. anchors.topMargin: 0
  326. ScrollBar {
  327. id: data_vbar1
  328. hoverEnabled: true
  329. active: hovered || pressed
  330. orientation: Qt.Vertical
  331. size: data_originPage.height / data_originEdit.height
  332. width: 10
  333. anchors.top: parent.top
  334. anchors.right: parent.right
  335. anchors.bottom: parent.bottom
  336. anchors.rightMargin: -10
  337. }
  338. MouseArea {
  339. id: data_originMouse
  340. anchors.fill: parent
  341. clip: true
  342. anchors.rightMargin: 0
  343. TextEdit {
  344. id: data_originEdit
  345. width: parent.width
  346. height: contentHeight
  347. y: -data_vbar1.position * data_originEdit.height
  348. color: "#00ff00"
  349. text: qsTr("")
  350. font.pixelSize: 16
  351. wrapMode: Text.Wrap
  352. textFormat: Text.AutoText
  353. selectionColor: "#ffffff"
  354. selectedTextColor: "#000000"
  355. selectByMouse: true
  356. textMargin: 1
  357. }
  358. }
  359. }
  360. Rectangle {
  361. id: data_target1TitlePage
  362. width: (mainScreen1.width - 60) / 2
  363. height: 26
  364. color: "#00ffffff"
  365. anchors.left: data_originTitlePage.left
  366. anchors.top: data_originPage.bottom
  367. anchors.leftMargin: 0
  368. anchors.topMargin: 0
  369. Text {
  370. id: data_target1TitleText
  371. width: 200
  372. text: qsTr("目标数据一")
  373. anchors.left: parent.left
  374. anchors.top: parent.top
  375. anchors.bottom: parent.bottom
  376. font.pixelSize: 18
  377. verticalAlignment: Text.AlignVCenter
  378. MouseArea {
  379. id: data_target1TitleMouse
  380. anchors.fill: parent
  381. anchors.rightMargin: 0
  382. anchors.bottomMargin: 0
  383. }
  384. }
  385. }
  386. Rectangle {
  387. id: data_target1Page
  388. width: (mainScreen1.width - 100) / 2 //宽度
  389. color: "#e0000000"
  390. radius: 10
  391. border.width: 0
  392. anchors.left: data_originTitlePage.left
  393. anchors.top: data_target1TitlePage.bottom
  394. anchors.bottom: data_btnPage.top
  395. anchors.bottomMargin: 0
  396. anchors.leftMargin: 0
  397. anchors.topMargin: 0
  398. ScrollBar {
  399. id: data_vbar2
  400. hoverEnabled: true
  401. active: hovered || pressed
  402. orientation: Qt.Vertical
  403. size: data_target1Page.height / data_target1Edit.height
  404. width: 10
  405. anchors.top: parent.top
  406. anchors.right: parent.right
  407. anchors.bottom: parent.bottom
  408. anchors.rightMargin: -10
  409. }
  410. MouseArea {
  411. id: data_target1Mouse
  412. anchors.fill: parent
  413. clip: true
  414. anchors.rightMargin: 0
  415. TextEdit {
  416. id: data_target1Edit
  417. width: parent.width
  418. height: contentHeight
  419. y: -data_vbar2.position * data_target1Edit.height
  420. color: "#00ff00"
  421. text: qsTr("")
  422. font.pixelSize: 16
  423. wrapMode: Text.Wrap
  424. selectionColor: "#ffffff"
  425. selectedTextColor: "#000000"
  426. selectByMouse: true
  427. textMargin: 1
  428. }
  429. }
  430. }
  431. Rectangle {
  432. id: data_target2TitlePage
  433. x: 757
  434. width: (mainScreen1.width - 60) / 2
  435. height: 26
  436. color: "#00ffffff"
  437. anchors.right: data_originTitlePage.right
  438. anchors.top: data_originPage.bottom
  439. anchors.rightMargin: 0
  440. anchors.topMargin: 0
  441. Text {
  442. id: data_target2TitleText
  443. width: 200
  444. text: qsTr("目标数据二")
  445. anchors.left: parent.left
  446. anchors.top: parent.top
  447. anchors.bottom: parent.bottom
  448. font.pixelSize: 18
  449. verticalAlignment: Text.AlignVCenter
  450. MouseArea {
  451. id: data_target2TitleMouse
  452. anchors.fill: parent
  453. }
  454. }
  455. }
  456. Rectangle {
  457. id: data_target2Page
  458. x: 640
  459. width: (mainScreen1.width - 60) / 2
  460. color: "#e0000000"
  461. radius: 10
  462. border.width: 0
  463. anchors.right: data_originTitlePage.right
  464. anchors.top: data_target2TitlePage.bottom
  465. anchors.bottom: data_btnPage.top
  466. anchors.bottomMargin: 0
  467. anchors.rightMargin: 0
  468. anchors.topMargin: 0
  469. ScrollBar {
  470. id: data_vbar3
  471. hoverEnabled: true
  472. active: hovered || pressed
  473. orientation: Qt.Vertical
  474. size: data_target2Page.height / data_target2Edit.height
  475. width: 10
  476. anchors.top: parent.top
  477. anchors.right: parent.right
  478. anchors.bottom: parent.bottom
  479. anchors.rightMargin: -10
  480. }
  481. MouseArea {
  482. id: data_target2Mouse
  483. anchors.fill: parent
  484. clip: true
  485. anchors.rightMargin: 0
  486. TextEdit {
  487. id: data_target2Edit
  488. width: parent.width
  489. height: contentHeight
  490. y: -data_vbar3.position * data_target2Edit.height
  491. color: "#00ff00"
  492. text: qsTr("")
  493. font.pixelSize: 16
  494. wrapMode: Text.Wrap
  495. selectByMouse: true
  496. selectedTextColor: "#000000"
  497. selectionColor: "#ffffff"
  498. textMargin: 1
  499. }
  500. }
  501. }
  502. Rectangle {
  503. id: data_btnPage
  504. height: 46
  505. color: "#00ffffff"
  506. anchors.left: data_originTitlePage.left
  507. anchors.right: data_originTitlePage.right
  508. anchors.bottom: parent.bottom
  509. anchors.rightMargin: 0
  510. anchors.leftMargin: 0
  511. anchors.bottomMargin: 0
  512. Button {
  513. id: data_deleta1Btn
  514. width: 90
  515. height: 45
  516. text: qsTr("指定替换")
  517. anchors.verticalCenter: parent.verticalCenter
  518. anchors.left: parent.left
  519. font.pixelSize: 16
  520. anchors.leftMargin: 0
  521. }
  522. Button {
  523. id: data_deleta2Btn
  524. width: 90
  525. height: 45
  526. text: qsTr("范围替换")
  527. anchors.verticalCenter: parent.verticalCenter
  528. anchors.left: parent.left
  529. font.pixelSize: 16
  530. anchors.leftMargin: (data_target1Page.width * 0.5) - (data_deleta2Btn.width * 0.5)
  531. }
  532. Button {
  533. id: data_fine1Btn
  534. width: 90
  535. height: 45
  536. text: qsTr("指定查找")
  537. anchors.verticalCenter: parent.verticalCenter
  538. anchors.left: parent.left
  539. font.pixelSize: 16
  540. anchors.leftMargin: data_target1Page.width - data_fine1Btn.width
  541. }
  542. Button {
  543. id: data_fine2Btn
  544. width: 90
  545. height: 45
  546. text: qsTr("范围查找")
  547. anchors.verticalCenter: parent.verticalCenter
  548. anchors.right: parent.right
  549. font.pixelSize: 16
  550. anchors.rightMargin: data_target2Page.width - data_fine2Btn.width
  551. }
  552. Button {
  553. id: data_changeBtn
  554. width: 90
  555. height: 45
  556. text: qsTr("数据转码")
  557. anchors.verticalCenter: parent.verticalCenter
  558. anchors.right: parent.right
  559. font.pixelSize: 16
  560. anchors.rightMargin: (data_target2Page.width * 0.5) - (data_changeBtn.width * 0.5)
  561. }
  562. ComboBox {
  563. id: data_codeCombo
  564. width: 90
  565. height: 45
  566. anchors.verticalCenter: parent.verticalCenter
  567. anchors.right: parent.right
  568. font.pixelSize: 16
  569. anchors.rightMargin: 0
  570. model: ["UTF8", "HEX"]
  571. }
  572. }
  573. }
  574. //不可见项目,通常和一个课件项目配合使用来为其提供鼠标处理。鼠标处理的逻辑可以包含在一个MouseArea中
  575. MouseArea {
  576. id: myMouseArea
  577. x: 0
  578. y: 40
  579. anchors.left: parent.left
  580. anchors.right: parent.right
  581. anchors.top: tabBar.bottom
  582. anchors.bottom: parent.bottom
  583. hoverEnabled: true
  584. propagateComposedEvents: false
  585. anchors.topMargin: 3
  586. Rectangle {
  587. id: serial_ip_page
  588. opacity: 1 //属性指定了一个元素的不透明度,0,完全透明
  589. color: "#20000000"
  590. border.color: "#11000000"
  591. border.width: 1
  592. anchors.left: parent.left
  593. anchors.right: parent.right
  594. anchors.top: parent.top
  595. anchors.bottom: parent.bottom
  596. anchors.topMargin: 0
  597. Rectangle {
  598. id: serial_leftSidePage
  599. width: 180
  600. color: "#00000000"
  601. radius: 10
  602. border.color: "#000000"
  603. border.width: 0
  604. anchors.left: parent.left
  605. anchors.top: parent.top
  606. anchors.bottom: parent.bottom
  607. anchors.topMargin: 0
  608. anchors.bottomMargin: 0
  609. anchors.leftMargin: 0
  610. Label {
  611. id: serial_nameLab
  612. width: 60
  613. height: 40
  614. text: qsTr("端口号")
  615. anchors.left: parent.left
  616. anchors.top: parent.top
  617. font.pixelSize: 16
  618. horizontalAlignment: Text.AlignHCenter
  619. verticalAlignment: Text.AlignVCenter
  620. anchors.topMargin: 8
  621. anchors.leftMargin: 1
  622. }
  623. ComboBox {
  624. objectName: "serial_name"
  625. id: serial_nameCombo
  626. width: 110
  627. height: 40
  628. anchors.left: serial_nameLab.right
  629. anchors.top: parent.top
  630. font.pixelSize: 16
  631. anchors.topMargin: 8
  632. wheelEnabled: true
  633. anchors.leftMargin: 3
  634. }
  635. Label {
  636. id: serial_boudLab
  637. width: 60
  638. height: 40
  639. text: qsTr("波特率")
  640. anchors.left: parent.left
  641. anchors.top: serial_descriptionLab.bottom
  642. font.pixelSize: 16
  643. horizontalAlignment: Text.AlignHCenter
  644. verticalAlignment: Text.AlignVCenter
  645. anchors.topMargin: 3
  646. anchors.leftMargin: 0
  647. }
  648. ComboBox {
  649. id: serial_boudCombo
  650. width: 110
  651. height: 40
  652. anchors.left: serial_boudLab.right
  653. anchors.top: serial_descriptionLab.bottom
  654. font.pixelSize: 16
  655. anchors.topMargin: 3
  656. wheelEnabled: true
  657. flat: true
  658. currentIndex: 6
  659. editable: true
  660. anchors.leftMargin: 3
  661. objectName: "serial_boud"
  662. model: ["4800", "9600", "19200", "38400", "57600", "74800", "115200"]
  663. }
  664. Label {
  665. id: serial_checkBitLab
  666. width: 60
  667. height: 40
  668. text: qsTr("校验位")
  669. anchors.left: serial_boudCombo.right
  670. anchors.bottom: serial_boudLab.bottom
  671. font.pixelSize: 16
  672. horizontalAlignment: Text.AlignHCenter
  673. verticalAlignment: Text.AlignVCenter
  674. anchors.topMargin: 0
  675. anchors.leftMargin: 0
  676. }
  677. ComboBox {
  678. id: serial_checkBitCombo
  679. width: 95
  680. height: 40
  681. anchors.left: serial_checkBitLab.right
  682. anchors.bottom: serial_boudCombo.bottom
  683. font.pixelSize: 16
  684. anchors.topMargin: 0
  685. wheelEnabled: true
  686. anchors.leftMargin: 18
  687. objectName: "serial_checkBit"
  688. model: ["None", "Even", "Odd"]
  689. }
  690. Label {
  691. id: serial_dataBitLab
  692. width: 75
  693. height: 40
  694. color: "#dd000000"
  695. text: qsTr("数据位数")
  696. anchors.left: serial_checkBitCombo.right
  697. anchors.bottom: serial_boudLab.bottom
  698. font.pixelSize: 16
  699. horizontalAlignment: Text.AlignHCenter
  700. verticalAlignment: Text.AlignVCenter
  701. styleColor: "#000000"
  702. anchors.topMargin: 0
  703. anchors.leftMargin: 0
  704. }
  705. ComboBox {
  706. id: serial_dataBitCombo
  707. width: 73
  708. height: 40
  709. anchors.left: serial_dataBitLab.right
  710. anchors.bottom: serial_boudCombo.bottom
  711. font.pixelSize: 16
  712. anchors.topMargin: 0
  713. wheelEnabled: true
  714. currentIndex: 3
  715. anchors.leftMargin: 25
  716. objectName: "serial_dataBit"
  717. model: ["5", "6", "7", "8"]
  718. }
  719. Label {
  720. id: serial_stopBitLab
  721. width: 75
  722. height: 40
  723. text: qsTr("停止位数")
  724. anchors.left: serial_dataBitCombo.right
  725. anchors.bottom: serial_dataBitLab.bottom
  726. font.pixelSize: 16
  727. horizontalAlignment: Text.AlignHCenter
  728. verticalAlignment: Text.AlignVCenter
  729. anchors.topMargin: 0
  730. anchors.leftMargin: 0
  731. }
  732. ComboBox {
  733. id: serial_stopBitCombo
  734. width: 73
  735. height: 40
  736. anchors.left: serial_stopBitLab.right
  737. anchors.bottom: serial_boudCombo.bottom
  738. font.pixelSize: 16
  739. anchors.topMargin: 0
  740. wheelEnabled: true
  741. anchors.leftMargin: 25
  742. objectName: "serial_stopBit"
  743. model: ["1", "1.5", "2"]
  744. }
  745. Label {
  746. objectName: "serial_description"
  747. id: serial_descriptionLab
  748. height: 20
  749. anchors.left: parent.left
  750. anchors.right: serial_switch.right
  751. anchors.top: serial_nameLab.bottom
  752. font.pixelSize: 14
  753. horizontalAlignment: Text.AlignRight
  754. verticalAlignment: Text.AlignVCenter
  755. clip: true
  756. anchors.rightMargin: 6
  757. anchors.topMargin: 1
  758. anchors.leftMargin: 6
  759. }
  760. SwitchDelegate {
  761. id: serial_switch
  762. height: 36
  763. text: qsTr("串口开关")
  764. anchors.left: serial_nameCombo.right
  765. //anchors.right: parent.right
  766. anchors.top: parent.top
  767. leftPadding: 6
  768. scale: 1
  769. bottomPadding: 8
  770. topPadding: 8
  771. anchors.topMargin: 10
  772. padding: 4
  773. anchors.leftMargin: 0
  774. focusPolicy: Qt.NoFocus
  775. objectName: "serial_switch"
  776. font.pixelSize: 16
  777. anchors.rightMargin: 0
  778. rightPadding: 18
  779. }
  780. }
  781. Rectangle {
  782. id: sendDataPage
  783. height: 135
  784. color: "#e0000000"
  785. radius: 5
  786. border.color: "#000000"
  787. border.width: 0
  788. anchors.left: parent.left
  789. anchors.right: txConfig.left
  790. anchors.bottom: parent.bottom
  791. anchors.rightMargin: 10
  792. clip: true
  793. anchors.bottomMargin: 1
  794. anchors.leftMargin: 10
  795. focus: true
  796. ScrollBar {
  797. id: vbar2
  798. y: 0
  799. width: 10
  800. anchors.left: parent.right
  801. anchors.top: parent.top
  802. anchors.bottom: parent.bottom
  803. anchors.leftMargin: 0
  804. orientation: Qt.Vertical
  805. hoverEnabled: true
  806. size: sendDataPage.height / sendDataEdit.height
  807. }
  808. MouseArea {
  809. id: sendDataMouse
  810. anchors.bottom: parent.bottom
  811. anchors.fill: parent
  812. anchors.bottomMargin: 0
  813. anchors.rightMargin: 0
  814. clip: true
  815. TextEdit {
  816. id: sendDataEdit
  817. y: -vbar2.position * sendDataEdit.height
  818. width: parent.width
  819. height: contentHeight
  820. color: "#00ff00"
  821. text: qsTr("发送区")
  822. font.pixelSize: 16
  823. wrapMode: Text.Wrap
  824. textFormat: Text.PlainText
  825. selectedTextColor: "#000000"
  826. selectByKeyboard: true
  827. textMargin: 1
  828. objectName: "sendData"
  829. selectByMouse: true
  830. selectionColor: "#ffffff"
  831. }
  832. }
  833. }
  834. //数据接收区域
  835. Rectangle {
  836. id: recDataPage
  837. width: 800
  838. height: 430
  839. color: "#e0000000"
  840. radius: 5 //圆角半径
  841. border.width: 1
  842. anchors.left: parent.left //左边
  843. //anchors.top: sub_row.bottom
  844. anchors.bottom: tx_rxBytePage.top
  845. anchors.bottomMargin: 10
  846. clip: true
  847. anchors.topMargin: 1
  848. anchors.leftMargin: 10
  849. focus: true // 如果没有焦点项,键事件就不能被处理,它就不能在一个屏幕中做任何事情——应用程序会挂起!!
  850. //滚动条控件
  851. ScrollBar {
  852. id: vbar1
  853. width: 10
  854. anchors.left: parent.right
  855. anchors.top: parent.top
  856. anchors.bottom: parent.bottom
  857. anchors.leftMargin: 0
  858. active: hovered || pressed
  859. size: recDataPage.height / recDataEdit.height
  860. orientation: Qt.Vertical
  861. hoverEnabled: true
  862. }
  863. //动画图像控件
  864. AnimatedImage {
  865. id: animatedImage
  866. opacity: 0.3 //透明度
  867. visible: true
  868. anchors.left: parent.left //左边
  869. anchors.right: parent.right
  870. anchors.top: parent.top
  871. anchors.bottom: parent.bottom
  872. source: "../img/001.gif"
  873. anchors.rightMargin: 0
  874. }
  875. //是一个不可见项,通常与可见项结合使用,以便为该项提供鼠标处理。通过有效地充当代理,鼠标处理的逻辑可以包含在 MouseArea 项中
  876. MouseArea {
  877. id: recDataMouse
  878. visible: true
  879. anchors.left: parent.left
  880. anchors.right: parent.right
  881. anchors.top: parent.top
  882. anchors.bottom: parent.bottom
  883. anchors.bottomMargin: 0
  884. anchors.rightMargin: 0
  885. clip: true
  886. TextEdit {
  887. id: recDataEdit
  888. y: -vbar1.position * recDataEdit.height
  889. width: parent.width
  890. height: contentHeight
  891. color: "#00ff00"
  892. text: qsTr("123456")
  893. font.pixelSize: 16
  894. verticalAlignment: Text.AlignTop
  895. wrapMode: Text.Wrap
  896. textFormat: Text.AutoText
  897. selectedTextColor: "#000000"
  898. readOnly: true //只读
  899. selectByKeyboard: true
  900. textMargin: 1 //字符间距
  901. objectName: "recData"
  902. selectByMouse: true //鼠标可选
  903. selectionColor: "#ffffff" //选中后颜色
  904. }
  905. }
  906. }
  907. Rectangle {
  908. id: rxConfig
  909. width: 380
  910. height: 40
  911. color: "#00ffffff"
  912. radius: 10
  913. border.width: 0
  914. anchors.left: serial_leftSidePage.right
  915. anchors.bottom: sendDataPage.top
  916. anchors.bottomMargin: 0
  917. Button {
  918. id: rxEN_btn
  919. width: 40
  920. height: 40
  921. text: "Rx"
  922. anchors.left: rxCode_btn.right
  923. anchors.top: parent.top
  924. font.pixelSize: 14
  925. anchors.topMargin: 0
  926. highlighted: true
  927. anchors.leftMargin: 10
  928. objectName: "rxEN"
  929. }
  930. Button {
  931. id: txEN_btn
  932. x: -47
  933. width: 40
  934. height: 40
  935. text: qsTr("Tx")
  936. anchors.left: rxEN_btn.right
  937. anchors.top: parent.top
  938. font.pixelSize: 14
  939. anchors.topMargin: 0
  940. anchors.leftMargin: 10
  941. objectName: "txEN"
  942. }
  943. Button {
  944. id: rxCode_btn
  945. width: 60
  946. height: 40
  947. text: qsTr("ASCII")
  948. anchors.left: parent.left
  949. anchors.top: parent.top
  950. font.pixelSize: 14
  951. anchors.topMargin: 0
  952. highlighted: true
  953. anchors.leftMargin: 4
  954. objectName: "rxCode"
  955. }
  956. Button {
  957. id: rxClear_btn
  958. width: 60
  959. height: 40
  960. text: qsTr("clear")
  961. anchors.left: saveFile_btn.right
  962. anchors.top: parent.top
  963. font.pixelSize: 14
  964. anchors.topMargin: 0
  965. anchors.leftMargin: 10
  966. }
  967. Button {
  968. id: displayDate_btn
  969. width: 60
  970. height: 40
  971. text: qsTr("date")
  972. anchors.left: txEN_btn.right
  973. anchors.top: parent.top
  974. font.pixelSize: 14
  975. anchors.topMargin: 0
  976. anchors.leftMargin: 10
  977. objectName: "displayDate"
  978. }
  979. Button {
  980. id: saveFile_btn
  981. width: 60
  982. height: 40
  983. text: qsTr("file")
  984. anchors.left: displayDate_btn.right
  985. anchors.top: parent.top
  986. font.pixelSize: 14
  987. anchors.topMargin: 0
  988. anchors.leftMargin: 10
  989. objectName: "saveFile"
  990. }
  991. anchors.leftMargin: 0
  992. }
  993. Rectangle {
  994. id: txConfig
  995. width: 140
  996. height: 176
  997. color: "#00ffffff"
  998. radius: 10
  999. anchors.right: recDataPage.right
  1000. anchors.bottom: parent.bottom
  1001. anchors.rightMargin: 0
  1002. anchors.bottomMargin: 0
  1003. Button {
  1004. id: txCode_btn
  1005. width: 60
  1006. height: 40
  1007. text: qsTr("ASCII")
  1008. anchors.left: parent.left
  1009. anchors.top: slider_color.bottom
  1010. font.pixelSize: 14
  1011. anchors.topMargin: 0
  1012. highlighted: true
  1013. anchors.leftMargin: 6
  1014. objectName: "txCode"
  1015. }
  1016. Button {
  1017. id: txClear_btn
  1018. x: 0
  1019. width: 60
  1020. height: 40
  1021. text: qsTr("clear")
  1022. anchors.right: parent.right
  1023. anchors.top: slider_color.bottom
  1024. font.pixelSize: 14
  1025. anchors.topMargin: 0
  1026. anchors.rightMargin: 6
  1027. }
  1028. Button {
  1029. id: txSend_btn
  1030. width: 60
  1031. height: 40
  1032. text: qsTr("send")
  1033. anchors.left: parent.left
  1034. anchors.top: txCode_btn.bottom
  1035. font.pixelSize: 14
  1036. anchors.topMargin: 0
  1037. anchors.leftMargin: 6
  1038. }
  1039. Button {
  1040. id: txAutoSend_btn
  1041. x: 53
  1042. width: 60
  1043. height: 40
  1044. text: qsTr("AUTO")
  1045. anchors.right: parent.right
  1046. anchors.top: txClear_btn.bottom
  1047. font.pixelSize: 14
  1048. anchors.topMargin: 0
  1049. anchors.rightMargin: 6
  1050. }
  1051. Rectangle {
  1052. id: autoSendTimePage
  1053. y: 120
  1054. height: 36
  1055. color: "#00ffffff"
  1056. anchors.left: parent.left
  1057. anchors.right: parent.right
  1058. anchors.bottom: txSuffixCombo.top
  1059. anchors.rightMargin: 6
  1060. anchors.bottomMargin: 0
  1061. anchors.leftMargin: 6
  1062. TextArea {
  1063. id: autoSendTime
  1064. anchors.fill: parent
  1065. font.pixelSize: 16
  1066. bottomPadding: 4
  1067. topPadding: 8
  1068. placeholderText: "ms"
  1069. selectByMouse: true
  1070. selectedTextColor: "white"
  1071. selectionColor: "black"
  1072. }
  1073. }
  1074. ComboBox {
  1075. id: txSuffixCombo
  1076. y: 0
  1077. height: 40
  1078. anchors.left: parent.left
  1079. anchors.right: parent.right
  1080. anchors.bottom: parent.bottom
  1081. font.pixelSize: 16
  1082. anchors.rightMargin: 6
  1083. anchors.bottomMargin: 2
  1084. anchors.leftMargin: 6
  1085. objectName: "txSuffix"
  1086. model: ["None", "\\r", "\\n", "\\r\\n", "\\n\\r"]
  1087. }
  1088. Slider {
  1089. id: slider_color
  1090. width: 126
  1091. height: 20
  1092. anchors.left: parent.left
  1093. anchors.right: parent.right
  1094. anchors.top: parent.top
  1095. anchors.topMargin: 2
  1096. anchors.rightMargin: 0
  1097. stepSize: 1
  1098. value: 0
  1099. anchors.leftMargin: 0
  1100. to: 125
  1101. from: 0
  1102. }
  1103. }
  1104. Rectangle {
  1105. id: shortcut_rightSidePage
  1106. color: "#00ffffff"
  1107. radius: 10
  1108. anchors.left: recDataPage.right
  1109. anchors.right: parent.right
  1110. anchors.top: parent.top
  1111. anchors.bottom: parent.bottom
  1112. anchors.topMargin: 0
  1113. anchors.rightMargin: 0
  1114. anchors.bottomMargin: 0
  1115. anchors.leftMargin: 10
  1116. Label {
  1117. id: shortcut_titleText
  1118. text: qsTr("发送区快捷方式")
  1119. anchors.left: parent.left
  1120. anchors.right: parent.right
  1121. anchors.top: parent.top
  1122. font.pixelSize: 14
  1123. horizontalAlignment: Text.AlignHCenter
  1124. verticalAlignment: Text.AlignVCenter
  1125. anchors.rightMargin: 0
  1126. anchors.leftMargin: 0
  1127. anchors.topMargin: 4
  1128. font.italic: true
  1129. font.bold: false
  1130. MouseArea {
  1131. id: shortcut_titleTextMouse
  1132. anchors.fill: parent
  1133. hoverEnabled: true
  1134. }
  1135. }
  1136. Rectangle {
  1137. id: shortcut_contentPage
  1138. color: "#00ffffff"
  1139. anchors.left: parent.left
  1140. anchors.right: parent.right
  1141. anchors.top: shortcut_titleText.bottom
  1142. anchors.bottom: parent.bottom
  1143. anchors.rightMargin: 0
  1144. anchors.bottomMargin: 0
  1145. anchors.leftMargin: 0
  1146. anchors.topMargin: 0
  1147. Label {
  1148. id: shortcut_CtrlLab1
  1149. width: 14
  1150. height: 24
  1151. visible: true
  1152. text: qsTr("1.")
  1153. anchors.verticalCenter: shortcut_Btn1.verticalCenter
  1154. anchors.left: parent.left
  1155. font.pixelSize: 14
  1156. verticalAlignment: Text.AlignVCenter
  1157. anchors.leftMargin: 0
  1158. }
  1159. Button {
  1160. id: shortcut_Btn1
  1161. width: 50
  1162. height: 30
  1163. text: qsTr("SEND")
  1164. anchors.left: shortcut_CtrlLab1.right
  1165. anchors.top: parent.top
  1166. font.pixelSize: 12
  1167. anchors.leftMargin: 2
  1168. anchors.topMargin: 0
  1169. spacing: 6
  1170. }
  1171. TextField {
  1172. objectName: "shortcut_CtrlText1"
  1173. id: shortcut_CtrlText1
  1174. height: 24
  1175. anchors.verticalCenter: shortcut_Btn1.verticalCenter
  1176. anchors.left: shortcut_Btn1.right
  1177. font.pixelSize: 14
  1178. anchors.leftMargin: 4
  1179. font.preferShaping: true
  1180. font.kerning: true
  1181. placeholderText: qsTr("CTRL+1快捷发送此内容")
  1182. bottomPadding: 0
  1183. topPadding: 0
  1184. selectByMouse: true
  1185. selectedTextColor: "white"
  1186. selectionColor: "black"
  1187. background: Rectangle {
  1188. color: "#ffffff"
  1189. anchors.fill: parent
  1190. anchors.bottomMargin: 0
  1191. }
  1192. }
  1193. Label {
  1194. id: shortcut_CtrlLab2
  1195. width: 14
  1196. height: 24
  1197. visible: true
  1198. text: qsTr("2.")
  1199. anchors.verticalCenter: shortcut_Btn2.verticalCenter
  1200. anchors.left: parent.left
  1201. font.pixelSize: 14
  1202. verticalAlignment: Text.AlignVCenter
  1203. anchors.leftMargin: 0
  1204. }
  1205. Button {
  1206. id: shortcut_Btn2
  1207. width: 50
  1208. height: 30
  1209. text: qsTr("SEND")
  1210. anchors.left: shortcut_CtrlLab2.right
  1211. anchors.top: shortcut_Btn1.bottom
  1212. font.pixelSize: 12
  1213. anchors.leftMargin: 2
  1214. anchors.topMargin: 0
  1215. }
  1216. TextField {
  1217. objectName: "shortcut_CtrlText2"
  1218. id: shortcut_CtrlText2
  1219. height: 24
  1220. anchors.verticalCenter: shortcut_Btn2.verticalCenter
  1221. anchors.left: shortcut_Btn2.right
  1222. font.pixelSize: 14
  1223. anchors.leftMargin: 4
  1224. background: Rectangle {
  1225. color: "#ffffff"
  1226. anchors.fill: parent
  1227. anchors.bottomMargin: 0
  1228. }
  1229. bottomPadding: 0
  1230. selectByMouse: true
  1231. topPadding: 0
  1232. selectedTextColor: "#ffffff"
  1233. selectionColor: "#000000"
  1234. placeholderText: qsTr("CTRL+2快捷发送此内容")
  1235. }
  1236. Label {
  1237. id: shortcut_CtrlLab3
  1238. width: 14
  1239. height: 24
  1240. visible: true
  1241. text: qsTr("3.")
  1242. anchors.verticalCenter: shortcut_Btn3.verticalCenter
  1243. anchors.left: parent.left
  1244. font.pixelSize: 14
  1245. verticalAlignment: Text.AlignVCenter
  1246. anchors.leftMargin: 0
  1247. }
  1248. Button {
  1249. id: shortcut_Btn3
  1250. width: 50
  1251. height: 30
  1252. text: qsTr("SEND")
  1253. anchors.left: shortcut_CtrlLab3.right
  1254. anchors.top: shortcut_Btn2.bottom
  1255. font.pixelSize: 12
  1256. anchors.leftMargin: 2
  1257. anchors.topMargin: 0
  1258. }
  1259. TextField {
  1260. objectName: "shortcut_CtrlText3"
  1261. id: shortcut_CtrlText3
  1262. y: 117
  1263. height: 24
  1264. anchors.verticalCenter: shortcut_Btn3.verticalCenter
  1265. anchors.left: shortcut_Btn3.right
  1266. font.pixelSize: 14
  1267. anchors.verticalCenterOffset: 0
  1268. anchors.leftMargin: 4
  1269. background: Rectangle {
  1270. color: "#ffffff"
  1271. anchors.fill: parent
  1272. anchors.bottomMargin: 0
  1273. }
  1274. bottomPadding: 0
  1275. selectByMouse: true
  1276. topPadding: 0
  1277. selectedTextColor: "#ffffff"
  1278. selectionColor: "#000000"
  1279. placeholderText: qsTr("CTRL+3快捷发送此内容")
  1280. }
  1281. Label {
  1282. id: shortcut_CtrlLab4
  1283. width: 14
  1284. height: 24
  1285. visible: true
  1286. text: qsTr("4.")
  1287. anchors.verticalCenter: shortcut_Btn4.verticalCenter
  1288. anchors.left: parent.left
  1289. font.pixelSize: 14
  1290. verticalAlignment: Text.AlignVCenter
  1291. anchors.leftMargin: 0
  1292. }
  1293. Button {
  1294. id: shortcut_Btn4
  1295. width: 50
  1296. height: 28
  1297. text: qsTr("SEND")
  1298. anchors.left: shortcut_CtrlLab4.right
  1299. anchors.top: shortcut_Btn3.bottom
  1300. font.pixelSize: 12
  1301. anchors.leftMargin: 2
  1302. anchors.topMargin: 0
  1303. }
  1304. TextField {
  1305. objectName: "shortcut_CtrlText4"
  1306. id: shortcut_CtrlText4
  1307. height: 24
  1308. anchors.verticalCenter: shortcut_Btn4.verticalCenter
  1309. anchors.left: shortcut_Btn4.right
  1310. font.pixelSize: 14
  1311. anchors.leftMargin: 4
  1312. background: Rectangle {
  1313. color: "#ffffff"
  1314. anchors.fill: parent
  1315. anchors.bottomMargin: 0
  1316. }
  1317. bottomPadding: 0
  1318. selectByMouse: true
  1319. topPadding: 0
  1320. selectedTextColor: "#ffffff"
  1321. selectionColor: "#000000"
  1322. placeholderText: qsTr("CTRL+4快捷发送此内容")
  1323. }
  1324. Label {
  1325. id: shortcut_CtrlLab5
  1326. width: 14
  1327. height: 24
  1328. visible: true
  1329. text: qsTr("5.")
  1330. anchors.verticalCenter: shortcut_Btn5.verticalCenter
  1331. anchors.left: parent.left
  1332. font.pixelSize: 14
  1333. verticalAlignment: Text.AlignVCenter
  1334. anchors.leftMargin: 0
  1335. }
  1336. Button {
  1337. id: shortcut_Btn5
  1338. width: 50
  1339. height: 28
  1340. text: qsTr("SEND")
  1341. anchors.left: shortcut_CtrlLab5.right
  1342. anchors.top: shortcut_Btn4.bottom
  1343. font.pixelSize: 12
  1344. anchors.leftMargin: 2
  1345. anchors.topMargin: 0
  1346. }
  1347. TextField {
  1348. objectName: "shortcut_CtrlText5"
  1349. id: shortcut_CtrlText5
  1350. height: 24
  1351. anchors.verticalCenter: shortcut_Btn5.verticalCenter
  1352. anchors.left: shortcut_Btn5.right
  1353. font.pixelSize: 14
  1354. anchors.leftMargin: 4
  1355. background: Rectangle {
  1356. color: "#ffffff"
  1357. anchors.fill: parent
  1358. anchors.bottomMargin: 0
  1359. }
  1360. bottomPadding: 0
  1361. selectByMouse: true
  1362. topPadding: 0
  1363. selectedTextColor: "#ffffff"
  1364. selectionColor: "#000000"
  1365. placeholderText: qsTr("CTRL+5快捷发送此内容")
  1366. }
  1367. Label {
  1368. id: shortcut_AltLab1
  1369. width: 14
  1370. height: 24
  1371. visible: true
  1372. text: qsTr("1.")
  1373. anchors.verticalCenter: shortcut_Btn6.verticalCenter
  1374. anchors.left: parent.left
  1375. font.pixelSize: 14
  1376. verticalAlignment: Text.AlignVCenter
  1377. anchors.leftMargin: 0
  1378. }
  1379. Button {
  1380. id: shortcut_Btn6
  1381. width: 50
  1382. height: 28
  1383. text: qsTr("SEND")
  1384. anchors.left: shortcut_AltLab1.right
  1385. anchors.top: shortcut_Btn5.bottom
  1386. font.pixelSize: 12
  1387. anchors.leftMargin: 2
  1388. anchors.topMargin: 0
  1389. }
  1390. TextField {
  1391. objectName: "shortcut_AltText1"
  1392. id: shortcut_AltText1
  1393. height: 24
  1394. anchors.verticalCenter: shortcut_Btn6.verticalCenter
  1395. anchors.left: shortcut_Btn6.right
  1396. font.pixelSize: 14
  1397. anchors.leftMargin: 4
  1398. background: Rectangle {
  1399. color: "#ffffff"
  1400. anchors.fill: parent
  1401. anchors.bottomMargin: 0
  1402. }
  1403. bottomPadding: 0
  1404. selectByMouse: true
  1405. topPadding: 0
  1406. selectedTextColor: "#ffffff"
  1407. selectionColor: "#000000"
  1408. placeholderText: qsTr("ALT+1快捷发送此内容")
  1409. }
  1410. Label {
  1411. id: shortcut_AltLab2
  1412. width: 14
  1413. height: 24
  1414. visible: true
  1415. text: qsTr("2.")
  1416. anchors.verticalCenter: shortcut_Btn7.verticalCenter
  1417. anchors.left: parent.left
  1418. font.pixelSize: 14
  1419. verticalAlignment: Text.AlignVCenter
  1420. anchors.leftMargin: 0
  1421. }
  1422. Button {
  1423. id: shortcut_Btn7
  1424. width: 50
  1425. height: 28
  1426. text: qsTr("SEND")
  1427. anchors.left: shortcut_AltLab2.right
  1428. anchors.top: shortcut_Btn6.bottom
  1429. font.pixelSize: 12
  1430. anchors.leftMargin: 2
  1431. anchors.topMargin: 0
  1432. }
  1433. TextField {
  1434. objectName: "shortcut_AltText2"
  1435. id: shortcut_AltText2
  1436. height: 24
  1437. anchors.verticalCenter: shortcut_Btn7.verticalCenter
  1438. anchors.left: shortcut_Btn7.right
  1439. font.pixelSize: 14
  1440. anchors.leftMargin: 4
  1441. bottomPadding: 0
  1442. selectByMouse: true
  1443. topPadding: 0
  1444. selectedTextColor: "#ffffff"
  1445. selectionColor: "#000000"
  1446. placeholderText: qsTr("ALT+2快捷发送此内容")
  1447. background: Rectangle {
  1448. color: "#ffffff"
  1449. anchors.fill: parent
  1450. anchors.bottomMargin: 0
  1451. }
  1452. }
  1453. Label {
  1454. id: shortcut_AltLab3
  1455. width: 14
  1456. height: 24
  1457. visible: true
  1458. text: qsTr("3.")
  1459. anchors.verticalCenter: shortcut_Btn8.verticalCenter
  1460. anchors.left: parent.left
  1461. font.pixelSize: 14
  1462. verticalAlignment: Text.AlignVCenter
  1463. anchors.leftMargin: 0
  1464. }
  1465. Button {
  1466. id: shortcut_Btn8
  1467. width: 50
  1468. height: 28
  1469. text: qsTr("SEND")
  1470. font.pixelSize: 12
  1471. anchors.left: shortcut_AltLab3.right
  1472. anchors.top: shortcut_Btn7.bottom
  1473. anchors.leftMargin: 2
  1474. anchors.topMargin: 0
  1475. }
  1476. TextField {
  1477. objectName: "shortcut_AltText3"
  1478. id: shortcut_AltText3
  1479. x: 66
  1480. y: 117
  1481. height: 24
  1482. anchors.verticalCenter: shortcut_Btn8.verticalCenter
  1483. anchors.left: shortcut_Btn8.right
  1484. font.pixelSize: 14
  1485. anchors.leftMargin: 4
  1486. bottomPadding: 0
  1487. selectByMouse: true
  1488. topPadding: 0
  1489. selectedTextColor: "#ffffff"
  1490. selectionColor: "#000000"
  1491. placeholderText: qsTr("ALT+3快捷发送此内容")
  1492. background: Rectangle {
  1493. color: "#ffffff"
  1494. anchors.fill: parent
  1495. anchors.bottomMargin: 0
  1496. }
  1497. }
  1498. Label {
  1499. id: shortcut_AltLab4
  1500. width: 14
  1501. height: 24
  1502. visible: true
  1503. text: qsTr("4.")
  1504. anchors.verticalCenter: shortcut_Btn9.verticalCenter
  1505. anchors.left: parent.left
  1506. font.pixelSize: 14
  1507. verticalAlignment: Text.AlignVCenter
  1508. anchors.leftMargin: 0
  1509. }
  1510. Button {
  1511. id: shortcut_Btn9
  1512. width: 50
  1513. height: 28
  1514. text: qsTr("SEND")
  1515. anchors.left: shortcut_AltLab4.right
  1516. anchors.top: shortcut_Btn8.bottom
  1517. font.pixelSize: 12
  1518. anchors.leftMargin: 2
  1519. anchors.topMargin: 0
  1520. }
  1521. TextField {
  1522. objectName: "shortcut_AltText4"
  1523. id: shortcut_AltText4
  1524. height: 24
  1525. anchors.verticalCenter: shortcut_Btn9.verticalCenter
  1526. anchors.left: shortcut_Btn9.right
  1527. font.pixelSize: 14
  1528. anchors.leftMargin: 4
  1529. background: Rectangle {
  1530. color: "#ffffff"
  1531. anchors.fill: parent
  1532. anchors.bottomMargin: 0
  1533. }
  1534. bottomPadding: 0
  1535. selectByMouse: true
  1536. topPadding: 0
  1537. selectedTextColor: "#ffffff"
  1538. selectionColor: "#000000"
  1539. placeholderText: qsTr("ALT+4快捷发送此内容")
  1540. }
  1541. Label {
  1542. id: shortcut_AltLab5
  1543. width: 14
  1544. height: 24
  1545. visible: true
  1546. text: qsTr("5.")
  1547. anchors.verticalCenter: shortcut_Btn10.verticalCenter
  1548. anchors.left: parent.left
  1549. font.pixelSize: 14
  1550. verticalAlignment: Text.AlignVCenter
  1551. anchors.leftMargin: 0
  1552. }
  1553. Button {
  1554. id: shortcut_Btn10
  1555. width: 50
  1556. height: 28
  1557. text: qsTr("SEND")
  1558. anchors.left: shortcut_AltLab5.right
  1559. anchors.top: shortcut_Btn9.bottom
  1560. font.pixelSize: 12
  1561. anchors.leftMargin: 2
  1562. anchors.topMargin: 0
  1563. }
  1564. TextField {
  1565. objectName: "shortcut_AltText5"
  1566. id: shortcut_AltText5
  1567. height: 24
  1568. anchors.verticalCenter: shortcut_Btn10.verticalCenter
  1569. anchors.left: shortcut_Btn10.right
  1570. font.pixelSize: 14
  1571. anchors.leftMargin: 4
  1572. background: Rectangle {
  1573. color: "#ffffff"
  1574. anchors.fill: parent
  1575. anchors.bottomMargin: 0
  1576. }
  1577. bottomPadding: 0
  1578. selectByMouse: true
  1579. topPadding: 0
  1580. selectedTextColor: "#ffffff"
  1581. selectionColor: "#000000"
  1582. placeholderText: qsTr("ALT+5快捷发送此内容")
  1583. }
  1584. Label {
  1585. id: shortcut_Laba
  1586. width: 14
  1587. height: 24
  1588. visible: true
  1589. text: qsTr("a.")
  1590. anchors.verticalCenter: shortcut_Btn11.verticalCenter
  1591. anchors.left: parent.left
  1592. font.pixelSize: 14
  1593. verticalAlignment: Text.AlignVCenter
  1594. anchors.leftMargin: 0
  1595. }
  1596. Button {
  1597. id: shortcut_Btn11
  1598. width: 50
  1599. height: 28
  1600. text: qsTr("SEND")
  1601. anchors.left: shortcut_Laba.right
  1602. anchors.top: shortcut_Btn10.bottom
  1603. font.pixelSize: 12
  1604. anchors.leftMargin: 2
  1605. anchors.topMargin: 0
  1606. }
  1607. TextField {
  1608. objectName: "shortcut_Texta"
  1609. id: shortcut_Texta
  1610. height: 24
  1611. anchors.verticalCenter: shortcut_Btn11.verticalCenter
  1612. anchors.left: shortcut_Btn11.right
  1613. font.pixelSize: 14
  1614. anchors.leftMargin: 4
  1615. background: Rectangle {
  1616. color: "#ffffff"
  1617. anchors.fill: parent
  1618. anchors.bottomMargin: 0
  1619. }
  1620. bottomPadding: 0
  1621. selectByMouse: true
  1622. topPadding: 0
  1623. selectedTextColor: "#ffffff"
  1624. selectionColor: "#000000"
  1625. placeholderText: qsTr("我是一个快捷发送内容a")
  1626. }
  1627. Label {
  1628. id: shortcut_Labb
  1629. width: 14
  1630. height: 24
  1631. visible: true
  1632. text: qsTr("b.")
  1633. anchors.verticalCenter: shortcut_Btn12.verticalCenter
  1634. anchors.left: parent.left
  1635. font.pixelSize: 14
  1636. verticalAlignment: Text.AlignVCenter
  1637. anchors.leftMargin: 0
  1638. }
  1639. Button {
  1640. id: shortcut_Btn12
  1641. width: 50
  1642. height: 28
  1643. text: qsTr("SEND")
  1644. anchors.left: shortcut_Labb.right
  1645. anchors.top: shortcut_Btn11.bottom
  1646. font.pixelSize: 12
  1647. anchors.leftMargin: 2
  1648. anchors.topMargin: 0
  1649. }
  1650. TextField {
  1651. objectName: "shortcut_Textb"
  1652. id: shortcut_Textb
  1653. height: 24
  1654. anchors.verticalCenter: shortcut_Btn12.verticalCenter
  1655. anchors.left: shortcut_Btn12.right
  1656. font.pixelSize: 14
  1657. anchors.leftMargin: 4
  1658. background: Rectangle {
  1659. color: "#ffffff"
  1660. anchors.fill: parent
  1661. anchors.bottomMargin: 0
  1662. }
  1663. bottomPadding: 0
  1664. selectByMouse: true
  1665. topPadding: 0
  1666. selectedTextColor: "#ffffff"
  1667. selectionColor: "#000000"
  1668. placeholderText: qsTr("我是一个快捷发送内容b")
  1669. }
  1670. Label {
  1671. id: shortcut_Labc
  1672. width: 14
  1673. height: 24
  1674. visible: true
  1675. text: qsTr("c.")
  1676. anchors.verticalCenter: shortcut_Btn13.verticalCenter
  1677. anchors.left: parent.left
  1678. font.pixelSize: 14
  1679. verticalAlignment: Text.AlignVCenter
  1680. anchors.leftMargin: 0
  1681. }
  1682. Button {
  1683. id: shortcut_Btn13
  1684. width: 50
  1685. height: 28
  1686. text: qsTr("SEND")
  1687. anchors.left: shortcut_Labc.right
  1688. anchors.top: shortcut_Btn12.bottom
  1689. font.pixelSize: 12
  1690. anchors.leftMargin: 2
  1691. anchors.topMargin: 0
  1692. }
  1693. TextField {
  1694. objectName: "shortcut_Textc"
  1695. id: shortcut_Textc
  1696. height: 24
  1697. anchors.verticalCenter: shortcut_Btn13.verticalCenter
  1698. anchors.left: shortcut_Btn13.right
  1699. font.pixelSize: 14
  1700. anchors.leftMargin: 4
  1701. background: Rectangle {
  1702. color: "#ffffff"
  1703. anchors.fill: parent
  1704. anchors.bottomMargin: 0
  1705. }
  1706. bottomPadding: 0
  1707. selectByMouse: true
  1708. topPadding: 0
  1709. selectedTextColor: "#ffffff"
  1710. selectionColor: "#000000"
  1711. placeholderText: qsTr("我是一个快捷发送内容c")
  1712. }
  1713. Label {
  1714. id: shortcut_Labd
  1715. width: 14
  1716. height: 24
  1717. visible: true
  1718. text: qsTr("d.")
  1719. anchors.verticalCenter: shortcut_Btn14.verticalCenter
  1720. anchors.left: parent.left
  1721. font.pixelSize: 14
  1722. verticalAlignment: Text.AlignVCenter
  1723. anchors.leftMargin: 0
  1724. }
  1725. Button {
  1726. id: shortcut_Btn14
  1727. width: 50
  1728. height: 28
  1729. text: qsTr("SEND")
  1730. anchors.left: shortcut_Labd.right
  1731. anchors.top: shortcut_Btn13.bottom
  1732. font.pixelSize: 12
  1733. anchors.leftMargin: 2
  1734. anchors.topMargin: 0
  1735. }
  1736. TextField {
  1737. objectName: "shortcut_Textd"
  1738. id: shortcut_Textd
  1739. height: 24
  1740. anchors.verticalCenter: shortcut_Btn14.verticalCenter
  1741. anchors.left: shortcut_Btn14.right
  1742. font.pixelSize: 14
  1743. anchors.leftMargin: 4
  1744. background: Rectangle {
  1745. color: "#ffffff"
  1746. anchors.fill: parent
  1747. anchors.bottomMargin: 0
  1748. }
  1749. bottomPadding: 0
  1750. selectByMouse: true
  1751. topPadding: 0
  1752. selectedTextColor: "#ffffff"
  1753. selectionColor: "#000000"
  1754. placeholderText: qsTr("我是一个快捷发送内容d")
  1755. }
  1756. Label {
  1757. id: shortcut_Labe
  1758. width: 14
  1759. height: 24
  1760. visible: true
  1761. text: qsTr("e.")
  1762. anchors.verticalCenter: shortcut_Btn15.verticalCenter
  1763. anchors.left: parent.left
  1764. font.pixelSize: 14
  1765. verticalAlignment: Text.AlignVCenter
  1766. anchors.leftMargin: 0
  1767. }
  1768. Button {
  1769. id: shortcut_Btn15
  1770. width: 50
  1771. height: 28
  1772. text: qsTr("SEND")
  1773. anchors.left: shortcut_Labe.right
  1774. anchors.top: shortcut_Btn14.bottom
  1775. font.pixelSize: 12
  1776. anchors.leftMargin: 2
  1777. anchors.topMargin: 0
  1778. }
  1779. TextField {
  1780. objectName: "shortcut_Texte"
  1781. id: shortcut_Texte
  1782. height: 24
  1783. anchors.verticalCenter: shortcut_Btn15.verticalCenter
  1784. anchors.left: shortcut_Btn15.right
  1785. font.pixelSize: 14
  1786. anchors.leftMargin: 4
  1787. background: Rectangle {
  1788. color: "#ffffff"
  1789. anchors.fill: parent
  1790. anchors.bottomMargin: 0
  1791. }
  1792. bottomPadding: 0
  1793. selectByMouse: true
  1794. topPadding: 0
  1795. selectedTextColor: "#ffffff"
  1796. selectionColor: "#000000"
  1797. placeholderText: qsTr("我是一个快捷发送内容e")
  1798. }
  1799. Label {
  1800. id: shortcut_Labf
  1801. width: 14
  1802. height: 24
  1803. visible: true
  1804. text: qsTr("f.")
  1805. anchors.verticalCenter: shortcut_Btn16.verticalCenter
  1806. anchors.left: parent.left
  1807. font.pixelSize: 14
  1808. verticalAlignment: Text.AlignVCenter
  1809. anchors.leftMargin: 0
  1810. }
  1811. Button {
  1812. id: shortcut_Btn16
  1813. width: 50
  1814. height: 28
  1815. text: qsTr("SEND")
  1816. anchors.left: shortcut_Labf.right
  1817. anchors.top: shortcut_Btn15.bottom
  1818. font.pixelSize: 12
  1819. anchors.leftMargin: 2
  1820. anchors.topMargin: 0
  1821. }
  1822. TextField {
  1823. objectName: "shortcut_Textf"
  1824. id: shortcut_Textf
  1825. height: 24
  1826. anchors.verticalCenter: shortcut_Btn16.verticalCenter
  1827. anchors.left: shortcut_Btn16.right
  1828. font.pixelSize: 14
  1829. anchors.leftMargin: 4
  1830. background: Rectangle {
  1831. color: "#ffffff"
  1832. anchors.fill: parent
  1833. anchors.bottomMargin: 0
  1834. }
  1835. bottomPadding: 0
  1836. selectByMouse: true
  1837. topPadding: 0
  1838. selectedTextColor: "#ffffff"
  1839. selectionColor: "#000000"
  1840. placeholderText: qsTr("我是一个快捷发送内容f")
  1841. }
  1842. Label {
  1843. id: shortcut_Labg
  1844. width: 14
  1845. height: 24
  1846. visible: true
  1847. text: qsTr("g.")
  1848. anchors.verticalCenter: shortcut_Btn17.verticalCenter
  1849. anchors.left: parent.left
  1850. font.pixelSize: 14
  1851. verticalAlignment: Text.AlignVCenter
  1852. anchors.leftMargin: 0
  1853. }
  1854. Button {
  1855. id: shortcut_Btn17
  1856. width: 50
  1857. height: 28
  1858. text: qsTr("SEND")
  1859. anchors.left: shortcut_Labg.right
  1860. anchors.top: shortcut_Btn16.bottom
  1861. font.pixelSize: 12
  1862. anchors.leftMargin: 2
  1863. anchors.topMargin: 0
  1864. }
  1865. TextField {
  1866. objectName: "shortcut_Textg"
  1867. id: shortcut_Textg
  1868. height: 24
  1869. anchors.verticalCenter: shortcut_Btn17.verticalCenter
  1870. anchors.left: shortcut_Btn17.right
  1871. font.pixelSize: 14
  1872. anchors.leftMargin: 4
  1873. background: Rectangle {
  1874. color: "#ffffff"
  1875. anchors.fill: parent
  1876. anchors.bottomMargin: 0
  1877. }
  1878. bottomPadding: 0
  1879. selectByMouse: true
  1880. topPadding: 0
  1881. selectedTextColor: "#ffffff"
  1882. selectionColor: "#000000"
  1883. placeholderText: qsTr("我是一个快捷发送内容g")
  1884. }
  1885. Label {
  1886. id: shortcut_Labh
  1887. width: 14
  1888. height: 24
  1889. visible: true
  1890. text: qsTr("h.")
  1891. anchors.verticalCenter: shortcut_Btn18.verticalCenter
  1892. anchors.left: parent.left
  1893. font.pixelSize: 14
  1894. verticalAlignment: Text.AlignVCenter
  1895. anchors.leftMargin: 0
  1896. }
  1897. Button {
  1898. id: shortcut_Btn18
  1899. width: 50
  1900. height: 28
  1901. text: qsTr("SEND")
  1902. anchors.left: shortcut_Labh.right
  1903. anchors.top: shortcut_Btn17.bottom
  1904. font.pixelSize: 12
  1905. anchors.leftMargin: 2
  1906. anchors.topMargin: 0
  1907. }
  1908. TextField {
  1909. objectName: "shortcut_Texth"
  1910. id: shortcut_Texth
  1911. height: 24
  1912. anchors.verticalCenter: shortcut_Btn18.verticalCenter
  1913. anchors.left: shortcut_Btn18.right
  1914. font.pixelSize: 14
  1915. anchors.leftMargin: 4
  1916. background: Rectangle {
  1917. color: "#ffffff"
  1918. anchors.fill: parent
  1919. anchors.bottomMargin: 0
  1920. }
  1921. bottomPadding: 0
  1922. selectByMouse: true
  1923. topPadding: 0
  1924. selectedTextColor: "#ffffff"
  1925. selectionColor: "#000000"
  1926. placeholderText: qsTr("我是一个快捷发送内容h")
  1927. }
  1928. Label {
  1929. id: shortcut_Labi
  1930. width: 14
  1931. height: 24
  1932. visible: true
  1933. text: qsTr("i.")
  1934. anchors.verticalCenter: shortcut_Btn19.verticalCenter
  1935. anchors.left: parent.left
  1936. font.pixelSize: 14
  1937. verticalAlignment: Text.AlignVCenter
  1938. anchors.leftMargin: 0
  1939. }
  1940. Button {
  1941. id: shortcut_Btn19
  1942. width: 50
  1943. height: 28
  1944. text: qsTr("SEND")
  1945. anchors.left: shortcut_Labi.right
  1946. anchors.top: shortcut_Btn18.bottom
  1947. font.pixelSize: 12
  1948. anchors.leftMargin: 2
  1949. anchors.topMargin: 0
  1950. }
  1951. TextField {
  1952. objectName: "shortcut_Texti"
  1953. id: shortcut_Texti
  1954. height: 24
  1955. anchors.verticalCenter: shortcut_Btn19.verticalCenter
  1956. anchors.left: shortcut_Btn19.right
  1957. font.pixelSize: 14
  1958. anchors.leftMargin: 4
  1959. background: Rectangle {
  1960. color: "#ffffff"
  1961. anchors.fill: parent
  1962. anchors.bottomMargin: 0
  1963. }
  1964. bottomPadding: 0
  1965. selectByMouse: true
  1966. topPadding: 0
  1967. selectedTextColor: "#ffffff"
  1968. selectionColor: "#000000"
  1969. placeholderText: qsTr("我是一个快捷发送内容i")
  1970. }
  1971. }
  1972. }
  1973. Rectangle {
  1974. id: ip_leftSidePage
  1975. width: 180
  1976. visible: false
  1977. color: "#00000000"
  1978. radius: 10
  1979. border.color: "#000000"
  1980. border.width: 0
  1981. anchors.left: parent.left
  1982. anchors.top: parent.top
  1983. anchors.bottom: parent.bottom
  1984. anchors.topMargin: 0
  1985. anchors.bottomMargin: 0
  1986. z: 0
  1987. ComboBox {
  1988. id: ip_nameCombo
  1989. height: 40
  1990. anchors.left: parent.left
  1991. anchors.right: parent.right
  1992. anchors.top: parent.top
  1993. font.pixelSize: 16
  1994. anchors.topMargin: 6
  1995. wheelEnabled: true
  1996. anchors.rightMargin: 20
  1997. anchors.leftMargin: 20
  1998. model: ["TCP Client", "TCP Server", "UDP", "MQTT"]
  1999. }
  2000. Label {
  2001. id: ip_myAddrLab
  2002. width: 75
  2003. height: 40
  2004. text: qsTr("本地地址")
  2005. anchors.left: ip_nameCombo.right
  2006. anchors.bottom: ip_nameCombo.bottom
  2007. font.pixelSize: 16
  2008. horizontalAlignment: Text.AlignHCenter
  2009. verticalAlignment: Text.AlignVCenter
  2010. anchors.topMargin: 2
  2011. anchors.leftMargin: 0
  2012. }
  2013. Label {
  2014. id: ip_myPortLab
  2015. width: 75
  2016. height: 40
  2017. text: qsTr("本地端口")
  2018. anchors.left: ip_myAddrText.right
  2019. anchors.bottom: ip_nameCombo.bottom
  2020. font.pixelSize: 16
  2021. horizontalAlignment: Text.AlignHCenter
  2022. verticalAlignment: Text.AlignVCenter
  2023. anchors.topMargin: 2
  2024. anchors.leftMargin: 0
  2025. }
  2026. Label {
  2027. id: ip_otherAddrLab
  2028. width: 75
  2029. height: 40
  2030. text: qsTr("远程地址")
  2031. anchors.left: ip_switch.right
  2032. anchors.top: ip_myPortLab.bottom
  2033. font.pixelSize: 16
  2034. horizontalAlignment: Text.AlignHCenter
  2035. verticalAlignment: Text.AlignVCenter
  2036. anchors.topMargin: 2
  2037. anchors.leftMargin: 0
  2038. }
  2039. Label {
  2040. id: ip_otherPortLab
  2041. width: 75
  2042. height: 40
  2043. text: qsTr("远程端口")
  2044. anchors.left: ip_otherAddrText.right
  2045. anchors.top: ip_myPortLab.bottom
  2046. font.pixelSize: 16
  2047. horizontalAlignment: Text.AlignHCenter
  2048. verticalAlignment: Text.AlignVCenter
  2049. anchors.topMargin: 2
  2050. anchors.leftMargin: 0
  2051. }
  2052. SwitchDelegate {
  2053. id: ip_switch
  2054. height: 36
  2055. text: qsTr("连接")
  2056. anchors.left: parent.left
  2057. anchors.right: ip_nameCombo.right
  2058. anchors.top: ip_nameCombo.bottom
  2059. anchors.topMargin: 5 //上间距
  2060. padding: 5
  2061. spacing: 10
  2062. anchors.leftMargin: 20
  2063. focusPolicy: Qt.NoFocus
  2064. font.pixelSize: 16
  2065. leftPadding: 6
  2066. anchors.rightMargin: 0
  2067. rightPadding: 10
  2068. }
  2069. Label {
  2070. id: topic_sub_lab
  2071. height: 36
  2072. anchors.left: ip_switch.left
  2073. anchors.top: ip_switch.bottom
  2074. anchors.leftMargin: 5
  2075. anchors.topMargin: 5
  2076. text: "主题:"
  2077. font.pixelSize: 16
  2078. }
  2079. TextField {
  2080. id: subField
  2081. anchors.left: topic_sub_lab.right
  2082. anchors.bottom: topic_sub_lab.bottom
  2083. height: 40
  2084. width: 400
  2085. placeholderText: "<订阅主题>"
  2086. enabled: true
  2087. }
  2088. Button {
  2089. id: subButton
  2090. anchors.left: subField.right
  2091. anchors.bottom: subField.bottom
  2092. anchors.leftMargin: 5
  2093. height: 40
  2094. width: 50
  2095. text: "订阅"
  2096. visible: true //tempSubscription === 0
  2097. }
  2098. TextArea {
  2099. id: ip_myAddrText
  2100. height: 40
  2101. anchors.left: ip_myAddrLab.right
  2102. anchors.bottom: ip_nameCombo.bottom
  2103. font.pixelSize: 14
  2104. verticalAlignment: Text.AlignBottom
  2105. anchors.rightMargin: 2
  2106. clip: true
  2107. anchors.topMargin: 2
  2108. placeholderText: qsTr("192.168.1.254")
  2109. anchors.leftMargin: 0
  2110. }
  2111. TextArea {
  2112. id: ip_myPortText
  2113. height: 40
  2114. anchors.left: ip_myPortLab.right
  2115. anchors.bottom: ip_nameCombo.bottom
  2116. font.pixelSize: 14
  2117. verticalAlignment: Text.AlignBottom
  2118. anchors.rightMargin: 2
  2119. clip: true
  2120. anchors.topMargin: 2
  2121. placeholderText: qsTr("3000")
  2122. anchors.leftMargin: 0
  2123. }
  2124. TextArea {
  2125. id: ip_otherAddrText
  2126. height: 40
  2127. anchors.left: ip_otherAddrLab.right
  2128. anchors.top: ip_nameCombo.bottom
  2129. font.pixelSize: 14
  2130. verticalAlignment: Text.AlignBottom
  2131. anchors.rightMargin: 2
  2132. clip: true
  2133. anchors.topMargin: 2
  2134. anchors.leftMargin: 0
  2135. placeholderText: qsTr("120.27.222.26")
  2136. }
  2137. TextArea {
  2138. id: ip_otherPortText
  2139. height: 40
  2140. anchors.left: ip_otherPortLab.right
  2141. anchors.top: ip_nameCombo.bottom
  2142. font.pixelSize: 14
  2143. verticalAlignment: Text.AlignBottom
  2144. anchors.rightMargin: 2
  2145. clip: true
  2146. topPadding: 8
  2147. anchors.topMargin: 2
  2148. placeholderText: qsTr("1883")
  2149. anchors.leftMargin: 0
  2150. //enabled: client_mqtt.state === MqttClient.Disconnected
  2151. }
  2152. anchors.leftMargin: 0
  2153. }
  2154. Rectangle {
  2155. id: hoverDescriptionPage
  2156. x: 0
  2157. y: 0
  2158. width: hoverDescriptionText.width
  2159. height: hoverDescriptionText.height
  2160. visible: false
  2161. Text {
  2162. id: hoverDescriptionText
  2163. width: contentWidth
  2164. height: contentHeight
  2165. color: "#ff0000"
  2166. text: qsTr("接收编码")
  2167. font.pixelSize: 14
  2168. }
  2169. }
  2170. Rectangle {
  2171. id: tx_rxBytePage
  2172. color: "#00ffffff"
  2173. height: 60
  2174. anchors.left: parent.left
  2175. anchors.right: rxConfig.left
  2176. //anchors.top: txConfig.top
  2177. anchors.bottom: sendDataPage.top
  2178. anchors.leftMargin: 10
  2179. z: 1
  2180. //anchors.topMargin: -68
  2181. Label {
  2182. id: rxByteLab
  2183. height: 34
  2184. text: qsTr("RxB")
  2185. anchors.left: parent.left
  2186. anchors.bottom: txByteLab.top
  2187. font.pixelSize: 14
  2188. horizontalAlignment: Text.AlignHCenter
  2189. verticalAlignment: Text.AlignVCenter
  2190. anchors.bottomMargin: 0
  2191. anchors.leftMargin: 4
  2192. }
  2193. Button {
  2194. id: rxClearBtn
  2195. width: 45
  2196. height: 34
  2197. text: qsTr("清零")
  2198. anchors.right: parent.right
  2199. anchors.bottom: txClearBtn.top
  2200. anchors.bottomMargin: 0
  2201. anchors.rightMargin: 6
  2202. }
  2203. Label {
  2204. id: txByteLab
  2205. height: 34
  2206. text: qsTr("TxB")
  2207. anchors.left: parent.left
  2208. anchors.bottom: parent.bottom
  2209. font.pixelSize: 14
  2210. horizontalAlignment: Text.AlignHCenter
  2211. verticalAlignment: Text.AlignVCenter
  2212. anchors.leftMargin: 4
  2213. anchors.bottomMargin: 0
  2214. }
  2215. Button {
  2216. id: txClearBtn
  2217. width: 45
  2218. height: 34
  2219. text: qsTr("清零")
  2220. anchors.right: parent.right
  2221. anchors.bottom: parent.bottom
  2222. anchors.bottomMargin: 0
  2223. anchors.rightMargin: 6
  2224. }
  2225. TextInput {
  2226. id: rxByteText
  2227. height: 34
  2228. text: qsTr("0")
  2229. anchors.left: rxByteLab.right
  2230. anchors.right: rxClearBtn.left
  2231. anchors.bottom: txByteText.top
  2232. font.pixelSize: 14
  2233. horizontalAlignment: Text.AlignRight
  2234. verticalAlignment: Text.AlignVCenter
  2235. clip: true
  2236. anchors.bottomMargin: 0
  2237. selectionColor: "#000000"
  2238. selectByMouse: true
  2239. persistentSelection: true
  2240. readOnly: true
  2241. anchors.rightMargin: 4
  2242. anchors.leftMargin: 2
  2243. }
  2244. TextInput {
  2245. id: txByteText
  2246. height: 34
  2247. text: qsTr("0")
  2248. anchors.left: txByteLab.right
  2249. anchors.right: txClearBtn.left
  2250. anchors.bottom: parent.bottom
  2251. font.pixelSize: 14
  2252. horizontalAlignment: Text.AlignRight
  2253. verticalAlignment: Text.AlignVCenter
  2254. clip: true
  2255. selectByMouse: true
  2256. persistentSelection: true
  2257. readOnly: true
  2258. selectionColor: "#000000"
  2259. anchors.rightMargin: 4
  2260. anchors.leftMargin: 2
  2261. anchors.bottomMargin: 0
  2262. }
  2263. }
  2264. }
  2265. }
  2266. Rectangle {
  2267. id: test_page
  2268. visible: false
  2269. color: "#ffffff"
  2270. anchors.left: parent.left
  2271. anchors.right: parent.right
  2272. anchors.top: tabBar.bottom
  2273. anchors.bottom: parent.bottom
  2274. anchors.topMargin: 5
  2275. Text {
  2276. id: text1
  2277. text: "图像预览"
  2278. anchors.verticalCenter: parent.verticalCenter
  2279. font.pixelSize: 20
  2280. anchors.horizontalCenter: parent.horizontalCenter
  2281. }
  2282. }
  2283. }