summaryrefslogtreecommitdiff
path: root/src/components/qt_hmi/References/Look/Views/Chrome.qml
blob: e8029fb10a1d3986d048042b1cd0c0356c8acfe9 (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
// 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: 8



    view: FView {
        id: v

        layout: ChromeLayout {
            id:chrome
            button2.indicatorState: condPool.settingsOpen

        }


    }

    /*FViewUseCaseSimple{condition:condPool.settingsOpen
        PropertyChanges {
            target: chrome.button2; indicatorState: true
        }
    }*/

    triggers: [
        FTrgEntry {

        },

        FTrgHardwareKey { hardkeys: hk_OnOff; keyAction: HK.In
            FActEventFire { event: closeNormalScreens }
            FActViewShow { view: "Off" }
        },
        FTrgTouchArea { touchArea:chrome.button1; touchAction: TA.Out
            FActViewShow { view: "Start" }
        },
        FTrgTouchArea { touchArea:chrome.button2; touchAction: TA.Out
            FActViewShow { view: "List" }
        },
        FTrgTouchArea { touchArea:chrome.button3; touchAction: TA.Out
            FActViewShow { view: "Start" }
        },
        FTrgEvent { event: closeNormalScreens
            FActViewHide{}
        }

    ]
}