summaryrefstree
path: root/usr/bin/qml/Carlink/CarLink_AutoGrpPop.qml
blob: 2be7cecfa62a2e8070dc13ed053e4bfa00e3f0e9 (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

import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "../windowsList.js" as WindowsList
import "../layoutList.js" as Layout
import Label 2.0


Item {
    width: 769
    height: 1024
    x:0
    y:0
    id : autoGrppop
    property alias popvisible: autoGrppop.visible
    property alias mask_height  : maskImg.height
    property alias popimageY : popup.y
    property alias pop_tex: poptext.text
    property int pop_type: 1

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

        MouseArea
        {
            anchors.fill:parent
            onClicked:
            {
                console.log("[promptPopup][onClicked]-->>")
            }
        }
    }

    Image
    {
        id: popup
        x: 54
        source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_1+2LINE"+systemCtrl.style

        HMILabel
        {
            id:poptext
            x:95
            y:59
            width: 474
            height: 29
            font.pixelSize: 29
        }
        HMIButton {
            id : yes
            x : 165
            y : 135
            labelText: qsTr("Yes")+systemCtrl.emptyString
            btnImg : yes.pressed ?"qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_PUSHED"+systemCtrl.style
                        : "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON"+systemCtrl.style
            onClicked: {
                carlinkCtrl.deleteAllMsg();
                autoGrppop.visible = false
            }
        }
        HMIButton {
            id : no
            x : 335
            y : 135
            labelText: qsTr("No")+systemCtrl.emptyString
            btnImg : no.pressed ?"qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_PUSHED"+systemCtrl.style
                            : "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON"+systemCtrl.style
            onClicked:  {
               autoGrppop.visible = false
            }
        }
    }
}