summaryrefstree
path: root/usr/bin/qml/Assistance/Assistance_NotAvailable.qml
blob: 6d6c406f0968096e8cf29ab831dd0427c635345e (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
import QtQuick 2.0
import Label 2.0//ADD #F0182 2017/02/03 baojinfeng begin
import "../com/neusoft/auto/widgets"
import "../windowsList.js" as WindowsList
import "../layoutList.js" as Layout
import "../Assistance/Assistancelist.js" as Assistancelist
import "../Setting/Settinglist.js" as Settinglist

HMIMask
{
    id:notAvailable_message
    x:0
    y:0//40
    //width: 768//740
    //height: 858//696
    widowsType:Layout.MESSAGE_TYPE
    formId:WindowsList.ASSISTANCE_NOTAVAILABLE

    property bool screenShotSwt: diagCtrl.sScreenShotSwt
    property int iLanguage: systemCtrl.iLanguage
    property int iAssistance: settingCtrl.iAssistance//add 2017/1/9 BAOJINFENG end

    Component.onCompleted:
    {
    }
    onVisibleChanged:
    {
        if(notAvailable_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

            //add 2017/1/9 BAOJINFENG begin
            if(iAssistance==0)
            {
                label_text_english.text = "EBA is deactivated, please try again or contact the local dealer.";
                label_text_chinese.text = "EBA 激活失败,请重试或联系经销商。";
            }
            else if(iAssistance==1)
            {
                label_text_english.text = "BLIS is deactivated, please try again or contact the local dealer.";
                label_text_chinese.text = "BLIS 激活失败,请重试或联系经销商。";

            }
            else if(iAssistance==2)
            {
                label_text_english.text = "FCW is deactivated, please try again or contact the local dealer.";
                label_text_chinese.text = "FCW 激活失败,请重试或联系经销商。";
            }
            else
            {
                //do nothing
            }
            //add 2017/1/9 BAOJINFENG end
        }
        else
        {
            messggeTimer.stop()
        }
    }
    Image
    {
        id: im_itemBackground
        x:58
        y:419
        width:844
        height:352
        source:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING"+bgImageStyle

        HMIMouseArea
        {
            anchors.fill: parent
            bBeep:false

            onClicked:
            {
                ScreenManager.hideOverlay(WindowsList.ASSISTANCE_NOTAVAILABLE)
            }
        }
    }
    HMILabel
    {
        id:label_text_english
        x:120
        y:580  //FOD #F0145 2017/1/8 liuming end
        width:720
        height:82//30 //FOD #F0145 2017/1/8 liuming end
        text:""
        font.pixelSize:30
        //horizontalAlignment: Text.AlignHCenter//DEL #F0192 2017/2/6 BAOJINFENG begin
        verticalAlignment: Label.AlignTop  //FOD #F0145 2017/1/8 liuming end//FOD #F0192 2017/2/6 BAOJINFENG begin
        visible: iLanguage == Settinglist.LANGUAGE_CHINESE? false:true
    }
    HMILabel
    {
        id:label_text_chinese
        x:120
        y:580//480 //FOD #F0145 2017/1/8 liuming end
        width:720
        height:82//30//50  //FOD #F0145 2017/1/8 liuming end
        text:""
        font.pixelSize:30
        //horizontalAlignment: Text.AlignHCenter//DEL #F0192 2017/2/6 BAOJINFENG begin
        verticalAlignment: Label.AlignTop  //FOD #F0145 2017/1/8 liuming end//FOD #F0192 2017/2/6 BAOJINFENG begin
        visible: iLanguage == Settinglist.LANGUAGE_CHINESE? true:false

    }

    Timer
    {
        id:messggeTimer
        interval: 3000
        running: false
        repeat: false

        onTriggered:
        {
            ScreenManager.hideOverlay(WindowsList.ASSISTANCE_NOTAVAILABLE)
        }
    }
}