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
35 onFanSpeedChanged: fanSpeedSlider.value = fanSpeed
40 anchors.topMargin: width / 10
41 anchors.bottomMargin: width / 10
43 Layout.fillHeight: true
44 Layout.alignment: Qt.AlignHCenter
46 source: './images/HMI_HVAC_Fan_Icon.svg'
49 width: root.width * 0.8
52 anchors.left: parent.left
53 anchors.right: parent.right
54 anchors.verticalCenter: parent.verticalCenter
59 binding.fanSpeed = value
63 anchors.left: fanSpeedSlider.left
64 anchors.top: fanSpeedSlider.bottom
66 text: translator.translate(qsTr('FAN SPEED'), translator.language)
71 Layout.fillHeight: true
72 Layout.fillWidth: true
73 Layout.alignment: Layout.Center
76 Layout.fillWidth: true
83 onCurrentItemChanged: {
84 console.log("Left Temp changed",degree)
85 binding.leftTemperature = degree
90 Layout.fillWidth: true
93 onImage: './images/HMI_HVAC_Active.svg'
94 offImage: './images/HMI_HVAC_Inactive.svg'
96 anchors.centerIn: parent
97 color: parent.checked ? '#00ADDC' : '#848286'
98 text: translator.translate(qsTr('A/C'), translator.language)
99 font.pixelSize: parent.height / 3
102 console.debug('A/C', checked)
106 onImage: './images/HMI_HVAC_Active.svg'
107 offImage: './images/HMI_HVAC_Inactive.svg'
109 anchors.centerIn: parent
110 color: parent.checked ? '#00ADDC' : '#848286'
111 text: translator.translate(qsTr('AUTO'), translator.language)
112 font.pixelSize: parent.height / 3
115 console.debug('AUTO', checked)
119 onImage: './images/HMI_HVAC_Circulation_Active.svg'
120 offImage: './images/HMI_HVAC_Circulation_Inactive.svg'
122 console.debug('Circulation', checked)
128 Layout.fillWidth: true
135 onCurrentItemChanged: {
136 console.log("Right Temp changed",degree)
137 binding.rightTemperature = degree
144 Layout.fillHeight: true
145 Layout.alignment: Qt.AlignHCenter
146 spacing: root.width / 20
148 model: ['AirDown', 'AirUp', 'AirRight', 'Rear', 'Front']
150 onImage: './images/HMI_HVAC_%1_Active.svg'.arg(model.modelData)
151 offImage: './images/HMI_HVAC_%1_Inactive.svg'.arg(model.modelData)
153 console.debug(model.modelData, checked)