diff options
author | 2016-12-15 05:50:29 +0100 | |
---|---|---|
committer | 2016-12-15 05:55:33 +0100 | |
commit | a4f5c7d97fcbb97ece05cfbca38fb1963ab11377 (patch) | |
tree | 9436a9fadfc871140cd460939d9c084b198b6b26 /sample-qml/imports/vehicle | |
parent | f775180abd5e6adb58763bec74aa250bf4657341 (diff) |
Delete unneeded files
- sample-qml no longer needed
- widgets no longer needed
- images replaced by new HMI before
Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'sample-qml/imports/vehicle')
-rw-r--r-- | sample-qml/imports/vehicle/ClimateModel.qml | 44 | ||||
-rw-r--r-- | sample-qml/imports/vehicle/FuelModel.qml | 46 | ||||
-rw-r--r-- | sample-qml/imports/vehicle/PositionModel.qml | 33 | ||||
-rw-r--r-- | sample-qml/imports/vehicle/SpeedModel.qml | 38 | ||||
-rw-r--r-- | sample-qml/imports/vehicle/TemperatureModel.qml | 26 | ||||
-rw-r--r-- | sample-qml/imports/vehicle/qmldir | 11 |
6 files changed, 0 insertions, 198 deletions
diff --git a/sample-qml/imports/vehicle/ClimateModel.qml b/sample-qml/imports/vehicle/ClimateModel.qml deleted file mode 100644 index 9633f16..0000000 --- a/sample-qml/imports/vehicle/ClimateModel.qml +++ /dev/null @@ -1,44 +0,0 @@ -/* 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 Automotive.ClimateControl 1.0 - -Item { - property real fanStepSize:1/255 //Represents the stepSize for a given Climate control. - property alias fanSpeed: fanControl.fanSpeedLevel - - property real temperatureStepSize:1/15 //0== 15c, 15 == 30c - - property alias leftTemp: leftFront.targetTemperature - property alias rightTemp: rightFront.targetTemperature - - ClimateControlItem { - id:fanControl - } - - ClimateControlItem { - id: leftFront - zone: 9 - } - - ClimateControlItem { - id: rightFront - zone: 5 - } - - function getRangeValue(inputVal,stepSize){ - if(inputVal > 0){ - return Math.ceil(inputVal/stepSize); - }else{ - return 0; - } - } - -} - diff --git a/sample-qml/imports/vehicle/FuelModel.qml b/sample-qml/imports/vehicle/FuelModel.qml deleted file mode 100644 index fa064e2..0000000 --- a/sample-qml/imports/vehicle/FuelModel.qml +++ /dev/null @@ -1,46 +0,0 @@ -/* 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 - -Item { - property bool metric: false - - function galToL(value) { - return (metric ? 3.78541 : 1) * value - } - - function mpgToLp100(value) { - return metric ? 235.214583571 / value : value - } - - property real baseTank: 25 - property real tankSize: galToL(baseTank) - property real level: tankSize * percentage * 0.01 - property real percentage: 100 - property real range: metric ? 100 * level / average : level * average - property real baseAverage: 20.7 - property real average: mpgToLp100(baseAverage + mpgDiff) - property real mpgDiff: 0 - - NumberAnimation on percentage { - from: 100 - to: 0 - duration: 5000 - loops: Animation.Infinite - easing.type: Easing.CosineCurve - } - - NumberAnimation on mpgDiff { - from: -2 - to: 2 - duration: 11200 - loops: Animation.Infinite - easing.type: Easing.CosineCurve - } -} diff --git a/sample-qml/imports/vehicle/PositionModel.qml b/sample-qml/imports/vehicle/PositionModel.qml deleted file mode 100644 index 00956aa..0000000 --- a/sample-qml/imports/vehicle/PositionModel.qml +++ /dev/null @@ -1,33 +0,0 @@ -/* Copyright (C) 2015, Jaguar Land Rover, IoT.bzh. 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 amb 0.1 - -Item { - property string nmeaString: nmea.value - property real satellites: satsUsed.value - - AutomotivePropertyItem { - id: nmea - - objectName: "GpsNmea" - propertyName: "Nmea" - - Component.onCompleted: nmea.connect(); - } - - AutomotivePropertyItem { - id: satsUsed - - objectName: "GpsSatsUsed" - propertyName: "SatsUsed" - - Component.onCompleted: satsUsed.connect(); - } -} diff --git a/sample-qml/imports/vehicle/SpeedModel.qml b/sample-qml/imports/vehicle/SpeedModel.qml deleted file mode 100644 index 03422b0..0000000 --- a/sample-qml/imports/vehicle/SpeedModel.qml +++ /dev/null @@ -1,38 +0,0 @@ -/* 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 amb 0.1 - -Item { - property bool metric: false - - function mphToKph(value) { - return (metric ? 1.60934 : 1 ) * value - } - - property real max:Math.ceil(mphToKph(baseMaxSpeed)/30)*30 - property real baseMaxSpeed: 255 - property real textSpeed: prop.value - property real percentage: textSpeed / max * 100 - - AutomotivePropertyItem { - id: prop - - objectName: "VehicleSpeed" - propertyName: "Speed" - - Component.onCompleted: prop.connect(); - } - - Behavior on percentage { - SmoothedAnimation { - velocity: 100 - } - } -} diff --git a/sample-qml/imports/vehicle/TemperatureModel.qml b/sample-qml/imports/vehicle/TemperatureModel.qml deleted file mode 100644 index 2bfbbf4..0000000 --- a/sample-qml/imports/vehicle/TemperatureModel.qml +++ /dev/null @@ -1,26 +0,0 @@ -/* 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 - -Item { - property bool metric: true - - function unit(value) { - return celsiusToFahrenheit(value).toFixed(1) + "\u00b0" + (metric ? "C" : "F") - } - - function celsiusToFahrenheit(value) { - return (metric ? value : 1.8 * value + 32) - } - - property real indoor: 20.4 - property string indoorString: unit(indoor) - property real outdoor: 28.9 - property string outdoorString: unit(outdoor) -} diff --git a/sample-qml/imports/vehicle/qmldir b/sample-qml/imports/vehicle/qmldir deleted file mode 100644 index 6538e95..0000000 --- a/sample-qml/imports/vehicle/qmldir +++ /dev/null @@ -1,11 +0,0 @@ -#/* 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 FuelModel 1.0 FuelModel.qml -singleton SpeedModel 1.0 SpeedModel.qml -singleton TemperatureModel 1.0 TemperatureModel.qml -singleton PositionModel 1.0 PositionModel.qml -singleton ClimateModel 1.0 ClimateModel.qml |