summaryrefstree
path: root/usr/bin/qml/Diag/SettingDisplay/Diag_Setting_Vehicle.qml
blob: 177eee763a051252a03dbdc93854563c3fe0a03c (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
138
import QtQuick 2.0
import "../../com/neusoft/auto/widgets"
import "../../layoutList.js" as Layout
import "../../windowsList.js" as WindowsList
import "../../Setting/Settinglist.js" as Settinglist
import "../"

DiagDevelopWindow
{
    id:diag_setting_Vehicle

    Component.onCompleted:
    {

    }

    property string bgImageStyle: systemCtrl.style
//    property int iSeatPositioning: settingCtrl.iSeatPositioning
//    property int iMirrorAutoFold: settingCtrl.iMirrorAutoFold
//    property int iDaytimeRunning: settingCtrl.iDaytimeRunning
//    property int iWelcomeLight: settingCtrl.iWelcomeLight
//    property int iFollowMeHomeT: settingCtrl.iFollowMeHomeT
//    property bool showBar: false

    onVisibleChanged:
    {
        if(diag_setting_Vehicle.visible == true)
        {

        }
        else
        {

        }
        //console.log("onVisibleChanged--->iSeatPositioning-->" + iSeatPositioning)
        //console.log("onVisibleChanged--->iMirrorAutoFold-->" + iMirrorAutoFold)
        //console.log("onVisibleChanged--->iDaytimeRunning-->" + iDaytimeRunning)
        //console.log("onVisibleChanged--->iWelcomeLight-->" + iWelcomeLight)
        //console.log("onVisibleChanged--->iFollowMeHomeT-->" + iFollowMeHomeT)

    }

    Item
    {
        id:diag_Comfort_and_Convenience_title
        x:0
        y:0
        width: 960
        height: 78
        HMILabel
        {
            width: 400//120
            height: 78
            text:qsTr("Diag-Setting-Vehicle") + systemCtrl.emptyString
            font.pixelSize: 30
            color:"#e1e1e1"
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
        }
    }

    HMIButton
    {
        id:back_btn
        x:0
        y:165 - diag_setting_Vehicle.y
        width: 138
        height: 70
        btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_P" + bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON" + bgImageStyle

        Image
        {
            id:back_btn_image
            x:20
            anchors.verticalCenter: parent.verticalCenter
            width: 20
            height:34
            source: "qrc:MATERIAL/MATERIAL_M8X_ICON_BACK" + bgImageStyle
        }

        HMILabel
        {
            id:back_btn_label
            x:44
            width: 94//60
            height: 70
            text: qsTr("Back") + systemCtrl.emptyString
            font.pixelSize: 30
            verticalAlignment: Text.AlignVCenter
            horizontalAlignment: Text.AlignLeft
        }
        onClicked:
        {
            //diagCtrl.bInstallMode = false
            ScreenManager.changeForm(Layout.ACT_BACK, WindowsList.DIAG_SETTING_DISPLAY)
        }
    }

    Item
    {
        id:vehicle_list
        anchors.horizontalCenter: parent.horizontalCenter
        y:265 - diag_setting_Vehicle.y
        width: 842
        height: 760//760-124

        Flickable
        {
            id:flick1
            width: 842
            height: 760//760-124
            anchors.topMargin: 0
            contentHeight: columnForight.height
            contentWidth: parent.width
            clip:true

            Column
            {
                id:columnForight
                anchors.topMargin: 0
                spacing: 2

                Diag_Setting_Seat
                {
                    id:diag_seat
                }
                Diag_Setting_Doors
                {
                    id:diag_door
                }
                Diag_Setting_Lights
                {
                    id:diag_light
                }
            }
        }
    }
}