forked from AIIX/Mycroft-Ai-QtApplication
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Options.qml
148 lines (127 loc) · 3.82 KB
/
Options.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import QtQuick 2.5
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.1
import Qt.labs.settings 1.0
Rectangle {
id: rectangle1
color: "#0e7f86"
anchors.fill: parent
property alias strscript: textField1.text
property alias stpscript: textField2.text
property alias wspath: textField3.text
Item {
id: settingstabcolumntop2
}
Item {
id: settingstabcolumntop3
anchors.top: settingstabcolumntop2.bottom
anchors.topMargin: 71
Switch {
id: welcomeintroswitch
x: 0
y: -25
height: 25
text: qsTr("Enable / Disable Intro Animation")
checked: true
}
}
Item {
id: settingstabcolumnbottom
anchors.left: parent.left
anchors.leftMargin: 10
anchors.top: settingstabcolumntop3.bottom
anchors.topMargin: 50
Label {
id: fontsizelabelfld
x: 0
y: -38
text: qsTr("Text Font Size: ")
font.bold: true
}
TextField {
id: fontsizetextfld
width: 28
height: 46
text: qsTr("12")
anchors.left: fontsizelabelfld.right
anchors.verticalCenter: fontsizelabelfld.verticalCenter
anchors.leftMargin: 6
}
Button {
id: button1
width: 102
height: 42
text: qsTr("Apply")
anchors.verticalCenterOffset: -33
anchors.verticalCenter: fontsizetextfld.verticalCenter
anchors.left: label2.right
anchors.leftMargin: 177
onClicked: {
textinputsize = fontsizetextfld.text
}
}
TextField {
id: textField1
width: 274
height: 43
text: qsTr("/home/Aix/mycroft-core/mycroft.sh")
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenterOffset: 162
anchors.horizontalCenter: fontsizetextfld.horizontalCenter
anchors.top: fontsizetextfld.bottom
anchors.topMargin: 2
}
TextField {
id: textField2
width: 275
height: 40
text: qsTr("/home/Aix/mycroft-core/mycroft.sh")
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: textField1.horizontalCenter
anchors.top: textField1.bottom
anchors.topMargin: -1
}
TextField {
id: textField3
width: 273
height: 40
text: qsTr("ws://0.0.0.0:8181/core")
anchors.horizontalCenterOffset: 1
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: textField1.horizontalCenter
anchors.top: textField2.bottom
anchors.topMargin: -3
}
Label {
id: label1
text: qsTr("Mycroft Start Script")
font.bold: true
anchors.top: fontsizelabelfld.bottom
anchors.topMargin: 28
}
Label {
id: label2
x: -10
text: qsTr("Mycroft Stop Script")
font.bold: true
anchors.horizontalCenter: label1.horizontalCenter
anchors.top: label1.bottom
anchors.topMargin: 14
}
Label {
id: label3
text: qsTr("Mycroft WS IP")
textFormat: Text.AutoText
font.bold: true
anchors.top: label2.bottom
anchors.topMargin: 18
}
}
Settings {
id: innerset
property alias wsip: textField3.text
property alias customlocstart: textField1.text
property alias customlocstop: textField2.text
property alias fntsize: fontsizetextfld.text
}
}