-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMainLayoutForm.ui.qml
100 lines (99 loc) · 2.94 KB
/
MainLayoutForm.ui.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import QtQuick 2.8
import QtQuick.Controls 2.2
import QtQuick.Controls.Universal 2.2
Item {
property alias firmwareChooseButton: firmwareChooseButton
property alias downloadProgressBar: downloadProgressBar
property alias downloadButton: downloadButton
property alias serialPortCombo: serialPortCombo
property alias packetLengthCombo: packetLengthCombo
property alias crc8CheckCheckBox: crc8CheckCheckBox
property alias sequentialNumberCheckBox: sequentialNumberCheckBox
property alias fileInfo: fileInfo
id: item1
width: 480
Button {
id: firmwareChooseButton
width: 160
height: 50
text: qsTr("选择固件")
font.family: "微软雅黑"
anchors.left: parent.left
anchors.leftMargin: 20
anchors.bottom: parent.bottom
anchors.bottomMargin: 40
}
Button {
id: downloadButton
width: firmwareChooseButton.width
height: firmwareChooseButton.height
text: qsTr("下载固件")
font.family: firmwareChooseButton.font
enabled: false
anchors.bottom: parent.bottom
anchors.bottomMargin: 40
anchors.right: parent.right
anchors.rightMargin: 20
}
ProgressBar {
id: downloadProgressBar
width: parent.width
height: 6
anchors.bottom: firmwareChooseButton.top
anchors.bottomMargin: -80
}
Text {
id: fileInfo
text: qsTr("请选择需要烧写的固件")
anchors.verticalCenterOffset: -120
horizontalAlignment: Text.AlignHCenter
anchors.centerIn: parent
wrapMode: Text.WordWrap
font.family: "微软雅黑"
font.pixelSize: 20
}
ComboBox {
id: serialPortCombo
width: 160
height: 32
anchors.left: packetLengthCombo.left
anchors.leftMargin: 0
anchors.bottom: packetLengthCombo.top
anchors.bottomMargin: 30
}
ComboBox {
id: packetLengthCombo
model: ["1024", "512", "256", "128", "64", "32", "16"]
width: 160
height: 32
anchors.left: firmwareChooseButton.left
anchors.leftMargin: 0
anchors.bottom: firmwareChooseButton.top
anchors.bottomMargin: 30
}
CheckBox {
id: crc8CheckCheckBox
width: 160
height: 32
text: qsTr("CRC-8分片校验")
checked: true
anchors.bottom: sequentialNumberCheckBox.top
anchors.bottomMargin: 30
anchors.right: sequentialNumberCheckBox.right
anchors.rightMargin: 0
font.family: "微软雅黑"
}
CheckBox {
id: sequentialNumberCheckBox
width: 160
height: 32
text: qsTr("未来拓展")
enabled: false
checked: false
anchors.left: downloadButton.left
anchors.leftMargin: 0
anchors.bottom: downloadButton.top
anchors.bottomMargin: 30
font.family: "微软雅黑"
}
}