-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSliderPanel.qml
More file actions
100 lines (87 loc) · 1.51 KB
/
SliderPanel.qml
File metadata and controls
100 lines (87 loc) · 1.51 KB
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.15
import QtQuick.Controls 2.15
import My 1.0
BasePanel
{
id: root
property ImageItem image
property alias extra: valeExtra.text
Row{
leftPadding: 20
topPadding: 10
spacing: 20
Button {
id: next
text: "Обновить"
icon.source: "qrc:/imgs/update.png"
display: AbstractButton.TextBesideIcon
width: 100
onClicked: {
let back = valeExtra.text;
valeExtra.text += "json;";
updateSI(true);
valeExtra.text = back;
}
}
Button {
id: addClass
text: "Add class"
width: 100
onClicked: {
backend.addClass(valeClass.text * 1)
}
}
TextField {
id: valeClass
text: "0"
width: 30
validator: IntValidator {bottom: 0; top: 5}
}
Button {
text: "Undoadd"
width: 100
onClicked: {
backend.undoAddClass()
}
}
CheckBox{
text: "Show all"
onCheckStateChanged: {
if (checked)
{
valeExtra.text += "show0;";
}
else
{
valeExtra.text = valeExtra.text.replace("show0;", "");
}
updateSI(true);
}
}
LoadButton {
id: expords
text: "Выгрузить"
selectFolder: true
width: 100
height: 30
onAccepted: {
backend.exportResult(filePath)
}
}
TextField {
id: valeExtra
text: "barclass;"
width: 300
visible: false
}
}
function updateSI(force) {
if (force || realTime.checked)
backend.processMain(image, valeExtra.text)
}
}
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}
}
##^##*/