summaryrefstree
path: root/usr/bin/qml/OverLay/AUXaudio_PopUp.qml
blob: ee5ebd81e823d43bd2bebd95ade61f2593d10314 (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
135
136
137
import QtQuick 2.0
import Label 2.0
import "../com/neusoft/auto/widgets"
import "../windowsList.js" as WindowsList


Item
{
    id:itemScreen
    width: 768
    height: 1024

    HMIMouseArea
    {
        y:125
        width:769
        height:1024 - 125 - 121

        onClicked:
        {
            ScreenManager.hideOverlay(WindowsList.AUXAUDIOPOPUP)
        }
    }

    Image
    {
        id:imgSourceSelect
        x:120
        y:300
        width:531
        height:416

        source:"../images/Type_O_Popup/O_08/O_08_Popup_Background.png"
        MouseArea
        {
            anchors.fill: parent
        }
    }

    HMILabel
    {
        x:186
        y:376-11
        width: 418
        height: 22+22
        font.pixelSize: 22
        text: qsTr("AUX devices is detected,")
        horizontalAlignment: Label.AlignLeft
    }

    HMILabel
    {
        x:186
        y:376-11+44
        width: 418
        height: 22+22
        font.pixelSize: 22
        text: qsTr("you want ...... ")
        horizontalAlignment: Label.AlignLeft
    }

    HMILabel
    {
        x:186
        y:318-12
        width: 288
        height: 24+24
        font.pixelSize: 24
        text: qsTr("Device connection")
        color: "#3fa2ee"
        horizontalAlignment: Label.AlignLeft
    }

    Image
    {
        id: device_icon
        x:282
        y:479
        source: "../images/Type_O_Popup/O_09/O_09_Popup_icon_AUX.png"
    }

    HMILabel
    {
        x:351
        y:490-15
        width: 240
        height: 30+30
        font.pixelSize: 30
        text: qsTr("Go to the AUX ")
        horizontalAlignment:Label.AlignLeft
        color:mouse_click.pressed?  "#3fa2ee":"white"
    }


    HMIMouseArea
    {
        id:mouse_click
        x:351
        y:470
        width:220
        height: 70
        onClicked:
        {
            console.log("[ipod pop]go to clicked")

            if(0 === auxCtrl.auxConnectState)//connect
            {
                console.log("[AUX pop]AUX connected")

                if (WindowsList.AUXAUDIO_MAIN !== ScreenManager.getCurrentFormId())
                {
                    systemCtrl.reqSource(4,0,0); //SOURCE_AUX
                }
            }

            console.log("[aux pop]requset hide")
            ScreenManager.hideOverlay(WindowsList.AUXAUDIOPOPUP)
        }
    }

    HMIButton
    {
        id:cancel_btn
        x:281
        y:605
        btnImg: cancel_btn.pressed?"../images/Type_O_Popup/Popup_Button_Pushed.png":"../images/Type_O_Popup/Popup_Button_Normal.png"
        labelText: qsTr("Cancel")
        labelSize: 28

        onClicked:
        {
            console.log("[aux pop]cancel clicked")

            ScreenManager.hideOverlay(WindowsList.AUXAUDIOPOPUP)
        }
    }
}