-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoundLocate.qml
90 lines (75 loc) · 2.44 KB
/
SoundLocate.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
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.1
Item {
anchors.fill: parent
Column {
id: column1
anchors.rightMargin: 0
anchors.bottomMargin: 0
anchors.leftMargin: 0
anchors.topMargin: 0
anchors.fill: parent
GroupBox {
id: groupBox1
flat: true
title: "Algorithms"
Layout.fillWidth: true
Column {
id: column2
Layout.fillWidth: true
CheckBox {
id: checkBoxPOnly
text: qsTr("PhaseOnly")
checked: config.algoPhase
Component.onCompleted: {
config.algoPhase = Qt.binding(function() {return checked})
}
}
CheckBox {
id: checkBoxPandV
text: qsTr("PhaseAndVelocity")
checked: config.algoPaV
Component.onCompleted: {
config.algoPaV = Qt.binding(function() {return checked})
}
}
CheckBox {
id: checkBoxPandA
text: qsTr("PhaseAndAmplitude")
checked: config.algoPaA
Component.onCompleted: {
config.algoPaA = Qt.binding(function() {return checked})
}
}
}
}
GroupBox {
id: groupBox2
flat: true
Layout.fillWidth: true
Row {
id: row1
spacing: 5
anchors.fill: parent
Label {
id: textAccuracy
text: qsTr("accuracy of numeric solution")
anchors.verticalCenter: parent.verticalCenter
}
TextField {
id: textFieldAccuracy
text: config.accuracy
placeholderText: qsTr("accuracy")
validator: DoubleValidator {
bottom: 0
top: 100
}
Component.onCompleted: {
config.accuracy = Qt.binding(function() {return Number(parseFloat(text)) > 0 ? Number(parseFloat(text)) : 0})
}
}
}
}
}
}