summaryrefstree
path: root/usr/bin/qml/Carlink/CarLink_PromptPopup.qml
blob: 35970cb655b09597cd78023876c3b2f0f59a9d0d (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
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:promptPopup

    onVisibleChanged:
    {
        console.log("[TBoxAutoLogin_loginPopup][onVisibleChanged][loginPopup.visible]-->" + promptPopup.visible)
        asel_popup.opacity = 1
    }

    Timer
    {
        id:disappearTimer
        interval: 3*1000;
        running: carlinkCtrl.isAutoDisappear;
        repeat: false
        onTriggered:
        {
            console.log("[promptPopup][disappearTimer][onTriggered]-->>")
            disappearAnimation.start();
        }
    }

    Image
    {
        id:maskImg
        x: 14
        y: 132
        width:740
        height:696
        source : "qrc:MATERIAL/MATERIAL_M8X_MASK_FULL-SCREEN"+systemCtrl.style

        MouseArea
        {
            anchors.fill:parent
            onClicked:
            {
                console.log("[promptPopup][onClicked]-->>")
                disappearTimer.stop()
                ScreenManager.hideOverlay(WindowsList.CARLINK_PROMPT_POPUP);
            }
        }
    }

    Image
    {
        id: asel_popup
        x: 124
        y:424
        width:520
        height:112
        source : "qrc:MATERIAL/MATERIAL_M8X_POPUP_MESSAGE_BK"+systemCtrl.style

        HMILabel
        {
            x:0
            y:0
            anchors.fill: parent
            verticalAlignment: Label.AlignVCenter
            text: carlinkCtrl.promptInfo
            font.pixelSize: 24
            color:"white"
        }

    }

    NumberAnimation
    {
        id: disappearAnimation
        properties: "opacity"
        target: asel_popup
        from: 1
        to: 0
        duration: 1000
        easing.type: Easing.OutCurve

        onStopped:
        {
            console.log("[disappearAnimation][onStopped]-->>")
            ScreenManager.hideOverlay(WindowsList.CARLINK_PROMPT_POPUP);
        }
    }

    /*========================================Function Start==============================================*/

    /*========================================Function End================================================*/

}