2 * Copyright (C) 2016 The Qt Company Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 import QtQuick.Layouts 1.1
19 import QtQuick.Controls 2.0
20 import AGL.Demo.Controls 1.0
27 anchors.topMargin: width / 10
28 anchors.bottomMargin: width / 10
30 Layout.fillHeight: true
31 Layout.alignment: Qt.AlignHCenter
33 source: './images/HMI_HVAC_Fan_Icon.svg'
36 width: root.width * 0.8
39 anchors.left: parent.left
40 anchors.right: parent.right
41 anchors.verticalCenter: parent.verticalCenter
43 console.debug('Fan', value)
47 anchors.left: fanSpeed.left
48 anchors.top: fanSpeed.bottom
55 Layout.fillHeight: true
56 Layout.fillWidth: true
57 Layout.alignment: Layout.Center
60 Layout.fillWidth: true
67 enabled: leftSeat.headLevel > 0
71 Layout.fillWidth: true
74 onImage: './images/HMI_HVAC_Active.svg'
75 offImage: './images/HMI_HVAC_Inactive.svg'
77 anchors.centerIn: parent
78 color: parent.checked ? '#66FF99' : '#848286'
80 font.pixelSize: parent.height / 3
83 console.debug('A/C', checked)
87 onImage: './images/HMI_HVAC_Active.svg'
88 offImage: './images/HMI_HVAC_Inactive.svg'
90 anchors.centerIn: parent
91 color: parent.checked ? '#66FF99' : '#848286'
93 font.pixelSize: parent.height / 3
96 console.debug('AUTO', checked)
100 onImage: './images/HMI_HVAC_Circulation_Active.svg'
101 offImage: './images/HMI_HVAC_Circulation_Inactive.svg'
103 console.debug('Circulation', checked)
109 Layout.fillWidth: true
116 enabled: rightSeat.headLevel > 0
122 Layout.fillHeight: true
123 Layout.alignment: Qt.AlignHCenter
124 spacing: root.width / 20
126 model: ['AirDown', 'AirUp', 'AirRight', 'Rear', 'Front']
128 onImage: './images/HMI_HVAC_%1_Active.svg'.arg(model.modelData)
129 offImage: './images/HMI_HVAC_%1_Inactive.svg'.arg(model.modelData)
131 console.debug(model.modelData, checked)