summaryrefslogtreecommitdiff
path: root/src/components/qt_hmi/References/Look/Views/SourceChange.qml
blob: 42680f9e80d8cd37cae1b9c5ca888b4e17bfc366 (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
// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
import QtQuick 2.0
import com.ford.hmiframework 1.0
import "../Layouts"
import "../Animations"
import "../Widgets"
import ".."

FStateView {
    priority: 2
    //attachedViews: ["Chrome"]



    view: FView {
        id: v

        layout: TileBackLayout {
            id:source
            button1.text: "AM"
            button2.text: "FM"
            button3.text: "Sirius"
            button4.text: "USB"
            button5.text: "BT Audio"
            button6.text: "Line In"
            button7.vis: false
            button8.vis: false
        }


    }

    triggers: [


        /*FTrgHardwareKey { hardkeys: hk_OnOff; keyAction: HK.In
            FActEventFire { event: closeNormalScreens }
            FActViewShow { view: "Off" }
        },*/
        FTrgTouchArea { touchArea:source.button1; touchAction: TA.Out
            FActScriptCall { onScript: dataPool.currSource = "AM" }
            FActViewShow { view: "RadioEventHandling" }
        },
        FTrgTouchArea { touchArea:source.button2; touchAction: TA.Out
            FActViewShow { view: "FM" }
        },
        FTrgTouchArea { touchArea:source.button3; touchAction: TA.Out
            FActViewShow { view: "Start" }
        },
        FTrgTouchArea { touchArea:source.button4; touchAction: TA.Out
            FActViewShow { view: "USB" }
        },
        FTrgTouchArea { touchArea:source.button5; touchAction: TA.Out
            FActViewShow { view: "Start" }
        },
        FTrgTouchArea { touchArea:source.button6; touchAction: TA.Out
            FActViewShow { view: "RadioEventHandling" }
        },
        FTrgTouchArea { touchArea:source.button7; touchAction: TA.Out
            FActViewShow { view: "Start" }
        },
        FTrgTouchArea { touchArea:source.button8; touchAction: TA.Out
            FActViewShow { view: "Start" }
        },
        FTrgTouchArea { touchArea:source.backBtn; touchAction: TA.Out
            FActViewShow { view: "RadioEventHandling" }
        },
        FTrgEvent { event: closeNormalScreens
            FActViewHide{}
        }

    ]
}