-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
120 lines (106 loc) · 2.51 KB
/
main.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
116
117
118
119
120
import QtQuick 2.6
import QtQuick.Controls 1.5
import QtQuick.Dialogs 1.2
import de.sfn_kassel.locate 1.0
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("soundLocate")
/*
Config {
id: config
}
*/
LogText {
id: logText
}
TabView {
id: tabView1
anchors.bottomMargin: 30
anchors.fill: parent
tabPosition: 8
Tab {
id: config1
title: "Config"
source: "Config.qml"
}
Tab {
id: status1
title: "Status"
source: "Status.qml"
}
Tab {
id: output1
title: "Output"
source: "Output.qml"
}
}
Text {
id: statusText
x: 5
y: 450
text: logText.sText
textFormat: Text.RichText
anchors.top: tabView1.bottom
anchors.topMargin: 0
font.pixelSize: 20
anchors.left: parent.left
anchors.leftMargin: 5
anchors.verticalCenter: parent.verticalCenter
}
Button {
id: buttonStop
x: 467
y: 450
text: qsTr("Stop")
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.top: tabView1.bottom
anchors.topMargin: 0
anchors.right: buttonStart.left
anchors.rightMargin: 5
onClicked: {
logText.stop(false)
buttonRestart.visible = false
visibilityChanged(buttonRestart.visible)
buttonStart.visible = true
visibilityChanged(buttonStart.visible)
}
}
Button {
id: buttonStart
x: 556
y: 450
text: qsTr("Start")
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.top: tabView1.bottom
anchors.topMargin: 0
anchors.right: parent.right
anchors.rightMargin: 0
onClicked: {
logText.start()
visible = false
visibilityChanged(visible)
buttonRestart.visible = true
visibilityChanged(buttonRestart.visible)
}
}
Button {
id: buttonRestart
x: 556
y: 450
text: qsTr("Restart")
visible: false
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.top: tabView1.bottom
anchors.topMargin: 0
anchors.right: parent.right
anchors.rightMargin: 0
onClicked: {
logText.stop(true)
}
}
}