blob: 98c2d3c4494ad839d20d9a39f62a6ffc4549ea15 (
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
|
import QtQuick 2.0
import Label 2.0//ADD #F0192 2017/2/6 BAOJINFENG begin
import "../com/neusoft/auto/widgets"
import "../windowsList.js" as WindowsList
import "../layoutList.js" as Layout
HMIMask
{
id:tbox_message
x:0
y:0//40
//width:960
//height:1050
widowsType:Layout.MESSAGE_TYPE
formId:WindowsList.SETTING_TBOX_MESSAGE
property string pop_text: ""
Component.onCompleted:
{
if(true == settingCtrl.getPasswdOrNetFail() )
{
pop_text = qsTr("Incorrect password");
}
else
{
pop_text = qsTr("Network is not setting");
}
if(true == settingCtrl.getServerAccessStatus() )
{
}
else
{
pop_text = qsTr("Server access is error");
}
//windowID = WindowsList.SETTING_TBOX_MESSAGE //del F0182 20170204 liuming end
}
onVisibleChanged:
{
if(tbox_message.visible == true)
{
//FOD #126239 2106/12/05 BAOJINFENG begin
// if(screenShotSwt == true)
// {
// //do nothing
// }
// else
// {
messggeTimer.start()
// }
//FOD #126239 2106/12/05 BAOJINFENG end
}
else
{
messggeTimer.stop()
}
}
Image
{
//FOD 2106/10/26 BAOJINFENG begin
id: im_itemBackground
x:58
y:419
width:844
height:352
source:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING_1"+bgImageStyle
//FOD 2106/10/26 BAOJINFENG end
HMIMouseArea
{
anchors.fill: parent
bBeep:false
onClicked:
{
ScreenManager.hideOverlay(WindowsList.SETTING_TBOX_MESSAGE)
}
}
}
HMILabel
{
id:label_text
x:120
y:575//580-5//480 //FOD #F0182 2017/02/03 baojinfeng begin
width:720
height:40//134 //Fod #F0145 2017/1/6 liuming end
text:pop_text+ systemCtrl.emptyString
font.pixelSize:30
//DEL #F0192 2017/2/6 BAOJINFENG begin
//horizontalAlignment: Text.AlignHCenter
//verticalAlignment: Text.AlignVCenter//FOD 2106/10/26 BAOJINFENG end //Fod #F0145 2017/1/6 liuming end
//DEL #F0192 2017/2/6 BAOJINFENG end
}
// HMIMouseArea
// {
// anchors.fill: parent
// onClicked:
// {
// ScreenManager.hideOverlay(WindowsList.SETTING_TBOX_MESSAGE)
// }
// }
Timer
{
id:messggeTimer
interval: 3000
running: false
repeat: false
onTriggered:
{
ScreenManager.hideOverlay(WindowsList.SETTING_TBOX_MESSAGE)
}
}
}
|