summaryrefstree
path: root/usr/bin/qml/USB/USB_StateError.qml
blob: a98c93d457905ed7c7efdfa66e578cdb13592505 (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
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "usb_define.js" as StatusList
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList


HMIMask
{
    id:stateerror
    //FOD [2017-3-16] #150906 pengc begin
    widowsType:Layout.POP_TYPE
    //FOD [2017-3-16] #150906 pengc end
    formId: WindowsList.USB_STATEERROR
    width:960
    height:1280

    onVisibleChanged:
    {
        if(stateerror.visible == true)
        {
            //DEL [2017-3-16] #150906 pengc begin
            //timer_error.start()
            //DEL [2017-3-16] #150906 pengc end
//            //ADD by lishunan for #314731 start
//            if(USBControl1.getImgOver20M()){
//                stateErrorPopText.text ="The image is too large to display"
//                USBControl1.setImgOver20M(false)
//                timer_error.start()
//            }
//            //ADD by lishunan for #314731 end
        }
    }
    Item
    {
        id:stateErrorPop
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter:  parent.verticalCenter
        Image
        {
            width: 844
            height: 352
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.verticalCenter:  parent.verticalCenter
            source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING" + bgImageStyle

            Rectangle
            {
                anchors.fill: parent
                color: "black"
            }
            HMILabel
            {
                id:stateErrorPopText
                width: 844
                height: 352
                font.pixelSize: 30
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.verticalCenter:  parent.verticalCenter
                text:qsTr("Unable to play, please try to select in play list")
				//modify by Jiyulong for #163235 start 2017/4/6
              //  color:"red"
			  //modify by Jiyulong for #163235 end
                wtitesize:0
            }
            HMIMouseArea
            {
                anchors.fill: parent
                onClicked:
                {
                    ScreenManager.hideOverlay(WindowsList.USB_STATEERROR)
                    //DEL [2017-3-16] #150906 pengc begin
                    //timer_error.stop()
                    //DEL [2017-3-16] #150906 pengc end
                }
            }
        }
    }
    HMIMouseArea
    {
        anchors.fill: parent

        onClicked:
        {
            ScreenManager.hideOverlay(WindowsList.USB_STATEERROR)
        }
    }
    //DEL [2017-3-16] #150906 pengc begin
    /*Timer
    {
        id:timer_error
        interval: 3000
        running: false
        repeat: false
        onTriggered:
        {
            ScreenManager.hideOverlay(WindowsList.USB_STATEERROR)
        }
    }*/
    //DEL [2017-3-16] #150906 pengc end
    //ADD by lishunan for #330635 start
    Connections
    {
          target: systemCtrl
          onHkMflModPressed:
          {
              console.log("LSN  ####[USB_StateError.qml] <<<<onHkMflModPressed")
              ScreenManager.hideOverlay(WindowsList.USB_STATEERROR)
          }
    }
    //ADD by lishunan for #330635 end
}