blob: 3ebbc00c46160fadc8d99df94081ea68d7b98ca6 (
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
|
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList
import Label 2.0
Item {
width: 769
height: 1024
x:0
y:0
id:loginPopup
onVisibleChanged:
{
console.log("[TBoxAutoLogin_loginPopup][onVisibleChanged][loginPopup.visible]-->" + loginPopup.visible)
}
/*************for naca 69923 *******************/
Timer
{
id : disappeartime
interval: 3 * 1000
running: true
repeat: false
onTriggered:
{
console.log("[LoginAgain][disappearTimer][onTriggered]-->>")
disappearAnimation.start();
}
}
/*************for naca 69923 *******************/
Image
{
id:maskImg
x: 14
y: 132
width:740
height:696
source:"qrc:MATERIAL/MATERIAL_M8X_MASK_FULL-SCREEN"+systemCtrl.style
}
Image
{
id: asel_popup
x: 54
y: 373
width:660
height:215
source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_1+2LINE"+systemCtrl.style
HMILabel
{
x:0
y:60
width: parent.width
height: 60
text: qsTr("User ID or password is incorrect")+systemCtrl.emptyString
font.pixelSize: 30
color:"white"
}
//重新登陆
HMIButton
{
id:loginBtn
x:165
y:135
btnImg: loginBtn.pressed ? "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_PUSHED"+systemCtrl.style
: "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON"+systemCtrl.style
HMILabel
{
width: parent.width
height: parent.height
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: 20
text:qsTr("Reset")+systemCtrl.emptyString
color:"white"
}
onClicked:
{
console.log("[loginBtn][onClicked]-->")
//carlinkCtrl.requestUsrNameList(carlinkCtrl.macAddrOfBTDevice,carlinkCtrl.getVinOfMachine())
ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.CARLINKLOGIN_MAIN)
ScreenManager.hideOverlay(WindowsList.LOGINAGAINPOPUP);
}
}
//取消登录
HMIButton
{
id:closeBtn
x:335
y:135
btnImg: closeBtn.pressed ? "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_PUSHED"+systemCtrl.style
: "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON"+systemCtrl.style
HMILabel
{
width: parent.width
height: parent.height
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
text:qsTr("Cancel")+systemCtrl.emptyString
color:"white"
font.pixelSize: 20
}
onClicked:
{
console.log("[closeBtn][onClicked]-->")
ScreenManager.hideOverlay(WindowsList.LOGINAGAINPOPUP);
ScreenManager.changeForm(Layout.FM_CLOSE,WindowsList.CARLINKLOGIN_MAIN)
}
}
}
/*************for naca 69923 *******************/
NumberAnimation
{
id: disappearAnimation
properties: "opacity"
target: asel_popup
from: 1
to: 0
duration: 1000
easing.type: Easing.OutCurve
onStopped:
{
console.log("[LoginAgain][onStopped]-->>")
ScreenManager.hideOverlay(WindowsList.LOGINAGAINPOPUP);
}
}
/*************for naca 69923 *******************/
/*========================================Function Start==============================================*/
/*========================================Function End================================================*/
}
|