From f8ca548fa047968383e9275ead76eacce90fd0a8 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Wed, 30 Nov 2016 20:11:48 +0900 Subject: Add sample qml application It is sample application(HVAC). This app is used for debuging, for reference of HomeScreen API use and so on. Signed-off-by: Kazumasa Mitsunari --- sample-qml/apps/HVAC_org/ClimateButton.qml | 30 + sample-qml/apps/HVAC_org/FanControl.qml | 54 + sample-qml/apps/HVAC_org/HVAC.qml | 89 ++ sample-qml/apps/HVAC_org/HazardButton.qml | 37 + sample-qml/apps/HVAC_org/MiddleColumn.qml | 33 + sample-qml/apps/HVAC_org/SeatHeatButton.qml | 39 + sample-qml/apps/HVAC_org/TempSlider.qml | 61 ++ sample-qml/apps/HVAC_org/TemperatureWheel.qml | 56 ++ .../apps/HVAC_org/images/defrost_front_off.png | Bin 0 -> 9832 bytes .../apps/HVAC_org/images/defrost_front_off.svg | 94 ++ .../apps/HVAC_org/images/defrost_front_on.png | Bin 0 -> 15576 bytes .../apps/HVAC_org/images/defrost_front_on.svg | 247 +++++ .../apps/HVAC_org/images/defrost_max_off.png | Bin 0 -> 10958 bytes .../apps/HVAC_org/images/defrost_max_off.svg | 189 ++++ sample-qml/apps/HVAC_org/images/defrost_max_on.png | Bin 0 -> 17034 bytes sample-qml/apps/HVAC_org/images/defrost_max_on.svg | 267 +++++ .../apps/HVAC_org/images/defrost_rear_off.png | Bin 0 -> 6949 bytes .../apps/HVAC_org/images/defrost_rear_off.svg | 80 ++ .../apps/HVAC_org/images/defrost_rear_on.png | Bin 0 -> 13723 bytes .../apps/HVAC_org/images/defrost_rear_on.svg | 244 +++++ sample-qml/apps/HVAC_org/images/drag_knob.svg | 13 + sample-qml/apps/HVAC_org/images/fan_bar_off.png | Bin 0 -> 1694 bytes sample-qml/apps/HVAC_org/images/fan_bar_on.png | Bin 0 -> 18765 bytes sample-qml/apps/HVAC_org/images/fan_bar_on.svg | 39 + .../apps/HVAC_org/images/fan_control_ac_off.png | Bin 0 -> 3332 bytes .../apps/HVAC_org/images/fan_control_ac_off.svg | 68 ++ .../apps/HVAC_org/images/fan_control_ac_on.png | Bin 0 -> 11685 bytes .../apps/HVAC_org/images/fan_control_ac_on.svg | 275 ++++++ .../apps/HVAC_org/images/fan_control_auto_off.png | Bin 0 -> 3702 bytes .../apps/HVAC_org/images/fan_control_auto_off.svg | 63 ++ .../apps/HVAC_org/images/fan_control_auto_on.png | Bin 0 -> 7717 bytes .../apps/HVAC_org/images/fan_control_auto_on.svg | 282 ++++++ .../apps/HVAC_org/images/fan_control_circ_off.png | Bin 0 -> 5149 bytes .../apps/HVAC_org/images/fan_control_circ_off.svg | 70 ++ .../apps/HVAC_org/images/fan_control_circ_on.png | Bin 0 -> 13892 bytes .../apps/HVAC_org/images/fan_control_circ_on.svg | 173 ++++ .../apps/HVAC_org/images/fan_dir_down_off.png | Bin 0 -> 6050 bytes .../apps/HVAC_org/images/fan_dir_down_off.svg | 196 ++++ .../apps/HVAC_org/images/fan_dir_down_on.png | Bin 0 -> 16220 bytes .../apps/HVAC_org/images/fan_dir_down_on.svg | 201 ++++ .../apps/HVAC_org/images/fan_dir_right_off.png | Bin 0 -> 4396 bytes .../apps/HVAC_org/images/fan_dir_right_off.svg | 67 ++ .../apps/HVAC_org/images/fan_dir_right_on.png | Bin 0 -> 9849 bytes .../apps/HVAC_org/images/fan_dir_right_on.svg | 227 +++++ sample-qml/apps/HVAC_org/images/fan_dir_up_off.png | Bin 0 -> 4419 bytes sample-qml/apps/HVAC_org/images/fan_dir_up_off.svg | 64 ++ sample-qml/apps/HVAC_org/images/fan_dir_up_on.png | Bin 0 -> 13095 bytes sample-qml/apps/HVAC_org/images/fan_dir_up_on.svg | 244 +++++ sample-qml/apps/HVAC_org/images/fan_icon_off.png | Bin 0 -> 3867 bytes sample-qml/apps/HVAC_org/images/hazard_blink.png | Bin 0 -> 6517 bytes sample-qml/apps/HVAC_org/images/hazard_blink.svg | 14 + sample-qml/apps/HVAC_org/images/hazard_off.png | Bin 0 -> 7614 bytes sample-qml/apps/HVAC_org/images/hazard_off.svg | 40 + sample-qml/apps/HVAC_org/images/hazard_on.png | Bin 0 -> 16182 bytes sample-qml/apps/HVAC_org/images/hazard_on.svg | 174 ++++ .../apps/HVAC_org/images/left_heat_seat_off.png | Bin 0 -> 12426 bytes .../apps/HVAC_org/images/left_heat_seat_off.svg | 27 + .../apps/HVAC_org/images/left_heat_seat_on.png | Bin 0 -> 1883 bytes .../apps/HVAC_org/images/left_heat_seat_on.svg | 66 ++ sample-qml/apps/HVAC_org/images/left_number_bg.svg | 35 + .../apps/HVAC_org/images/left_number_cover.svg | 19 + .../apps/HVAC_org/images/right_heat_seat_off.png | Bin 0 -> 12372 bytes .../apps/HVAC_org/images/right_heat_seat_off.svg | 52 + .../apps/HVAC_org/images/right_heat_seat_on.png | Bin 0 -> 1973 bytes .../apps/HVAC_org/images/right_heat_seat_on.svg | 117 +++ .../apps/HVAC_org/images/right_number_bg.svg | 37 + .../apps/HVAC_org/images/right_number_cover.svg | 40 + sample-qml/apps/HVAC_org/images/separator.png | Bin 0 -> 5633 bytes .../apps/HVAC_org/images/static_parts_bg.svg | 1031 ++++++++++++++++++++ .../apps/HVAC_org/images/temp_bar_on_left.svg | 271 +++++ .../apps/HVAC_org/images/temp_bar_on_right.svg | 282 ++++++ sample-qml/apps/HVAC_org/models/HVACModel.qml | 47 + .../apps/HVAC_org/models/TemperatureModel.qml | 28 + sample-qml/apps/HVAC_org/models/qmldir | 8 + 74 files changed, 5790 insertions(+) create mode 100644 sample-qml/apps/HVAC_org/ClimateButton.qml create mode 100644 sample-qml/apps/HVAC_org/FanControl.qml create mode 100644 sample-qml/apps/HVAC_org/HVAC.qml create mode 100644 sample-qml/apps/HVAC_org/HazardButton.qml create mode 100644 sample-qml/apps/HVAC_org/MiddleColumn.qml create mode 100644 sample-qml/apps/HVAC_org/SeatHeatButton.qml create mode 100644 sample-qml/apps/HVAC_org/TempSlider.qml create mode 100644 sample-qml/apps/HVAC_org/TemperatureWheel.qml create mode 100644 sample-qml/apps/HVAC_org/images/defrost_front_off.png create mode 100644 sample-qml/apps/HVAC_org/images/defrost_front_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/defrost_front_on.png create mode 100644 sample-qml/apps/HVAC_org/images/defrost_front_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/defrost_max_off.png create mode 100644 sample-qml/apps/HVAC_org/images/defrost_max_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/defrost_max_on.png create mode 100644 sample-qml/apps/HVAC_org/images/defrost_max_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/defrost_rear_off.png create mode 100644 sample-qml/apps/HVAC_org/images/defrost_rear_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/defrost_rear_on.png create mode 100644 sample-qml/apps/HVAC_org/images/defrost_rear_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/drag_knob.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_bar_off.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_bar_on.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_bar_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_ac_off.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_ac_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_ac_on.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_ac_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_auto_off.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_auto_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_auto_on.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_auto_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_circ_off.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_circ_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_circ_on.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_control_circ_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_down_off.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_down_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_down_on.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_down_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_right_off.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_right_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_right_on.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_right_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_up_off.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_up_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_up_on.png create mode 100644 sample-qml/apps/HVAC_org/images/fan_dir_up_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/fan_icon_off.png create mode 100644 sample-qml/apps/HVAC_org/images/hazard_blink.png create mode 100644 sample-qml/apps/HVAC_org/images/hazard_blink.svg create mode 100644 sample-qml/apps/HVAC_org/images/hazard_off.png create mode 100644 sample-qml/apps/HVAC_org/images/hazard_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/hazard_on.png create mode 100644 sample-qml/apps/HVAC_org/images/hazard_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/left_heat_seat_off.png create mode 100644 sample-qml/apps/HVAC_org/images/left_heat_seat_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/left_heat_seat_on.png create mode 100644 sample-qml/apps/HVAC_org/images/left_heat_seat_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/left_number_bg.svg create mode 100644 sample-qml/apps/HVAC_org/images/left_number_cover.svg create mode 100644 sample-qml/apps/HVAC_org/images/right_heat_seat_off.png create mode 100644 sample-qml/apps/HVAC_org/images/right_heat_seat_off.svg create mode 100644 sample-qml/apps/HVAC_org/images/right_heat_seat_on.png create mode 100644 sample-qml/apps/HVAC_org/images/right_heat_seat_on.svg create mode 100644 sample-qml/apps/HVAC_org/images/right_number_bg.svg create mode 100644 sample-qml/apps/HVAC_org/images/right_number_cover.svg create mode 100644 sample-qml/apps/HVAC_org/images/separator.png create mode 100644 sample-qml/apps/HVAC_org/images/static_parts_bg.svg create mode 100644 sample-qml/apps/HVAC_org/images/temp_bar_on_left.svg create mode 100644 sample-qml/apps/HVAC_org/images/temp_bar_on_right.svg create mode 100644 sample-qml/apps/HVAC_org/models/HVACModel.qml create mode 100644 sample-qml/apps/HVAC_org/models/TemperatureModel.qml create mode 100644 sample-qml/apps/HVAC_org/models/qmldir (limited to 'sample-qml/apps/HVAC_org') diff --git a/sample-qml/apps/HVAC_org/ClimateButton.qml b/sample-qml/apps/HVAC_org/ClimateButton.qml new file mode 100644 index 0000000..24802c7 --- /dev/null +++ b/sample-qml/apps/HVAC_org/ClimateButton.qml @@ -0,0 +1,30 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +import QtQuick 2.0 +import "models" + +Rectangle { + id: root + + width: imageItem.width + height: imageItem.height + color: "#aa000000" + + property string target: "" + property string image: "" + property bool value: HVACModel[target] + + Image { + id: imageItem + source: "images/" + image + "_" + (value ? "on" : "off") + ".png" + } + + MouseArea { + anchors.fill: parent + onClicked: HVACModel[target] = !HVACModel[target] + } +} diff --git a/sample-qml/apps/HVAC_org/FanControl.qml b/sample-qml/apps/HVAC_org/FanControl.qml new file mode 100644 index 0000000..00e6f9e --- /dev/null +++ b/sample-qml/apps/HVAC_org/FanControl.qml @@ -0,0 +1,54 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +import QtQuick 2.0 +import "models" + +Item { + width: childrenRect.width + height: childrenRect.height + + property real value: 0 + + Image { + y: 15 + source: "images/fan_icon_off.png" + } + + Image { + id: fanBar + x: 100 + source: "images/fan_bar_off.png" + } + + Image { + x: 100 + width: value * fanBar.width + fillMode: Image.PreserveAspectCrop + horizontalAlignment: Image.AlignLeft + source: "images/fan_bar_on.png" + + Image { + width: 20 + height: width + anchors.verticalCenter: parent.bottom + anchors.verticalCenterOffset: -1 + anchors.horizontalCenter: parent.right + source: "images/drag_knob.svg" + } + } + + MouseArea { + x: 100 + width: fanBar.width + height: parent.height + + onPositionChanged: { + value = Math.min(Math.max(mouse.x / fanBar.width, 0), 1) + HVACModel.fanSpeed = value; + } + } +} diff --git a/sample-qml/apps/HVAC_org/HVAC.qml b/sample-qml/apps/HVAC_org/HVAC.qml new file mode 100644 index 0000000..8ca981e --- /dev/null +++ b/sample-qml/apps/HVAC_org/HVAC.qml @@ -0,0 +1,89 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +import QtQuick 2.0 +import system 1.0 +import utils 1.0 +import "models" + +App { + appId: "hvac" + + HazardButton { + id: hazardButton + y: 100 + anchors.horizontalCenter: parent.horizontalCenter + } + + TempSlider { + id: lTempSlider + x: 30 + anchors.top: hazardButton.bottom + anchors.topMargin: 115 + side: "left" + } + + Row { + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: hazardButton.bottom + anchors.topMargin: 90 + spacing: 200 + + MiddleColumn { side: "left" } + MiddleColumn { side: "right" } + } + + TempSlider { + id: rTempSlider + anchors.top: hazardButton.bottom + anchors.topMargin: 115 + anchors.right: parent.right + anchors.rightMargin: 30 + side: "right" + } + + Image { + y: 1057 + source: "images/separator.png" + } + + FanControl { + x: 259 + y: 1092 + } + + Item { + anchors.horizontalCenter: parent.horizontalCenter + width: childrenRect.width + height: childrenRect.height + anchors.bottom: parent.bottom + anchors.bottomMargin: 40 + + Row { + spacing: 20 + + Column { + spacing: 10 + + ClimateButton { image: "fan_dir_down"; target: "fanDown" } + ClimateButton { image: "fan_dir_right"; target: "fanRight" } + ClimateButton { image: "fan_dir_up"; target: "fanUp" } + } + + ClimateButton { y: 156; image: "fan_control_ac"; target: "fanAC" } + ClimateButton { y: 156; image: "fan_control_auto"; target: "fanAuto" } + ClimateButton { y: 156; image: "fan_control_circ"; target: "fanRecirc" } + + Column { + spacing: 10 + + ClimateButton { image: "defrost_max"; target: "defrostMax" } + ClimateButton { image: "defrost_rear"; target: "defrostRear" } + ClimateButton { image: "defrost_front"; target: "defrostFront" } + } + } + } +} diff --git a/sample-qml/apps/HVAC_org/HazardButton.qml b/sample-qml/apps/HVAC_org/HazardButton.qml new file mode 100644 index 0000000..ffae370 --- /dev/null +++ b/sample-qml/apps/HVAC_org/HazardButton.qml @@ -0,0 +1,37 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +import QtQuick 2.0 + +Rectangle { + id: hazardButton + width: 624 + height: 122 + color: "#aa000000" + border.color: "#ff53b5ce" + + property bool value: false + property bool flash: false + + Image { + id: image + source: "./images/hazard_" + (value ? (flash ? "blink" : "on") : "off") + ".png" + } + + MouseArea { + anchors.fill: parent + onClicked: value = !value + } + + Timer { + id: timer + interval: 500 + repeat: true + running: value + + onTriggered: flash = !flash + } +} diff --git a/sample-qml/apps/HVAC_org/MiddleColumn.qml b/sample-qml/apps/HVAC_org/MiddleColumn.qml new file mode 100644 index 0000000..89f0ebe --- /dev/null +++ b/sample-qml/apps/HVAC_org/MiddleColumn.qml @@ -0,0 +1,33 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +import QtQuick 2.0 +import components 1.0 +import utils 1.0 + +Item { + id: root + + width: 239 + height: 800 + + property string side: "left" + + Column { + spacing: 50 + + BoxHeading { + color: Style.orangeViv + boxWidth: 45 + boxHeight: 19 + fontSize: 27 + text: (side === "left" ? "L" : "R" ) + " CLIMATE" + } + + SeatHeatButton { side: root.side } + TemperatureWheel { side: root.side } + } +} diff --git a/sample-qml/apps/HVAC_org/SeatHeatButton.qml b/sample-qml/apps/HVAC_org/SeatHeatButton.qml new file mode 100644 index 0000000..43645fb --- /dev/null +++ b/sample-qml/apps/HVAC_org/SeatHeatButton.qml @@ -0,0 +1,39 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +import QtQuick 2.0 +import "models" + +Rectangle { + width: 239 + height: 194 + color: "#aa000000" + border.color: "#ff53b5ce" + + property string side: "left" + property string propertyName: side + "SeatHeat" + property int seatHeat: HVACModel[propertyName] + + Image { + source: "./images/" + side + "_heat_seat_off.png" + } + + Image { + y: 150 - seatHeat*40 + height: implicitHeight - y + fillMode: Image.Tile + verticalAlignment: Image.AlignBottom + source: "./images/" + side + "_heat_seat_on.png" + } + + MouseArea { + anchors.fill: parent + onClicked: { + var value = HVACModel[propertyName] + HVACModel[propertyName] = value > 0 ? value - 1 : 3 + } + } +} diff --git a/sample-qml/apps/HVAC_org/TempSlider.qml b/sample-qml/apps/HVAC_org/TempSlider.qml new file mode 100644 index 0000000..f5500e4 --- /dev/null +++ b/sample-qml/apps/HVAC_org/TempSlider.qml @@ -0,0 +1,61 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +import QtQuick 2.0 +import utils 1.0 +import "models" + +Item { + id: root + width: 64 + height: 716 + + property real value: HVACModel[propertyName] + property string propertyName: side + "Temperature" + property string side: "left" + + function setProperty(v) { + HVACModel[propertyName] = Math.min(Math.max(v, 0), 1) + } + + Rectangle { + anchors.fill: parent + color: "#4a53b5ce" + } + + Rectangle { + width: parent.width + height: value * parent.height + color: Style.orangeViv + anchors.bottom: parent.bottom + } + + Rectangle { + x: side === "left" ? parent.width + 30 : -30 + width: 2 + height: value * parent.height + anchors.bottom: parent.bottom + color: Style.orangeLt + + Image { + width: 30 + height: width + anchors.verticalCenter: parent.top + anchors.horizontalCenter: parent.horizontalCenter + source: "images/drag_knob.svg" + } + } + + MouseArea { + x: side === "left" ? 0 : -45 + width: parent.width + 45 + height: parent.height + + onPressed: setProperty(1 - mouse.y / height) + onPositionChanged: setProperty(1 - mouse.y / height) + } +} + diff --git a/sample-qml/apps/HVAC_org/TemperatureWheel.qml b/sample-qml/apps/HVAC_org/TemperatureWheel.qml new file mode 100644 index 0000000..7a59dde --- /dev/null +++ b/sample-qml/apps/HVAC_org/TemperatureWheel.qml @@ -0,0 +1,56 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +import QtQuick 2.0 +import "models" + +Rectangle { + width: 237 + height: 350 + color: "#aa000000" + + property string side: "left" + property string propertyName: side + "Temperature" + property real value: HVACModel[propertyName] + + ListView { + anchors.fill: parent + clip: true + snapMode: ListView.SnapToItem + model: TemperatureModel + header: Item { height: 120 } + footer: Item { height: 120 } + currentIndex: Math.min(value * count, count - 1) + flickDeceleration: 5000 + onContentYChanged: { + if (dragging || flicking) { + var item = Math.round((contentY + 120) / 110) + item = Math.max(Math.min(item, count - 1), 0) + if (item != currentIndex) { + var temperature = item / (count - 1) + HVACModel[propertyName] = temperature + } + } + } + highlightMoveDuration: 100 + interactive: true + + delegate: Text { + x: side === "right" ? 40 : 10 + height: 110 + verticalAlignment: Text.AlignVCenter + color: "white" + font.pixelSize: 70 + text: model.text + } + } + + Image { + mirror: side === "left" + source: "./images/right_number_cover.svg" + anchors.fill: parent + } +} diff --git a/sample-qml/apps/HVAC_org/images/defrost_front_off.png b/sample-qml/apps/HVAC_org/images/defrost_front_off.png new file mode 100644 index 0000000..7f12e77 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/defrost_front_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/defrost_front_off.svg b/sample-qml/apps/HVAC_org/images/defrost_front_off.svg new file mode 100644 index 0000000..d2f0a6a --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/defrost_front_off.svg @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +FRONT + + + diff --git a/sample-qml/apps/HVAC_org/images/defrost_front_on.png b/sample-qml/apps/HVAC_org/images/defrost_front_on.png new file mode 100644 index 0000000..d8c9185 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/defrost_front_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/defrost_front_on.svg b/sample-qml/apps/HVAC_org/images/defrost_front_on.svg new file mode 100644 index 0000000..c4ed46a --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/defrost_front_on.svg @@ -0,0 +1,247 @@ + + + +image/svg+xmlFRONT + \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/defrost_max_off.png b/sample-qml/apps/HVAC_org/images/defrost_max_off.png new file mode 100644 index 0000000..baf93cc Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/defrost_max_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/defrost_max_off.svg b/sample-qml/apps/HVAC_org/images/defrost_max_off.svg new file mode 100644 index 0000000..a027d25 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/defrost_max_off.svg @@ -0,0 +1,189 @@ + + + +image/svg+xmlMAX + \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/defrost_max_on.png b/sample-qml/apps/HVAC_org/images/defrost_max_on.png new file mode 100644 index 0000000..675d654 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/defrost_max_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/defrost_max_on.svg b/sample-qml/apps/HVAC_org/images/defrost_max_on.svg new file mode 100644 index 0000000..9385c42 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/defrost_max_on.svg @@ -0,0 +1,267 @@ + + + +image/svg+xmlMAX + \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/defrost_rear_off.png b/sample-qml/apps/HVAC_org/images/defrost_rear_off.png new file mode 100644 index 0000000..33d6cfd Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/defrost_rear_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/defrost_rear_off.svg b/sample-qml/apps/HVAC_org/images/defrost_rear_off.svg new file mode 100644 index 0000000..0f5142e --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/defrost_rear_off.svg @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +REAR + + + + + diff --git a/sample-qml/apps/HVAC_org/images/defrost_rear_on.png b/sample-qml/apps/HVAC_org/images/defrost_rear_on.png new file mode 100644 index 0000000..2dfab44 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/defrost_rear_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/defrost_rear_on.svg b/sample-qml/apps/HVAC_org/images/defrost_rear_on.svg new file mode 100644 index 0000000..a44e246 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/defrost_rear_on.svg @@ -0,0 +1,244 @@ + + + +image/svg+xmlREAR + \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/drag_knob.svg b/sample-qml/apps/HVAC_org/images/drag_knob.svg new file mode 100644 index 0000000..774c1b6 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/drag_knob.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/fan_bar_off.png b/sample-qml/apps/HVAC_org/images/fan_bar_off.png new file mode 100644 index 0000000..ec0f372 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_bar_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_bar_on.png b/sample-qml/apps/HVAC_org/images/fan_bar_on.png new file mode 100644 index 0000000..107c8fc Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_bar_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_bar_on.svg b/sample-qml/apps/HVAC_org/images/fan_bar_on.svg new file mode 100644 index 0000000..f65fe74 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_bar_on.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + 20° + 21° + 19° + 18° + 17° + 16° + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/fan_control_ac_off.png b/sample-qml/apps/HVAC_org/images/fan_control_ac_off.png new file mode 100644 index 0000000..728efe4 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_control_ac_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_control_ac_off.svg b/sample-qml/apps/HVAC_org/images/fan_control_ac_off.svg new file mode 100644 index 0000000..13af676 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_control_ac_off.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + 20° + 21° + 19° + 18° + 17° + 16° + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A/C + + diff --git a/sample-qml/apps/HVAC_org/images/fan_control_ac_on.png b/sample-qml/apps/HVAC_org/images/fan_control_ac_on.png new file mode 100644 index 0000000..b9d03e5 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_control_ac_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_control_ac_on.svg b/sample-qml/apps/HVAC_org/images/fan_control_ac_on.svg new file mode 100644 index 0000000..040fa44 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_control_ac_on.svg @@ -0,0 +1,275 @@ + + + +image/svg+xml20° +21° +19° +18° +17° +16° +A/C + \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/fan_control_auto_off.png b/sample-qml/apps/HVAC_org/images/fan_control_auto_off.png new file mode 100644 index 0000000..2112b9c Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_control_auto_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_control_auto_off.svg b/sample-qml/apps/HVAC_org/images/fan_control_auto_off.svg new file mode 100644 index 0000000..f560a54 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_control_auto_off.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + 20° + 21° + 19° + 18° + 17° + 16° + + + + + + + + + + + + + + + + + + + + + + +AUTO + diff --git a/sample-qml/apps/HVAC_org/images/fan_control_auto_on.png b/sample-qml/apps/HVAC_org/images/fan_control_auto_on.png new file mode 100644 index 0000000..2b7daf6 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_control_auto_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_control_auto_on.svg b/sample-qml/apps/HVAC_org/images/fan_control_auto_on.svg new file mode 100644 index 0000000..2cdc613 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_control_auto_on.svg @@ -0,0 +1,282 @@ + + + +image/svg+xml20° +21° +19° +18° +17° +16° +AUTO + \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/fan_control_circ_off.png b/sample-qml/apps/HVAC_org/images/fan_control_circ_off.png new file mode 100644 index 0000000..08e2f11 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_control_circ_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_control_circ_off.svg b/sample-qml/apps/HVAC_org/images/fan_control_circ_off.svg new file mode 100644 index 0000000..d37814b --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_control_circ_off.svg @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/fan_control_circ_on.png b/sample-qml/apps/HVAC_org/images/fan_control_circ_on.png new file mode 100644 index 0000000..4245785 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_control_circ_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_control_circ_on.svg b/sample-qml/apps/HVAC_org/images/fan_control_circ_on.svg new file mode 100644 index 0000000..a55b0aa --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_control_circ_on.svg @@ -0,0 +1,173 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_down_off.png b/sample-qml/apps/HVAC_org/images/fan_dir_down_off.png new file mode 100644 index 0000000..84d19f3 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_dir_down_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_down_off.svg b/sample-qml/apps/HVAC_org/images/fan_dir_down_off.svg new file mode 100644 index 0000000..616162b --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_dir_down_off.svg @@ -0,0 +1,196 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_down_on.png b/sample-qml/apps/HVAC_org/images/fan_dir_down_on.png new file mode 100644 index 0000000..8b74473 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_dir_down_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_down_on.svg b/sample-qml/apps/HVAC_org/images/fan_dir_down_on.svg new file mode 100644 index 0000000..f5e5771 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_dir_down_on.svg @@ -0,0 +1,201 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_right_off.png b/sample-qml/apps/HVAC_org/images/fan_dir_right_off.png new file mode 100644 index 0000000..a64cd81 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_dir_right_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_right_off.svg b/sample-qml/apps/HVAC_org/images/fan_dir_right_off.svg new file mode 100644 index 0000000..7df2d2a --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_dir_right_off.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_right_on.png b/sample-qml/apps/HVAC_org/images/fan_dir_right_on.png new file mode 100644 index 0000000..b6cbc9d Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_dir_right_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_right_on.svg b/sample-qml/apps/HVAC_org/images/fan_dir_right_on.svg new file mode 100644 index 0000000..585dc61 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_dir_right_on.svg @@ -0,0 +1,227 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_up_off.png b/sample-qml/apps/HVAC_org/images/fan_dir_up_off.png new file mode 100644 index 0000000..0a0536e Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_dir_up_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_up_off.svg b/sample-qml/apps/HVAC_org/images/fan_dir_up_off.svg new file mode 100644 index 0000000..a89f804 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_dir_up_off.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_up_on.png b/sample-qml/apps/HVAC_org/images/fan_dir_up_on.png new file mode 100644 index 0000000..6c64b82 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_dir_up_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/fan_dir_up_on.svg b/sample-qml/apps/HVAC_org/images/fan_dir_up_on.svg new file mode 100644 index 0000000..e17278b --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/fan_dir_up_on.svg @@ -0,0 +1,244 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/fan_icon_off.png b/sample-qml/apps/HVAC_org/images/fan_icon_off.png new file mode 100644 index 0000000..5a1bf00 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/fan_icon_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/hazard_blink.png b/sample-qml/apps/HVAC_org/images/hazard_blink.png new file mode 100644 index 0000000..a58ac33 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/hazard_blink.png differ diff --git a/sample-qml/apps/HVAC_org/images/hazard_blink.svg b/sample-qml/apps/HVAC_org/images/hazard_blink.svg new file mode 100644 index 0000000..983c8e1 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/hazard_blink.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/hazard_off.png b/sample-qml/apps/HVAC_org/images/hazard_off.png new file mode 100644 index 0000000..c261e13 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/hazard_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/hazard_off.svg b/sample-qml/apps/HVAC_org/images/hazard_off.svg new file mode 100644 index 0000000..e9ad198 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/hazard_off.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + 53b5ce + + + + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/hazard_on.png b/sample-qml/apps/HVAC_org/images/hazard_on.png new file mode 100644 index 0000000..c6a6790 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/hazard_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/hazard_on.svg b/sample-qml/apps/HVAC_org/images/hazard_on.svg new file mode 100644 index 0000000..f2ba8e0 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/hazard_on.svg @@ -0,0 +1,174 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/left_heat_seat_off.png b/sample-qml/apps/HVAC_org/images/left_heat_seat_off.png new file mode 100644 index 0000000..e9b9977 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/left_heat_seat_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/left_heat_seat_off.svg b/sample-qml/apps/HVAC_org/images/left_heat_seat_off.svg new file mode 100644 index 0000000..5823221 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/left_heat_seat_off.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/left_heat_seat_on.png b/sample-qml/apps/HVAC_org/images/left_heat_seat_on.png new file mode 100644 index 0000000..65cc992 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/left_heat_seat_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/left_heat_seat_on.svg b/sample-qml/apps/HVAC_org/images/left_heat_seat_on.svg new file mode 100644 index 0000000..4cd0841 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/left_heat_seat_on.svg @@ -0,0 +1,66 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/left_number_bg.svg b/sample-qml/apps/HVAC_org/images/left_number_bg.svg new file mode 100644 index 0000000..cdba6d5 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/left_number_bg.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + 20° + 21° + 19° + 18° + 17° + 16° + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/left_number_cover.svg b/sample-qml/apps/HVAC_org/images/left_number_cover.svg new file mode 100644 index 0000000..6bcfc16 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/left_number_cover.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/right_heat_seat_off.png b/sample-qml/apps/HVAC_org/images/right_heat_seat_off.png new file mode 100644 index 0000000..d44e5f8 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/right_heat_seat_off.png differ diff --git a/sample-qml/apps/HVAC_org/images/right_heat_seat_off.svg b/sample-qml/apps/HVAC_org/images/right_heat_seat_off.svg new file mode 100644 index 0000000..a260e8a --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/right_heat_seat_off.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + 20° + 21° + 19° + 18° + 17° + + + + + + + + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/right_heat_seat_on.png b/sample-qml/apps/HVAC_org/images/right_heat_seat_on.png new file mode 100644 index 0000000..64f54c8 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/right_heat_seat_on.png differ diff --git a/sample-qml/apps/HVAC_org/images/right_heat_seat_on.svg b/sample-qml/apps/HVAC_org/images/right_heat_seat_on.svg new file mode 100644 index 0000000..893a546 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/right_heat_seat_on.svg @@ -0,0 +1,117 @@ + + + +image/svg+xml20° +21° +19° +18° +17° + \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/right_number_bg.svg b/sample-qml/apps/HVAC_org/images/right_number_bg.svg new file mode 100644 index 0000000..f9b7d71 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/right_number_bg.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + 20° + 21° + 19° + 18° + 17° + + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/right_number_cover.svg b/sample-qml/apps/HVAC_org/images/right_number_cover.svg new file mode 100644 index 0000000..370acd3 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/right_number_cover.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + 20° + 21° + 19° + 18° + 17° + + + + + + + + + + + + diff --git a/sample-qml/apps/HVAC_org/images/separator.png b/sample-qml/apps/HVAC_org/images/separator.png new file mode 100644 index 0000000..920ea80 Binary files /dev/null and b/sample-qml/apps/HVAC_org/images/separator.png differ diff --git a/sample-qml/apps/HVAC_org/images/static_parts_bg.svg b/sample-qml/apps/HVAC_org/images/static_parts_bg.svg new file mode 100644 index 0000000..f850fcb --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/static_parts_bg.svg @@ -0,0 +1,1031 @@ + + + +image/svg+xml20° +21° +19° +18° +17° +16° +20° +21° +19° +18° +17° +MAX + \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/temp_bar_on_left.svg b/sample-qml/apps/HVAC_org/images/temp_bar_on_left.svg new file mode 100644 index 0000000..66cac81 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/temp_bar_on_left.svg @@ -0,0 +1,271 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/images/temp_bar_on_right.svg b/sample-qml/apps/HVAC_org/images/temp_bar_on_right.svg new file mode 100644 index 0000000..95bd894 --- /dev/null +++ b/sample-qml/apps/HVAC_org/images/temp_bar_on_right.svg @@ -0,0 +1,282 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/sample-qml/apps/HVAC_org/models/HVACModel.qml b/sample-qml/apps/HVAC_org/models/HVACModel.qml new file mode 100644 index 0000000..e737af4 --- /dev/null +++ b/sample-qml/apps/HVAC_org/models/HVACModel.qml @@ -0,0 +1,47 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +pragma Singleton + +import QtQuick 2.0 +import vehicle 1.0 + +Item { + property bool fanUp: false + property bool fanRight: false + property bool fanDown: false + + property bool fanAC: false + property bool fanAuto: false + property bool fanRecirc: false + + property real fanSpeed: 0 + + property bool defrostMax: false + property bool defrostFront: false + property bool defrostRear: false + + property real leftTemperature: 0 + property real rightTemperature: 0 + + property int leftSeatHeat: 0 + property int rightSeatHeat: 0 + + onFanSpeedChanged: { + var currentFan = ClimateModel.getRangeValue(fanSpeed,ClimateModel.fanStepSize); + ClimateModel.fanSpeed = currentFan; + } + + onLeftTemperatureChanged: { + var temperature = ClimateModel.getRangeValue(leftTemperature,ClimateModel.temperatureStepSize); + ClimateModel.leftTemp = temperature; + } + + onRightTemperatureChanged: { + var temperature = ClimateModel.getRangeValue(rightTemperature,ClimateModel.temperatureStepSize); + ClimateModel.rightTemp = temperature; + } +} diff --git a/sample-qml/apps/HVAC_org/models/TemperatureModel.qml b/sample-qml/apps/HVAC_org/models/TemperatureModel.qml new file mode 100644 index 0000000..85ca415 --- /dev/null +++ b/sample-qml/apps/HVAC_org/models/TemperatureModel.qml @@ -0,0 +1,28 @@ +/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +pragma Singleton + +import QtQuick 2.0 + +ListModel { + ListElement { text: "LO" } + ListElement { text: "16\u00b0" } + ListElement { text: "17\u00b0" } + ListElement { text: "18\u00b0" } + ListElement { text: "19\u00b0" } + ListElement { text: "20\u00b0" } + ListElement { text: "21\u00b0" } + ListElement { text: "22\u00b0" } + ListElement { text: "23\u00b0" } + ListElement { text: "24\u00b0" } + ListElement { text: "25\u00b0" } + ListElement { text: "26\u00b0" } + ListElement { text: "27\u00b0" } + ListElement { text: "28\u00b0" } + ListElement { text: "29\u00b0" } + ListElement { text: "HI" } +} diff --git a/sample-qml/apps/HVAC_org/models/qmldir b/sample-qml/apps/HVAC_org/models/qmldir new file mode 100644 index 0000000..d757168 --- /dev/null +++ b/sample-qml/apps/HVAC_org/models/qmldir @@ -0,0 +1,8 @@ +#/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved. +# * +# * This Source Code Form is subject to the terms of the Mozilla Public +# * License, v. 2.0. If a copy of the MPL was not distributed with this +# * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +singleton HVACModel 1.0 HVACModel.qml +singleton TemperatureModel 1.0 TemperatureModel.qml -- cgit 1.2.3-korg