WorkPage.qml 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905
  1. import QtQuick
  2. import QtQuick.Controls 2.5
  3. import QtQuick.Layouts 1.3
  4. /*
  5. 智驾系统button二级界面
  6. */
  7. Rectangle {
  8. width: parent.width-400
  9. height: parent.height
  10. color: 'transparent'
  11. property StackView stack: null
  12. /*
  13. CButton {
  14. id: switchButton
  15. x:1650
  16. y:140
  17. visible:true
  18. textHeight: 50
  19. fontHeight: 0.4
  20. width: 120
  21. height: 50
  22. color: pressed ? textClickedColor : mainAppColor
  23. text: "切换远程"
  24. onClicked: appModel.switchDriver()
  25. }
  26. */
  27. TabBar {
  28. id: bar
  29. width: parent.width
  30. y:150
  31. x:100
  32. currentIndex:0
  33. TabButton {
  34. text: qsTr("A区")
  35. height:60
  36. }
  37. TabButton {
  38. text: qsTr("B区")
  39. height:60
  40. }
  41. TabButton {
  42. text: qsTr("C区")
  43. height:60
  44. }
  45. TabButton {
  46. text: qsTr("D区")
  47. height:60
  48. }
  49. TabButton {
  50. text: qsTr("E区")
  51. height:60
  52. }
  53. TabButton {
  54. text: qsTr("F区")
  55. height:60
  56. }
  57. TabButton {
  58. text: qsTr("G区")
  59. height:60
  60. }
  61. TabButton {
  62. text: qsTr("H区")
  63. height:60
  64. }
  65. TabButton {
  66. text: qsTr("接渣区")
  67. height:60
  68. }
  69. TabButton {
  70. text: qsTr("倒渣区")
  71. height:60
  72. }
  73. // onCurrentIndexChanged:
  74. // {
  75. // appModel.areaChanged(currentIndex)
  76. //}
  77. }
  78. Row {
  79. height: parent.height
  80. // anchors.horizontalCenter: parent.horizontalCenter
  81. // anchors.top:parent.top
  82. // anchors.topMargin: 20
  83. y:250
  84. x:100
  85. spacing: 20
  86. CButton {
  87. // id: resultButton
  88. // anchors.top: loginPassword.bottom
  89. // anchors.topMargin: 50
  90. // anchors.horizontalCenter: parent.horizontalCenter
  91. textHeight: 50
  92. fontHeight: 0.4
  93. width: 150
  94. height: 50
  95. color: pressed ? textClickedColor : mainAppColor
  96. text: bar.currentIndex===8?"放罐等待区":bar.currentIndex===9?"倒渣1":"新"+String.fromCharCode(0x41+bar.currentIndex) +"01"
  97. onClicked: moveBegin(bar.currentIndex,1)
  98. }
  99. CButton {
  100. // id: resultButton
  101. // anchors.top: loginPassword.bottom
  102. // anchors.topMargin: 50
  103. // anchors.horizontalCenter: parent.horizontalCenter
  104. textHeight: 50
  105. fontHeight: 0.4
  106. width: 150
  107. height: 50
  108. visible: true //bar.currentIndex !== 8
  109. color: pressed ? textClickedColor : mainAppColor
  110. text: bar.currentIndex===9?"倒渣2":"新"+String.fromCharCode(0x41+bar.currentIndex) +"02"
  111. onClicked: moveBegin(bar.currentIndex,2)
  112. }
  113. CButton {
  114. // id: resultButton
  115. // anchors.top: loginPassword.bottom
  116. // anchors.topMargin: 50
  117. // anchors.horizontalCenter: parent.horizontalCenter
  118. textHeight: 50
  119. fontHeight: 0.4
  120. width: 150
  121. height: 50
  122. visible: true// bar.currentIndex !== 8
  123. color: pressed ? textClickedColor : mainAppColor
  124. text: bar.currentIndex===9?"倒渣3":String.fromCharCode(0x41+bar.currentIndex) +"01"
  125. onClicked: moveBegin(bar.currentIndex,3)
  126. }
  127. CButton {
  128. // id: resultButton
  129. // anchors.top: loginPassword.bottom
  130. // anchors.topMargin: 50
  131. // anchors.horizontalCenter: parent.horizontalCenter
  132. textHeight: 50
  133. fontHeight: 0.4
  134. width: 150
  135. height: 50
  136. visible: true //bar.currentIndex !== 8
  137. color: pressed ? textClickedColor : mainAppColor
  138. text: bar.currentIndex===9?"倒渣4":String.fromCharCode(0x41+bar.currentIndex) +"02"
  139. onClicked: moveBegin(bar.currentIndex,4)
  140. }
  141. CButton {
  142. // id: resultButton
  143. // anchors.top: loginPassword.bottom
  144. // anchors.topMargin: 50
  145. // anchors.horizontalCenter: parent.horizontalCenter
  146. textHeight: 50
  147. fontHeight: 0.4
  148. width: 150
  149. height: 50
  150. visible: bar.currentIndex !== 8
  151. color: pressed ? textClickedColor : mainAppColor
  152. text: bar.currentIndex===9?"倒渣5":String.fromCharCode(0x41+bar.currentIndex) +"03"
  153. onClicked: moveBegin(bar.currentIndex,5)
  154. }
  155. CButton {
  156. // id: resultButton
  157. // anchors.top: loginPassword.bottom
  158. // anchors.topMargin: 50
  159. // anchors.horizontalCenter: parent.horizontalCenter
  160. textHeight: 50
  161. fontHeight: 0.4
  162. width: 150
  163. height: 50
  164. visible: bar.currentIndex !== 8
  165. color: pressed ? textClickedColor : mainAppColor
  166. text: bar.currentIndex===9?"倒渣6":String.fromCharCode(0x41+bar.currentIndex) +"04"
  167. onClicked: moveBegin(bar.currentIndex,6)
  168. }
  169. CButton {
  170. // id: resultButton
  171. // anchors.top: loginPassword.bottom
  172. // anchors.topMargin: 50
  173. // anchors.horizontalCenter: parent.horizontalCenter
  174. textHeight: 50
  175. fontHeight: 0.4
  176. width: 150
  177. height: 50
  178. visible: bar.currentIndex !== 8
  179. color: pressed ? textClickedColor : mainAppColor
  180. text: bar.currentIndex===9?"倒渣7":String.fromCharCode(0x41+bar.currentIndex) +"05"
  181. onClicked: moveBegin(bar.currentIndex,7)
  182. }
  183. CButton {
  184. // id: resultButton
  185. // anchors.top: loginPassword.bottom
  186. // anchors.topMargin: 50
  187. // anchors.horizontalCenter: parent.horizontalCenter
  188. textHeight: 50
  189. fontHeight: 0.4
  190. width: 150
  191. height: 50
  192. visible: bar.currentIndex !== 8
  193. color: pressed ? textClickedColor : mainAppColor
  194. text: bar.currentIndex===9?"倒渣8":String.fromCharCode(0x41+bar.currentIndex) +"06"
  195. onClicked: moveBegin(bar.currentIndex,8)
  196. }
  197. CButton {
  198. // id: resultButton
  199. // anchors.top: loginPassword.bottom
  200. // anchors.topMargin: 50
  201. // anchors.horizontalCenter: parent.horizontalCenter
  202. textHeight: 50
  203. fontHeight: 0.4
  204. width: 150
  205. height: 50
  206. visible: bar.currentIndex !== 8
  207. color: pressed ? textClickedColor : mainAppColor
  208. text: bar.currentIndex===9?"倒渣9":String.fromCharCode(0x41+bar.currentIndex) +"07"
  209. onClicked: moveBegin(bar.currentIndex,9)
  210. }
  211. CButton {
  212. // id: resultButton
  213. // anchors.top: loginPassword.bottom
  214. // anchors.topMargin: 50
  215. // anchors.horizontalCenter: parent.horizontalCenter
  216. textHeight: 50
  217. fontHeight: 0.4
  218. width: 150
  219. height: 50
  220. visible: bar.currentIndex !== 8
  221. color: pressed ? textClickedColor : mainAppColor
  222. text: bar.currentIndex===9?"倒渣10":String.fromCharCode(0x41+bar.currentIndex) +"08"
  223. onClicked: moveBegin(bar.currentIndex,10)
  224. }
  225. }
  226. Row {
  227. height: parent.height
  228. // anchors.horizontalCenter: parent.horizontalCenter
  229. // anchors.top:parent.top
  230. // anchors.topMargin: 20
  231. y:400
  232. x:100
  233. spacing: 20
  234. CButton {
  235. // id: resultButton
  236. // anchors.top: loginPassword.bottom
  237. // anchors.topMargin: 50
  238. // anchors.horizontalCenter: parent.horizontalCenter
  239. textHeight: 50
  240. fontHeight: 0.4
  241. width: 150
  242. height: 50
  243. visible: true //bar.currentIndex !== 9
  244. color: pressed ? textClickedColor : mainAppColor
  245. text: bar.currentIndex===9?"倒渣11":String.fromCharCode(0x41+bar.currentIndex) +"09"
  246. onClicked: moveBegin(bar.currentIndex,11)
  247. }
  248. CButton {
  249. // id: resultButton
  250. // anchors.top: loginPassword.bottom
  251. // anchors.topMargin: 50
  252. // anchors.horizontalCenter: parent.horizontalCenter
  253. textHeight: 50
  254. fontHeight: 0.4
  255. width: 150
  256. height: 50
  257. visible: true ///bar.currentIndex !== 9
  258. color: pressed ? textClickedColor : mainAppColor
  259. text: bar.currentIndex===9?"倒渣12":String.fromCharCode(0x41+bar.currentIndex) +"10"
  260. onClicked: moveBegin(bar.currentIndex,12)
  261. }
  262. CButton {
  263. // id: resultButton
  264. // anchors.top: loginPassword.bottom
  265. // anchors.topMargin: 50
  266. // anchors.horizontalCenter: parent.horizontalCenter
  267. textHeight: 50
  268. fontHeight: 0.4
  269. width: 150
  270. height: 50
  271. visible: true //bar.currentIndex !== 9
  272. color: pressed ? textClickedColor : mainAppColor
  273. text: bar.currentIndex===9?"倒渣13":String.fromCharCode(0x41+bar.currentIndex) +"11"
  274. onClicked: moveBegin(bar.currentIndex,13)
  275. }
  276. CButton {
  277. // id: resultButton
  278. // anchors.top: loginPassword.bottom
  279. // anchors.topMargin: 50
  280. // anchors.horizontalCenter: parent.horizontalCenter
  281. textHeight: 50
  282. fontHeight: 0.4
  283. width: 150
  284. height: 50
  285. visible: true //bar.currentIndex !== 9
  286. color: pressed ? textClickedColor : mainAppColor
  287. text: bar.currentIndex===9?"倒渣14":String.fromCharCode(0x41+bar.currentIndex) +"12"
  288. onClicked: moveBegin(bar.currentIndex,14)
  289. }
  290. CButton {
  291. // id: resultButton
  292. // anchors.top: loginPassword.bottom
  293. // anchors.topMargin: 50
  294. // anchors.horizontalCenter: parent.horizontalCenter
  295. textHeight: 50
  296. fontHeight: 0.4
  297. width: 150
  298. height: 50
  299. visible: bar.currentIndex < 8
  300. color: pressed ? textClickedColor : mainAppColor
  301. text: String.fromCharCode(0x41+bar.currentIndex) +"13"
  302. onClicked: moveBegin(bar.currentIndex,15)
  303. }
  304. CButton {
  305. // id: resultButton
  306. // anchors.top: loginPassword.bottom
  307. // anchors.topMargin: 50
  308. // anchors.horizontalCenter: parent.horizontalCenter
  309. textHeight: 50
  310. fontHeight: 0.4
  311. width: 150
  312. height: 50
  313. visible: bar.currentIndex < 8
  314. color: pressed ? textClickedColor : mainAppColor
  315. text: String.fromCharCode(0x41+bar.currentIndex) +"14"
  316. onClicked: moveBegin(bar.currentIndex,16)
  317. }
  318. CButton {
  319. // id: resultButton
  320. // anchors.top: loginPassword.bottom
  321. // anchors.topMargin: 50
  322. // anchors.horizontalCenter: parent.horizontalCenter
  323. textHeight: 50
  324. fontHeight: 0.4
  325. width: 150
  326. height: 50
  327. visible: bar.currentIndex < 8
  328. color: pressed ? textClickedColor : mainAppColor
  329. text: String.fromCharCode(0x41+bar.currentIndex) +"15"
  330. onClicked: moveBegin(bar.currentIndex,17)
  331. }
  332. CButton {
  333. // id: resultButton
  334. // anchors.top: loginPassword.bottom
  335. // anchors.topMargin: 50
  336. // anchors.horizontalCenter: parent.horizontalCenter
  337. textHeight: 50
  338. fontHeight: 0.4
  339. width: 150
  340. height: 50
  341. visible: bar.currentIndex < 8
  342. color: pressed ? textClickedColor : mainAppColor
  343. text: String.fromCharCode(0x41+bar.currentIndex) +"16"
  344. onClicked: moveBegin(bar.currentIndex,18)
  345. }
  346. CButton {
  347. // id: resultButton
  348. // anchors.top: loginPassword.bottom
  349. // anchors.topMargin: 50
  350. // anchors.horizontalCenter: parent.horizontalCenter
  351. textHeight: 50
  352. fontHeight: 0.4
  353. width: 150
  354. height: 50
  355. visible: bar.currentIndex < 8
  356. color: pressed ? textClickedColor : mainAppColor
  357. text: String.fromCharCode(0x41+bar.currentIndex) +"17"
  358. onClicked: moveBegin(bar.currentIndex,19)
  359. }
  360. CButton {
  361. // id: resultButton
  362. // anchors.top: loginPassword.bottom
  363. // anchors.topMargin: 50
  364. // anchors.horizontalCenter: parent.horizontalCenter
  365. textHeight: 50
  366. fontHeight: 0.4
  367. width: 150
  368. height: 50
  369. visible: bar.currentIndex < 8
  370. color: pressed ? textClickedColor : mainAppColor
  371. text: String.fromCharCode(0x41+bar.currentIndex) +"18"
  372. onClicked: moveBegin(bar.currentIndex,20)
  373. }
  374. }
  375. Row {
  376. height: parent.height
  377. // anchors.horizontalCenter: parent.horizontalCenter
  378. // anchors.top:parent.top
  379. // anchors.topMargin: 20
  380. y:550
  381. x:100
  382. spacing: 20
  383. CButton {
  384. // id: resultButton
  385. // anchors.top: loginPassword.bottom
  386. // anchors.topMargin: 50
  387. // anchors.horizontalCenter: parent.horizontalCenter
  388. textHeight: 50
  389. fontHeight: 0.4
  390. width: 150
  391. height: 50
  392. visible: bar.currentIndex < 8
  393. color: pressed ? textClickedColor : mainAppColor
  394. text: String.fromCharCode(0x41+bar.currentIndex) +"19"
  395. onClicked: moveBegin(bar.currentIndex,21)
  396. }
  397. CButton {
  398. // id: resultButton
  399. // anchors.top: loginPassword.bottom
  400. // anchors.topMargin: 50
  401. // anchors.horizontalCenter: parent.horizontalCenter
  402. textHeight: 50
  403. fontHeight: 0.4
  404. width: 150
  405. height: 50
  406. visible: bar.currentIndex < 8
  407. color: pressed ? textClickedColor : mainAppColor
  408. text: String.fromCharCode(0x41+bar.currentIndex) +"20"
  409. onClicked: moveBegin(bar.currentIndex,22)
  410. }
  411. CButton {
  412. // id: resultButton
  413. // anchors.top: loginPassword.bottom
  414. // anchors.topMargin: 50
  415. // anchors.horizontalCenter: parent.horizontalCenter
  416. textHeight: 50
  417. fontHeight: 0.4
  418. width: 150
  419. height: 50
  420. visible: bar.currentIndex < 8
  421. color: pressed ? textClickedColor : mainAppColor
  422. text: String.fromCharCode(0x41+bar.currentIndex) +"21"
  423. onClicked: moveBegin(bar.currentIndex,23)
  424. }
  425. CButton {
  426. // id: resultButton
  427. // anchors.top: loginPassword.bottom
  428. // anchors.topMargin: 50
  429. // anchors.horizontalCenter: parent.horizontalCenter
  430. textHeight: 50
  431. fontHeight: 0.4
  432. width: 150
  433. height: 50
  434. visible: bar.currentIndex < 8
  435. color: pressed ? textClickedColor : mainAppColor
  436. text: String.fromCharCode(0x41+bar.currentIndex) +"22"
  437. onClicked: moveBegin(bar.currentIndex,24)
  438. }
  439. CButton {
  440. // id: resultButton
  441. // anchors.top: loginPassword.bottom
  442. // anchors.topMargin: 50
  443. // anchors.horizontalCenter: parent.horizontalCenter
  444. textHeight: 50
  445. fontHeight: 0.4
  446. width: 150
  447. height: 50
  448. visible: bar.currentIndex < 8
  449. color: pressed ? textClickedColor : mainAppColor
  450. text: String.fromCharCode(0x41+bar.currentIndex) +"23"
  451. onClicked: moveBegin(bar.currentIndex,25)
  452. }
  453. CButton {
  454. // id: resultButton
  455. // anchors.top: loginPassword.bottom
  456. // anchors.topMargin: 50
  457. // anchors.horizontalCenter: parent.horizontalCenter
  458. textHeight: 50
  459. fontHeight: 0.4
  460. width: 150
  461. height: 50
  462. visible: bar.currentIndex < 8
  463. color: pressed ? textClickedColor : mainAppColor
  464. text: String.fromCharCode(0x41+bar.currentIndex) + "24"
  465. onClicked: moveBegin(bar.currentIndex,26)
  466. }
  467. CButton {
  468. // id: resultButton
  469. // anchors.top: loginPassword.bottom
  470. // anchors.topMargin: 50
  471. // anchors.horizontalCenter: parent.horizontalCenter
  472. textHeight: 50
  473. fontHeight: 0.4
  474. width: 150
  475. height: 50
  476. visible: bar.currentIndex < 8
  477. color: pressed ? textClickedColor : mainAppColor
  478. text: String.fromCharCode(0x41+bar.currentIndex) +"25"
  479. onClicked: moveBegin(bar.currentIndex,27)
  480. }
  481. CButton {
  482. // id: resultButton
  483. // anchors.top: loginPassword.bottom
  484. // anchors.topMargin: 50
  485. // anchors.horizontalCenter: parent.horizontalCenter
  486. textHeight: 50
  487. fontHeight: 0.4
  488. width: 150
  489. height: 50
  490. visible: bar.currentIndex < 8
  491. color: pressed ? textClickedColor : mainAppColor
  492. text: String.fromCharCode(0x41+bar.currentIndex) +"26"
  493. onClicked: moveBegin(bar.currentIndex,28)
  494. }
  495. CButton {
  496. // id: resultButton
  497. // anchors.top: loginPassword.bottom
  498. // anchors.topMargin: 50
  499. // anchors.horizontalCenter: parent.horizontalCenter
  500. textHeight: 50
  501. fontHeight: 0.4
  502. width: 150
  503. height: 50
  504. visible: bar.currentIndex < 8
  505. color: pressed ? textClickedColor : mainAppColor
  506. text: String.fromCharCode(0x41+bar.currentIndex) +"27"
  507. onClicked: moveBegin(bar.currentIndex,29)
  508. }
  509. CButton {
  510. // id: resultButton
  511. // anchors.top: loginPassword.bottom
  512. // anchors.topMargin: 50
  513. // anchors.horizontalCenter: parent.horizontalCenter
  514. textHeight: 50
  515. fontHeight: 0.4
  516. width: 150
  517. height: 50
  518. visible: bar.currentIndex < 8
  519. color: pressed ? textClickedColor : mainAppColor
  520. text: String.fromCharCode(0x41+bar.currentIndex) +"28"
  521. onClicked: moveBegin(bar.currentIndex,30)
  522. }
  523. }
  524. Row {
  525. height: parent.height
  526. // anchors.horizontalCenter: parent.horizontalCenter
  527. // anchors.top:parent.top
  528. // anchors.topMargin: 20
  529. y:700
  530. x:100
  531. spacing: 20
  532. CButton {
  533. // id: resultButton
  534. // anchors.top: loginPassword.bottom
  535. // anchors.topMargin: 50
  536. // anchors.horizontalCenter: parent.horizontalCenter
  537. textHeight: 50
  538. fontHeight: 0.4
  539. width: 150
  540. height: 50
  541. visible: bar.currentIndex < 8
  542. color: pressed ? textClickedColor : mainAppColor
  543. text: String.fromCharCode(0x41+bar.currentIndex) +"29"
  544. onClicked: moveBegin(bar.currentIndex,31)
  545. }
  546. CButton {
  547. // id: resultButton
  548. // anchors.top: loginPassword.bottom
  549. // anchors.topMargin: 50
  550. // anchors.horizontalCenter: parent.horizontalCenter
  551. textHeight: 50
  552. fontHeight: 0.4
  553. width: 150
  554. height: 50
  555. visible: bar.currentIndex < 8
  556. color: pressed ? textClickedColor : mainAppColor
  557. text: String.fromCharCode(0x41+bar.currentIndex) +"30"
  558. onClicked: moveBegin(bar.currentIndex,32)
  559. }
  560. CButton {
  561. // id: resultButton
  562. // anchors.top: loginPassword.bottom
  563. // anchors.topMargin: 50
  564. // anchors.horizontalCenter: parent.horizontalCenter
  565. textHeight: 50
  566. fontHeight: 0.4
  567. width: 150
  568. height: 50
  569. visible: bar.currentIndex < 8
  570. color: pressed ? textClickedColor : mainAppColor
  571. text: String.fromCharCode(0x41+bar.currentIndex) +"31"
  572. onClicked: moveBegin(bar.currentIndex,33)
  573. }
  574. CButton {
  575. // id: resultButton
  576. // anchors.top: loginPassword.bottom
  577. // anchors.topMargin: 50
  578. // anchors.horizontalCenter: parent.horizontalCenter
  579. textHeight: 50
  580. fontHeight: 0.4
  581. width: 150
  582. height: 50
  583. visible: bar.currentIndex < 8
  584. color: pressed ? textClickedColor : mainAppColor
  585. text: String.fromCharCode(0x41+bar.currentIndex) +"32"
  586. onClicked: moveBegin(bar.currentIndex,34)
  587. }
  588. CButton {
  589. // id: resultButton
  590. // anchors.top: loginPassword.bottom
  591. // anchors.topMargin: 50
  592. // anchors.horizontalCenter: parent.horizontalCenter
  593. textHeight: 50
  594. fontHeight: 0.4
  595. width: 150
  596. height: 50
  597. visible: bar.currentIndex < 8
  598. color: pressed ? textClickedColor : mainAppColor
  599. text: String.fromCharCode(0x41+bar.currentIndex) +"33"
  600. onClicked: moveBegin(bar.currentIndex,35)
  601. }
  602. CButton {
  603. // id: resultButton
  604. // anchors.top: loginPassword.bottom
  605. // anchors.topMargin: 50
  606. // anchors.horizontalCenter: parent.horizontalCenter
  607. textHeight: 50
  608. fontHeight: 0.4
  609. width: 150
  610. height: 50
  611. visible: bar.currentIndex < 8
  612. color: pressed ? textClickedColor : mainAppColor
  613. text: String.fromCharCode(0x41+bar.currentIndex) +"34"
  614. onClicked: moveBegin(bar.currentIndex,36)
  615. }
  616. CButton {
  617. // id: resultButton
  618. // anchors.top: loginPassword.bottom
  619. // anchors.topMargin: 50
  620. // anchors.horizontalCenter: parent.horizontalCenter
  621. textHeight: 50
  622. fontHeight: 0.4
  623. width: 150
  624. height: 50
  625. visible: bar.currentIndex < 8
  626. color: pressed ? textClickedColor : mainAppColor
  627. text: String.fromCharCode(0x41+bar.currentIndex) +"35"
  628. onClicked: moveBegin(bar.currentIndex,37)
  629. }
  630. CButton {
  631. // id: resultButton
  632. // anchors.top: loginPassword.bottom
  633. // anchors.topMargin: 50
  634. // anchors.horizontalCenter: parent.horizontalCenter
  635. textHeight: 50
  636. fontHeight: 0.4
  637. width: 150
  638. height: 50
  639. visible: bar.currentIndex < 8
  640. color: pressed ? textClickedColor : mainAppColor
  641. text: String.fromCharCode(0x41+bar.currentIndex) +"36"
  642. onClicked: moveBegin(bar.currentIndex,38)
  643. }
  644. CButton {
  645. // id: resultButton
  646. // anchors.top: loginPassword.bottom
  647. // anchors.topMargin: 50
  648. // anchors.horizontalCenter: parent.horizontalCenter
  649. textHeight: 50
  650. fontHeight: 0.4
  651. width: 150
  652. height: 50
  653. visible: bar.currentIndex < 8
  654. color: pressed ? textClickedColor : mainAppColor
  655. text: String.fromCharCode(0x41+bar.currentIndex) +"37"
  656. onClicked: moveBegin(bar.currentIndex,39)
  657. }
  658. CButton {
  659. // id: resultButton
  660. // anchors.top: loginPassword.bottom
  661. // anchors.topMargin: 50
  662. // anchors.horizontalCenter: parent.horizontalCenter
  663. textHeight: 50
  664. fontHeight: 0.4
  665. width: 150
  666. height: 50
  667. visible: bar.currentIndex < 8
  668. color: pressed ? textClickedColor : mainAppColor
  669. text: String.fromCharCode(0x41+bar.currentIndex) +"38"
  670. onClicked: moveBegin(bar.currentIndex,40)
  671. }
  672. }
  673. Row {
  674. height: parent.height
  675. // anchors.horizontalCenter: parent.horizontalCenter
  676. // anchors.top:parent.top
  677. // anchors.topMargin: 20
  678. y:850
  679. x:100
  680. spacing: 20
  681. CButton {
  682. // id: resultButton
  683. // anchors.top: loginPassword.bottom
  684. // anchors.topMargin: 50
  685. // anchors.horizontalCenter: parent.horizontalCenter
  686. textHeight: 50
  687. fontHeight: 0.4
  688. width: 150
  689. height: 50
  690. visible: bar.currentIndex < 8
  691. color: pressed ? textClickedColor : mainAppColor
  692. text: String.fromCharCode(0x41+bar.currentIndex) +"39"
  693. onClicked: moveBegin(bar.currentIndex,41)
  694. }
  695. CButton {
  696. // id: resultButton
  697. // anchors.top: loginPassword.bottom
  698. // anchors.topMargin: 50
  699. // anchors.horizontalCenter: parent.horizontalCenter
  700. textHeight: 50
  701. fontHeight: 0.4
  702. width: 150
  703. height: 50
  704. visible: bar.currentIndex < 8
  705. color: pressed ? textClickedColor : mainAppColor
  706. text: String.fromCharCode(0x41+bar.currentIndex) +"40"
  707. onClicked: moveBegin(bar.currentIndex,42)
  708. }
  709. CButton {
  710. // id: resultButton
  711. // anchors.top: loginPassword.bottom
  712. // anchors.topMargin: 50
  713. // anchors.horizontalCenter: parent.horizontalCenter
  714. textHeight: 50
  715. fontHeight: 0.4
  716. width: 150
  717. height: 50
  718. visible: bar.currentIndex < 8
  719. color: pressed ? textClickedColor : mainAppColor
  720. text: String.fromCharCode(0x41+bar.currentIndex) +"41"
  721. onClicked: moveBegin(bar.currentIndex,43)
  722. }
  723. CButton {
  724. // id: resultButton
  725. // anchors.top: loginPassword.bottom
  726. // anchors.topMargin: 50
  727. // anchors.horizontalCenter: parent.horizontalCenter
  728. textHeight: 50
  729. fontHeight: 0.4
  730. width: 150
  731. height: 50
  732. visible: bar.currentIndex < 8
  733. color: pressed ? textClickedColor : mainAppColor
  734. text: String.fromCharCode(0x41+bar.currentIndex) +"42"
  735. onClicked: moveBegin(bar.currentIndex,44)
  736. }
  737. CButton {
  738. // id: resultButton
  739. // anchors.top: loginPassword.bottom
  740. // anchors.topMargin: 50
  741. // anchors.horizontalCenter: parent.horizontalCenter
  742. textHeight: 50
  743. fontHeight: 0.4
  744. width: 150
  745. height: 50
  746. visible: bar.currentIndex < 8
  747. color: pressed ? textClickedColor : mainAppColor
  748. text: String.fromCharCode(0x41+bar.currentIndex) +"43"
  749. onClicked: moveBegin(bar.currentIndex,45)
  750. }
  751. CButton {
  752. // id: resultButton
  753. // anchors.top: loginPassword.bottom
  754. // anchors.topMargin: 50
  755. // anchors.horizontalCenter: parent.horizontalCenter
  756. textHeight: 50
  757. fontHeight: 0.4
  758. width: 150
  759. height: 50
  760. visible: bar.currentIndex < 8
  761. color: pressed ? textClickedColor : mainAppColor
  762. text: String.fromCharCode(0x41+bar.currentIndex) +"44"
  763. onClicked: moveBegin(bar.currentIndex,46)
  764. }
  765. CButton {
  766. // id: resultButton
  767. // anchors.top: loginPassword.bottom
  768. // anchors.topMargin: 50
  769. // anchors.horizontalCenter: parent.horizontalCenter
  770. textHeight: 50
  771. fontHeight: 0.4
  772. width: 150
  773. height: 50
  774. visible: bar.currentIndex < 8
  775. color: pressed ? textClickedColor : mainAppColor
  776. text: String.fromCharCode(0x41+bar.currentIndex) +"45"
  777. onClicked: moveBegin(bar.currentIndex,47)
  778. }
  779. CButton {
  780. // id: resultButton
  781. // anchors.top: loginPassword.bottom
  782. // anchors.topMargin: 50
  783. // anchors.horizontalCenter: parent.horizontalCenter
  784. textHeight: 50
  785. fontHeight: 0.4
  786. width: 150
  787. height: 50
  788. visible: bar.currentIndex < 8
  789. color: pressed ? textClickedColor : mainAppColor
  790. text: String.fromCharCode(0x41+bar.currentIndex) +"46"
  791. onClicked: moveBegin(bar.currentIndex,48)
  792. }
  793. CButton {
  794. // id: resultButton
  795. // anchors.top: loginPassword.bottom
  796. // anchors.topMargin: 50
  797. // anchors.horizontalCenter: parent.horizontalCenter
  798. textHeight: 50
  799. fontHeight: 0.4
  800. width: 150
  801. height: 50
  802. visible: bar.currentIndex < 8
  803. color: pressed ? textClickedColor : mainAppColor
  804. text: String.fromCharCode(0x41+bar.currentIndex) +"47"
  805. onClicked: moveBegin(bar.currentIndex,49)
  806. }
  807. CButton {
  808. // id: resultButton
  809. // anchors.top: loginPassword.bottom
  810. // anchors.topMargin: 50
  811. // anchors.horizontalCenter: parent.horizontalCenter
  812. textHeight: 50
  813. fontHeight: 0.4
  814. width: 150
  815. height: 50
  816. visible: bar.currentIndex < 8
  817. color: pressed ? textClickedColor : mainAppColor
  818. text: String.fromCharCode(0x41+bar.currentIndex) +"48"
  819. onClicked: moveBegin(bar.currentIndex,50)
  820. }
  821. }
  822. CButton {
  823. id: carButton
  824. x:10
  825. y:400
  826. textHeight: 50
  827. fontHeight: 0.4
  828. width: 50
  829. height: 200
  830. color: pressed ? textClickedColor : mainAppColor
  831. Text{
  832. text: "\n 车\n 辆\n 管\n 理"
  833. wrapMode: Text.WordWrap
  834. font.pointSize: 20
  835. color:"white"
  836. // anchors.horizontalCenter: parent.horizontalCenter
  837. // horizontalAlignment: Text.AlignHCenter
  838. verticalAlignment: Text.AlignVCenter
  839. }
  840. onClicked:carManage();
  841. }
  842. }