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
29 onFanSpeedChanged: fanSpeedSlider.value = fanSpeed
34 anchors.topMargin: width / 10
35 anchors.bottomMargin: width / 10
37 Layout.fillHeight: true
38 Layout.alignment: Qt.AlignHCenter
40 source: './images/HMI_HVAC_Fan_Icon.svg'
43 width: root.width * 0.8
46 anchors.left: parent.left
47 anchors.right: parent.right
48 anchors.verticalCenter: parent.verticalCenter
53 binding.fanSpeed = value
57 anchors.left: fanSpeedSlider.left
58 anchors.top: fanSpeedSlider.bottom
65 Layout.fillHeight: true
66 Layout.fillWidth: true
67 Layout.alignment: Layout.Center
70 Layout.fillWidth: true
77 onCurrentItemChanged: {
78 console.log("Left Temp changed",degree)
79 binding.leftTemperature = degree
84 Layout.fillWidth: true
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('A/C', checked)
100 onImage: './images/HMI_HVAC_Active.svg'
101 offImage: './images/HMI_HVAC_Inactive.svg'
103 anchors.centerIn: parent
104 color: parent.checked ? '#66FF99' : '#848286'
106 font.pixelSize: parent.height / 3
109 console.debug('AUTO', checked)
113 onImage: './images/HMI_HVAC_Circulation_Active.svg'
114 offImage: './images/HMI_HVAC_Circulation_Inactive.svg'
116 console.debug('Circulation', checked)
122 Layout.fillWidth: true
129 onCurrentItemChanged: {
130 console.log("Right Temp changed",degree)
131 binding.rightTemperature = degree
138 Layout.fillHeight: true
139 Layout.alignment: Qt.AlignHCenter
140 spacing: root.width / 20
142 model: ['AirDown', 'AirUp', 'AirRight', 'Rear', 'Front']
144 onImage: './images/HMI_HVAC_%1_Active.svg'.arg(model.modelData)
145 offImage: './images/HMI_HVAC_%1_Inactive.svg'.arg(model.modelData)
147 console.debug(model.modelData, checked)