blob: c3bcd70a7e361403bf672b0ecfb4a178af517045 (
plain)
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
149
150
151
152
153
|
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "../eventsList.js" as EventsList
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList
import Label 2.0
HMIWindow{
id:carlinksetting_page
Component.onCompleted:
{
windowID = WindowsList.CARLINK_SETTING
}
onVisibleChanged:
{
bMainWindow = false
}
HMILabel {
x : 51-14 ; y : 149-132
width: 200 ; height: 30
horizontalAlignment: Label.AlignLeft
text : qsTr ("Settings")+systemCtrl.emptyString
}
Image{
id : setting_main
source:bMaxWindow?"qrc:MATERIAL/MATERIAL_M8X_FULL-SCREEN_BK"+bgImageStyle
:"qrc:MATERIAL/MATERIAL_M8X_HALF-SCREEN_BK"+bgImageStyle
x : 50; y : 210-132
width : 740-51-14
height: bMaxWindow?600:autologinset.height +cleanuser.height +100
fillMode: Image.PreserveAspectCrop
clip :true
Flickable {
id : flick1
x : 0
y : 0
width : parent.width
height : parent.height
contentWidth: parent.width
contentHeight: autologinset.height +cleanuser.height+logout.height+bluetoothlist.height+200
Column {
id : column1
x : 0
y : 0
spacing:2
Autologinset {
x : 0
id : autologinset
}
/*Graphicscode {
id : graphicscode
}*/
Cleanuserdata{
id:cleanuser
}
Userlogout{
id:logout
}
Bluetoothlist{
id : bluetoothlist
}
}
}
Item{
id : scrollbar
x : 670
y :0
width : bar.width
height: autologinset.height + /*graphicscode.height +*/cleanuser.height +logout.height+column1.spacing*2
//color: "black"
Image {
id: bar
x : 0
y : flick1.contentY/4
source: "qrc:MATERIAL/MATERIAL_M8X_SLIDER_BAR"+bgImageStyle
}
}
}
CarLink_BTBindPopup{
id : popup
popvisible : carlinkCtrl.bindPopupDisplay
popimageY : bMaxWindow ? 300 : 125
popheight : bMaxWindow ? 700 : 325
}
/**********20151207***add*******for code review******/
CarLink_Cleanning_Popup{
id : cleanning
popvisible : carlinkCtrl.isCleanPopupDisplay
popimageY : bMaxWindow ? 300 : 125
popheight : bMaxWindow ? 700 : 325
}
/**********20151207***add*******for code review******/
Connections{
target: carlinkCtrl
onSig_cleanDataFinishChanged:{
console.log("clean finished----------->>>")
if (0 === systemCtrl.iLanguage){
carlinkCtrl.showPromptInfo ("Current user info is clear" , true);
}
else {
carlinkCtrl.showPromptInfo ("当前账户信息已清除" , true);
}
}
}
Connections{
target: carlinkCtrl
onSig_isLogoutSuccess:{
console.log("logout success----------->>>")
ScreenManager.changeForm(Layout.FM_CLOSE,windowID) //close current window (setting window)2015/12/22
ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.CARLINKLOGIN_MAIN)
}
}
Connections{
target: carlinkCtrl
onSig_bindStateChangeSuccess:{
console.log("bindstate change success----------->>>")
if (0 === systemCtrl.iLanguage){
carlinkCtrl.showPromptInfo ("Bind state is changed" , true);
}
else {
carlinkCtrl.showPromptInfo ("绑定状态已修改" , true);
}
}
}
Connections{
target: carlinkCtrl
onSig_bindStateChangeFail:{
console.log("bindstate change success----------->>>")
if (0 === systemCtrl.iLanguage){
carlinkCtrl.showPromptInfo ("Change bind state failed" , true);
}
else {
carlinkCtrl.showPromptInfo ("绑定状态修改失败" , true);
}
}
}
/****************ACC OFF ******user logout *************/
Connections{
target: systemCtrl
onStdbyinNotice:{
console.log("ACC OFF CarLink_Main.qml----------->>>")
carlinkCtrl.set_hmi_user_logout();
}
}
/*************************************************************/
}
|