-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoundReduce.qml
115 lines (97 loc) · 3.26 KB
/
SoundReduce.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.1
Item {
anchors.fill: parent
Column {
id: column1
width: 200
height: 400
Grid {
id: grid1
rows: 10
columns: 2
anchors.fill: parent
spacing: 5
verticalItemAlignment: Grid.AlignVCenter
Label {
id: textFFTSize1
text: qsTr("windowing function")
font.pixelSize: 12
}
ComboBox {
id: comboBox1
width: 200
currentIndex: config.disFunc
model: [ "Distance", "Direction" ]
Component.onCompleted: {
config.disFunc = Qt.binding(function() { return currentIndex })
}
}
Label {
id: textMaxClusterSize
text: qsTr("maximum size of a cluster")
}
TextField {
id: textFieldMaxClusterSize
text: config.maxClusterSize
placeholderText: qsTr("maximum size")
validator: DoubleValidator {
bottom: 0
top: 100
}
Component.onCompleted: {
config.maxClusterSize = Qt.binding(function() {return Number(parseFloat(text)) > 0 ? Number(parseFloat(text)) : 0})
}
}
Label {
id: textMaxKeep
text: qsTr("maximum number of old points to keep")
}
TextField {
id: textFieldMaxKeep
text: config.maxKeep
placeholderText: qsTr("maximum keep points")
validator: IntValidator {
bottom: 0
top: 10000000
}
Component.onCompleted: {
config.maxKeep = Qt.binding(function() {return Number(parseInt(text)) >= 0 ? Number(parseInt(text)) : 0})
}
}
Label {
id: textMeanWindow
text: qsTr("size of moving average window")
}
TextField {
id: textFieldMeanWindow
text: config.meanWindow
placeholderText: qsTr("size of window")
validator: IntValidator {
bottom: 0
top: 10000000
}
Component.onCompleted: {
config.meanWindow = Qt.binding(function() {return Number(parseInt(text)) >= 0 ? Number(parseInt(text)) : 0})
}
}
Label {
id: textKeepTime
text: qsTr("time to keep old points")
}
TextField {
id: textFieldKeepTime
text: config.keepTime
placeholderText: qsTr("time")
validator: DoubleValidator {
bottom: 0
top: 10000000
}
Component.onCompleted: {
config.keepTime = Qt.binding(function() {return Number(parseFloat(text)) >= 0 ? Number(parseFloat(text)) : 0})
}
}
}
}
}