summaryrefstree
path: root/usr/bin/qml/Radio/Radio_Pop_InUpdating.qml
blob: 72c31379dbfa2ed681de38baa063276cebee9b9b (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
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "RadioDef.js" as RadioDef
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList

HMIMask
{
    id:radio_updating
    widowsType: Layout.POP_TYPE
    formId: WindowsList.RADIO_POP_INUPDATING
    property string bgImageStyle: systemCtrl.style
	
    Item
    {
        id:item
        //FOD 2018/10/10 by wangyuecheng begin
        x:0//58
        y:317//419
        width: 960//844
        height: 556//352
        //FOD 2018/10/10 by wangyuecheng end
        Image
        {
            id: img_itemBackground
            anchors.fill: parent
            //FOD 2018/10/10 by wangyuecheng begin
            //source:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING"+bgImageStyle
            source:"qrc:MATERIAL/MATERIAL_POPUP_BG_H556"+bgImageStyle
            //FOD 2018/10/10 by wangyuecheng end
            HMILoading
            {
                id:img_Loading
                //FOD 2018/10/10 by wangyuecheng begin
                //Fod #F185 2017/02/08 wangshuang begin
                x: 450//382//440-58
                y: 153//62//481-419
                //Fod #F185 2017/02/08 wangshuang end
                width: 60//80
                height: 60//80
                //FOD 2018/10/10 by wangyuecheng end
            }
            HMILabel
            {
                id: lab_update
                //Fod #F185 2017/02/08 wangshuang begin
                //Fod #F0149 2017/1/8 wangshuang begin
                //FOD 2018/10/10 by wangyuecheng begin
                x: 120//282//340-58//120//358-58
                y: 245//161//580-419//585-419
                //Fod #F185 2017/02/08 wangshuang end
                width: 720//280
                height: 38//30//38
                //Fod #F0149 2017/1/7 wangshuang end
                //FOD 2018/10/10 by wangyuecheng end
                text: qsTr("Updating...") + systemCtrl.emptyString
                verticalAlignment: Text.AlignVCenter
                font.pixelSize: 30
                horizontalAlignment: Text.AlignHCenter
            }
            HMIButton
            {
                id:btn_cancel
                //FOD 2018/10/10 by wangyuecheng begin
                //Fod #F185 2017/02/08 wangshuang begin
                x:356//329//387-58
                y:335//228//647-419
                //Fod #F185 2017/02/08 wangshuang end
                width: 248//86
                height: 98//78
                //FOD 2018/10/10 by wangyuecheng end
                //ADD #144155 2017/01/16 wangs begin
                enabled: radio_updating.visible==true?true:false
                //ADD #144155 2017/01/16 wangs end
                //FOD 2018/10/10 by wangyuecheng begin
                //btnImg: btn_cancel.pressed?"qrc:MATERIAL/MATERIAL_M8X_POPUP_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BUTTON"+bgImageStyle
                btnImg: btn_cancel.pressed?"qrc:MATERIAL/MATERIAL_POPUP_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_POPUP_BUTTON"+bgImageStyle
                //FOD 2018/10/10 by wangyuecheng begin
                labelText: qsTr("Cancel")+systemCtrl.emptyString
                labelSize: 30

                onClicked:
                {
//                    console.debug("radio update cancel click")
                    //Fod #177705 2017/05/27 wangs begin
                    if(radioCtrl.sourceOnState==true)
                    {
                        radioCtrl.reqradioListUpdatStop()
                    }
                    //Fod #177705 2017/05/27 wangs end
                    ScreenManager.hideOverlay(WindowsList.RADIO_POP_INUPDATING)
                    //ADD #162781 2017/04/12 wangs begin
                    radioCtrl.setStationListNullUpdateState(false)
                    //ADD #162781 2017/04/12 wangs end
                }
            }
        }
    }

}