diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2018-01-30 16:40:27 -0500 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2018-02-01 11:09:08 -0500 |
commit | 3226d63c50103f5cc8a0aa326c646aaf272a54ba (patch) | |
tree | 38a9ab821d0110c294c13b26950746e600fc69f6 /src | |
parent | 2d9939702e461f56a5b0b04a5d00a39ed544ab49 (diff) | |
download | sdl_core-3226d63c50103f5cc8a0aa326c646aaf272a54ba.tar.gz |
Delete QT HMI
Diffstat (limited to 'src')
739 files changed, 0 insertions, 47454 deletions
diff --git a/src/components/policy/policy_external/.gitignore b/src/components/policy/policy_external/.gitignore index 3e5fc41721..d67909069a 100644 --- a/src/components/policy/policy_external/.gitignore +++ b/src/components/policy/policy_external/.gitignore @@ -54,11 +54,8 @@ test/components/utils/test_Utils test/test_suit # libraries -src/components/qt_hmi/qml_plugins/dbus/libhmi_dbus.so -src/components/qt_hmi/qml_plugins/hmi_framework/libHmiFramework.so # install folders -src/components/qt_hmi/qml_model/com/ford/sdl # ctags-generated tags @@ -70,9 +67,6 @@ moc_*.cpp *_automoc.cpp # generated files -src/components/qt_hmi/qml_plugins/dbus_adapter/qml_dbus.cc -src/components/qt_hmi/qml_plugins/dbus_adapter/qml_dbus.h -src/components/qt_hmi/qml_model/hmi_api/*Proxy.qml # Mac OS Specific .DS_Store diff --git a/src/components/qt_hmi/CMakeLists.txt b/src/components/qt_hmi/CMakeLists.txt deleted file mode 100644 index ee30f2b468..0000000000 --- a/src/components/qt_hmi/CMakeLists.txt +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright (c) 2014, Ford Motor Company -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with the -# distribution. -# -# Neither the name of the Ford Motor Company nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - - -add_subdirectory(./qml_plugins) - -if (CMAKE_SYSTEM_NAME STREQUAL "QNX") - add_subdirectory(./qml_model_qt4) -else () - add_subdirectory(./qml_model_qt5) -endif () - -if(HMI STREQUAL "qt" AND BUILD_TESTS) - add_subdirectory(test) -endif()
\ No newline at end of file diff --git a/src/components/qt_hmi/Readme.txt b/src/components/qt_hmi/Readme.txt deleted file mode 100644 index 55e85db8ec..0000000000 --- a/src/components/qt_hmi/Readme.txt +++ /dev/null @@ -1,7 +0,0 @@ -How to view QML HMI. - -1) Run setup_env.sh from root folder of SDL project (this will install right version of Qt and CMake) -2) Run CMake with option HMI2=ON “cmake -DHMI2=ON <root_SDL_folder>” (this will build core+dbus adapter and QML HMI+ dbus adapter) -3) Run “<QT510_INSTALL_PATH>/qmlscene <root_SDL_folder>/src/components/qt_hmi/qml_model_qt5/MainWindow.qml” -4) Run SDL - diff --git a/src/components/qt_hmi/References/Look/.DS_Store b/src/components/qt_hmi/References/Look/.DS_Store Binary files differdeleted file mode 100644 index c84f3ca965..0000000000 --- a/src/components/qt_hmi/References/Look/.DS_Store +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTCom-Lt.ttf b/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTCom-Lt.ttf Binary files differdeleted file mode 100644 index 4ae24370af..0000000000 --- a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTCom-Lt.ttf +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTCom-LtCn.ttf b/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTCom-LtCn.ttf Binary files differdeleted file mode 100644 index 2186efad6c..0000000000 --- a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTCom-LtCn.ttf +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTCom-ThCn.ttf b/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTCom-ThCn.ttf Binary files differdeleted file mode 100644 index c0232d069d..0000000000 --- a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTCom-ThCn.ttf +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTStd-Bold.ttf b/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTStd-Bold.ttf Binary files differdeleted file mode 100644 index 8b82f0ae0c..0000000000 --- a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTStd-Bold.ttf +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTStd-Md.ttf b/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTStd-Md.ttf Binary files differdeleted file mode 100644 index 3595f70135..0000000000 --- a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTStd-Md.ttf +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTStd-Roman.ttf b/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTStd-Roman.ttf Binary files differdeleted file mode 100644 index 7be067d905..0000000000 --- a/src/components/qt_hmi/References/Look/Fonts/HelveticaNeueLTStd-Roman.ttf +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/ImageHardkey.qml b/src/components/qt_hmi/References/Look/ImageHardkey.qml deleted file mode 100644 index e39bb41605..0000000000 --- a/src/components/qt_hmi/References/Look/ImageHardkey.qml +++ /dev/null @@ -1,52 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-FHardwareKey {
- width: 50
- height: 50
-
- property alias image : theImage.source
-
- Rectangle {
- anchors.fill: parent
- border.color: "black"
- border.width: 1
- radius: 10
- smooth: true
-
- gradient: Gradient {
- GradientStop {
- id: s1
- color: "#FF646464"
- position: 0.0
- }
- GradientStop {
- id: s2
- color: "#FF484848"
- position: 0.8
- }
- GradientStop {
- id: s3
- color: "#FF323232"
- position: 1.0
- }
- }
- }
-
- FWdgtImage {
- id: theImage
- //anchors.fill: parent
- anchors.centerIn: parent
- //fillMode: Image.PreserveAspectFit
- smooth: true
- }
-
-
- FViewUseCaseSimple {
- condition: pressed === true
- PropertyChanges { target: s1; position: 1.0 }
- PropertyChanges { target: s2; position: 0.2}
- PropertyChanges { target: s3; position: 0.0 }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/AlphaSortLayout.qml b/src/components/qt_hmi/References/Look/Layouts/AlphaSortLayout.qml deleted file mode 100644 index 3ee2761be9..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/AlphaSortLayout.qml +++ /dev/null @@ -1,378 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: alphaLayout
- width: 800
- height: 480
-
-
- property alias a: aBtn.touchBtn
- property alias b: bBtn.touchBtn
- property alias c: cBtn.touchBtn
- property alias d: dBtn.touchBtn
- property alias e: eBtn.touchBtn
- property alias f: fBtn.touchBtn
- property alias g: gBtn.touchBtn
- property alias h: hBtn.touchBtn
- property alias i: iBtn.touchBtn
- property alias j: jBtn.touchBtn
- property alias k: kBtn.touchBtn
- property alias l: lBtn.touchBtn
- property alias m: mBtn.touchBtn
- property alias n: nBtn.touchBtn
- property alias o: oBtn.touchBtn
- property alias p: pBtn.touchBtn
- property alias q: qBtn.touchBtn
- property alias r: rBtn.touchBtn
- property alias s: sBtn.touchBtn
- property alias t: tBtn.touchBtn
- property alias u: uBtn.touchBtn
- property alias v: vBtn.touchBtn
- property alias w: wBtn.touchBtn
- property alias xB: xBtn.touchBtn
- property alias yB: yBtn.touchBtn
- property alias zB: zBtn.touchBtn
- property alias num: numBtn.touchBtn
- property alias close: closeTouch
-
- property string phonEntry: ""
-
-// BaseText{
-// id: phoneEntry
-// x:25
-// y:115
-// text: phonEntry
-// theFont: "../Fonts/HelveticaNeueLTStd-Roman.ttf"
-// pxSize: 45
-// horAlignment: Text.AlignLeft
-// vertAlignment: Text.AlignTop
-// }
-
- TouchButtonClimatePCA{
- id: aBtn
- x:48
- y:131
- text: "A"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: jBtn
- x:48
- y:212
- text: "J"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: sBtn
- x:48
- y:293
- text: "S"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: bBtn
- x:129
- y:131
- text: "B"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: kBtn
- x:129
- y:212
- text: "K"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: tBtn
- x:129
- y:293
- text: "T"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: cBtn
- x:210
- y:131
- text: "C"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: lBtn
- x:210
- y:212
- text: "L"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: uBtn
- x:210
- y:293
- text: "U"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: dBtn
- x:291
- y:131
- text: "D"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: mBtn
- x:291
- y:212
- text: "M"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: vBtn
- x:291
- y:293
- text: "V"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: eBtn
- x:372
- y:131
- text: "E"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: nBtn
- x:372
- y:212
- text: "N"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: wBtn
- x:372
- y:293
- text: "W"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: fBtn
- x:453
- y:131
- text: "F"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: oBtn
- x:453
- y:212
- text: "O"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: xBtn
- x:453
- y:293
- text: "X"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: gBtn
- x:534
- y:131
- text: "G"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: pBtn
- x:534
- y:212
- text: "P"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: yBtn
- x:534
- y:293
- text: "Y"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: hBtn
- x:615
- y:131
- text: "H"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: qBtn
- x:615
- y:212
- text: "Q"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: zBtn
- x:615
- y:293
- text: "Z"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: iBtn
- x:696
- y:131
- text: "I"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: rBtn
- x:696
- y:212
- text: "R"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: numBtn
- x:696
- y:293
- text: "123"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- BaseText{
- id: closeTxt
- anchors.horizontalCenter: alphaLayout.horizontalCenter
- y:430
- horAlignment: Text.AlignHCenter
- vertAlignment: Text.AlignTop
- text: "CLOSE"
- color: "#1d81d5"
- pxSize: 22
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
-
- }
-
- FWdgtTouchArea{
- id: closeTouch
- height: 75
- width: 750
- y:430
- anchors.horizontalCenter: alphaLayout.horizontalCenter
- }
-
- FViewUseCase{condition: closeTouch.pressed === true
- //FActScriptCall { onScript: { FLogger.debug("Test color should change") } }
- PropertyChanges {
- target: closeTxt; color: "white"
- }
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/BlankLayout.qml b/src/components/qt_hmi/References/Look/Layouts/BlankLayout.qml deleted file mode 100644 index 2a1b2aa5f1..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/BlankLayout.qml +++ /dev/null @@ -1,9 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-FLayout {
- width: 800
- height: 480
-
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/ChromeLayout.qml b/src/components/qt_hmi/References/Look/Layouts/ChromeLayout.qml deleted file mode 100644 index 14daa544b7..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/ChromeLayout.qml +++ /dev/null @@ -1,69 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: chromelayout
- width: 800
- height: 480
-
- property alias button1: button1
- property alias button2: button2
- property alias button3: button3
-
-
-
- FWdgtTouchArea {
- id: blockClockTouch
- anchors.top: chromelayout.top
- anchors.horizontalCenter: chromelayout.horizontalCenter
- height: 60
- width: 160
- }
-
- Rectangle{
- id: clockBackground
- anchors.fill: blockClockTouch
- color: "red"
- }
-
- BaseText{
- id: clock
- anchors.centerIn: blockClockTouch
- text: "clock"
- horAlignment: Text.AlignHCenter
- }
-
- TouchButton{
- id: button1
- anchors.top: blockClockTouch.top
- anchors.right: blockClockTouch.left
- anchors.rightMargin: -5
- height: blockClockTouch.height
- width: 75
- text: "Button 1"
- unpressedColor: "darkRed"
- }
-
- TouchButton{
- id: button2
- anchors.top: blockClockTouch.top
- anchors.left: blockClockTouch.right
- anchors.leftMargin: -5
- height:blockClockTouch.height
- width: 75
- text: "Button 2"
- unpressedColor:"darkRed"
- }
-
- TouchButton{
- id: button3
- anchors.bottom: chromelayout.bottom
- anchors.horizontalCenter: chromelayout.horizontalCenter
- height:blockClockTouch.height
- width: 225
- text: "Button 3"
- unpressedColor: "red"
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/ClimatePCALayout.qml b/src/components/qt_hmi/References/Look/Layouts/ClimatePCALayout.qml deleted file mode 100644 index 6b6a2761c5..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/ClimatePCALayout.qml +++ /dev/null @@ -1,111 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: climateLayout
- width: 800
- height: 480
-
- property alias dualBtn: dualBtn.touchBtn
- property alias drvHeatSeat: drvHeatSeat.touchBtn
- property alias drvCoolSeat: drvCoolSeat.touchBtn
- property alias passCoolSeat: passCoolSeat.touchBtn
- property alias passHeatSeat: passHeatSeat.touchBtn
- property alias heatWheel: heatWheel.touchBtn
- property alias heatWinSheild: heatWinSheild.touchBtn
- property alias defrost: defrost.touchBtn
- property alias pannel: pannel.touchBtn
- property alias floor: floor.touchBtn
-
- property alias dualBtnSt: dualBtn.selected
- property alias drvHeatSeatSt: drvHeatSeat.selected
- property alias drvCoolSeatSt: drvCoolSeat.selected
- property alias passCoolSeatSt: passCoolSeat.selected
- property alias passHeatSeatSt: passHeatSeat.selected
- property alias heatWheelSt: heatWheel.selected
- property alias heatWinSheildSt: heatWinSheild.selected
- property alias defrostSt: defrost.selected
- property alias pannelSt: pannel.selected
- property alias floorSt: floor.selected
-
-
-
- TouchButtonClimatePCA{
- id: drvHeatSeat
- x:105
- y:178
- bitmap: "climate/heated seat icon.png"
- bitmap2: "climate/heated seat iconBlack.png"
- }
- TouchButtonClimatePCA{
- id: drvCoolSeat
- x:105
- y:273
- bitmap: "climate/A_C icon.png"
- bitmap2: "climate/A_C iconBlack.png"
- }
- TouchButtonClimatePCA{
- id: heatWheel
- x:200
- y:178
- bitmap: "climate/wheel icon.png"
- bitmap2: "climate/wheel iconBlack.png"
- }
- TouchButtonClimatePCA{
- id: heatWinSheild
- x:200
- y:273
- bitmap: "climate/headed dashBlue.png"
- bitmap2: "climate/headed dash.png"
- }
-
- TouchButtonClimatePCA{
- id: defrost
- x:360
- y:130
- bitmap: "climate/defrost iconBlue.png"
- bitmap2: "climate/defrost icon.png"
- }
-
- TouchButtonClimatePCA{
- id: pannel
- x:360
- y:226
- bitmap: "climate/face icon.png"
- bitmap2: "climate/face iconBlack.png"
- }
-
- TouchButtonClimatePCA{
- id: floor
- x:360
- y:322
- bitmap: "climate/feet icon.png"
- bitmap2: "climate/feet iconBlack.png"
- }
-
-
- TouchButtonClimatePCA{
- id: dualBtn
- y:225
- x:528
- text: "Dual"
- }
-
- TouchButtonClimatePCA{
- id: passHeatSeat
- x:615
- y:178
- bitmap: "climate/heated seat icon.png"
- bitmap2: "climate/heated seat iconBlack.png"
- }
- TouchButtonClimatePCA{
- id: passCoolSeat
- x:615
- y:273
- bitmap: "climate/A_C icon.png"
- bitmap2: "climate/A_C iconBlack.png"
- }
-
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/ControlMirrorLayout.qml b/src/components/qt_hmi/References/Look/Layouts/ControlMirrorLayout.qml deleted file mode 100644 index 0abc7db4b7..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/ControlMirrorLayout.qml +++ /dev/null @@ -1,57 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: alphaLayout
- width: 800
- height: 480
-
-
- Item {
- id: _fg
-
- width: 800; height: 480
- x:0
- y:0
-
- FWdgtTouchArea{
- id: blockTouch
- x:0
- y:0
- height: 480
- width: 800
- }
-
- Rectangle{
- anchors.fill: blockTouch
- color: "black"
- opacity: 0.8
- }
-
- FWdgtImage{
- id: popupBg
- anchors.centerIn: blockTouch
- bitmap: "climate/ring.png"
- }
-
- BaseText{
- id:curTemp
- anchors.centerIn: popupBg
- text: dataPool.drvTemp + "\xBA"
- pxSize: 96
- }
-
- BaseText{
- id:drvPass
- anchors.horizontalCenter: popupBg.horizontalCenter
- anchors.bottom: curTemp.top
- horAlignment: Text.AlignHCenter
- text: "Driver"
- pxSize: 28
- }
-
- }
-
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/FMLayout.qml b/src/components/qt_hmi/References/Look/Layouts/FMLayout.qml deleted file mode 100644 index 8057ff2e7e..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/FMLayout.qml +++ /dev/null @@ -1,217 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: fmLayout
- width: 800
- height: 480
-
- property alias sourceBtn: sourceBtn
- property alias browseBtn: browseBtn
- property alias albumInfoBtn: albumInfoBtn
- property alias albumInfoImg: stationLogoImg
- property alias stationTxt: stationTxt
- property alias trackTxt: trackTxt
- property alias artistTxt: artistTxt
- property alias alertBtn: alertBtn
- property alias preset1Btn: preset1Btn
- property alias preset2Btn: preset2Btn
- property alias preset3Btn: preset3Btn
- property alias preset4Btn: preset4Btn
- property alias preset5Btn: preset5Btn
- property alias preset6Btn: preset6Btn
- property alias replayBtn: replayBtn
- property alias tuneBtn: tuneBtn
- property alias presetsBtn: presetsBtn
- property bool artShown: true
-
-
- TouchButton{
- id: sourceBtn
- anchors.top: fmLayout.top
- anchors.topMargin: 140
- anchors.left: fmLayout.left
- anchors.leftMargin: 10
- height:25
- width: 130
- text: "Source"
- }
-
- TouchButton{
- id: browseBtn
- anchors.top: fmLayout.top
- anchors.topMargin: 180
- anchors.left: fmLayout.left
- anchors.leftMargin: 10
- height:25
- width: 130
- text: "Browse"
- }
-
- TouchButton{
- id: albumInfoBtn
- anchors.top: fmLayout.top
- anchors.topMargin: 95
- anchors.left: fmLayout.left
- anchors.leftMargin: 190
- height:130
- width: 130
- text: "Album"
- vis: false
-
- }
-
- FWdgtImage{
- id: stationLogoImg
- anchors.top: fmLayout.top
- anchors.topMargin: 95
- anchors.left: fmLayout.left
- anchors.leftMargin: 190
- height:70
- width: 130
- bitmap: ""
- }
-
- TouchButton{
- id: alertBtn
- anchors.top: albumInfoImg.bottom
- anchors.topMargin: 20
- anchors.left: albumInfoImg.left
- height:25
- width: 90
- text: "Alert"
- }
-
- BaseText{
- id: stationTxt
- anchors.verticalCenter: trackTxt.verticalCenter
- anchors.verticalCenterOffset: -45
- anchors.left: trackTxt.left
- text: "Ch 22 / Pearl Jam Radio"
- }
-
- BaseText{
- id: trackTxt
- anchors.verticalCenter: albumInfoBtn.verticalCenter
- anchors.left: albumInfoBtn.right
- anchors.leftMargin: 15
- pxSize: 34
- text: "State of Love ..."
-
- }
-
- BaseText{
- id: artistTxt
- anchors.verticalCenter: trackTxt.verticalCenter
- anchors.verticalCenterOffset: 45
- anchors.left: trackTxt.left
- text: "Pearl Jam"
- }
-
- TouchButton{
- id: preset1Btn
- anchors.top: fmLayout.top
- anchors.topMargin: 280
- anchors.left: browseBtn.left
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset2Btn
- anchors.top: preset1Btn.bottom
- anchors.left: preset1Btn.left
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset3Btn
- anchors.top: preset1Btn.top
- anchors.left: preset1Btn.right
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset4Btn
- anchors.top: preset2Btn.top
- anchors.left: preset2Btn.right
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset5Btn
- anchors.top: preset3Btn.top
- anchors.left: preset3Btn.right
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset6Btn
- anchors.top: preset4Btn.top
- anchors.left: preset4Btn.right
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: replayBtn
- anchors.verticalCenter: browseBtn.verticalCenter
- anchors.verticalCenterOffset: 35
- anchors.left: fmLayout.left
- anchors.leftMargin: 725
- height:40
- width: 55
- text: "rply"
- }
-
- TouchButton{
- id: tuneBtn
- anchors.top: preset1Btn.top
- anchors.right: replayBtn.right
- height:40
- width: 120
- text: "tune"
- }
-
- TouchButton{
- id: presetsBtn
- anchors.bottom: preset6Btn.bottom
- anchors.right: replayBtn.right
- height:60
- width: 120
- text: "presets"
- }
-
- FViewUseCaseGroup{
- FViewUseCase{
- condition: dataPool.hasArt === 0
- PropertyChanges { target: albumInfoBtn; vis: false;}
- PropertyChanges { target: albumInfoImg; visible: false;}
- PropertyChanges { target: trackTxt; anchors.left: albumInfoBtn.left;}
- PropertyChanges { target: alertBtn; vis: false;}
- }
- FViewUseCase{
- condition: dataPool.hasArt === 1
- PropertyChanges { target: albumInfoBtn; vis: false;}
- PropertyChanges { target: albumInfoImg; visible: false;}
- PropertyChanges { target: trackTxt; anchors.left: albumInfoBtn.left;}
- PropertyChanges { target: alertBtn; vis: false;}
- }
- FViewUseCase{
- condition: dataPool.hasArt === 2
- PropertyChanges { target: albumInfoImg; visible: true;}
- PropertyChanges { target: albumInfoBtn; vis: true;}
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/FMLayoutPCA.qml b/src/components/qt_hmi/References/Look/Layouts/FMLayoutPCA.qml deleted file mode 100644 index fd211b3c97..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/FMLayoutPCA.qml +++ /dev/null @@ -1,152 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: fmLayout
- width: 800
- height: 480
-
- property alias sourceBtn: sourceBtn
- property alias tuneBtn: tuneBtn
- property alias hdBtn: hdBtn
- property alias stationTxt: stationTxt.text
- property alias freqId: freqId.text
- property alias listModel: thePresets.listModel
- property alias artist: artistTxt.text
- property alias curHD: hdBtn.curHD
- property alias totHD: hdBtn.totHD
- property alias curPreset: thePresets.currPreset
- property alias moving: thePresets.moving
- property alias direction: thePresets.direction
- property bool page1: true
-
-
-
-
-
- FWdgtImage{
- bitmap: "Radio/Ford-HMI-PCA-audio_fm_sirius.png"
- visible: false
- }
-
- TouchButton_PCA{
- id: sourceBtn
- x:25
- y:80
- textWidth: 100
- text: "FM Radio"
-
- }
-
- TouchButton_PCA{
- id: tuneBtn
- anchors.right: fmLayout.right
- anchors.rightMargin: 25
- y:80
- textWidth: 55
- text: "Tune"
-
- }
-
- BaseText{
- id: stationTxt
- x:25
- y:155
- pxSize: 45
- text: "96.3"
- color: "#1d81d5"
- theFont: "../Fonts/HelveticaNeueLTCom-Lt.ttf"
-
- }
-
- BaseText{
- id: freqId
- anchors.left: stationTxt.right
- anchors.leftMargin: 5
- anchors.bottom: stationTxt.bottom
- anchors.bottomMargin: 4
- text: "FM"
- color: "#1d81d5"
- pxSize: 22
- theFont: "../Fonts/HelveticaNeueLTCom-Lt.ttf"
-
- }
-
- BaseText{
- id: trackTxt
- x:25
- y:212
- text: "So Far Around The Bend"
- color: "#1d81d5"
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- pxSize: 22
-
-
- }
-
- BaseText{
- id: artistTxt
- x:25
- y:240
- text: "The National"
- color: "#1d81d5"
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- pxSize: 22
- }
-
- TouchButtonSpecial_PCA{
- id: hdBtn
- x:25
- y:288
- textWidth: 120
- bitmap: "Radio/HD Logo.png"
- bitmap2: "Radio/HD Logo1.png"
- imageShift: -9
- spacing: 0
- text: " 1 "
- text1: "2"
- text2: " 3 4"
-
- }
-
- Rectangle{
- x:25
- y: 365
- height:1
- width: 750
- color: "#1d81d5"
- }
-
-
- PresetsGridPCA{
- id: thePresets
- x:0
- y:365
-
- }
-
- FWdgtImage{
- id: swipeIcon1
- bitmap: "Radio/whiteBall.png"
- x: 389
- y: 381
- }
-
- FWdgtImage{
- id: swipeIcon2
- bitmap: "Radio/blueBall.png"
- x: 404
- y: 381
- }
-
- FViewUseCaseSimple{condition: fmLayout.page1===false
- PropertyChanges{
- target: swipeIcon2; bitmap: "Radio/whiteBall.png"
- }
- PropertyChanges{
- target: swipeIcon1; bitmap: "Radio/blueBall.png"
- }
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/HomeLayout.qml b/src/components/qt_hmi/References/Look/Layouts/HomeLayout.qml deleted file mode 100644 index 375f96894a..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/HomeLayout.qml +++ /dev/null @@ -1,61 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: home
- width: 800
- height: 480
-
- property alias button1: button1
- property alias button2: button2
- property alias button3: button3
- property alias button4: button4
-
-
-
-
- TouchButton{
- id: button1
- anchors.top: home.top
- anchors.left: home.left
- height:235
- width: 395
- text: "Button 1"
- }
-
- TouchButton{
- id: button2
- anchors.top: home.top
- anchors.right: home.right
- height:235
- width: 395
- text: "Button 2"
- }
-
- TouchButton{
- id: button3
- anchors.bottom: home.bottom
- anchors.left: home.left
- height:235
- width: 395
- text: "Button 3"
- }
-
- TouchButton{
- id: button4
- anchors.bottom: home.bottom
- anchors.right: home.right
- height:235
- width: 395
- text: "Button 4"
- }
-
- BaseText{
- id: title
- anchors.centerIn: home
- text: "Home"
- }
-
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/ListLayout.qml b/src/components/qt_hmi/References/Look/Layouts/ListLayout.qml deleted file mode 100644 index 326d4feb0b..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/ListLayout.qml +++ /dev/null @@ -1,59 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-
-FLayout {
-
- id: theLayout
- width: 800
- height: 480
- x:10
- y:10
- property alias list : theListView
- property alias list_itemWidget: theListView.itemWidget
- property alias list_data: theListView.data
- Rectangle{
- anchors.fill:parent
- color:"white"
-
- }
-
-
- FWdgtListView {
-
- id: theListView
- anchors.fill: parent
- clip: true
-
- }
- FWdgtListView {
- x:400
- id: filteredListView
- clip: true
- data:filtermodel
- itemWidget:list_itemWidget
- width:100
- height:400
- }
- TextInput{
- text:"HelloWorld"
- x:200
- y:20
- onTextChanged: {
-
- if(text.length > 0 ) {
- dataPool.filter = text
- console.log(dataPool.filter)
-
- sortList.fillFilterModel(theListView.data)//Just backup original
- sortList.updateFilterModel(text)
-
- } else {
- sortList.fillFilterModel(theListView.data)
- }
- }
-
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/NavInRouteLayout.qml b/src/components/qt_hmi/References/Look/Layouts/NavInRouteLayout.qml deleted file mode 100644 index d0f240f4b9..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/NavInRouteLayout.qml +++ /dev/null @@ -1,130 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: mapLayout
- width: 800
- height: 480
-
- property alias zoomIn: zoomIn.touchBtn
- property alias zoomOut: zoomOut.touchBtn
- property alias compass: compass.touchBtn
- property alias cancel: cancel.touchBtn
- property alias mute: mute.touchBtn
- property alias muteSt: mute.selected
- property alias options: options.touchBtn
-
-
-
- FWdgtImage{
- id: mapImg
- bitmap: "Nav/Map.png"
- anchors.fill: mapLayout
- }
-
- TouchButtonClimatePCA{
- id: zoomIn
- text: "+"
- x:25
- y:103
- image: "buttons/zoom_9_9.png"
- imageActive: "buttons/zoomSelected.png"
- imagePressed: "buttons/zoomPressed_9_9.png"
- txtColor: "white"
- txtSize: 40
-
- }
- TouchButtonClimatePCA{
- id: zoomOut
- text: "-"
- x:25
- y:223
- image: "buttons/zoom_9_9.png"
- imageActive: "buttons/zoomSelected.png"
- imagePressed: "buttons/zoomPressed_9_9.png"
- txtColor: "white"
- txtSize: 40
- }
- TouchButtonClimatePCA{
- id: options
- x:659
- y:80
- image: "Nav/Options_9_9.png"
- imageActive: "Nav/OptionsInActive.png"
- imagePressed: "Nav/OptionsPressed_9_9.png"
- }
- TouchButtonClimatePCA{
- id: compass
- x:34
- y:352
- image: "Nav/compass.png"
- imageActive: "Nav/compass.png"
- imagePressed: "Nav/compass.png"
- }
- TouchButtonClimatePCA{
- id: mute
- x:25
- y:419
- image: "buttons/mute_9_9.png"
- imageActive: "buttons/muteActive.png"
- imagePressed: "buttons/mutePressed_9_9.png"
- imageInActive: "buttons/muteInActive.png"
- }
- FWdgtImage{
- bitmap: "Nav/turnArrow.png"
- x:97
- y:428
- }
- BaseText{
- text: "0.2 mi on Cherry Hill Rd."
- pxSize: 22
- x:144
- y:434
- color: "white"
- }
-
- BaseText{
- text: "2 hrs 27 min"
- pxSize: 22
- anchors.right: cancel.left
- anchors.rightMargin: 26
- horAlignment: Text.AlignRight
- y:434
- color: "white"
- }
-
- TouchButtonSpecial_PCA{
- id: cancel
- x:621
- y:419
- textWidth: 110
- bitmap: "Nav/destIcon.png"
- bitmap2: "Nav/destIconBlack.png"
- imageShift: -9
- spacing: 0
- text: " Cancel"
- text1: ""
- text2: ""
- totHD: -1
-
- }
- FWdgtImage{
- id: currStBkgrnd
- bitmap: "Nav/current street.png"
- x:265
- y:349
- }
-
- BaseText{
- id: currentStreet
- x:312
- y:360
- text: "East Capital St. NE"
- pxSize: 18
- theFont: "../Fonts/HelveticaNeueLTCom-Lt.ttf"
- horAlignment: Text.AlignLeft
- vertAlignment: Text.AlignTop
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/NavKeyboardLayout.qml b/src/components/qt_hmi/References/Look/Layouts/NavKeyboardLayout.qml deleted file mode 100644 index 6c7a031175..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/NavKeyboardLayout.qml +++ /dev/null @@ -1,547 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: alphaLayout
- width: 800
- height: 480
- property alias list : theListView
- property alias list_itemWidget: theListView.itemWidget
- property alias list_data: theListView.data
-
- property alias a: aBtn.touchBtn
- property alias b: bBtn.touchBtn
- property alias c: cBtn.touchBtn
- property alias d: dBtn.touchBtn
- property alias e: eBtn.touchBtn
- property alias f: fBtn.touchBtn
- property alias g: gBtn.touchBtn
- property alias h: hBtn.touchBtn
- property alias i: iBtn.touchBtn
- property alias j: jBtn.touchBtn
- property alias k: kBtn.touchBtn
- property alias l: lBtn.touchBtn
- property alias m: mBtn.touchBtn
- property alias n: nBtn.touchBtn
- property alias o: oBtn.touchBtn
- property alias p: pBtn.touchBtn
- property alias q: qBtn.touchBtn
- property alias r: rBtn.touchBtn
- property alias s: sBtn.touchBtn
- property alias t: tBtn.touchBtn
- property alias u: uBtn.touchBtn
- property alias v: vBtn.touchBtn
- property alias w: wBtn.touchBtn
- property alias xB: xBtn.touchBtn
- property alias yB: yBtn.touchBtn
- property alias zB: zBtn.touchBtn
- property alias num: numBtn.touchBtn
- property alias sym: symBtn.touchBtn
- property alias del: delBtn.touchBtn
- property alias clr: clrBtn.touchBtn
- property alias space: spaceBtn.touchBtn
- property alias close: closeTouch
- property string entry: ""
- property alias go: goBtn.touchBtn
- property alias listOpen: listOpen
-
- FWdgtListView {
- id: theListView
- anchors.fill: parent
- clip: true
- visible:false
- }
-
- FWdgtListView {
- x:400
- id: filteredListView
- clip: true
- data:filtermodel
- itemWidget:list_itemWidget
- width:100
- height:400
- visible: true
- }
- TextInput{ //Little Trick for Update on List
- text:dataPool.navEnrty
- x:200
- y:20
- onTextChanged: {
-
- if(text.length > 0 ) {
- dataPool.filter = text
- console.log(dataPool.filter)
- sortList.fillFilterModel(theListView.data)//Just backup original
- sortList.updateFilterModel(text)
-
- } else {
- sortList.fillFilterModel(theListView.data)
- dataPool.navList1stItem=""
-
- }
-
-
- }
-
- }
- BaseText{
- id: navEntry
- x:25
- y:65
- text: entry
- theFont: "../Fonts/HelveticaNeueLTStd-Roman.ttf"
- pxSize: 45
- color: "#1d81d5"
- horAlignment: Text.AlignLeft
- vertAlignment: Text.AlignTop
- }
- BaseText{
- id: listFiltEntry
- x:25
- y:130
- color:"#1d81d5"
- text:dataPool.navList1stItem
- theFont: "../Fonts/HelveticaNeueLTStd-Roman.ttf"
- pxSize: 45
- horAlignment: Text.AlignLeft
- vertAlignment: Text.AlignTop
- }
- Rectangle{
- id:rect
- x:20
- y:120
- height: 60
- radius:10
- width:650
- color:"transparent"
- border.color: "#1d81d5"
- border.width: 1
- visible: false
- }
-
- FWdgtTouchArea{
- id: listOpen
- anchors.fill: rect
- enabled: rect.visible
- }
-
- TouchButton_PCA{
- id: goBtn
- x:690
- y:115
- textWidth: 40
- text: "Go"
-
- }
-
-
- TouchButtonClimatePCA{
- id: qBtn
- x:61
- y:211
- text: "Q"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: wBtn
- x:130
- y:211
- text: "W"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: eBtn
- x:199
- y:211
- text: "E"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: rBtn
- x:268
- y:211
- text: "R"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: tBtn
- x:337
- y:211
- text: "T"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: yBtn
- x:406
- y:211
- text: "Y"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: uBtn
- x:475
- y:211
- text: "U"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: iBtn
- x:544
- y:211
- text: "I"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: oBtn
- x:613
- y:211
- text: "O"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: pBtn
- x:682
- y:211
- text: "P"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: numBtn
- x:27
- y:272
- text: "123"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 22
- }
-
- TouchButtonClimatePCA{
- id: aBtn
- x:96
- y:272
- text: "A"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: sBtn
- x:165
- y:272
- text: "S"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: dBtn
- x:234
- y:272
- text: "D"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: fBtn
- x:303
- y:272
- text: "F"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: gBtn
- x:372
- y:272
- text: "G"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: hBtn
- x:441
- y:272
- text: "H"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: jBtn
- x:510
- y:272
- text: "J"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: kBtn
- x:579
- y:272
- text: "K"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: lBtn
- x:648
- y:272
- text: "L"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: delBtn
- x:717
- y:272
- bitmap: "Nav/deleteIcon.png"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- }
-
- TouchButtonClimatePCA{
- id: symBtn
- x:61
- y:333
- text: "!@#"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 22
- }
-
- TouchButtonClimatePCA{
- id: zBtn
- x:130
- y:333
- text: "Z"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: xBtn
- x:199
- y:333
- text: "X"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: cBtn
- x:268
- y:333
- text: "C"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: vBtn
- x:337
- y:333
- text: "V"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: bBtn
- x:406
- y:333
- text: "B"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: nBtn
- x:475
- y:333
- text: "N"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: mBtn
- x:544
- y:333
- text: "M"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- txtSize: 30
- }
-
- TouchButtonClimatePCA{
- id: clrBtn
- x:613
- y:333
- text: "Clear"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- newFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- txtSize: 16
- }
-
- TouchButtonClimatePCA{
- id: spaceBtn
- x:682
- y:333
- text: "Space"
- image: "buttons/key_9_9.png"
- imagePressed: "buttons/keyPressed_9_9.png"
- imageActive: "buttons/keySelected.png"
- imageInActive: "buttons/keySelected.png"
- newFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- txtSize: 16
- }
-
- BaseText{
- id: closeTxt
- anchors.horizontalCenter: alphaLayout.horizontalCenter
- y:430
- horAlignment: Text.AlignHCenter
- vertAlignment: Text.AlignTop
- text: "CLOSE"
- color: "#1d81d5"
- pxSize: 22
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
-
- }
-
- FWdgtTouchArea{
- id: closeTouch
- height: 75
- width: 750
- y:430
- anchors.horizontalCenter: alphaLayout.horizontalCenter
- }
-
- FViewUseCase{condition: closeTouch.pressed === true
- //FActScriptCall { onScript: { FLogger.debug("Test color should change") } }
- PropertyChanges {
- target: closeTxt; color: "white"
- }
- }
-
- FViewUseCaseSimple{condition: listFiltEntry.text !== ""
- PropertyChanges {
- target: rect; visible: true
- }
- }
-
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/NavNoRouteLayout.qml b/src/components/qt_hmi/References/Look/Layouts/NavNoRouteLayout.qml deleted file mode 100644 index 7c65e911a7..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/NavNoRouteLayout.qml +++ /dev/null @@ -1,78 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: mapLayout
- width: 800
- height: 480
-
- property alias zoomIn: zoomIn.touchBtn
- property alias zoomOut: zoomOut.touchBtn
- property alias compass: compass.touchBtn
- property alias destSearch: destSearch.touchBtn
- property alias options: options.touchBtn
-
-
-
- FWdgtImage{
- id: mapImg
- bitmap: "Nav/Map.png"
- anchors.fill: mapLayout
- }
-
- TouchButtonClimatePCA{
- id: zoomIn
- text: "+"
- x:25
- y:103
- image: "buttons/zoom_9_9.png"
- imageActive: "buttons/zoomSelected.png"
- imagePressed: "buttons/zoomPressed_9_9.png"
- txtColor: "white"
- txtSize: 40
-
- }
- TouchButtonClimatePCA{
- id: zoomOut
- text: "-"
- x:25
- y:223
- image: "buttons/zoom_9_9.png"
- imageActive: "buttons/zoomSelected.png"
- imagePressed: "buttons/zoomPressed_9_9.png"
- txtColor: "white"
- txtSize: 40
- }
- TouchButtonClimatePCA{
- id: options
- x:659
- y:80
- image: "Nav/Options_9_9.png"
- imageActive: "Nav/OptionsInActive.png"
- imagePressed: "Nav/OptionsPressed_9_9.png"
- }
- TouchButtonClimatePCA{
- id: compass
- x:34
- y:352
- image: "Nav/compass.png"
- imageActive: "Nav/compass.png"
- imagePressed: "Nav/compass.png"
- }
- TouchButtonSpecial_PCA{
- id: destSearch
- x:601
- y:419
- textWidth: 130
- bitmap: "Nav/destIcon.png"
- bitmap2: "Nav/destIconBlack.png"
- imageShift: -9
- spacing: 0
- text: " Destination"
- text1: ""
- text2: ""
- totHD: -1
-
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/OffLayout.qml b/src/components/qt_hmi/References/Look/Layouts/OffLayout.qml deleted file mode 100644 index f5cc5d57a6..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/OffLayout.qml +++ /dev/null @@ -1,71 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-FLayout {
- width: 800
- height: 480
-
- property alias offTouch: offTouch
-
- Rectangle {
- id: bk
- anchors.fill: parent
- color: "black"
- }
-
- FWdgtTouchArea{
- id: offTouch
- anchors.fill: bk
- }
-
-/* RectangularGlow {
- id: effect
- anchors.fill: rect
- glowRadius: 4
- spread: 0.7
- color: "#1d81d5"
- cornerRadius: rect.radius //+ glowRadius
- }
-
- Rectangle {
- id: rect
- color: "black"
- x:40
- y:40
- width: 160
- height: 45
- radius: 23
- border.width: 1
- border.color: "#1d81d5"
- }
-
- FWdgtImage{
- id: img
- x:40
- y:90
- bitmap: "OButton.png"
- }
-
- FWdgtImage{
- id: img
- x:40
- y:40
- bitmap: "Radio/ButtonEnd_8_8.png"
- }
-
- FWdgtImage{
- id: img1
- anchors.left: img.right
- anchors.top: img.top
- width:2
- fillMode: Image.Stretch
- bitmap: "Radio/ButtonCenter_0_8.png"
- }
-
- FWdgtImage{
- id: img2
- anchors.left: img1.right
- anchors.top: img1.top
- bitmap: "Radio/ButtonOtherEnd_8_8.png"
- }*/
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/PCAstatusBarLayout.qml b/src/components/qt_hmi/References/Look/Layouts/PCAstatusBarLayout.qml deleted file mode 100644 index 1236ea4201..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/PCAstatusBarLayout.qml +++ /dev/null @@ -1,123 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: statusLayout
- width: 800
- height: 480
-
- property alias menuTouch: menuTouch
-
- Rectangle{
- id: ln1
- anchors.horizontalCenter: statusLayout.horizontalCenter
- y:15
- height:1
- width: 14
- color: "#1d81d5"
- }
- Rectangle{
- id: ln2
- anchors.horizontalCenter: statusLayout.horizontalCenter
- y:19
- height:1
- width: 14
- color: "#1d81d5"
- }
- Rectangle{
- id: ln3
- anchors.horizontalCenter: statusLayout.horizontalCenter
- y:23
- height:1
- width: 14
- color: "#1d81d5"
- }
-
-
-
- BaseText{
- id: menuTxt
- anchors.horizontalCenter: statusLayout.horizontalCenter
- anchors.bottom: statusLayout.top
- anchors.bottomMargin: -50
- horAlignment: Text.AlignHCenter
- vertAlignment: Text.AlignBottom
- text: "MENU"
- color: "#1d81d5"
- pxSize: 22
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
-
- }
-
- BaseText{
- id: tempTxt
- x:25
- anchors.bottom: statusLayout.top
- anchors.bottomMargin: -50
- horAlignment: Text.AlignLeft
- vertAlignment: Text.AlignBottom
- text: "75" + "\xBA"
- color: "#1d81d5"
- theFont: "../Fonts/HelveticaNeueLTStd-Roman.ttf"
- pxSize: 28
-
-
- }
-
- BaseText{
- id: clockTxt
- anchors.right: statusLayout.right
- anchors.rightMargin: 25
- anchors.bottom: statusLayout.top
- anchors.bottomMargin: -50
- horAlignment: Text.AlignRight
- vertAlignment: Text.AlignBottom
- text: "12:45"
- color: "#1d81d5"
- theFont: "../Fonts/HelveticaNeueLTStd-Roman.ttf"
- pxSize: 28
- }
-
- FWdgtTouchArea{
- id: menuTouch
- height: 75
- width: 80
- y:0
- anchors.horizontalCenter: statusLayout.horizontalCenter
- }
-
- FViewUseCase{condition: menuTouch.pressed === true
- //FActScriptCall { onScript: { FLogger.debug("Test color should change") } }
- PropertyChanges {
- target: ln1; color: "white"
- }
- PropertyChanges {
- target: ln2; color: "white"
- }
- PropertyChanges {
- target: ln3; color: "white"
- }
- PropertyChanges {
- target: menuTxt; color: "white"
- }
- }
-
- FViewUseCase{
- condition: dataPool.mainPCAmenuShown ===true
- PropertyChanges {
- target: ln1; visible: false
- }
- PropertyChanges {
- target: ln2; visible: false
- }
- PropertyChanges {
- target: ln3; visible: false
- }
- PropertyChanges {
- target: menuTxt; visible: false
- }
- }
-
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/PhoneContactsLayout.qml b/src/components/qt_hmi/References/Look/Layouts/PhoneContactsLayout.qml deleted file mode 100644 index 9e119d9900..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/PhoneContactsLayout.qml +++ /dev/null @@ -1,40 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-
-FLayout {
-
- id: theLayout
- width: 800
- height: 480
-
- property alias list : theListPhoneView
- property alias list_itemWidget: theListPhoneView.itemWidget
- property alias list_data: theListPhoneView.data
- property alias back: back.touchBtn
- TouchButtonClimatePCA{
- id: back
- text: "+"
- x:25
- y:80
- image: "buttons/zoom_9_9.png"
- imageActive: "buttons/zoomSelected.png"
- imagePressed: "buttons/zoomPressed_9_9.png"
- txtColor: "white"
- txtSize: 40
- visible: false
-
- }
- FWdgtListView {
-
- width:600
- height:400
- id: theListPhoneView
- x:150
- y:80
- clip: true
- visible:true
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/SiriusLayout.qml b/src/components/qt_hmi/References/Look/Layouts/SiriusLayout.qml deleted file mode 100644 index e275c055a7..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/SiriusLayout.qml +++ /dev/null @@ -1,195 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: fmLayout
- width: 800
- height: 480
-
- property alias sourceBtn: sourceBtn
- property alias browseBtn: browseBtn
- property alias albumInfoBtn: albumInfoBtn
- property alias albumInfoImg: stationLogoImg
- property alias stationTxt: stationTxt
- property alias trackTxt: trackTxt
- property alias artistTxt: artistTxt
- property alias alertBtn: alertBtn
- property alias preset1Btn: preset1Btn
- property alias preset2Btn: preset2Btn
- property alias preset3Btn: preset3Btn
- property alias preset4Btn: preset4Btn
- property alias preset5Btn: preset5Btn
- property alias preset6Btn: preset6Btn
- property alias replayBtn: replayBtn
- property alias tuneBtn: tuneBtn
- property alias presetsBtn: presetsBtn
-
-
- TouchButton{
- id: sourceBtn
- anchors.top: fmLayout.top
- anchors.topMargin: 140
- anchors.left: fmLayout.left
- anchors.leftMargin: 10
- height:25
- width: 130
- text: "Source"
- }
-
- TouchButton{
- id: browseBtn
- anchors.top: fmLayout.top
- anchors.topMargin: 180
- anchors.left: fmLayout.left
- anchors.leftMargin: 10
- height:25
- width: 130
- text: "Browse"
- }
-
- TouchButton{
- id: albumInfoBtn
- anchors.top: fmLayout.top
- anchors.topMargin: 95
- anchors.left: fmLayout.left
- anchors.leftMargin: 190
- height:130
- width: 130
- text: "Album"
- vis: false
-
- }
-
- FWdgtImage{
- id: stationLogoImg
- anchors.top: fmLayout.top
- anchors.topMargin: 95
- anchors.left: fmLayout.left
- anchors.leftMargin: 190
- height:70
- width: 130
- bitmap: ""
- }
-
- TouchButton{
- id: alertBtn
- anchors.top: albumInfoImg.bottom
- anchors.topMargin: 20
- anchors.left: albumInfoImg.left
- height:25
- width: 90
- text: "Alert"
- }
-
- BaseText{
- id: stationTxt
- anchors.verticalCenter: trackTxt.verticalCenter
- anchors.verticalCenterOffset: -45
- anchors.left: trackTxt.left
- text: "Ch 22 / Pearl Jam Radio"
- }
-
- BaseText{
- id: trackTxt
- anchors.verticalCenter: albumInfoBtn.verticalCenter
- anchors.left: albumInfoBtn.right
- anchors.leftMargin: 15
- pxSize: 34
- text: "State of Love ..."
-
- }
-
- BaseText{
- id: artistTxt
- anchors.verticalCenter: trackTxt.verticalCenter
- anchors.verticalCenterOffset: 45
- anchors.left: trackTxt.left
- text: "Pearl Jam"
- }
-
- TouchButton{
- id: preset1Btn
- anchors.top: fmLayout.top
- anchors.topMargin: 280
- anchors.left: browseBtn.left
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset2Btn
- anchors.top: preset1Btn.bottom
- anchors.left: preset1Btn.left
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset3Btn
- anchors.top: preset1Btn.top
- anchors.left: preset1Btn.right
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset4Btn
- anchors.top: preset2Btn.top
- anchors.left: preset2Btn.right
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset5Btn
- anchors.top: preset3Btn.top
- anchors.left: preset3Btn.right
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: preset6Btn
- anchors.top: preset4Btn.top
- anchors.left: preset4Btn.right
- height:60
- width: 208
- text: "WWWWWWWW"
- }
-
- TouchButton{
- id: replayBtn
- anchors.verticalCenter: browseBtn.verticalCenter
- anchors.verticalCenterOffset: 35
- anchors.left: fmLayout.left
- anchors.leftMargin: 725
- height:40
- width: 55
- text: "rply"
- }
-
- TouchButton{
- id: tuneBtn
- anchors.top: preset1Btn.top
- anchors.right: replayBtn.right
- height:40
- width: 120
- text: "tune"
- }
-
- TouchButton{
- id: presetsBtn
- anchors.bottom: preset6Btn.bottom
- anchors.right: replayBtn.right
- height:60
- width: 120
- text: "presets"
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/StartLayout.qml b/src/components/qt_hmi/References/Look/Layouts/StartLayout.qml deleted file mode 100644 index 3968438447..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/StartLayout.qml +++ /dev/null @@ -1,30 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: chrome
- width: 800
- height: 480
-
- //property alias bg: _bg
- //property alias btnIndicatorState: button1.indicatorState
- property alias button1: button1
-
-
-
-
- BaseText{
- id: title
- anchors.centerIn: chrome
- text: "Chrome"
- }
-
- TouchButton{
- id: button1
- anchors.top: title.bottom
- anchors.horizontalCenter: title.horizontalCenter
- text: "Button 1"
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/TC1_B1_Grid.qml b/src/components/qt_hmi/References/Look/Layouts/TC1_B1_Grid.qml deleted file mode 100644 index d898a0c07f..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/TC1_B1_Grid.qml +++ /dev/null @@ -1,37 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- width: 800
- height: 480
-
- property alias m1: m1.children
- property alias list: listView
- property alias list_data: listView.list_data
- property alias list_itemWidget: listView.list_itemWidget
- property alias listWrap: listView.listWrap
- property alias fg: _fg
-
-
-
- Item {
- id: _fg
-
- width: 800; height: 480
-
- GridViewWidget {
- id: listView
- x: 135; y: 170
- width: 530; height: 200
- gridItemHeight: 100; gridItemWidth: 180
-
- }
-
- FWdgtContainer {
- id: m1
- width: 530; height: 55
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/TileBackImgLayoutPCA.qml b/src/components/qt_hmi/References/Look/Layouts/TileBackImgLayoutPCA.qml deleted file mode 100644 index a1a0d32538..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/TileBackImgLayoutPCA.qml +++ /dev/null @@ -1,76 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: layout
- width: 800
- height: 480
-
- property alias m1: m1.children
- property alias list: listView
- property alias list_data: listView.list_data
- property alias list_itemWidget: listView.list_itemWidget
- property alias listWrap: listView.listWrap
- property alias fg: _fg
- property alias theX: listView.x
- property alias theY: listView.y
- property alias theWidth: listView.width
- property alias theHeight: listView.height
- property alias itemWidth: listView.gridItemWidth
- property alias itemHeight: listView.gridItemHeight
- property alias close: closeTouch
- property bool useClose: false
-
-
- Item {
- id: _fg
-
- width: 800; height: 480
-
-
- GridViewWidget {
- id: listView
- x: 0; y: 75
- width: 800; height: 356
- gridItemHeight: 178; gridItemWidth: 200
-
- }
-
- FWdgtContainer {
- id: m1
- width: 530; height: 55
- }
- }
- BaseText{
- id: closeTxt
- anchors.horizontalCenter: layout.horizontalCenter
- y:430
- horAlignment: Text.AlignHCenter
- vertAlignment: Text.AlignTop
- text: "CLOSE"
- color: "#1d81d5"
- pxSize: 22
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- visible: useClose
-
- }
-
- FWdgtTouchArea{
- id: closeTouch
- height: 75
- width: 750
- y:430
- anchors.horizontalCenter: layout.horizontalCenter
- visible: useClose
- enabled: useClose
- }
-
- FViewUseCase{condition: closeTouch.pressed === true
- //FActScriptCall { onScript: { FLogger.debug("Test color should change") } }
- PropertyChanges {
- target: closeTxt; color: "white"
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/TileBackLayout.qml b/src/components/qt_hmi/References/Look/Layouts/TileBackLayout.qml deleted file mode 100644 index 0aed708e35..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/TileBackLayout.qml +++ /dev/null @@ -1,107 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: tileLayout
- width: 800
- height: 480
-
- property alias button1: button1
- property alias button2: button2
- property alias button3: button3
- property alias button4: button4
- property alias button5: button5
- property alias button6: button6
- property alias button7: button7
- property alias button8: button8
- property alias backBtn: backBtn
-
-
-
- Grid {
- id: theGrid
- flow: Grid.TopToBottom
- anchors.top: tileLayout.top
- anchors.topMargin: 130
- anchors.horizontalCenter: tileLayout.horizontalCenter
- anchors.leftMargin: 100
- columns: 4
- spacing: 20
- TouchButton{
- id: button1
- height:125
- width: 135
- text: "Button 1"
- }
-
- TouchButton{
- id: button2
- height:125
- width: 135
- text: "Button 2"
- }
-
- TouchButton{
- id: button3
- height:125
- width: 135
- text: "Button 3"
- }
-
- TouchButton{
- id: button4
- height:125
- width: 135
- text: "Button 4"
- }
-
- TouchButton{
- id: button5
- height:125
- width: 135
- text: "Button 5"
- }
-
- TouchButton{
- id: button6
- height:125
- width: 135
- text: "Button 6"
- }
-
- TouchButton{
- id: button7
- height:125
- width: 135
- text: "Button 7"
- }
-
- TouchButton{
- id: button8
- height:125
- width: 135
- text: "Button 8"
- }
- }
-
-
-
- BaseText{
- id: title
- anchors.top: tileLayout.top
- anchors.topMargin: 80
- anchors.horizontalCenter: tileLayout.horizontalCenter
- text: "Select a Source"
- }
-
- TouchButton{
- id: backBtn
- anchors.verticalCenter: title.verticalCenter
- anchors.left: tileLayout.left
- anchors.leftMargin: 20
- height:40
- width: 60
- text: "<"
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/TileBackLayoutPCA.qml b/src/components/qt_hmi/References/Look/Layouts/TileBackLayoutPCA.qml deleted file mode 100644 index bc7545b6fd..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/TileBackLayoutPCA.qml +++ /dev/null @@ -1,73 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: layout
- width: 800
- height: 480
-
- property alias m1: m1.children
- property alias list: listView
- property alias list_data: listView.list_data
- property alias list_itemWidget: listView.list_itemWidget
- property alias listWrap: listView.listWrap
- property alias fg: _fg
- property alias theX: listView.x
- property alias theY: listView.y
- property alias theWidth: listView.width
- property alias theHeight: listView.height
- property alias itemWidth: listView.gridItemWidth
- property alias itemHeight: listView.gridItemHeight
- property alias close: closeTouch
- property bool useClose: true
-
-
-
-
- Item {
- id: _fg
-
- width: 800; height: 480
-
- GridViewWidget {
- id: listView
- x: 130; y: 170
- width: 540; height: 200
- gridItemHeight: 100; gridItemWidth: 180
-
- }
-
- FWdgtContainer {
- id: m1
- width: 530; height: 55
- }
-
-
- }
-
- BaseText{
- id: closeTxt
- anchors.horizontalCenter: layout.horizontalCenter
- y:430
- horAlignment: Text.AlignHCenter
- vertAlignment: Text.AlignTop
- text: "CLOSE"
- color: "#1d81d5"
- pxSize: 22
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- visible: useClose
-
- }
-
- FWdgtTouchArea{
- id: closeTouch
- height: 75
- width: 750
- y:430
- anchors.horizontalCenter: layout.horizontalCenter
- visible: useClose
- enabled: useClose
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/USBLayout.qml b/src/components/qt_hmi/References/Look/Layouts/USBLayout.qml deleted file mode 100644 index 178fe6fc1a..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/USBLayout.qml +++ /dev/null @@ -1,132 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: fmLayout
- width: 800
- height: 480
-
- property alias sourceBtn: sourceBtn
- property alias browseBtn: browseBtn
- property alias albumInfoBtn: albumInfoBtn
- property alias stationTxt: stationTxt
- property alias trackTxt: trackTxt
- property alias artistTxt: artistTxt
- property alias seekBkBtn: seekBkBtn
- property alias playBtn: playBtn
- property alias seekFdBtn: seekFdBtn
- property alias repeatBtn: repeatBtn
- property alias shuffleBtn: shuffleBtn
-
-
- TouchButton{
- id: sourceBtn
- anchors.top: fmLayout.top
- anchors.topMargin: 140
- anchors.left: fmLayout.left
- anchors.leftMargin: 10
- height:25
- width: 130
- text: "Source"
- }
-
- TouchButton{
- id: browseBtn
- anchors.top: fmLayout.top
- anchors.topMargin: 290
- anchors.left: fmLayout.left
- anchors.leftMargin: 10
- height:25
- width: 130
- text: "Browse"
- }
-
- TouchButton{
- id: albumInfoBtn
- anchors.top: fmLayout.top
- anchors.topMargin: 95
- anchors.left: fmLayout.left
- anchors.leftMargin: 190
- height:130
- width: 130
- text: "Album"
- }
-
- BaseText{
- id: stationTxt
- anchors.verticalCenter: trackTxt.verticalCenter
- anchors.verticalCenterOffset: -45
- anchors.left: trackTxt.left
- text: "Ch 22 / Pearl Jam Radio"
- }
-
- BaseText{
- id: trackTxt
- anchors.verticalCenter: albumInfoBtn.verticalCenter
- anchors.left: albumInfoBtn.right
- anchors.leftMargin: 15
- pxSize: 34
- text: "State of Love ..."
-
- }
-
- BaseText{
- id: artistTxt
- anchors.verticalCenter: trackTxt.verticalCenter
- anchors.verticalCenterOffset: 45
- anchors.left: trackTxt.left
- text: "Pearl Jam"
- }
-
- TouchButton{
- id: seekBkBtn
- anchors.verticalCenter: browseBtn.verticalCenter
- anchors.horizontalCenter: playBtn.horizontalCenter
- anchors.horizontalCenterOffset: -150
- height:100
- width: 100
- text: "<<"
- }
-
- TouchButton{
- id: playBtn
- anchors.verticalCenter: browseBtn.verticalCenter
- anchors.horizontalCenter: fmLayout.horizontalCenter
- height:120
- width: 120
- text: "||"
- }
-
- TouchButton{
- id: seekFdBtn
- anchors.verticalCenter: browseBtn.verticalCenter
- anchors.horizontalCenter: playBtn.horizontalCenter
- anchors.horizontalCenterOffset: 150
- height:100
- width: 100
- text: ">>"
- }
-
- TouchButton{
- id: repeatBtn
- anchors.verticalCenter: browseBtn.verticalCenter
- anchors.verticalCenterOffset: -35
- anchors.left: fmLayout.left
- anchors.leftMargin: 670
- height:40
- width: 55
- text: "rpt"
- }
-
- TouchButton{
- id: shuffleBtn
- anchors.verticalCenter: browseBtn.verticalCenter
- anchors.verticalCenterOffset: 35
- anchors.left: repeatBtn.left
- height:40
- width: 55
- text: "sfl"
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Layouts/USBLayoutPCA.qml b/src/components/qt_hmi/References/Look/Layouts/USBLayoutPCA.qml deleted file mode 100644 index d82077b555..0000000000 --- a/src/components/qt_hmi/References/Look/Layouts/USBLayoutPCA.qml +++ /dev/null @@ -1,155 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: fmLayout
- width: 800
- height: 480
-
- property alias sourceBtn: sourceBtn
- property alias browseBtn: browseBtn
- property alias trackNumTxt: trackNumTxt.text
- property alias artist: artistTxt.text
- property alias play: play.touchBtn
- property alias pause: pause.touchBtn
- property bool playing: true
-
-
-
-
- FWdgtImage{
- id: albumArt
- x:25
- y:176
- bitmap: "USB/albumArt.png"
- }
-
- TouchButton_PCA{
- id: sourceBtn
- x:25
- y:80
- textWidth: 100
- text: "FM Radio"
-
- }
-
- TouchButton_PCA{
- id: browseBtn
- anchors.right: fmLayout.right
- anchors.rightMargin: 25
- y:80
- textWidth: 75
- text: "Browse"
-
- }
-
- BaseText{
- id: trackNumTxt
- x:181
- y:188
- pxSize: 22
- text: "Track 13/ 16"
- color: "#1d81d5"
- theFont: "../Fonts/HelveticaNeueLTCom-Lt.ttf"
-
- }
-
- BaseText{
- id: trackTxt
- x:181
- y:225
- text: "The Dog Days Are Over"
- color: "#1d81d5"
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- pxSize: 45
-
-
- }
-
- BaseText{
- id: artistTxt
- x:181
- y:280
- text: "Florence and the Machine"
- color: "#1d81d5"
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- pxSize: 22
- }
-
-
- TouchButtonClimatePCA{
- id: play
- x:367
- y:390
- image: "USB/play_9_9.png"
- imagePressed: "USB/playPressed_9_9.png"
- visible: playing
- enabled: playing
- }
-
- TouchButtonClimatePCA{
- id: pause
- x:367
- y:390
- image: "USB/pause_9_9.png"
- imagePressed: "USB/pausePressed_9_9.png"
- visible: !playing
- enabled: !playing
- }
-
- TouchButtonClimatePCA{
- id: seekBack
- x:287
- y:399
- image: "USB/Prev_9_9.png"
- imagePressed: "USB/PrevPressed_9_9.png"
- }
-
- TouchButtonClimatePCA{
- id: seekNext
- x:463
- y:399
- image: "USB/Next_9_9.png"
- imagePressed: "USB/NextPressed_9_9.png"
- }
-
- Rectangle{
- x:92
- y: 365
- height:1
- width: 616
- color: "#1d81d5"
- }
-
- Rectangle{
- x:92
- y: 365
- height:1
- width: 138
- color: "white"
- }
-
- BaseText{
- id: elapsedTime
- x:25
- y:358
- text: "02:36"
- color: "white"
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- pxSize: 18
- }
-
- BaseText{
- id: totTime
- y:358
- anchors.right: fmLayout.right
- anchors.rightMargin: 25
- horAlignment: Text.AlignRight
- text: "04:23"
- color: "#1d81d5"
- theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
- pxSize: 18
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/PCA_HMI_v1_0.qml b/src/components/qt_hmi/References/Look/PCA_HMI_v1_0.qml deleted file mode 100644 index 22e408c716..0000000000 --- a/src/components/qt_hmi/References/Look/PCA_HMI_v1_0.qml +++ /dev/null @@ -1,373 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "Models"
-import "Widgets"
-import "Styles"
-
-Rectangle {
- width: 1360
- height: 768
- color: "black"
-
- // global events
- FEvent { id: cornerClicked }
- FEvent { id: closeNormalScreens }
-
- //global timers
- FTimer {id: testTimer; interval: 5000; repeat: false}
-
- // global datapools
- FDataPool {
- id: dataPool
-
- property string version: "V1.0.0"
- property string currSource: "FM"
- property string currStation: "91.9"
- property string currStatText: "WUOM"
- property string currSong: "Fresh Air"
- property string currAlbumArt: "album artRazorFish.png"
- property int layout: 2 //AM/FM:0, AMhd:1, FMhd:2, Sirius:3, USB:4, BT:5
- property int currFMpreset: 2
- property int currAMpreset: 1
- property int currSATpreset: 3
- property string curStationDT: ""
- property int statusBarChange: 0
- property int curFanSpeed: 1
- property int drvTemp: 70
- property int passTemp: 70
-
- property bool mainPCAmenuShown: false
-
-
- property string fm1pre1: "101.1"
- property string fm1pre2: "97.1"
- property string fm1pre3: "94.7"
- property string fm1pre4: "91.7"
- property string fm1pre5: "101.9"
- property string fm1pre6: "88.7"
-
- property string fm1stat1: "WRIF"
- property string fm1stat2: "WXYT"
- property string fm1stat3: "WCSX"
- property string fm1stat4: "WUOM"
- property string fm1stat5: "WDET"
- property string fm1stat6: "CIMX"
-
- property string fm1song1: "Ace of Spades"
- property string fm1song2: "Sports Talk"
- property string fm1song3: "Born to Run"
- property string fm1song4: "Fresh Air"
- property string fm1song5: "The Craig Fahle Show"
- property string fm1song6: "State of Love and Trust"
-
- property string fm2pre1: "101.1"
- property string fm2pre2: "97.1"
- property string fm2pre3: "94.7"
- property string fm2pre4: "91.7"
- property string fm2pre5: "101.9"
- property string fm2pre6: "88.7"
-
- property string fm2stat1: "WRIF"
- property string fm2stat2: "WXYT"
- property string fm2stat3: "WCSX"
- property string fm2stat4: "WUOM"
- property string fm2stat5: "WDET"
- property string fm2stat6: "CIMX"
-
- property string fm2song1: "Ace of Spades"
- property string fm2song2: "Sports Talk"
- property string fm2song3: "Born to Run"
- property string fm2song4: "Fresh Air"
- property string fm2song5: "The Craig Fahle Show"
- property string fm2song6: "State of Love and Trust"
-
- property string fm3pre1: "101.1"
- property string fm3pre2: "97.1"
- property string fm3pre3: "94.7"
- property string fm3pre4: "91.7"
- property string fm3pre5: "101.9"
- property string fm3pre6: "88.7"
-
- property string fm3stat1: "WRIF"
- property string fm3stat2: "WXYT"
- property string fm3stat3: "WCSX"
- property string fm3stat4: "WUOM"
- property string fm3stat5: "WDET"
- property string fm3stat6: "CIMX"
-
- property string fm3song1: "Ace of Spades"
- property string fm3song2: "Sports Talk"
- property string fm3song3: "Born to Run"
- property string fm3song4: "Fresh Air"
- property string fm3song5: "The Craig Fahle Show"
- property string fm3song6: "State of Love and Trust"
-
-
- /*List Filtered Variables*/
- property string navEnrty:""
- property string filter: ""
- property variant uniqueChars: undefined
- property string navList1stItem:""
- property string filterPhone:""
- }
-
- // global conditions
- FConditionPool {
- id: condPool
-
- property bool amfmActiveSource: true
- property bool settingsOpen: false
- property bool dualBtnSt: true
- property bool drvHeatSeatSt: false
- property bool drvCoolSeatSt: false
- property bool passCoolSeatSt: false
- property bool passHeatSeatSt: false
- property bool heatWheelSt: false
- property bool heatWinSheildSt: true
- property bool defrostSt: true
- property bool pannelSt: false
- property bool floorSt: false
-
- property bool showMenu: true
-
- }
-
-
- Component.onCompleted: {
- FThemeProvider.resourcePath = Qt.resolvedUrl("Resources");
- FThemeProvider.theme = "Theme1";
-
-
- }
- property QtObject filtermodel: ListModel {
- ListElement { staticItem: "Five Guys" }
- ListElement { staticItem: "Archers Of Loaf" }
- ListElement { staticItem: "Bob Mould" }
- ListElement { staticItem: "Cat Power" }
- ListElement { staticItem: "Cloud Nothings"}
- ListElement { staticItem: "Dentist"}
- ListElement { staticItem: "Dirty Frank's" }
- ListElement { staticItem: "Grouplove" }
- ListElement { staticItem: "Hudson Bell"}
- ListElement { staticItem: "Japandroids" }
- ListElement { staticItem: "Macklemore & Ryan Lewis"}
- ListElement { staticItem: "The National"}
- ListElement { staticItem: "Titus Andronicus" }
- ListElement { staticItem: "Tito" }
- ListElement { staticItem: "Tamal" }
- ListElement { staticItem: "Taco" }
- }
-
- QtObject{
- id:sortList
-
- //Check if char exist on Phone DataModel
- function existChar(model, character){
- //console.log(model.get(3).staticItem.charAt(0).toLowerCase())
- for (var i = 0; i < model.count; i++) {
- var u =model.get(i).staticItem.charAt(0).toLowerCase()
- if (character=== u){
- console.log(i)
- return i;
- }
-
- }
-
- }
-
- // Check whether given character exists in array
- function exist(array, character) {
- console.log(array[0]);
- for (var i = 0; i < array.length; i++) {
-
- if (array[i] == character) return true;
- }
- return false;
- }
-
- // Check whether given filter matches the string (e.g. "ce" would match "Cecilia")
- // The check is case-insensitive
- function checkFilter(filter, string) {
- if (filter.length > string.length) return false;
-
- var filterlower = filter.toLowerCase();
- var stringlower = string.toLowerCase();
-
- for (var i = 0; i < filter.length; i++) {
- if (filterlower[i] != stringlower[i])
- return false;
- }
-
- return true;
- }
-
- // Updates the filtermodel based on the current filter
- function updateFilterModel(name) {
- if (dataPool.filter.length > 0) {
- for (var i = filtermodel.count-1; i >= 0; i--) {
- if (!checkFilter(dataPool.filter, filtermodel.get(i).staticItem))
- filtermodel.remove(i)
- }
- }
-
- updateUniqueChars()
- }
-
- // Updates the array of unique first letters in the current index of the model
- function updateUniqueChars() {
-
- if (filtermodel.get(0) === undefined)
- {
- dataPool.navList1stItem=""
- return;
-
- }
-
- var characters = new Array();
-
- // If filter model has at most 1 item in it, no point in going
- // any further with filtering
- dataPool.navList1stItem=filtermodel.get(0).staticItem
- if (filtermodel.count > 1) {
-
- for (var i = 0; i < filtermodel.count; i++) {
- var name = filtermodel.get(i).staticItem;
-
- if (!exist(characters, name[dataPool.filter.length])) {
- characters.push(name[dataPool.filter.length])
- }
- }
-
- characters.sort()
-
-
- }
-
-
- dataPool.uniqueChars = characters
-
- }
-
-
- // Fills the filtermodel with contents from the source list's model
- function fillFilterModel(fullModel) {
- if (fullModel === undefined) return;
- filtermodel.clear();
- for (var i = 0; i < fullModel.count; i++) {
- filtermodel.append(fullModel.get(i))
- }
-
- }
-
- }
-
- FDisplay {
-
- /* modelPath:Qt.resolvedUrl(".")
- id: display
- //activeVariant: "ClassicTop"
- //activeVariant: "ClassicBottom"
- //activeVariant: "Tangier"
- viewCacheSize:0
-
- //width: 800
- //height: 480
-// xPixel: 800
-// yPixel: 480
- anchors.fill: parent
-// anchors { left: parent.left; top: parent.top;}
-
- priorityLayerCount: 9
- //initialView: "AutocompleteList"
- initialView: "Off"*/
-
-
-
- modelPath:Qt.resolvedUrl(".")
- id: display
- //activeVariant: "ClassicTop"
- //activeVariant: "ClassicBottom"
- //activeVariant: "Tangier"
- viewCacheSize:0
-
-
- width: 800
- height: 480
-
- xPixel: 800
- yPixel: 480
-
- anchors {
- horizontalCenter: parent.horizontalCenter;
- verticalCenter: parent.verticalCenter;
- verticalCenterOffset: 55
- }
-
- priorityLayerCount: 9
- initialView: "Off"
- //initialView: "NavTilesView"
- }
-
- Item
- {
- id: fHardwareKeybezel1
- width: 800
- height: 375
- x:10
- y:500
-
- // function keys
- TextHardkey {
- id: hk_OnOff
- width: 100
- height: 50
- anchors.left: parent.left
- anchors.leftMargin: 0
- anchors.top: parent.top
- anchors.topMargin: 0
- label: "On/Off"
- }
-
- BaseText {
- id: info
- text: dataPool.version
- color: "black"
- anchors.top: hk_OnOff.top
- anchors.left: hk_OnOff.right
- anchors.leftMargin: 20
- }
-
-
- FHardwareKey {
- id: buttonUp
- hardwareControlID: "buttonUp"
- //commName: "buttonBack"
-
- x:0
- y:0
- width: 60
- height:25
-
-
- keyboardKey: Qt.Key_Up
- visible: false
- }
-
- FHardwareKey {
- id: buttonDown
- hardwareControlID: "buttonDown"
- //commName: "buttonBack"
-
- x:0
- y:0
- width: 60
- height:25
-
-
- keyboardKey: Qt.Key_Down
- visible: false
- }
-
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/PCA_HMI_v1_0.qmlproject b/src/components/qt_hmi/References/Look/PCA_HMI_v1_0.qmlproject deleted file mode 100644 index e9402cbac7..0000000000 --- a/src/components/qt_hmi/References/Look/PCA_HMI_v1_0.qmlproject +++ /dev/null @@ -1,20 +0,0 @@ -/* File generated by Qt Creator, version 2.6.1 */
-
-import QmlProject 1.1
-
-Project {
- mainFile: "PCA_HMI_v1_0.qml"
-
- /* Include .qml, .js, and image files from current directory and subdirectories */
- QmlFiles {
- directory: "."
- }
- JavaScriptFiles {
- directory: "."
- }
- ImageFiles {
- directory: "."
- }
- /* List of plugin directories passed to QML runtime */
- importPaths: [ "plugins" ]
-}
diff --git a/src/components/qt_hmi/References/Look/Resources/CButton.png b/src/components/qt_hmi/References/Look/Resources/CButton.png Binary files differdeleted file mode 100644 index aeebdb64ca..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/CButton.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Ford-HMI-PCA-phone_contacts.psd b/src/components/qt_hmi/References/Look/Resources/Ford-HMI-PCA-phone_contacts.psd Binary files differdeleted file mode 100644 index 982bd5882c..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Ford-HMI-PCA-phone_contacts.psd +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/HierarchicalListBG.png b/src/components/qt_hmi/References/Look/Resources/HierarchicalListBG.png Binary files differdeleted file mode 100644 index 805236eaf6..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/HierarchicalListBG.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/Map.png b/src/components/qt_hmi/References/Look/Resources/Nav/Map.png Binary files differdeleted file mode 100644 index 4b39af9b22..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/Map.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/OptionsInActive.png b/src/components/qt_hmi/References/Look/Resources/Nav/OptionsInActive.png Binary files differdeleted file mode 100644 index 601b242bbe..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/OptionsInActive.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/OptionsPressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/Nav/OptionsPressed_9_9.png Binary files differdeleted file mode 100644 index 42c352a7e8..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/OptionsPressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/Options_9_9.png b/src/components/qt_hmi/References/Look/Resources/Nav/Options_9_9.png Binary files differdeleted file mode 100644 index 46887f1061..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/Options_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/compass.png b/src/components/qt_hmi/References/Look/Resources/Nav/compass.png Binary files differdeleted file mode 100644 index b78041307b..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/compass.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/deleteIcon.png b/src/components/qt_hmi/References/Look/Resources/Nav/deleteIcon.png Binary files differdeleted file mode 100644 index 826b5faacf..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/deleteIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/deleteIconBlack.png b/src/components/qt_hmi/References/Look/Resources/Nav/deleteIconBlack.png Binary files differdeleted file mode 100644 index 56e35c759b..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/deleteIconBlack.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/destIcon.png b/src/components/qt_hmi/References/Look/Resources/Nav/destIcon.png Binary files differdeleted file mode 100644 index dadcfe25cf..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/destIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/destIconBlack.png b/src/components/qt_hmi/References/Look/Resources/Nav/destIconBlack.png Binary files differdeleted file mode 100644 index 75c99bc4aa..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/destIconBlack.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Nav/turnArrow.png b/src/components/qt_hmi/References/Look/Resources/Nav/turnArrow.png Binary files differdeleted file mode 100644 index f37731f5af..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Nav/turnArrow.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/OButton.png b/src/components/qt_hmi/References/Look/Resources/OButton.png Binary files differdeleted file mode 100644 index 2811770953..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/OButton.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/ButtonCenter_0_8.png b/src/components/qt_hmi/References/Look/Resources/Radio/ButtonCenter_0_8.png Binary files differdeleted file mode 100644 index 9933dbcc72..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/ButtonCenter_0_8.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/ButtonEnd_8_8.png b/src/components/qt_hmi/References/Look/Resources/Radio/ButtonEnd_8_8.png Binary files differdeleted file mode 100644 index 672e57bf39..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/ButtonEnd_8_8.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/ButtonOtherEnd_8_8.png b/src/components/qt_hmi/References/Look/Resources/Radio/ButtonOtherEnd_8_8.png Binary files differdeleted file mode 100644 index cc9cb83ede..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/ButtonOtherEnd_8_8.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/Ford-HMI-PCA-audio_fm_sirius.png b/src/components/qt_hmi/References/Look/Resources/Radio/Ford-HMI-PCA-audio_fm_sirius.png Binary files differdeleted file mode 100644 index efe0b7b586..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/Ford-HMI-PCA-audio_fm_sirius.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/HDBtn_8_8.png b/src/components/qt_hmi/References/Look/Resources/Radio/HDBtn_8_8.png Binary files differdeleted file mode 100644 index 6ed0293aab..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/HDBtn_8_8.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/SourceBtn_8_8.png b/src/components/qt_hmi/References/Look/Resources/Radio/SourceBtn_8_8.png Binary files differdeleted file mode 100644 index 375195bec3..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/SourceBtn_8_8.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/TuneBtn_8_8.png b/src/components/qt_hmi/References/Look/Resources/Radio/TuneBtn_8_8.png Binary files differdeleted file mode 100644 index 99f5e90c3d..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/TuneBtn_8_8.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/blueBall.png b/src/components/qt_hmi/References/Look/Resources/Radio/blueBall.png Binary files differdeleted file mode 100644 index d4db3f96ae..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/blueBall.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/menuIcon_2_2.png b/src/components/qt_hmi/References/Look/Resources/Radio/menuIcon_2_2.png Binary files differdeleted file mode 100644 index 1422e00b42..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/menuIcon_2_2.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/perlJamIcon_0_0.png b/src/components/qt_hmi/References/Look/Resources/Radio/perlJamIcon_0_0.png Binary files differdeleted file mode 100644 index 3c1cad7c33..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/perlJamIcon_0_0.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Radio/whiteBall.png b/src/components/qt_hmi/References/Look/Resources/Radio/whiteBall.png Binary files differdeleted file mode 100644 index 952714ebe6..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Radio/whiteBall.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/NextPressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/USB/NextPressed_9_9.png Binary files differdeleted file mode 100644 index aab3df8914..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/NextPressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/Next_9_9.png b/src/components/qt_hmi/References/Look/Resources/USB/Next_9_9.png Binary files differdeleted file mode 100644 index c432068d4a..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/Next_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/PrevPressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/USB/PrevPressed_9_9.png Binary files differdeleted file mode 100644 index c6eefc09c9..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/PrevPressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/Prev_9_9.png b/src/components/qt_hmi/References/Look/Resources/USB/Prev_9_9.png Binary files differdeleted file mode 100644 index acc2a71de3..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/Prev_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/albumArt.png b/src/components/qt_hmi/References/Look/Resources/USB/albumArt.png Binary files differdeleted file mode 100644 index 9000680276..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/albumArt.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/pause.png b/src/components/qt_hmi/References/Look/Resources/USB/pause.png Binary files differdeleted file mode 100644 index 71a7574d25..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/pause.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/pausePressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/USB/pausePressed_9_9.png Binary files differdeleted file mode 100644 index a26cf2e4ea..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/pausePressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/pause_9_9.png b/src/components/qt_hmi/References/Look/Resources/USB/pause_9_9.png Binary files differdeleted file mode 100644 index 417bdbf248..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/pause_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/playPressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/USB/playPressed_9_9.png Binary files differdeleted file mode 100644 index ecbb4f2ef0..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/playPressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/USB/play_9_9.png b/src/components/qt_hmi/References/Look/Resources/USB/play_9_9.png Binary files differdeleted file mode 100644 index f185e94461..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/USB/play_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Vehicle/cal.png b/src/components/qt_hmi/References/Look/Resources/Vehicle/cal.png Binary files differdeleted file mode 100644 index 94d5d44b5a..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Vehicle/cal.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Vehicle/folders.png b/src/components/qt_hmi/References/Look/Resources/Vehicle/folders.png Binary files differdeleted file mode 100644 index c5985043df..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Vehicle/folders.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Vehicle/key_car.png b/src/components/qt_hmi/References/Look/Resources/Vehicle/key_car.png Binary files differdeleted file mode 100644 index a8e5d9d66c..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Vehicle/key_car.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/Vehicle/sun.png b/src/components/qt_hmi/References/Look/Resources/Vehicle/sun.png Binary files differdeleted file mode 100644 index 6424d9d210..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/Vehicle/sun.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/keyPressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/buttons/keyPressed_9_9.png Binary files differdeleted file mode 100644 index b0f8863423..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/keyPressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/keySelected.png b/src/components/qt_hmi/References/Look/Resources/buttons/keySelected.png Binary files differdeleted file mode 100644 index d264e201ad..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/keySelected.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/key_9_9.png b/src/components/qt_hmi/References/Look/Resources/buttons/key_9_9.png Binary files differdeleted file mode 100644 index 3add8dd21c..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/key_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/muteActive.png b/src/components/qt_hmi/References/Look/Resources/buttons/muteActive.png Binary files differdeleted file mode 100644 index e14b9fb751..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/muteActive.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/muteInActive.png b/src/components/qt_hmi/References/Look/Resources/buttons/muteInActive.png Binary files differdeleted file mode 100644 index a2c1cb831a..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/muteInActive.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/mutePressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/buttons/mutePressed_9_9.png Binary files differdeleted file mode 100644 index 9a9ae59346..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/mutePressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/mute_9_9.png b/src/components/qt_hmi/References/Look/Resources/buttons/mute_9_9.png Binary files differdeleted file mode 100644 index f7306d96ae..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/mute_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/presetPressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/buttons/presetPressed_9_9.png Binary files differdeleted file mode 100644 index fd7606fbd6..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/presetPressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/presetSelected.png b/src/components/qt_hmi/References/Look/Resources/buttons/presetSelected.png Binary files differdeleted file mode 100644 index 2b567e237e..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/presetSelected.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/preset_9_9.png b/src/components/qt_hmi/References/Look/Resources/buttons/preset_9_9.png Binary files differdeleted file mode 100644 index 58c296a4e4..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/preset_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/zoomPressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/buttons/zoomPressed_9_9.png Binary files differdeleted file mode 100644 index c67d2c7c55..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/zoomPressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/zoomSelected.png b/src/components/qt_hmi/References/Look/Resources/buttons/zoomSelected.png Binary files differdeleted file mode 100644 index 36bba93d8c..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/zoomSelected.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/buttons/zoom_9_9.png b/src/components/qt_hmi/References/Look/Resources/buttons/zoom_9_9.png Binary files differdeleted file mode 100644 index 0df4d25109..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/buttons/zoom_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/climate/ButtonActive_0_0.png b/src/components/qt_hmi/References/Look/Resources/climate/ButtonActive_0_0.png Binary files differdeleted file mode 100644 index 55e2cac50a..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/climate/ButtonActive_0_0.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/climate/ButtonInActive_0_0.png b/src/components/qt_hmi/References/Look/Resources/climate/ButtonInActive_0_0.png Binary files differdeleted file mode 100644 index 9f84a139e6..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/climate/ButtonInActive_0_0.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/climate/ButtonPressed_9_9.png b/src/components/qt_hmi/References/Look/Resources/climate/ButtonPressed_9_9.png Binary files differdeleted file mode 100644 index 691f6e3bf8..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/climate/ButtonPressed_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/climate/Button_9_9.png b/src/components/qt_hmi/References/Look/Resources/climate/Button_9_9.png Binary files differdeleted file mode 100644 index 411f003938..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/climate/Button_9_9.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/climate/ring.png b/src/components/qt_hmi/References/Look/Resources/climate/ring.png Binary files differdeleted file mode 100644 index 9908bf71be..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/climate/ring.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/dn-arrow.png b/src/components/qt_hmi/References/Look/Resources/dn-arrow.png Binary files differdeleted file mode 100644 index bb1322277d..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/dn-arrow.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/g136p.png b/src/components/qt_hmi/References/Look/Resources/g136p.png Binary files differdeleted file mode 100644 index 1d49f184a1..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/g136p.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/g137p.png b/src/components/qt_hmi/References/Look/Resources/g137p.png Binary files differdeleted file mode 100644 index 8e674d75b7..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/g137p.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/menu/arrow.png b/src/components/qt_hmi/References/Look/Resources/menu/arrow.png Binary files differdeleted file mode 100644 index 4c215b2bf7..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/menu/arrow.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/menu/car.png b/src/components/qt_hmi/References/Look/Resources/menu/car.png Binary files differdeleted file mode 100644 index 18a21656d0..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/menu/car.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/menu/gear.png b/src/components/qt_hmi/References/Look/Resources/menu/gear.png Binary files differdeleted file mode 100644 index b1eeba091c..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/menu/gear.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/menu/notes.png b/src/components/qt_hmi/References/Look/Resources/menu/notes.png Binary files differdeleted file mode 100644 index 8b4a92fffc..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/menu/notes.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/menu/phone.png b/src/components/qt_hmi/References/Look/Resources/menu/phone.png Binary files differdeleted file mode 100644 index 346f36cc33..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/menu/phone.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/menu/snow.png b/src/components/qt_hmi/References/Look/Resources/menu/snow.png Binary files differdeleted file mode 100644 index 54756bb2f6..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/menu/snow.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/phone/DNDoff.png b/src/components/qt_hmi/References/Look/Resources/phone/DNDoff.png Binary files differdeleted file mode 100644 index 04bb2476c1..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/phone/DNDoff.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/phone/DNDon.png b/src/components/qt_hmi/References/Look/Resources/phone/DNDon.png Binary files differdeleted file mode 100644 index 56b9fe7065..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/phone/DNDon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/phone/contacts.png b/src/components/qt_hmi/References/Look/Resources/phone/contacts.png Binary files differdeleted file mode 100644 index a16d518ba8..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/phone/contacts.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/phone/keypad.png b/src/components/qt_hmi/References/Look/Resources/phone/keypad.png Binary files differdeleted file mode 100644 index 1792c8fac8..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/phone/keypad.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/phone/messages.png b/src/components/qt_hmi/References/Look/Resources/phone/messages.png Binary files differdeleted file mode 100644 index b5cbb8e8af..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/phone/messages.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/phone/more.png b/src/components/qt_hmi/References/Look/Resources/phone/more.png Binary files differdeleted file mode 100644 index 908ebf654e..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/phone/more.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/phone/recent.png b/src/components/qt_hmi/References/Look/Resources/phone/recent.png Binary files differdeleted file mode 100644 index db54c2f16e..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/phone/recent.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/phone/texts.png b/src/components/qt_hmi/References/Look/Resources/phone/texts.png Binary files differdeleted file mode 100644 index 31c024b1df..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/phone/texts.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/scrollbar.png b/src/components/qt_hmi/References/Look/Resources/scrollbar.png Binary files differdeleted file mode 100644 index c849382ae2..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/scrollbar.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/slider.png b/src/components/qt_hmi/References/Look/Resources/slider.png Binary files differdeleted file mode 100644 index 83c54f854a..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/slider.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/Resources/up-arrow.png b/src/components/qt_hmi/References/Look/Resources/up-arrow.png Binary files differdeleted file mode 100644 index b0e710a409..0000000000 --- a/src/components/qt_hmi/References/Look/Resources/up-arrow.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/TextHardkey.qml b/src/components/qt_hmi/References/Look/TextHardkey.qml deleted file mode 100644 index b73b991164..0000000000 --- a/src/components/qt_hmi/References/Look/TextHardkey.qml +++ /dev/null @@ -1,52 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "Widgets"
-
-FHardwareKey {
- width: 50
- height: 50
-
- property alias label : theText.text
-
- Rectangle {
- anchors.fill: parent
- border.color: "black"
- border.width: 1
- radius: 10
- smooth: true
-
- gradient: Gradient {
- GradientStop {
- id: s1
- color: "#FF646464"
- position: 0.0
- }
- GradientStop {
- id: s2
- color: "#FF484848"
- position: 0.8
- }
- GradientStop {
- id: s3
- color: "#FF323232"
- position: 1.0
- }
- }
- }
-
- CondText {
- id: theText
- anchors.fill: parent
- horizontalAlignment: Text.AlignHCenter
-
- }
-
-
- FViewUseCaseSimple {
- condition: pressed === true
- PropertyChanges { target: s1; position: 1.0 }
- PropertyChanges { target: s2; position: 0.2}
- PropertyChanges { target: s3; position: 0.0 }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Views/AM.qml b/src/components/qt_hmi/References/Look/Views/AM.qml deleted file mode 100644 index 2ed7d8085d..0000000000 --- a/src/components/qt_hmi/References/Look/Views/AM.qml +++ /dev/null @@ -1,86 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: FMLayout {
- id:home
- albumInfoBtn.vis: false
- albumInfoImg.visible: false
- alertBtn.vis: false
- browseBtn.vis: false
- replayBtn.vis: false
- preset1Btn.text: "WJR"
- preset2Btn.text: "1130"
- preset3Btn.text: "950"
- preset4Btn.text: "WWJ"
- preset5Btn.text: "WXYZ"
- preset6Btn.text: "1330"
- artistTxt.text: ""
- stationTxt.text: ""
- trackTxt.text: "950"
-
-
- }
-
-
- }
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:home.sourceBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChange" }
- },
- FTrgTouchArea { touchArea:home.browseBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.albumInfoBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset1Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset2Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset3Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset4Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset5Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset6Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.replayBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.tuneBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.presetsBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/AMPCA.qml b/src/components/qt_hmi/References/Look/Views/AMPCA.qml deleted file mode 100644 index 9a0a99f832..0000000000 --- a/src/components/qt_hmi/References/Look/Views/AMPCA.qml +++ /dev/null @@ -1,122 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- attachedViews: ["PCAstatusBar"]
-
-
-
-
- view: FView {
- id: v
-
- layout: FMLayoutPCA {
- id:home
- sourceBtn.text: "AM Radio"
- freqId: "AM"
- sourceBtn.textWidth: 100
- curPreset: dataPool.currAMpreset
- hdBtn.visible: false
-
- listModel: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- }
-
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: preset1; menuText: "1130"; menuData: false; }
- FMenuElement { id: preset2; menuText: "950"; menuData: false }
- FMenuElement { id: preset3; menuText: "760"; menuData: true }
- FMenuElement { id: preset4; menuText: "1270"; menuData: false }
- FMenuElement { id: preset5; menuText: "1310"; menuData: false }
- FMenuElement { id: preset6; menuText: "800"; menuData: false }
- FMenuElement { id: preset7; menuText: "610"; menuData: false }
- FMenuElement { id: preset8; menuText: "820"; menuData: false}
- }
- }
-
-
-
- triggers: [
-
-
-
- FTrgEntry{
- FGrdCondition{condition: dataPool.currAMpreset === 1
- FActScriptCall { onScript: home.stationTxt = "1130" }
- }
- FGrdCondition{condition: dataPool.currAMpreset === 2
- FActScriptCall { onScript: home.stationTxt = "950" }
- }
- FGrdCondition{condition: dataPool.currAMpreset === 3
- FActScriptCall { onScript: home.stationTxt = "760" }
- }
- FGrdCondition{condition: dataPool.currAMpreset === 4
- FActScriptCall { onScript: home.stationTxt = "1270" }
- }
- FGrdCondition{condition: dataPool.currAMpreset === 5
- FActScriptCall { onScript: home.stationTxt = "1310" }
- }
- FGrdCondition{condition: dataPool.currAMpreset === 6
- FActScriptCall { onScript: home.stationTxt = "800" }
- }
- FGrdCondition{condition: dataPool.currAMpreset === 7
- FActScriptCall { onScript: home.stationTxt = "610" }
- }
- FGrdCondition{condition: dataPool.currAMpreset === 8
- FActScriptCall { onScript: home.stationTxt = "820" }
- }
- },
- FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChangePCA" }
- },
- FTrgMenuElement { menuElement: preset1
- FActScriptCall { onScript: home.stationTxt = "1130" }
- FActScriptCall { onScript: dataPool.currAMpreset = 1 }
- },
- FTrgMenuElement { menuElement: preset2
- FActScriptCall { onScript: home.stationTxt = "950" }
- FActScriptCall { onScript: dataPool.currAMpreset = 2 }
- },
- FTrgMenuElement { menuElement: preset3
- FActScriptCall { onScript: home.stationTxt = "760" }
- FActScriptCall { onScript: dataPool.currAMpreset = 3 }
- },
- FTrgMenuElement { menuElement: preset4
- FActScriptCall { onScript: home.stationTxt = "1270" }
- FActScriptCall { onScript: dataPool.currAMpreset = 4 }
- },
- FTrgMenuElement { menuElement: preset5
- FActScriptCall { onScript: home.stationTxt = "1310" }
- FActScriptCall { onScript: dataPool.currAMpreset = 5 }
- },
- FTrgMenuElement { menuElement: preset6
- FActScriptCall { onScript: home.stationTxt = "800" }
- FActScriptCall { onScript: dataPool.currAMpreset = 6 }
- },
- FTrgMenuElement { menuElement: preset7
- FActScriptCall { onScript: home.stationTxt = "610" }
- FActScriptCall { onScript: dataPool.currAMpreset = 7 }
- },
- FTrgMenuElement { menuElement: preset8
- FActScriptCall { onScript: home.stationTxt = "820" }
- FActScriptCall { onScript: dataPool.currAMpreset = 8 }
- },
- FTrgListModel { id: trgList; model: menuItemData
- FActScriptCall { onScript: { FLogger.debug("Test", trgList.element.menuText + ", index: " + trgList.index) } }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/AlphaSortPCA.qml b/src/components/qt_hmi/References/Look/Views/AlphaSortPCA.qml deleted file mode 100644 index 0158451113..0000000000 --- a/src/components/qt_hmi/References/Look/Views/AlphaSortPCA.qml +++ /dev/null @@ -1,151 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- attachedViews: ["PCAstatusBar"]
-
-
-
-
- view: FView {
- id: v
-
- layout: AlphaSortLayout {
- id:home
- phonEntry: dataPool.filterPhone
-
- }
-
-
- }
-
- triggers: [
-
- FTrgEntry{
- FActScriptCall { onScript: dataPool.filterPhone= ""}
- },
- FTrgTouchArea { touchArea:home.a; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "a"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.b; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "b"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.c; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "c"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.d; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "d"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.e; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "e"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.f; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "f"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.g; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "g"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.h; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "h"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.i; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "i"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.j; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "j"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.k; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "k"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.l; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "l"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.m; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "m"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.n; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "n"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.o; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "o"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.p; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "p"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.q; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "q"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.r; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "r"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.s; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "s"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.t; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "t"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.u; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "u"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.v; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "v"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.w; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "w"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.xB; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "x"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.yB; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "y"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.zB; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "z"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.num; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.filterPhone= "a"}
- FActViewShow { view: "PhoneContactsListView" }
- },
- FTrgTouchArea { touchArea:home.close; touchAction: TA.Out
-
- FActViewShow { view: "PhonePCA" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-
-}
diff --git a/src/components/qt_hmi/References/Look/Views/AuxPCA.qml b/src/components/qt_hmi/References/Look/Views/AuxPCA.qml deleted file mode 100644 index 478d1e55d9..0000000000 --- a/src/components/qt_hmi/References/Look/Views/AuxPCA.qml +++ /dev/null @@ -1,41 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: FMLayoutPCA {
- id:home
- sourceBtn.text: "Line In"
- sourceBtn.textWidth: 90
- }
-
-
- }
-
-
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChangePCA" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/BT_AudioPCA.qml b/src/components/qt_hmi/References/Look/Views/BT_AudioPCA.qml deleted file mode 100644 index 83a83147f0..0000000000 --- a/src/components/qt_hmi/References/Look/Views/BT_AudioPCA.qml +++ /dev/null @@ -1,48 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: USBLayoutPCA {
- id:home
- sourceBtn.text: "BT Audio"
- sourceBtn.textWidth: 100
- playing: true
- }
-
-
- }
-
-
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChangePCA" }
- },
- FTrgTouchArea { touchArea:home.play; touchAction: TA.Out
- FActScriptCall { onScript: home.playing = false }
- },
- FTrgTouchArea { touchArea:home.pause; touchAction: TA.Out
- FActScriptCall { onScript: home.playing = true }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/CDPCA.qml b/src/components/qt_hmi/References/Look/Views/CDPCA.qml deleted file mode 100644 index bc6e6ab2fd..0000000000 --- a/src/components/qt_hmi/References/Look/Views/CDPCA.qml +++ /dev/null @@ -1,48 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: USBLayoutPCA {
- id:home
- sourceBtn.text: "CD"
- sourceBtn.textWidth: 40
- playing: true
- }
-
-
- }
-
-
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChangePCA" }
- },
- FTrgTouchArea { touchArea:home.play; touchAction: TA.Out
- FActScriptCall { onScript: home.playing = false }
- },
- FTrgTouchArea { touchArea:home.pause; touchAction: TA.Out
- FActScriptCall { onScript: home.playing = true }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/Chrome.qml b/src/components/qt_hmi/References/Look/Views/Chrome.qml deleted file mode 100644 index e8029fb10a..0000000000 --- a/src/components/qt_hmi/References/Look/Views/Chrome.qml +++ /dev/null @@ -1,55 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 8
-
-
-
- view: FView {
- id: v
-
- layout: ChromeLayout {
- id:chrome
- button2.indicatorState: condPool.settingsOpen
-
- }
-
-
- }
-
- /*FViewUseCaseSimple{condition:condPool.settingsOpen
- PropertyChanges {
- target: chrome.button2; indicatorState: true
- }
- }*/
-
- triggers: [
- FTrgEntry {
-
- },
-
- FTrgHardwareKey { hardkeys: hk_OnOff; keyAction: HK.In
- FActEventFire { event: closeNormalScreens }
- FActViewShow { view: "Off" }
- },
- FTrgTouchArea { touchArea:chrome.button1; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:chrome.button2; touchAction: TA.Out
- FActViewShow { view: "List" }
- },
- FTrgTouchArea { touchArea:chrome.button3; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/ClimatePCA.qml b/src/components/qt_hmi/References/Look/Views/ClimatePCA.qml deleted file mode 100644 index 812e6afac3..0000000000 --- a/src/components/qt_hmi/References/Look/Views/ClimatePCA.qml +++ /dev/null @@ -1,74 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
-
-
- view: FView {
- id: v
-
- layout: ClimatePCALayout {
- id:climate
- dualBtnSt: condPool.dualBtnSt
- drvHeatSeatSt: condPool.drvHeatSeatSt
- drvCoolSeatSt: condPool.drvCoolSeatSt
- passCoolSeatSt: condPool.passCoolSeatSt
- passHeatSeatSt: condPool.passHeatSeatSt
- heatWheelSt: condPool.heatWheelSt
- heatWinSheildSt: condPool.heatWinSheildSt
- defrostSt: condPool.defrostSt
- pannelSt: condPool.pannelSt
- floorSt: condPool.floorSt
-
- }
-
- }
-
-
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:climate.dualBtn; touchAction: TA.Out
- FActScriptCall { onScript: condPool.dualBtnSt = !condPool.dualBtnSt }
- },
- FTrgTouchArea { touchArea:climate.drvHeatSeat; touchAction: TA.Out
- FActScriptCall { onScript: condPool.drvHeatSeatSt = !condPool.drvHeatSeatSt }
- },
- FTrgTouchArea { touchArea:climate.drvCoolSeat; touchAction: TA.Out
- FActScriptCall { onScript: condPool.drvCoolSeatSt = !condPool.drvCoolSeatSt }
- },
- FTrgTouchArea { touchArea:climate.passCoolSeat; touchAction: TA.Out
- FActScriptCall { onScript: condPool.passCoolSeatSt = !condPool.passCoolSeatSt }
- },
- FTrgTouchArea { touchArea:climate.passHeatSeat; touchAction: TA.Out
- FActScriptCall { onScript: condPool.passHeatSeatSt = !condPool.passHeatSeatSt }
- },
- FTrgTouchArea { touchArea:climate.heatWheel; touchAction: TA.Out
- FActScriptCall { onScript: condPool.heatWheelSt = !condPool.heatWheelSt }
- },
- FTrgTouchArea { touchArea:climate.heatWinSheild; touchAction: TA.Out
- FActScriptCall { onScript: condPool.heatWinSheildSt = !condPool.heatWinSheildSt }
- },
- FTrgTouchArea { touchArea:climate.defrost; touchAction: TA.Out
- FActScriptCall { onScript: condPool.defrostSt = !condPool.defrostSt }
- },
- FTrgTouchArea { touchArea:climate.pannel; touchAction: TA.Out
- FActScriptCall { onScript: condPool.pannelSt = !condPool.pannelSt }
- },
- FTrgTouchArea { touchArea:climate.floor; touchAction: TA.Out
- FActScriptCall { onScript: condPool.floorSt = !condPool.floorSt }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/ControlMirror.qml b/src/components/qt_hmi/References/Look/Views/ControlMirror.qml deleted file mode 100644 index 4cd1472c0d..0000000000 --- a/src/components/qt_hmi/References/Look/Views/ControlMirror.qml +++ /dev/null @@ -1,55 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 5
- property string dirTuneEntry: ""
-
-
- FTimer { id: popupEnd; interval: 2500; repeat: false }
-
- view: FView {
- id: v
-
- layout: ControlMirrorLayout {
- id:home
- }
-
-
- }
-
-
-
-
- triggers: [
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- },
- FTrgEntry{
- FActTimer { timer: popupEnd; action: TM.Start }
- },
- FTrgTimer{timer: popupEnd
- FActTimer { timer: popupEnd; action: TM.Stop }
- FActViewHide { }
- },
- FTrgHardwareKey { hardkeys: buttonUp; keyAction: HK.In
- FActTimer { timer: popupEnd; action: TM.Restart }
- // FActScriptCall { onScript: condPool.climateOnOff = true }
- FGrdCondition { condition: dataPool.drvTemp !== 80
- FActScriptCall { onScript: dataPool.drvTemp = (dataPool.drvTemp+1) }
- }
- },
- FTrgHardwareKey { hardkeys: buttonDown; keyAction: HK.In
- FActTimer { timer: popupEnd; action: TM.Restart }
- // FActScriptCall { onScript: condPool.climateOnOff = true }
- FGrdCondition { condition: dataPool.drvTemp !== 65
- FActScriptCall { onScript: dataPool.drvTemp = (dataPool.drvTemp-1) }
- }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/FM.qml b/src/components/qt_hmi/References/Look/Views/FM.qml deleted file mode 100644 index 6aa98303bd..0000000000 --- a/src/components/qt_hmi/References/Look/Views/FM.qml +++ /dev/null @@ -1,94 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: FMLayout {
- id:home
- preset1Btn.text: dataPool.fm1pre1
- preset2Btn.text: dataPool.fm1pre2
- preset3Btn.text: dataPool.fm1pre3
- preset4Btn.text: dataPool.fm1pre4
- preset5Btn.text: dataPool.fm1pre5
- preset6Btn.text: dataPool.fm1pre6
- trackTxt.text: dataPool.currStation
- stationTxt.text: dataPool.currStatText
- artistTxt.text: dataPool.currSong
- albumInfoBtn.bitmap: dataPool.currAlbumArt
- }
-
-
- }
-
-
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChange" }
- },
- FTrgTouchArea { touchArea:home.browseBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.albumInfoBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset1Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre1 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat1}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song1 }
- },
- FTrgTouchArea { touchArea:home.preset2Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre2 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat2}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song2 }
- },
- FTrgTouchArea { touchArea:home.preset3Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre3 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat3}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song3 }
- },
- FTrgTouchArea { touchArea:home.preset4Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre4 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat4}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song4 }
- },
- FTrgTouchArea { touchArea:home.preset5Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre5 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat5}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song5 }
- },
- FTrgTouchArea { touchArea:home.preset6Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre6 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat6}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song6 }
- },
- FTrgTouchArea { touchArea:home.replayBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.tuneBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.presetsBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/FMPCA.qml b/src/components/qt_hmi/References/Look/Views/FMPCA.qml deleted file mode 100644 index 1e9a46a0b3..0000000000 --- a/src/components/qt_hmi/References/Look/Views/FMPCA.qml +++ /dev/null @@ -1,175 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- attachedViews: ["PCAstatusBar"]
- property int currHD: 1
- property int totalHD: 4
-
-
-
- view: FView {
- id: v
-
- layout: FMLayoutPCA {
- id:home
- sourceBtn.text: "FM Radio"
- sourceBtn.textWidth: 100
- freqId: "FM"
- curHD: currHD
- totHD: totalHD
- curPreset: dataPool.currFMpreset
-
- listModel: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- }
-
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: preset1; menuText: "96.3"; menuData: false; }
- FMenuElement { id: preset2; menuText: "107.9"; menuData: false }
- FMenuElement { id: preset3; menuText: "104.3"; menuData: false }
- FMenuElement { id: preset4; menuText: "101.9"; menuData: false }
- FMenuElement { id: preset5; menuText: "97.1"; menuData: false }
- FMenuElement { id: preset6; menuText: "91.7"; menuData: false }
- FMenuElement { id: preset7; menuText: "101.1"; menuData: false }
- FMenuElement { id: preset8; menuText: "91.9"; menuData: false}
- }
- }
-
-
- triggers: [
-
- FTrgCondition{ condition: home.moving === true
- FActScriptCall { onScript: home.page1=!home.page1 }
- },
- FTrgEntry{
- FGrdCondition{condition: dataPool.currFMpreset === 1
- FActScriptCall { onScript: home.stationTxt = "96.3" }
- }
- FGrdCondition{condition: dataPool.currFMpreset === 2
- FActScriptCall { onScript: home.stationTxt = "107.9" }
- }
- FGrdCondition{condition: dataPool.currFMpreset === 3
- FActScriptCall { onScript: home.stationTxt = "104.3" }
- }
- FGrdCondition{condition: dataPool.currFMpreset === 4
- FActScriptCall { onScript: home.stationTxt = "101.9" }
- }
- FGrdCondition{condition: dataPool.currFMpreset === 5
- FActScriptCall { onScript: home.stationTxt = "97.1" }
- }
- FGrdCondition{condition: dataPool.currFMpreset === 6
- FActScriptCall { onScript: home.stationTxt = "91.7" }
- }
- FGrdCondition{condition: dataPool.currFMpreset === 7
- FActScriptCall { onScript: home.stationTxt = "101.1" }
- }
- FGrdCondition{condition: dataPool.currFMpreset === 8
- FActScriptCall { onScript: home.stationTxt = "91.9" }
- }
- },
- FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChangePCA" }
- },
- FTrgTouchArea { touchArea:home.hdBtn.touchBtn; touchAction: TA.Out
- FGrdCondition { condition: currHD === totalHD
- FActScriptCall { onScript: currHD = 1 }
- }
- FGrdCondition { condition: currHD !== totalHD
- FActScriptCall { onScript: currHD ++}
- }
- },
- FTrgMenuElement { menuElement: preset1
- FActScriptCall { onScript: home.stationTxt = "96.3" }
- FActScriptCall { onScript: dataPool.currFMpreset = 1 }
- },
- FTrgMenuElement { menuElement: preset2
- FActScriptCall { onScript: home.stationTxt = "107.9" }
- FActScriptCall { onScript: dataPool.currFMpreset = 2 }
- },
- FTrgMenuElement { menuElement: preset3
- FActScriptCall { onScript: home.stationTxt = "104.3" }
- FActScriptCall { onScript: dataPool.currFMpreset = 3 }
- },
- FTrgMenuElement { menuElement: preset4
- FActScriptCall { onScript: home.stationTxt = "101.9" }
- FActScriptCall { onScript: dataPool.currFMpreset = 4 }
- },
- FTrgMenuElement { menuElement: preset5
- FActScriptCall { onScript: home.stationTxt = "97.1" }
- FActScriptCall { onScript: dataPool.currFMpreset = 5 }
- },
- FTrgMenuElement { menuElement: preset6
- FActScriptCall { onScript: home.stationTxt = "91.7" }
- FActScriptCall { onScript: dataPool.currFMpreset = 6 }
- },
- FTrgMenuElement { menuElement: preset7
- FActScriptCall { onScript: home.stationTxt = "101.1" }
- FActScriptCall { onScript: dataPool.currFMpreset = 7 }
- },
- FTrgMenuElement { menuElement: preset8
- FActScriptCall { onScript: home.stationTxt = "91.9" }
- FActScriptCall { onScript: dataPool.currFMpreset = 8 }
- },
- FTrgListModel { id: trgList; model: menuItemData
- FActScriptCall { onScript: { FLogger.debug("Test", trgList.element.menuText + ", index: " + trgList.index) } }
- },
- /*FTrgTouchArea { touchArea:home.browseBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.albumInfoBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset1Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre1 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat1}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song1 }
- },
- FTrgTouchArea { touchArea:home.preset2Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre2 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat2}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song2 }
- },
- FTrgTouchArea { touchArea:home.preset3Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre3 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat3}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song3 }
- },
- FTrgTouchArea { touchArea:home.preset4Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre4 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat4}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song4 }
- },
- FTrgTouchArea { touchArea:home.preset5Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre5 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat5}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song5 }
- },
- FTrgTouchArea { touchArea:home.preset6Btn; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currStation = dataPool.fm1pre6 }
- FActScriptCall { onScript:dataPool.currStatText = dataPool.fm1stat6}
- FActScriptCall { onScript:dataPool.currSong=dataPool.fm1song6 }
- },
- FTrgTouchArea { touchArea:home.replayBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
-
- FTrgTouchArea { touchArea:home.presetsBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },*/
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/GenListHandling.qml b/src/components/qt_hmi/References/Look/Views/GenListHandling.qml deleted file mode 100644 index 9abdb899fc..0000000000 --- a/src/components/qt_hmi/References/Look/Views/GenListHandling.qml +++ /dev/null @@ -1,14 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-
-FState {
-
-
- triggers: [
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/GridMenuPCA.qml b/src/components/qt_hmi/References/Look/Views/GridMenuPCA.qml deleted file mode 100644 index fd43775f0d..0000000000 --- a/src/components/qt_hmi/References/Look/Views/GridMenuPCA.qml +++ /dev/null @@ -1,87 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-
-FStateView {
- id:sv
- priority: 2
-
- view: FView {
- //viewClass: baseScreen
- layout: TileBackImgLayoutPCA {
- id:l
- itemWidth: 266
-
-
-
- listWrap: false
- list_data: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- list_itemWidget: GridViewImgItemWidget {
- width: 266
- }
- }
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: climate; menuIcon: "menu/snow.png"}
- FMenuElement { id: phone; menuIcon: "menu/phone.png" }
- FMenuElement { id: navigation; menuIcon: "menu/arrow.png" }
- FMenuElement { id: myVeh; menuIcon: "menu/car.png" }
- FMenuElement { id: entertainment; menuIcon: "menu/notes.png" }
- FMenuElement { id: settings; menuIcon: "menu/gear.png" }
- }
-
- FViewUseCaseSimple { condition: sv.isInEntry
- PropertyChanges { target: l; list_data: null }
- }
- }
-
- baseBehavior: GenListHandling {}
-
- triggers: [
- // Example for a menu element trigger. This will only work for FMenuModels.
- FTrgMenuElement { menuElement: climate
- FActViewShow { view: "ClimatePCA" }
- },
- FTrgMenuElement { menuElement: phone
- FActViewShow { view: "PhonePCA" }
- },
- FTrgMenuElement { menuElement: navigation
- FActViewShow { view: "NavNoRoute" }
- },
- FTrgMenuElement { menuElement: myVeh
- FActViewShow { view: "MyVehiclePCA" }
- },
- FTrgMenuElement { menuElement: entertainment
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgMenuElement { menuElement: settings
- },
- FTrgListModel { id: trgList; model: menuItemData
- FActScriptCall { onScript: { FLogger.debug("Test", trgList.element.menuText + ", index: " + trgList.index) } }
- },
- FTrgEntry {
- FActScriptCall { onScript: dataPool.mainPCAmenuShown = true }
- FActScriptCall { onScript: { FLogger.debug("Test", "Entry") } }
- },
- FTrgEntryComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "EntryComplete") } }
- },
- FTrgExit {
- FActScriptCall { onScript: dataPool.mainPCAmenuShown = false }
- FActScriptCall { onScript: { FLogger.debug("Test", "Exit") } }
- },
- FTrgExitComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "ExitComplete") } }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/Home.qml b/src/components/qt_hmi/References/Look/Views/Home.qml deleted file mode 100644 index 3a7edc353d..0000000000 --- a/src/components/qt_hmi/References/Look/Views/Home.qml +++ /dev/null @@ -1,50 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: HomeLayout {
- id:home
-
- }
-
-
- }
-
- triggers: [
-
-
- /*FTrgHardwareKey { hardkeys: hk_OnOff; keyAction: HK.In
- FActEventFire { event: closeNormalScreens }
- FActViewShow { view: "Off" }
- },*/
- FTrgTouchArea { touchArea:home.button1; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.button2; touchAction: TA.Out
- FActViewShow { view: "RadioEventHandling" }
- },
- FTrgTouchArea { touchArea:home.button3; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.button4; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/List.qml b/src/components/qt_hmi/References/Look/Views/List.qml deleted file mode 100644 index 5f63b77461..0000000000 --- a/src/components/qt_hmi/References/Look/Views/List.qml +++ /dev/null @@ -1,74 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
-
-
-
- view: FView {
- id: v
-
- layout: ListLayout {
- id:list
-
-
- listWrap: true
- list_data: menuItemData
- list_itemWidget: MenuListItemWidget { }
-
- }
-
-
- }
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: menuAudio; menuText: "Audio Settings"; menuType: FMenuElement.Submenu
- FMenuElement { id: menuAudio1; menuText: "Audio 1"; menuType: FMenuElement.Submenu
- FMenuElement { id: menuAudio11; menuText: "Audio 11"; menuType: FMenuElement.Popup }
- FMenuElement { id: menuAudio12; menuText: "Audio 12"; menuType: FMenuElement.Popup }
- }
- FMenuElement { id: menuAudio2; menuText: "Audio 2"; menuType: FMenuElement.Popup }
- FMenuElement { id: menuAudio3; menuText: "Audio 3"; menuType: FMenuElement.Popup }
- }
- FMenuElement { id: menuVehicle; menuText: "Vehicle Settings"; menuType: FMenuElement.Submenu; isVisible: false }
- FMenuElement { id: menuClock; menuText: "Clock Settings"; menuType: FMenuElement.Submenu }
- FMenuElement { id: menuDisplay; menuText: "Display Settings"; menuType: FMenuElement.Submenu }
- FMenuElement { id: menuMC; menuText: "Message Centre"; menuType: FMenuElement.Popup }
- }
-
- triggers: [
- FTrgEntry {
- FActScriptCall {onScript: condPool.settingsOpen=true}
-
- },
- FTrgExit {
- FActScriptCall {onScript: condPool.settingsOpen=false}
- },
-
- /*FTrgHardwareKey { hardkeys: hk_OnOff; keyAction: HK.In
- FActEventFire { event: closeNormalScreens }
- FActViewShow { view: "Off" }
- },*/
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- },
-
-
- // Example for a menu element trigger. This will only work for FMenuModels.
- FTrgMenuElement { menuElement: menuAudio
- FActScriptCall { onScript: menuAudio.isOpened = !menuAudio.isOpened }
- },
- // Example to use a list model trigger. This will work for all classes derived from FAbstractListModel (E.g. TreeModel, MenuModel)
- FTrgListModel { id: trgList; model: menuItemData
- FActScriptCall { onScript: { FLogger.debug("Test", trgList.element.menuText + ", index: " + trgList.index) } }
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/MenuTopLevelGrid.qml b/src/components/qt_hmi/References/Look/Views/MenuTopLevelGrid.qml deleted file mode 100644 index ce477a12a7..0000000000 --- a/src/components/qt_hmi/References/Look/Views/MenuTopLevelGrid.qml +++ /dev/null @@ -1,85 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-
-FStateView {
- id:sv
- priority: 2
-
- view: FView {
- //viewClass: baseScreen
- layout: TC1_B1_Grid {
- id:l
-
-
- listWrap: false
- list_data: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- list_itemWidget: GridViewItemWidget {
-
- }
- }
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: menuAudio; menuText: "AM"; menuType: FMenuElement.Submenu}
- FMenuElement { id: menuVehicle; menuText: "FM"; menuType: FMenuElement.Submenu; isVisible: false}
- FMenuElement { id: menuClock; menuText: "Sirius"; menuType: FMenuElement.Submenu }
- FMenuElement { id: menuDisplay; menuText: "CD"; menuType: FMenuElement.Submenu }
- FMenuElement { id: menuMC; menuText: "BT Audio"; menuType: FMenuElement.Popup }
- FMenuElement { menuText: "USB"; menuType: FMenuElement.Popup }
- FMenuElement { menuText: "Dummy 2"; menuType: FMenuElement.Popup }
- FMenuElement { menuText: "Dummy 3"; menuType: FMenuElement.Popup }
- FMenuElement { menuText: "Dummy 4"; menuType: FMenuElement.Popup }
- FMenuElement { menuText: "Dummy 5"; menuType: FMenuElement.Popup }
- FMenuElement { menuText: "Dummy 6"; menuType: FMenuElement.Popup }
- FMenuElement { menuText: "Dummy 7"; menuType: FMenuElement.Popup }
- FMenuElement { menuText: "Dummy 8"; menuType: FMenuElement.Popup }
- }
-
- FViewUseCaseSimple { condition: sv.isInEntry
- PropertyChanges { target: l; list_data: null }
- }
- }
-
- baseBehavior: GenListHandling {}
-
- triggers: [
- // Example for a menu element trigger. This will only work for FMenuModels.
- FTrgMenuElement { menuElement: menuAudio
- FGrdCondition { condition: menuAudio.isEnabled
- FActViewShow { view: "MenuAudioSettings"; animation: "AnimWiperRight" }
- }
- },
- FTrgMenuElement { menuElement: menuClock
- FActViewShow { view: "MenuTopLevelMenu" }
- },
- FTrgMenuElement { menuElement: menuVehicle
- FActViewShow { view: "MenuTopLevelMenu"; animation: "AnimWiperRight" }
- },
- // Example to use a list model trigger. This will work for all classes derived from FAbstractListModel (E.g. TreeModel, MenuModel)
- FTrgListModel { id: trgList; model: menuItemData
- FActScriptCall { onScript: { FLogger.debug("Test", trgList.element.menuText + ", index: " + trgList.index) } }
- },
- FTrgEntry {
- FActScriptCall { onScript: { FLogger.debug("Test", "Entry") } }
- },
- FTrgEntryComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "EntryComplete") } }
- },
- FTrgExit {
- FActScriptCall { onScript: { FLogger.debug("Test", "Exit") } }
- },
- FTrgExitComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "ExitComplete") } }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/MyVehiclePCA.qml b/src/components/qt_hmi/References/Look/Views/MyVehiclePCA.qml deleted file mode 100644 index 6ecc512b60..0000000000 --- a/src/components/qt_hmi/References/Look/Views/MyVehiclePCA.qml +++ /dev/null @@ -1,85 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-
-FStateView {
- id:sv
- priority: 2
-
- view: FView {
- //viewClass: baseScreen
- layout: TileBackImgLayoutPCA {
- id:l
-
-
- //useClose: true
- listWrap: false
- list_data: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- list_itemWidget: GridViewImgItemWidget {
-
- }
- }
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: ev; menuIcon: "Vehicle/EV Icon.png"}
- FMenuElement { id: aLight; menuIcon: "Vehicle/Ambient Lighti Icon.png" }
- FMenuElement { id: mcs; menuIcon: "Vehicle/MCS Icon.png" }
- FMenuElement { id: weather; menuIcon: "Vehicle/sun.png" }
- FMenuElement { id: kepad; menuIcon: "Vehicle/key_car.png" }
- FMenuElement { id: calendar; menuIcon: "Vehicle/cal.png" }
- FMenuElement { id: browse; menuIcon: "Vehicle/folders.png" }
- FMenuElement { id: syncServices; menuIcon: "Vehicle/SYNC Services.png"}
- }
-
- FViewUseCaseSimple { condition: sv.isInEntry
- PropertyChanges { target: l; list_data: null }
- }
- }
-
- baseBehavior: GenListHandling {}
-
- triggers: [
- // Example for a menu element trigger. This will only work for FMenuModels.
- FTrgMenuElement { menuElement: ev
- },
- FTrgMenuElement { menuElement: aLight
- },
- FTrgMenuElement { menuElement: mcs
- },
- FTrgMenuElement { menuElement: weather
- },
- FTrgMenuElement { menuElement: kepad
- },
- FTrgMenuElement { menuElement: calendar
- },
- FTrgMenuElement { menuElement: browse
- },
- FTrgMenuElement { menuElement: syncServices
- },
- FTrgTouchArea { touchArea:l.close; touchAction: TA.Out
- FActViewShow { view: "GridMenuPCA" }
- },
- FTrgListModel { id: trgList; model: menuItemData
- FActScriptCall { onScript: { FLogger.debug("Test", trgList.element.menuText + ", index: " + trgList.index) } }
- },
- FTrgEntry {
- FActScriptCall { onScript: { FLogger.debug("Test", "Entry") } }
- },
- FTrgEntryComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "EntryComplete") } }
- },
- FTrgExit {
- FActScriptCall { onScript: { FLogger.debug("Test", "Exit") } }
- },
- FTrgExitComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "ExitComplete") } }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/NavInRoute.qml b/src/components/qt_hmi/References/Look/Views/NavInRoute.qml deleted file mode 100644 index e21d60a3cd..0000000000 --- a/src/components/qt_hmi/References/Look/Views/NavInRoute.qml +++ /dev/null @@ -1,38 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
-
-
- view: FView {
- id: v
-
- layout: NavInRouteLayout {
- id:map
-
-
- }
-
- }
-
-
-
- triggers: [
- FTrgTouchArea { touchArea:map.cancel; touchAction: TA.Out
- FActViewShow { view: "NavNoRoute" }
- },
- FTrgTouchArea { touchArea:map.mute; touchAction: TA.Out
- FActScriptCall { onScript: { map.muteSt = !map.muteSt} }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/NavKeyboardPCA.qml b/src/components/qt_hmi/References/Look/Views/NavKeyboardPCA.qml deleted file mode 100644 index a3499f89d3..0000000000 --- a/src/components/qt_hmi/References/Look/Views/NavKeyboardPCA.qml +++ /dev/null @@ -1,159 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- attachedViews: ["PCAstatusBar"]
-
-
- view: FView {
- id: v
-
- layout: NavKeyboardLayout {
- id:nav
- entry:dataPool.navEnrty
- list_data:sItemData
- list_itemWidget: VerySimpleListItemWidget {
- vis: false
-
- }
- }
-
- }
- ListModel
- {
-
- id:sItemData
- ListElement { staticItem: "Five Guys" }
- ListElement { staticItem: "Archers Of Loaf" }
- ListElement { staticItem: "Bob Mould" }
- ListElement { staticItem: "Cat Power" }
- ListElement { staticItem: "Cloud Nothings"}
- ListElement { staticItem: "Dentist"}
- ListElement { staticItem: "Dirty Frank's" }
- ListElement { staticItem: "Grouplove" }
- ListElement { staticItem: "Hudson Bell"}
- ListElement { staticItem: "Japandroids" }
- ListElement { staticItem: "Macklemore & Ryan Lewis"}
- ListElement { staticItem: "The National"}
- ListElement { staticItem: "Titus Andronicus" }
- ListElement { staticItem: "Tito" }
- ListElement { staticItem: "Tamal" }
- ListElement { staticItem: "Taco" }
-
- }
-
- triggers: [
-
- FTrgTouchArea { touchArea:nav.listOpen; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= ""}
- FActViewShow { view: "NavInRoute" }
- },
- FTrgTouchArea { touchArea:nav.a; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"a"}
- },
- FTrgTouchArea { touchArea:nav.b; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"b"}
- },
- FTrgTouchArea { touchArea:nav.c; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"c"}
- },
- FTrgTouchArea { touchArea:nav.d; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"d"}
- },
- FTrgTouchArea { touchArea:nav.e; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"e"}
- },
- FTrgTouchArea { touchArea:nav.f; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"f"}
- },
- FTrgTouchArea { touchArea:nav.g; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"g"}
- },
- FTrgTouchArea { touchArea:nav.h; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"h"}
- },
- FTrgTouchArea { touchArea:nav.i; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"i"}
- },
- FTrgTouchArea { touchArea:nav.j; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"j"}
- },
- FTrgTouchArea { touchArea:nav.k; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"k"}
- },
- FTrgTouchArea { touchArea:nav.l; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"l"}
- },
- FTrgTouchArea { touchArea:nav.m; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"m"}
- },
- FTrgTouchArea { touchArea:nav.n; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"n"}
- },
- FTrgTouchArea { touchArea:nav.o; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"o"}
- },
- FTrgTouchArea { touchArea:nav.p; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"p"}
- },
- FTrgTouchArea { touchArea:nav.q; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"q"}
- },
- FTrgTouchArea { touchArea:nav.r; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"r"}
- },
- FTrgTouchArea { touchArea:nav.s; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"s"}
- },
- FTrgTouchArea { touchArea:nav.t; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"t"}
- },
- FTrgTouchArea { touchArea:nav.u; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"u"}
- },
- FTrgTouchArea { touchArea:nav.v; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"v"}
- },
- FTrgTouchArea { touchArea:nav.w; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"w"}
- },
- FTrgTouchArea { touchArea:nav.xB; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"x"}
- },
- FTrgTouchArea { touchArea:nav.yB; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"y"}
- },
- FTrgTouchArea { touchArea:nav.zB; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+"z"}
- },
- FTrgTouchArea { touchArea:nav.num; touchAction: TA.Out
- },
- FTrgTouchArea { touchArea:nav.clr; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= ""}
- },
- FTrgTouchArea { touchArea:nav.space; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty+" "}
- },
- FTrgTouchArea { touchArea:nav.del; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.navEnrty= dataPool.navEnrty.substring(0,dataPool.navEnrty.length-1)}
- },
- FTrgTouchArea { touchArea:nav.sym; touchAction: TA.Out
- },
- FTrgTouchArea { touchArea:nav.go; touchAction: TA.Out
- FActViewShow { view: "NavInRoute" }
- },
- FTrgTouchArea { touchArea:nav.close; touchAction: TA.Out
- FActViewShow { view: "NavNoRoute" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/NavMenu.qml b/src/components/qt_hmi/References/Look/Views/NavMenu.qml deleted file mode 100644 index 8d22aa77ea..0000000000 --- a/src/components/qt_hmi/References/Look/Views/NavMenu.qml +++ /dev/null @@ -1,85 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-
-FStateView {
- id:sv
- priority: 2
-
- view: FView {
- //viewClass: baseScreen
- layout: TileBackLayoutPCA {
- id:l
-
-
- listWrap: false
- list_data: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- list_itemWidget: GridViewItemWidget {
-
- }
- }
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: sourceAM; menuText: "Home"; }
- FMenuElement { id: sourceFM; menuText: "Work"; }
- FMenuElement { id: sourceCD; menuText: "Keyboard"; }
- FMenuElement { id: sourceSat; menuText: "Recent"; }
- FMenuElement { id: sourceBt; menuText: "Favorites"; }
- FMenuElement { id: sourceIpod; menuText: "POI"; }
- FMenuElement { id: sourceUSB; menuText: "Scout"; }
- FMenuElement { id: sourceLineIn; menuText: "Waze";}
- }
-
- FViewUseCaseSimple { condition: sv.isInEntry
- PropertyChanges { target: l; list_data: null }
- }
- }
-
- baseBehavior: GenListHandling {}
-
- triggers: [
- // Example for a menu element trigger. This will only work for FMenuModels.
- FTrgMenuElement { menuElement: sourceAM
- },
- FTrgMenuElement { menuElement: sourceFM
- },
- FTrgMenuElement { menuElement: sourceSat
- },
- FTrgMenuElement { menuElement: sourceCD
- FActViewShow { view: "NavKeyboardPCA" }
- },
- FTrgMenuElement { menuElement: sourceBt
- },
- FTrgMenuElement { menuElement: sourceIpod
- },
- FTrgMenuElement { menuElement: sourceUSB
- },
- FTrgMenuElement { menuElement: sourceLineIn
- },
- FTrgTouchArea { touchArea:l.close; touchAction: TA.Out
- FActViewShow { view: "NavNoRoute" }
- },
- FTrgListModel { id: trgList; model: menuItemData
- FActScriptCall { onScript: { FLogger.debug("Test", trgList.element.menuText + ", index: " + trgList.index) } }
- },
- FTrgEntry {
- FActScriptCall { onScript: { FLogger.debug("Test", "Entry") } }
- },
- FTrgEntryComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "EntryComplete") } }
- },
- FTrgExit {
- FActScriptCall { onScript: { FLogger.debug("Test", "Exit") } }
- },
- FTrgExitComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "ExitComplete") } }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/NavNoRoute.qml b/src/components/qt_hmi/References/Look/Views/NavNoRoute.qml deleted file mode 100644 index 0299c182e8..0000000000 --- a/src/components/qt_hmi/References/Look/Views/NavNoRoute.qml +++ /dev/null @@ -1,35 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
-
-
- view: FView {
- id: v
-
- layout: NavNoRouteLayout {
- id:map
-
-
- }
-
- }
-
-
-
- triggers: [
- FTrgTouchArea { touchArea:map.destSearch; touchAction: TA.Out
- FActViewShow { view: "NavMenu" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/Off.qml b/src/components/qt_hmi/References/Look/Views/Off.qml deleted file mode 100644 index 3e75999c66..0000000000 --- a/src/components/qt_hmi/References/Look/Views/Off.qml +++ /dev/null @@ -1,34 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 1
-
- view: FView {
- layout: OffLayout {
- id:l
- }
- }
-
- triggers: [
- FTrgHardwareKey { hardkeys: hk_OnOff; keyAction: HK.In
- FActViewShow { view: "On" }
- },
- FTrgTouchArea { touchArea:l.offTouch; touchAction: TA.Out
- FActViewShow { view: "On" }
- },
- /*FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- },*/
- FTrgEntry {
- //FActScriptCall { onScript: dataPool.phoneCrnIcons = false}
- //FActScriptCall { onScript: dataPool.phonePaired = false}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/On.qml b/src/components/qt_hmi/References/Look/Views/On.qml deleted file mode 100644 index 6e09534309..0000000000 --- a/src/components/qt_hmi/References/Look/Views/On.qml +++ /dev/null @@ -1,38 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 1
-
- view: FView {
- layout: OffLayout {
- id:l
- offTouch.enabled: false
- }
- }
-
- triggers: [
- FTrgEntry {
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewShow { view: "Off" }
- },
- FTrgHardwareKey { hardkeys: hk_OnOff; keyAction: HK.In
- //FActViewShow { view: "Off" }
- FActEventFire{ event: closeNormalScreens }
- },
- FTrgHardwareKey { hardkeys: buttonUp; keyAction: HK.In
- FActViewShow { view: "ControlMirror" }
- },
- FTrgHardwareKey { hardkeys: buttonDown; keyAction: HK.In
- FActViewShow { view: "ControlMirror" }
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/PCAstatusBar.qml b/src/components/qt_hmi/References/Look/Views/PCAstatusBar.qml deleted file mode 100644 index e235f9c159..0000000000 --- a/src/components/qt_hmi/References/Look/Views/PCAstatusBar.qml +++ /dev/null @@ -1,37 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 8
-
-
- view: FView {
- id: v
-
- layout: PCAstatusBarLayout {
- id:statusBar
-
- }
-
- }
-
-
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:statusBar.menuTouch; touchAction: TA.Out
- FActViewShow { view: "GridMenuPCA" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/PhoneContactsListView.qml b/src/components/qt_hmi/References/Look/Views/PhoneContactsListView.qml deleted file mode 100644 index f64062f3ab..0000000000 --- a/src/components/qt_hmi/References/Look/Views/PhoneContactsListView.qml +++ /dev/null @@ -1,104 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-
-FStateView {
- priority: 2
- view: FView {
- layout: PhoneContactsLayout {
- id:l
- list_data:phoneItemData
- list_itemWidget: PhoneContactListItemWdgt {
- itemClicked: childClicked
-
- }
- }
- }
-
- FEvent {id: browseSelected}
-
- ListModel
- {
-
- id:phoneItemData
- ListElement { staticItem: "Aaron" ; staticNumber:"(614)555-2444";type:"Mobile"}
- ListElement { staticItem: "Adrian" ; staticNumber:"(740)245-3434";type:"Mobile" }
- ListElement { staticItem: "Albert" ; staticNumber:"(614)245-5584";type:"Mobile" }
- ListElement { staticItem: "Alice" ; staticNumber:"(313)878-3566";type:"Office"}
- ListElement { staticItem: "Alec" ; staticNumber:"(917)608-2418";type:"Mobile"}
- ListElement { staticItem: "Alexander" ; staticNumber:"(614)608-2400";type:"Home"}
- ListElement { staticItem: "Alexander" ; staticNumber:"(614)608-2400";type:"Mobile"}
- ListElement { staticItem: "Amber" ; staticNumber:"(614)608-2111";type:"Mobile"}
- ListElement { staticItem: "Amy" ; staticNumber:"(440)245-3434";type:"Mobile" }
- ListElement { staticItem: "Andy" ; staticNumber:"(313)245-3434";type:"Mobile" }
- ListElement { staticItem: "Antje" ; staticNumber:"(567)245-3434";type:"Home" }
- ListElement { staticItem: "Barry" ; staticNumber:"(313)555-2211";type:"Mobile" }
- ListElement { staticItem: "Bea" ; staticNumber:"(614)455-3434";type:"Mobile" }
- ListElement { staticItem: "Ben" ; staticNumber:"(614)882-1843";type:"Office" }
- ListElement { staticItem: "Blake" ; staticNumber:"(330)149-7778";type:"Mobile" }
- ListElement { staticItem: "Bob Mould" ; staticNumber:"(313)245-3434";type:"Mobile" }
- ListElement { staticItem: "Brian" ; staticNumber:"(614)332-7499";type:"Mobile" }
- ListElement { staticItem: "Calvin" ; staticNumber:"(614)442-9974";type:"Mobile" }
- ListElement { staticItem: "Carl" ; staticNumber:"(567)773-3434";type:"Home" }
- ListElement { staticItem: "Cat Power" ; staticNumber:"(313)608-3434";type:"Home"}
- ListElement { staticItem: "Cathy" ; staticNumber:"(313)444-456";type:"Home"}
- ListElement { staticItem: "Chris" ; staticNumber:"(734)997-6514";type:"Home" }
- ListElement { staticItem: "Cloud Nothings"; staticNumber:"(444)608-543";type:"Mobile"}
- ListElement { staticItem: "Cody" ; staticNumber:"(567)365-8413";type:"Home" }
- ListElement { staticItem: "Curtis" ; staticNumber:"(614)245-1547";type:"Office" }
- ListElement { staticItem: "Dakota" ; staticNumber:"(567)555-4444";type:"Home" }
- ListElement { staticItem: "Dale" ; staticNumber:"(567)723-1974";type:"Mobile" }
- ListElement { staticItem: "Dallas"; staticNumber:"(614)556-879";type:"Home"}
- ListElement { staticItem: "Damian" ; staticNumber:"(614)245-3434";type:"Office" }
- ListElement { staticItem: "Daniel"; staticNumber:"(614)556-879";type:"Home"}
- ListElement { staticItem: "Darina"; staticNumber:"(313)895-888";type:"Mobile"}
- ListElement { staticItem: "Dee "; staticNumber:"(313)432-3434";type:"Home"}
- ListElement { staticItem: "Edward" ; staticNumber:"(917)608-975";type:"Office"}
- ListElement { staticItem: "Ferdinand" ; staticNumber:"(917)879-795";type:"Mobile"}
- ListElement { staticItem: "Gomez" ; staticNumber:"(313)455-543";type:"Mobile"}
- ListElement { staticItem: "Harry Potter"; staticNumber:"(313)888-432";type:"Home"}
- ListElement { staticItem: "Ivan"; staticNumber:"(313)996-225";type:"Home"}
- ListElement { staticItem: "James" ; staticNumber:"(917)608-3434";type:"Mobile"}
- ListElement { staticItem: "Karen"; staticNumber:"(313)998-332";type:"Home"}
- ListElement { staticItem: "Luis Torres"; staticNumber:"(313)779-111";type:"Home"}
- ListElement { staticItem: "Mary"; staticNumber:"(313)234-098";type:"Mobile"}
- ListElement { staticItem: "Neil"; staticNumber:"(313)444-112";type:"Mobile"}
- ListElement { staticItem: "Oswald"; staticNumber:"(313)456-921";type:"Mobile"}
- ListElement { staticItem: "Oscar"; staticNumber:"(313)332-778";type:"Home"}
- ListElement { staticItem: "Patrice"; staticNumber:"(313)789-111";type:"Mobile"}
- ListElement { staticItem: "Queen Elizabeth"; staticNumber:"(313)897-666";type:"Mobile"}
- ListElement { staticItem: "Rose"; staticNumber:"(313)111-211";type:"Mobile"}
- ListElement { staticItem: "Susell"; staticNumber:"(313)345-122";type:"Home"}
- ListElement { staticItem: "Susell"; staticNumber:"(313)345-122";type:"Home"}
- ListElement { staticItem: "Thomas"; staticNumber:"(917)608-342";type:"Mobile"}
- ListElement { staticItem: "Titus Andronicus" ; staticNumber:"(917)608-321";type:"Office"}
- ListElement { staticItem: "Toretto" ; staticNumber:"(917)608-3434";type:"Home"}
- ListElement { staticItem: "Uhl" ; staticNumber:"(313)444-654";type:"Office"}
- ListElement { staticItem: "Zara" ; staticNumber:"(313)231-009";type:"Mobile"}
-
- }
- FEvent { id: childClicked }
-
- triggers:[
- FTrgEntry {
- FActScriptCall{onScript: l.list.positionViewAtIndex(sortList.existChar(phoneItemData,dataPool.filterPhone),l.list.Beginning)}
- },
- FTrgTouchArea { touchArea:l.back; touchAction: TA.Out
- FActViewShow { view: "AlphaSortPCA" }
- },
- FTrgEvent { id: trig2; event: childClicked
- FActScriptCall { onScript:console.log(trig2.data) }
- }
-
-
-
- ]
-
-
-
-}
diff --git a/src/components/qt_hmi/References/Look/Views/PhonePCA.qml b/src/components/qt_hmi/References/Look/Views/PhonePCA.qml deleted file mode 100644 index 40969a3a64..0000000000 --- a/src/components/qt_hmi/References/Look/Views/PhonePCA.qml +++ /dev/null @@ -1,85 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-
-FStateView {
- id:sv
- priority: 2
-
- view: FView {
- //viewClass: baseScreen
- layout: TileBackImgLayoutPCA {
- id:l
-
- //useClose: true
- listWrap: false
- list_data: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- list_itemWidget: GridViewImgItemWidget {
-
- }
- }
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: phone; menuIcon: "menu/phone.png"}
- FMenuElement { id: dnd; menuIcon: "phone/DNDoff.png" }
- FMenuElement { id: phoneBook; menuIcon: "phone/contacts.png" }
- FMenuElement { id: recent; menuIcon: "phone/recent.png" }
- FMenuElement { id: messages; menuIcon: "phone/messages.png" }
- FMenuElement { id: keyPad; menuIcon: "phone/keypad.png" }
- FMenuElement { id: textMsg; menuIcon: "phone/texts.png" }
- FMenuElement { id: more; menuIcon: "phone/more.png"}
- }
-
- FViewUseCaseSimple { condition: sv.isInEntry
- PropertyChanges { target: l; list_data: null }
- }
- }
-
- baseBehavior: GenListHandling {}
-
- triggers: [
- // Example for a menu element trigger. This will only work for FMenuModels.
- FTrgMenuElement { menuElement: phone
- },
- FTrgMenuElement { menuElement: dnd
- },
- FTrgMenuElement { menuElement: phoneBook
- FActViewShow { view: "AlphaSortPCA" }
- },
- FTrgMenuElement { menuElement: recent
- },
- FTrgMenuElement { menuElement: more
- },
- FTrgMenuElement { menuElement: messages
- },
- FTrgMenuElement { menuElement: keyPad
- },
- FTrgMenuElement { menuElement: textMsg
- },
- FTrgTouchArea { touchArea:l.close; touchAction: TA.Out
- FActViewShow { view: "GridMenuPCA" }
- },
- FTrgListModel { id: trgList; model: menuItemData
- FActScriptCall { onScript: { FLogger.debug("Test", trgList.element.menuText + ", index: " + trgList.index) } }
- },
- FTrgEntry {
- FActScriptCall { onScript: { FLogger.debug("Test", "Entry") } }
- },
- FTrgEntryComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "EntryComplete") } }
- },
- FTrgExit {
- FActScriptCall { onScript: { FLogger.debug("Test", "Exit") } }
- },
- FTrgExitComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "ExitComplete") } }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/RadioEventHandling.qml b/src/components/qt_hmi/References/Look/Views/RadioEventHandling.qml deleted file mode 100644 index ef693d924c..0000000000 --- a/src/components/qt_hmi/References/Look/Views/RadioEventHandling.qml +++ /dev/null @@ -1,37 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 0
-
- view: FView {
- layout: BlankLayout {
- id:l
- }
- }
-
- triggers: [
- FTrgEntry {
- FGrdCondition{ condition: dataPool.currSource==="FM"
- FActViewShow{ view: "FMPCA"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="USB"
- FActViewShow{ view: "USB"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="AM"
- FActViewShow{ view: "AM"}
- FActViewHide{}
- }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/RadioEventHandlingPCA.qml b/src/components/qt_hmi/References/Look/Views/RadioEventHandlingPCA.qml deleted file mode 100644 index 90bf0a801a..0000000000 --- a/src/components/qt_hmi/References/Look/Views/RadioEventHandlingPCA.qml +++ /dev/null @@ -1,61 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 0
-
- view: FView {
- layout: BlankLayout {
- id:l
- }
- }
-
- triggers: [
- FTrgEntry {
- FGrdCondition{ condition: dataPool.currSource==="FM"
- FActViewShow{ view: "FMPCA"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="USB"
- FActViewShow{ view: "USBPCA"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="AM"
- FActViewShow{ view: "AMPCA"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="Sirius"
- FActViewShow{ view: "SiriusPCA"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="CD"
- FActViewShow{ view: "CDPCA"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="BT_Audio"
- FActViewShow{ view: "BT_AudioPCA"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="iPod"
- FActViewShow{ view: "iPodPCA"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="LineIn"
- FActViewShow{ view: "AuxPCA"}
- FActViewHide{}
- }
- FGrdCondition{ condition: dataPool.currSource==="SDL_Music"
- FActViewShow{ view: "SDL_MusicPCA"}
- FActViewHide{}
- }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/SDL_MusicPCA.qml b/src/components/qt_hmi/References/Look/Views/SDL_MusicPCA.qml deleted file mode 100644 index a68956518b..0000000000 --- a/src/components/qt_hmi/References/Look/Views/SDL_MusicPCA.qml +++ /dev/null @@ -1,48 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5 -import QtQuick 2.0 -import com.ford.hmiframework 1.0 -import "../Layouts" -import "../Animations" -import "../Widgets" -import ".." - -FStateView { - priority: 2 - //attachedViews: ["Chrome"] - - - - view: FView { - id: v - - layout: USBLayoutPCA { - id:home - sourceBtn.text: "SDL Music" - sourceBtn.textWidth: 100 - playing: true - } - - - } - - - - triggers: [ - - - - FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out - FActViewShow { view: "SourceChangePCA" } - }, - FTrgTouchArea { touchArea:home.play; touchAction: TA.Out - FActScriptCall { onScript: home.playing = false } - }, - FTrgTouchArea { touchArea:home.pause; touchAction: TA.Out - FActScriptCall { onScript: home.playing = true } - }, - FTrgEvent { event: closeNormalScreens - FActViewHide{} - } - - ] -} diff --git a/src/components/qt_hmi/References/Look/Views/Sirius.qml b/src/components/qt_hmi/References/Look/Views/Sirius.qml deleted file mode 100644 index bf16b810a5..0000000000 --- a/src/components/qt_hmi/References/Look/Views/Sirius.qml +++ /dev/null @@ -1,71 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: SiriusLayout {
- id:home
-
- }
-
-
- }
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:home.sourceBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChange" }
- },
- FTrgTouchArea { touchArea:home.browseBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.albumInfoBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset1Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset2Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset3Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset4Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset5Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.preset6Btn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.replayBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.tuneBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.presetsBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/SiriusPCA.qml b/src/components/qt_hmi/References/Look/Views/SiriusPCA.qml deleted file mode 100644 index afb5c42fc7..0000000000 --- a/src/components/qt_hmi/References/Look/Views/SiriusPCA.qml +++ /dev/null @@ -1,115 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: FMLayoutPCA {
- id:home
- sourceBtn.text: "Sirius"
- sourceBtn.textWidth: 70
- freqId: ""
- curPreset: dataPool.currSATpreset
- hdBtn.visible: false
-
-
- listModel: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- }
-
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: preset1; menuText: "Lithium"; menuData: true; }
- FMenuElement { id: preset2; menuText: "Spectrum"; menuData: false }
- FMenuElement { id: preset3; menuText: "ESPN"; menuData: false }
- FMenuElement { id: preset4; menuText: "Alt Nation"; menuData: false }
- FMenuElement { id: preset5; menuText: "NHL"; menuData: false }
- FMenuElement { id: preset6; menuText: "the Highway"; menuData: false }
- FMenuElement { id: preset7; menuText: "SiriusXMU"; menuData: false }
- FMenuElement { id: preset8; menuText: "First Wave"; menuData: false}
- }
- }
-
- triggers: [
-
- FTrgEntry{
- FGrdCondition{condition: dataPool.currSATpreset === 1
- FActScriptCall { onScript: home.stationTxt = "Lithium" }
- }
- FGrdCondition{condition: dataPool.currSATpreset === 2
- FActScriptCall { onScript: home.stationTxt = "Spectrum" }
- }
- FGrdCondition{condition: dataPool.currSATpreset === 3
- FActScriptCall { onScript: home.stationTxt = "ESPN" }
- }
- FGrdCondition{condition: dataPool.currSATpreset === 4
- FActScriptCall { onScript: home.stationTxt = "Alt Nation" }
- }
- FGrdCondition{condition: dataPool.currSATpreset === 5
- FActScriptCall { onScript: home.stationTxt = "NHL" }
- }
- FGrdCondition{condition: dataPool.currSATpreset === 6
- FActScriptCall { onScript: home.stationTxt = "the Highway" }
- }
- FGrdCondition{condition: dataPool.currSATpreset === 7
- FActScriptCall { onScript: home.stationTxt = "SiriusXMU" }
- }
- FGrdCondition{condition: dataPool.currSATpreset === 8
- FActScriptCall { onScript: home.stationTxt = "First Wave" }
- }
- },
- FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChangePCA" }
- },
- FTrgMenuElement { menuElement: preset1
- FActScriptCall { onScript: home.stationTxt = "Lithium" }
- FActScriptCall { onScript: dataPool.currSATpreset = 1 }
- },
- FTrgMenuElement { menuElement: preset2
- FActScriptCall { onScript: home.stationTxt = "Spectrum" }
- FActScriptCall { onScript: dataPool.currSATpreset = 2 }
- },
- FTrgMenuElement { menuElement: preset3
- FActScriptCall { onScript: home.stationTxt = "ESPN" }
- FActScriptCall { onScript: dataPool.currSATpreset = 3 }
- },
- FTrgMenuElement { menuElement: preset4
- FActScriptCall { onScript: home.stationTxt = "Alt Nation" }
- FActScriptCall { onScript: dataPool.currSATpreset = 4 }
- },
- FTrgMenuElement { menuElement: preset5
- FActScriptCall { onScript: home.stationTxt = "NHL" }
- FActScriptCall { onScript: dataPool.currSATpreset = 5 }
- },
- FTrgMenuElement { menuElement: preset6
- FActScriptCall { onScript: home.stationTxt = "the Highway" }
- FActScriptCall { onScript: dataPool.currSATpreset = 6 }
- },
- FTrgMenuElement { menuElement: preset7
- FActScriptCall { onScript: home.stationTxt = "SiriusXMU" }
- FActScriptCall { onScript: dataPool.currSATpreset = 7 }
- },
- FTrgMenuElement { menuElement: preset8
- FActScriptCall { onScript: home.stationTxt = "First Wave" }
- FActScriptCall { onScript: dataPool.currSATpreset = 8 }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/SourceChange.qml b/src/components/qt_hmi/References/Look/Views/SourceChange.qml deleted file mode 100644 index 42680f9e80..0000000000 --- a/src/components/qt_hmi/References/Look/Views/SourceChange.qml +++ /dev/null @@ -1,73 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: TileBackLayout {
- id:source
- button1.text: "AM"
- button2.text: "FM"
- button3.text: "Sirius"
- button4.text: "USB"
- button5.text: "BT Audio"
- button6.text: "Line In"
- button7.vis: false
- button8.vis: false
- }
-
-
- }
-
- triggers: [
-
-
- /*FTrgHardwareKey { hardkeys: hk_OnOff; keyAction: HK.In
- FActEventFire { event: closeNormalScreens }
- FActViewShow { view: "Off" }
- },*/
- FTrgTouchArea { touchArea:source.button1; touchAction: TA.Out
- FActScriptCall { onScript: dataPool.currSource = "AM" }
- FActViewShow { view: "RadioEventHandling" }
- },
- FTrgTouchArea { touchArea:source.button2; touchAction: TA.Out
- FActViewShow { view: "FM" }
- },
- FTrgTouchArea { touchArea:source.button3; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:source.button4; touchAction: TA.Out
- FActViewShow { view: "USB" }
- },
- FTrgTouchArea { touchArea:source.button5; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:source.button6; touchAction: TA.Out
- FActViewShow { view: "RadioEventHandling" }
- },
- FTrgTouchArea { touchArea:source.button7; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:source.button8; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:source.backBtn; touchAction: TA.Out
- FActViewShow { view: "RadioEventHandling" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/SourceChangePCA.qml b/src/components/qt_hmi/References/Look/Views/SourceChangePCA.qml deleted file mode 100644 index bb87d41c2c..0000000000 --- a/src/components/qt_hmi/References/Look/Views/SourceChangePCA.qml +++ /dev/null @@ -1,105 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-
-FStateView {
- id:sv
- priority: 2
-
- view: FView {
- //viewClass: baseScreen
- layout: TileBackLayoutPCA {
- id:l
-
-
- listWrap: false
- list_data: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- list_itemWidget: GridViewItemWidget {
-
- }
- }
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: sourceAM; menuText: "AM"; }
- FMenuElement { id: sourceFM; menuText: "FM"; }
- FMenuElement { id: sourceSat; menuText: "Sirius"; }
- FMenuElement { id: sourceCD; menuText: "CD"; }
- FMenuElement { id: sourceBt; menuText: "BT Audio"; }
- FMenuElement { id: sourceIpod; menuText: "iPod"; }
- FMenuElement { id: sourceUSB; menuText: "USB"; }
- FMenuElement { id: sourceLineIn; menuText: "Line In";}
- FMenuElement { id: sourceSDL; menuText: "SDL Music";}
- }
-
- FViewUseCaseSimple { condition: sv.isInEntry
- PropertyChanges { target: l; list_data: null }
- }
- }
-
- baseBehavior: GenListHandling {}
-
- triggers: [
- // Example for a menu element trigger. This will only work for FMenuModels.
- FTrgMenuElement { menuElement: sourceAM
- FActScriptCall { onScript: dataPool.currSource = "AM" }
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgMenuElement { menuElement: sourceFM
- FActScriptCall { onScript: dataPool.currSource = "FM" }
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgMenuElement { menuElement: sourceSat
- FActScriptCall { onScript: dataPool.currSource = "Sirius" }
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgMenuElement { menuElement: sourceCD
- FActScriptCall { onScript: dataPool.currSource = "CD" }
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgMenuElement { menuElement: sourceBt
- FActScriptCall { onScript: dataPool.currSource = "BT_Audio" }
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgMenuElement { menuElement: sourceIpod
- FActScriptCall { onScript: dataPool.currSource = "iPod" }
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgMenuElement { menuElement: sourceUSB
- FActScriptCall { onScript: dataPool.currSource = "USB" }
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgMenuElement { menuElement: sourceLineIn
- FActScriptCall { onScript: dataPool.currSource = "LineIn" }
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgMenuElement { menuElement: sourceSDL
- FActScriptCall { onScript: dataPool.currSource = "SDL_Music" }
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgTouchArea { touchArea:l.close; touchAction: TA.Out
- FActViewShow { view: "RadioEventHandlingPCA" }
- },
- FTrgListModel { id: trgList; model: menuItemData
- FActScriptCall { onScript: { FLogger.debug("Test", trgList.element.menuText + ", index: " + trgList.index) } }
- },
- FTrgEntry {
- FActScriptCall { onScript: { FLogger.debug("Test", "Entry") } }
- },
- FTrgEntryComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "EntryComplete") } }
- },
- FTrgExit {
- FActScriptCall { onScript: { FLogger.debug("Test", "Exit") } }
- },
- FTrgExitComplete {
- FActScriptCall { onScript: { FLogger.debug("Test", "ExitComplete") } }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/Start.qml b/src/components/qt_hmi/References/Look/Views/Start.qml deleted file mode 100644 index 4858474011..0000000000 --- a/src/components/qt_hmi/References/Look/Views/Start.qml +++ /dev/null @@ -1,43 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: StartLayout {
- id:corner
-
- }
-
-
- }
-
- triggers: [
- FTrgEntry {
-
- },
-
- /*FTrgHardwareKey { hardkeys: hk_OnOff; keyAction: HK.In
- FActEventFire { event: closeNormalScreens }
- FActViewShow { view: "Off" }
- },*/
- FTrgTouchArea { touchArea:corner.button1; touchAction: TA.Out
- FActViewShow { view: "Home" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/USB.qml b/src/components/qt_hmi/References/Look/Views/USB.qml deleted file mode 100644 index 8931d61ff8..0000000000 --- a/src/components/qt_hmi/References/Look/Views/USB.qml +++ /dev/null @@ -1,59 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: USBLayout {
- id:home
-
- }
-
-
- }
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:home.sourceBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChange" }
- },
- FTrgTouchArea { touchArea:home.browseBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.albumInfoBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.seekBkBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.seekFdBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.playBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.shuffleBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgTouchArea { touchArea:home.repeatBtn; touchAction: TA.Out
- FActViewShow { view: "Start" }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/USBPCA.qml b/src/components/qt_hmi/References/Look/Views/USBPCA.qml deleted file mode 100644 index 0b1b47270e..0000000000 --- a/src/components/qt_hmi/References/Look/Views/USBPCA.qml +++ /dev/null @@ -1,49 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
-
- view: FView {
- id: v
-
- layout: USBLayoutPCA {
- id:home
- sourceBtn.text: "USB"
- sourceBtn.textWidth: 50
- playing: true
- }
-
-
- }
-
-
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChangePCA" }
- },
- FTrgTouchArea { touchArea:home.play; touchAction: TA.Out
- FActScriptCall { onScript: home.playing = false }
- },
- FTrgTouchArea { touchArea:home.pause; touchAction: TA.Out
- FActScriptCall { onScript: home.playing = true }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Views/iPodPCA.qml b/src/components/qt_hmi/References/Look/Views/iPodPCA.qml deleted file mode 100644 index f4d3f68b78..0000000000 --- a/src/components/qt_hmi/References/Look/Views/iPodPCA.qml +++ /dev/null @@ -1,48 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Layouts"
-import "../Animations"
-import "../Widgets"
-import ".."
-
-FStateView {
- priority: 2
- //attachedViews: ["Chrome"]
-
-
-
- view: FView {
- id: v
-
- layout: USBLayoutPCA {
- id:home
- sourceBtn.text: "iPod"
- sourceBtn.textWidth: 50
- playing: true
- }
-
-
- }
-
-
-
- triggers: [
-
-
-
- FTrgTouchArea { touchArea:home.sourceBtn.touchBtn; touchAction: TA.Out
- FActViewShow { view: "SourceChangePCA" }
- },
- FTrgTouchArea { touchArea:home.play; touchAction: TA.Out
- FActScriptCall { onScript: home.playing = false }
- },
- FTrgTouchArea { touchArea:home.pause; touchAction: TA.Out
- FActScriptCall { onScript: home.playing = true }
- },
- FTrgEvent { event: closeNormalScreens
- FActViewHide{}
- }
-
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/FocusListViewLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/FocusListViewLayout.qml deleted file mode 100644 index 2e89924a20..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/FocusListViewLayout.qml +++ /dev/null @@ -1,34 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: theLayout
-
- property alias list : theListView
- property alias list_itemWidget: theListView.itemWidget
- property alias list_data: theListView.data
- property bool listWrap: false
-
- FWdgtListView {
- id: theListView
- anchors.fill: theLayout
- clip: true
- //interactive: false
- highlightFollowsCurrentItem: true
- highlightMoveDuration: 100
- highlightMoveVelocity: -1
- keyNavigationWraps: listWrap
- highlight:
- Rectangle {
- id: focus
- height: 51
- width: theLayout.width
- radius: 10
- color: "transparent"
- border { color: "white"; width: 2 }
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewImgItemLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewImgItemLayout.qml deleted file mode 100644 index cbe1737984..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewImgItemLayout.qml +++ /dev/null @@ -1,25 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: theItem
- width: 200
- height: 178
-
- property alias bitmap : _img.bitmap
- property alias touch: _touch
-
-
- FWdgtImage{
- id: _img
- anchors.centerIn: theItem
- }
-
- FWdgtTouchArea{
- id: _touch
- anchors.fill: theItem
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewItemLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewItemLayout.qml deleted file mode 100644 index 2e7712a65e..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewItemLayout.qml +++ /dev/null @@ -1,24 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: theItem
-
- property alias cx_text : _btn.text
- property int indentLevel: 0
- property alias touch: _btn.touchBtn
- property alias pressed: _btn.pressed
-
-
- TouchButton_PCA{
- id: _btn
- anchors.left: theItem.left
- anchors.leftMargin: 10
- anchors.top: theItem.top
- anchors.topMargin: 10
- textWidth: 100
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewLayout.qml deleted file mode 100644 index d5fb962461..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewLayout.qml +++ /dev/null @@ -1,56 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: theLayout
-
- property alias list : theGridView
- property alias list_itemWidget: theGridView.itemWidget
- property alias list_data: theGridView.data
- property bool listWrap: false
- property alias gridItemHeight: theGridView.cellHeight
- property alias gridItemWidth: theGridView.cellWidth
-
- FWdgtGridView {
- id: theGridView
- anchors.fill: theLayout
- clip: true
- highlightFollowsCurrentItem: true
- highlightMoveDuration: 100
- keyNavigationWraps: listWrap
- flow: GridView.TopToBottom
- snapMode: GridView.SnapOneRow
-
-
-
-
- populate: Transition {
- id: populateTransition
- SequentialAnimation {
- PropertyAction { property: "opacity"; value: 0 }
- PauseAnimation { duration: populateTransition.ViewTransition.index * 100 }
- NumberAnimation { properties: "opacity"; from: 0; to: 1; duration: 300 }
- }
- }
-
- add: Transition {
- NumberAnimation { properties: "opacity"; from: 0; to: 1; duration: 200 }
- }
-
- addDisplaced: Transition {
- NumberAnimation { properties: "x"; duration: 200 }
- }
-
- remove: Transition {
- NumberAnimation { properties: "opacity"; from: 1; to: 0; duration: 200 }
- }
-
- removeDisplaced: Transition {
- NumberAnimation { properties: "x"; duration: 200 }
- }
-
- }
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewPresetItemLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewPresetItemLayout.qml deleted file mode 100644 index 9b28e961f9..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewPresetItemLayout.qml +++ /dev/null @@ -1,22 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FLayout {
- id: theItem
-
- property alias presetName : _preset.presetName
- property alias presetNumber: _preset.presetNumber
- property alias pressed: _preset.active
- property alias touchBtn: _preset.touchBtn
-
-
- PresetPCA{
- id: _preset
- anchors.horizontalCenter: theItem.horizontalCenter
- anchors.horizontalCenterOffset: 0
- y:20
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewPresetLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewPresetLayout.qml deleted file mode 100644 index 82068b5560..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/GridViewPresetLayout.qml +++ /dev/null @@ -1,61 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: theLayout
-
- property alias list : theGridView
- property alias list_itemWidget: theGridView.itemWidget
- property alias list_data: theGridView.data
- property bool listWrap: false
- property alias gridItemHeight: theGridView.cellHeight
- property alias gridItemWidth: theGridView.cellWidth
- property alias curItem: theGridView.currentIndex
- property alias moving: theGridView.moving
- property alias direction: theGridView.flickDeceleration
-
-
- FWdgtGridView {
- id: theGridView
- anchors.fill: theLayout
- clip: true
- highlightFollowsCurrentItem: true
- highlightMoveDuration: 100
- keyNavigationWraps: listWrap
- flow: GridView.TopToBottom
- snapMode: GridView.SnapToRow
-
-
-
-
-
- /* populate: Transition {
- id: populateTransition
- SequentialAnimation {
- PropertyAction { property: "opacity"; value: 0 }
- PauseAnimation { duration: populateTransition.ViewTransition.index * 100 }
- NumberAnimation { properties: "opacity"; from: 0; to: 1; duration: 300 }
- }
- }
-
- add: Transition {
- NumberAnimation { properties: "opacity"; from: 0; to: 1; duration: 200 }
- }
-
- addDisplaced: Transition {
- NumberAnimation { properties: "x"; duration: 200 }
- }
-
- remove: Transition {
- NumberAnimation { properties: "opacity"; from: 1; to: 0; duration: 200 }
- }
-
- removeDisplaced: Transition {
- NumberAnimation { properties: "x"; duration: 200 }
- }*/
-
- }
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/PhoneListWdgtLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/PhoneListWdgtLayout.qml deleted file mode 100644 index ee2c0369f0..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/PhoneListWdgtLayout.qml +++ /dev/null @@ -1,50 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
-
- id: theItem
- height: 50; width: 50
-
- property alias cx_text: cx.text
- property alias cn_text: cn.text
- property alias ct_text: ct.text
- property alias touch:_touch
-
- FWdgtTouchArea {
- id: touch
- anchors.fill: theItem
- }
-
- Item{
-
-
- BaseText{
- color:"#9deaec"
- id: cx
- width: 100; height: 50
-
- }
- BaseText{
- color:"#9deaec"
- id: cn
- width: 302; height: 50
- x:300
- }
-
- BaseText{
- color:"#9deaec"
- id: ct
- width: 302; height: 50
- x:500
- }
-
- }
- FWdgtTouchArea {
- id: _touch
- height: 50; width: 600
- }
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/PresetGridLayoutPCA.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/PresetGridLayoutPCA.qml deleted file mode 100644 index c927433f16..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/PresetGridLayoutPCA.qml +++ /dev/null @@ -1,40 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- width: 800
- height: 115
-
- property alias m1: m1.children
- property alias list: listView
- property alias list_data: listView.list_data
- property alias list_itemWidget: listView.list_itemWidget
- property alias listWrap: listView.listWrap
- property alias fg: _fg
- property alias gridCurItem: listView.gridCurItem
- property alias moving: listView.moving
- property alias direction: listView.direction
-
-
-
- Item {
- id: _fg
-
- width: 800; height: 115
-
- GridViewPresetWidget {
- id: listView
- x: 0; y: 0
- width: 800; height: 115
- gridItemHeight: 115; gridItemWidth: 200
-
- }
-
- FWdgtContainer {
- id: m1
- width: 676; height: 115
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/PresetPCALayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/PresetPCALayout.qml deleted file mode 100644 index 2b832f4878..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/PresetPCALayout.qml +++ /dev/null @@ -1,40 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: button
- property alias active: presetBtn.selected
- property alias text: presetBtn.text
- property alias touchBtn: presetBtn
- property alias presetText: presetTxt.text
-
-
- TouchButtonClimatePCA{
- id: presetBtn
- text: "X"
- image: "buttons/preset_9_9.png"
- imageActive: "buttons/presetSelected.png"
- imagePressed: "buttons/presetPressed_9_9.png"
- }
-
- BaseText{
- id: presetTxt
- anchors.horizontalCenter: presetBtn.horizontalCenter
- anchors.horizontalCenterOffset: -16
- y:59
- horAlignment: Text.AlignHCenter
- text: "104.3"
- color: "#1d81d5"
- }
-
- FViewUseCaseSimple{
- condition: presetBtn.active === true
- PropertyChanges {
- target: presetTxt; color: "white"
- }
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/SimpleItemWdgLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/SimpleItemWdgLayout.qml deleted file mode 100644 index d2dc8092bd..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/SimpleItemWdgLayout.qml +++ /dev/null @@ -1,24 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
-
- id: theItem
- height: 50; width: 50
- property bool vis: true
-
- property alias cx_text : cx.text
-
- Item{
-
- FWdgtText{
- color:"White"
- id: cx
- width: 302; height: 45
- visible: vis
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/TGListItemLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/TGListItemLayout.qml deleted file mode 100644 index 7708d3ca56..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/TGListItemLayout.qml +++ /dev/null @@ -1,50 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: theItem
- height: 50; width: parent.width
-
- property alias cx_text : cx.text
- property alias cx_width : cx.width
- property alias ax_width : ax.width
- property alias ax_bitmap : ax.bitmap
- property alias activeMarker_visible: activeMarker.visible
- property alias touch: _touch
- property int indentLevel: 0
-
- Rectangle {
- id: activeMarker
- anchors.fill: theItem
- height: 50
- radius: 10
- color: "lightgray"
- }
-
- Item {
- x: 1; y: 0
- width: 502; height: 45
-
- BaseText {
- id: cx
- anchors.fill: parent
- anchors.leftMargin: 20*indentLevel+5
- vertAlignment: Text.AlignVCenter
- }
- }
-
- FWdgtImage {
- id: ax
- x: 549; y: 3
- width: 37; height: 45
- }
-
- FWdgtTouchArea {
- id: _touch
- width: 400
- height: 50
- }
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonBackGroundPCALayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonBackGroundPCALayout.qml deleted file mode 100644 index ff6671cef6..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonBackGroundPCALayout.qml +++ /dev/null @@ -1,97 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: button
- property string bitmap: ""
- property bool selected: false
- property string text: ""
- property alias touchBtn: myButton
- property string image: "climate/Button_9_9.png"
- property string imageActive: "climate/ButtonActive_0_0.png"
- property string imagePressed: "climate/ButtonPressed_9_9.png"
- property string imageInActive: "climate/ButtonInActive_0_0.png"
- property bool active: true
-
-
- FWdgtImage{
- id: img
- x:-9
- y:-9
- bitmap: "Radio/PresetBtnNotSelected_9_9.png"
- }
-
- FWdgtImage{
- id: imgSelected
- x:-9
- y:-9
- bitmap: "Radio/PresetBtn_9_9.png"
- visible: false
- }
-
- FWdgtTouchArea {
- id: myButton
- anchors.fill: img
- }
-
- Rectangle {
- id: btnFill
- color: "#1d81d5"
- anchors.centerIn: myButton
- height: 46
- width: 46
- radius: 23
- visible: false
- }
-
- BaseText {
- id: btnTxt
- anchors.centerIn: myButton
- text: button.text
- color: "#1d81d5"
- }
-
-
- FViewUseCaseSimple{
- condition: button.selected === true
- PropertyChanges {
- target: img; visible: false
- }
- PropertyChanges {
- target: imgSelected; visible: true
- }
- PropertyChanges {
- target: btnTxt; color: "white"
- }
- PropertyChanges {
- target: btnFill; color: "white"
- }
- }
-
-
-
- FViewUseCaseGroup{
- FViewUseCase{condition: myButton.pressed === true
- PropertyChanges {
- target: btnFill; visible: true
- }
- PropertyChanges {
- target: btnTxt; color: "black"
- }
- }
- FViewUseCase{condition: myButton.indicatorState === true
- /* PropertyChanges {
- target: buttonArea; color: pressedColor
- }*/
- }
- FViewUseCase{condition: myButton.pressed === false
- PropertyChanges {
- target: btnFill; visible: false
- }
- }
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonClimatePCALayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonClimatePCALayout.qml deleted file mode 100644 index c03f89c184..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonClimatePCALayout.qml +++ /dev/null @@ -1,143 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: button
- property string bitmap: ""
- property string bitmap2: ""
- property bool selected: false
- property alias touchBtn: myButton
- property string text: ""
- property string image: "climate/Button_9_9.png"
- property string imageActive: "climate/ButtonActive_0_0.png"
- property string imagePressed: "climate/ButtonPressed_9_9.png"
- property string imageInActive: "climate/ButtonInActive_0_0.png"
- property bool active: true
- property string newFont: "../Fonts/HelveticaNeueLTStd-Roman.ttf"
- property int txtSize: 24
- property string txtColor: "#1d81d5"
-
-
- FWdgtImage{
- id: img
- x:-9
- y:-9
- bitmap: image
- }
-
- FWdgtImage{
- id: imgSelected
- x:0
- y:0
- bitmap: imageActive
- visible: false
- }
-
- FWdgtImage{
- id: imgInBtn
- anchors.centerIn: imgSelected
- bitmap: button.bitmap
- visible: false
- //height: 10
- //width: 10
- }
-
- BaseText {
- id: btnTxt
- anchors.horizontalCenter: imgSelected.horizontalCenter
- anchors.verticalCenter: imgSelected.verticalCenter
- //anchors.verticalCenterOffset: -1
- vertAlignment: Text.AlignVCenter
- horAlignment: Text.AlignHCenter
- text: button.text
- color: button.txtColor
- visible: false
- theFont: button.newFont
- pxSize: button.txtSize
-
- }
-
- FWdgtTouchArea {
- id: myButton
- anchors.fill: imgSelected
- }
-
-
-
- FViewUseCaseSimple{
- condition: button.text !== ""
- PropertyChanges {
- target: btnTxt; visible: true
- }
- }
-
- FViewUseCaseSimple{
- condition: button.bitmap !== ""
- PropertyChanges {
- target: imgInBtn; visible: true
- }
- }
-
-
- FViewUseCaseGroup{
- FViewUseCase{condition: myButton.pressed === true
- PropertyChanges {
- target: img; bitmap: imagePressed
- }
- PropertyChanges {
- target: btnTxt; color: "black"
- }
- PropertyChanges {
- target: imgInBtn; bitmap: button.bitmap2
- }
- }
- FViewUseCase{
- condition: button.active === false
- PropertyChanges {
- target: img; visible: false
- }
- PropertyChanges {
- target: imgSelected; visible: true; bitmap: imageInActive
- }
- PropertyChanges {
- target: btnTxt; color: "black"
- }
- PropertyChanges {
- target: myButton; enabled: false
- }
- PropertyChanges {
- target: imgInBtn; bitmap: button.bitmap2
- }
- }
- FViewUseCase{
- condition: button.selected === true
- PropertyChanges {
- target: img; visible: false
- }
- PropertyChanges {
- target: imgSelected; visible: true
- }
- PropertyChanges {
- target: btnTxt; color: "black"
- }
- PropertyChanges {
- target: imgInBtn; bitmap: button.bitmap2
- }
- }
- FViewUseCase{condition: myButton.pressed === false
- PropertyChanges {
- target: img; bitmap: image
- }
- PropertyChanges {
- target: btnTxt; color: button.txtColor
- }
- PropertyChanges {
- target: imgInBtn; bitmap: button.bitmap
- }
- }
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonPCALayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonPCALayout.qml deleted file mode 100644 index db963dc752..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonPCALayout.qml +++ /dev/null @@ -1,95 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: button
- property string text: ""
- property int centerWidth: 2
- property alias touchBtn: myButton
- property alias pressed: myButton.pressed
-
- FWdgtImage{
- id: img
- x:-8
- y:-8
- bitmap: "Radio/ButtonEnd_8_8.png"
- }
-
- FWdgtImage{
- id: img1
- anchors.left: img.right
- anchors.top: img.top
- width: centerWidth
- fillMode: Image.Stretch
- bitmap: "Radio/ButtonCenter_0_8.png"
- }
-
- FWdgtImage{
- id: img2
- anchors.left: img1.right
- anchors.top: img1.top
- bitmap: "Radio/ButtonOtherEnd_8_8.png"
- }
-
- FWdgtTouchArea {
- id: myButton
- width:img1.width+44
- height: 46
- anchors.left: img1.left
- anchors.leftMargin: -22
- anchors.top: img1.top
- anchors.topMargin: 8
- }
-
- Rectangle {
- id: btnFill
- color: "#1d81d5"
- anchors.fill: myButton
- radius: 23
- border.width: 1
- border.color: "#1d81d5"
- visible: false
- }
-
- BaseText {
- id: btnTxt
- anchors.centerIn: btnFill
- text: button.text
- color: "#1d81d5"
- visible: false
- }
-
-
-
- FViewUseCaseSimple{
- condition: button.text !== ""
- PropertyChanges {
- target: btnTxt; visible: true
- }
- }
-
- FViewUseCaseGroup{
- FViewUseCase{condition: myButton.pressed === true
- PropertyChanges {
- target: btnFill; visible: true
- }
- PropertyChanges {
- target: btnTxt; color: "black"
- }
- }
- FViewUseCase{condition: indicatorState === true
- /* PropertyChanges {
- target: buttonArea; color: pressedColor
- }*/
- }
- FViewUseCase{condition: myButton.pressed === false
- PropertyChanges {
- target: btnFill; visible: false
- }
- }
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonPCASpecialLayout.qml b/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonPCASpecialLayout.qml deleted file mode 100644 index 35b27c056f..0000000000 --- a/src/components/qt_hmi/References/Look/WidgetLayouts/TouchButtonPCASpecialLayout.qml +++ /dev/null @@ -1,325 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-import "../Widgets"
-
-FLayout {
- id: button
- property string bitmap: ""
- property string bitmap2: ""
- property bool vis: true
- property string text: ""
- property string text1: ""
- property string text2: ""
- property int centerWidth: 2
- property alias touchBtn: myButton
- property int imageShift: 0
- property alias spacing: btnArea.spacing
- property alias pressed: myButton.pressed
- property int curHD: 4
- property int totHD: 4
-
- FWdgtImage{
- id: img
- x:-8
- y:-8
- bitmap: "Radio/ButtonEnd_8_8.png"
- }
-
- FWdgtImage{
- id: img1
- anchors.left: img.right
- anchors.top: img.top
- width: centerWidth
- fillMode: Image.Stretch
- bitmap: "Radio/ButtonCenter_0_8.png"
- }
-
- FWdgtImage{
- id: img2
- anchors.left: img1.right
- anchors.top: img1.top
- bitmap: "Radio/ButtonOtherEnd_8_8.png"
- }
-
- FWdgtTouchArea {
- id: myButton
- width:img1.width+44
- height: 46
- anchors.left: img1.left
- anchors.leftMargin: -22
- anchors.top: img1.top
- anchors.topMargin: 8
-
- }
-
- Rectangle {
- id: btnFill
- color: "#1d81d5"
- anchors.fill: myButton
- radius: 23
- border.width: 1
- border.color: "#1d81d5"
- visible: false
- }
-
-
- Row {
- id: btnArea
- anchors.fill: img1
- anchors.left: img1.left
- anchors.leftMargin: imageShift
- spacing: 2
-
-
- FWdgtImage{
- id: btnImg
- anchors.verticalCenter: btnArea.verticalCenter
- bitmap: button.bitmap
- visible: false
- }
-
- BaseText {
- id: btnTxt
- anchors.verticalCenter: btnArea.verticalCenter
- text: button.text
- color: "#1d81d5"
- visible: false
- }
-
- BaseText {
- id: btnTxt1
- anchors.verticalCenter: btnArea.verticalCenter
- text: button.text1
- color: "white"
- visible: false
- theFont: "../Fonts/HelveticaNeueLTStd-Bold.ttf"
- //boldTx: true
- }
-
- BaseText {
- id: btnTxt2
- anchors.verticalCenter: btnArea.verticalCenter
- text: button.text2
- color: "#1d81d5"
- visible: false
- }
-
-
- }
-
- FViewUseCaseSimple{
- condition: button.bitmap !== ""
- PropertyChanges {
- target: btnImg; visible: true
- }
- }
-
- FViewUseCaseSimple{
- condition: button.text !== ""
- PropertyChanges {
- target: btnTxt; visible: true
- }
- }
-
- FViewUseCaseSimple{
- condition: button.text1 !== ""
- PropertyChanges {
- target: btnTxt1; visible: true
- }
- }
-
- FViewUseCaseSimple{
- condition: button.text2 !== ""
- PropertyChanges {
- target: btnTxt2; visible: true
- }
- }
-
- FViewUseCaseGroup{
- FViewUseCase{condition: myButton.pressed === true
- PropertyChanges {
- target: btnFill; visible: true
- }
- PropertyChanges {
- target: btnTxt; color: "black"
- }
- PropertyChanges {
- target: btnTxt2; color: "black"
- }
- PropertyChanges {
- target: btnImg; bitmap: button.bitmap2
- }
- }
- FViewUseCase{condition: indicatorState === true
- /* PropertyChanges {
- target: buttonArea; color: pressedColor
- }*/
- }
- FViewUseCase{condition: myButton.pressed === false
- PropertyChanges {
- target: btnFill; visible: false
- }
- }
- }
-
-
- FViewUseCaseGroup{
- FViewUseCase{condition: totHD === -1
- PropertyChanges {
- target: button; visible: true
- }
- }
- FViewUseCase{condition: totHD === 0
- PropertyChanges {
- target: button; visible: false
- }
- }
- FViewUseCase{condition: totHD === 1
- PropertyChanges {
- target: myButton; enabled: false
- }
- PropertyChanges {
- target: btnTxt; text: ""
- }
- PropertyChanges {
- target: btnTxt1; text: ""
- }
- PropertyChanges {
- target: btnTxt2; text: ""
- }
- PropertyChanges {
- target: img1; width: 4
- }
- }
- FViewUseCase{condition: totHD === 2 && curHD === 1
- PropertyChanges {
- target: img1; width: 50
- }
- PropertyChanges {
- target: btnTxt; text: ""
- }
- PropertyChanges {
- target: btnTxt1; text: " 1"
- }
- PropertyChanges {
- target: btnTxt2; text: " 2"
- }
- }
- FViewUseCase{condition: totHD === 2 && curHD === 2
- PropertyChanges {
- target: img1; width: 50
- }
- PropertyChanges {
- target: btnTxt; text: " 1 "
- }
- PropertyChanges {
- target: btnTxt1; text: "2"
- }
- PropertyChanges {
- target: btnTxt2; text: ""
- }
- }
- FViewUseCase{condition: totHD === 3 && curHD === 1
- PropertyChanges {
- target: img1; width: 65
- }
- PropertyChanges {
- target: btnTxt; text: ""
- }
- PropertyChanges {
- target: btnTxt1; text: " 1"
- }
- PropertyChanges {
- target: btnTxt2; text: " 2 3"
- }
- }
- FViewUseCase{condition: totHD === 3 && curHD === 2
- PropertyChanges {
- target: img1; width: 65
- }
- PropertyChanges {
- target: btnTxt; text: " 1 "
- }
- PropertyChanges {
- target: btnTxt1; text: "2"
- }
- PropertyChanges {
- target: btnTxt2; text: " 3"
- }
- }
- FViewUseCase{condition: totHD === 3 && curHD === 3
- PropertyChanges {
- target: img1; width: 65
- }
- PropertyChanges {
- target: btnTxt; text: " 1 2 "
- }
- PropertyChanges {
- target: btnTxt1; text: "3"
- }
- PropertyChanges {
- target: btnTxt2; text: ""
- }
- }
- FViewUseCase{condition: totHD === 4 && curHD === 1
- PropertyChanges {
- target: img1; width: 85
- }
- PropertyChanges {
- target: btnTxt; text: ""
- }
- PropertyChanges {
- target: btnTxt1; text: " 1"
- }
- PropertyChanges {
- target: btnTxt2; text: " 2 3 4"
- }
- }
- FViewUseCase{condition: totHD === 4 && curHD === 2
- PropertyChanges {
- target: img1; width: 85
- }
- PropertyChanges {
- target: btnTxt; text: " 1 "
- }
- PropertyChanges {
- target: btnTxt1; text: "2"
- }
- PropertyChanges {
- target: btnTxt2; text: " 3 4"
- }
- }
- FViewUseCase{condition: totHD === 4 && curHD === 3
- PropertyChanges {
- target: img1; width: 85
- }
- PropertyChanges {
- target: btnTxt; text: " 1 2 "
- }
- PropertyChanges {
- target: btnTxt1; text: "3"
- }
- PropertyChanges {
- target: btnTxt2; text: " 4"
- }
- }
- FViewUseCase{condition: totHD === 4 && curHD === 4
- PropertyChanges {
- target: img1; width: 85
- }
- PropertyChanges {
- target: btnTxt; text: " 1 2 3 "
- }
- PropertyChanges {
- target: btnTxt1; text: "4"
- }
- PropertyChanges {
- target: btnTxt2; text: ""
- }
- }
-
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/BaseText.qml b/src/components/qt_hmi/References/Look/Widgets/BaseText.qml deleted file mode 100644 index b9bc380bd2..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/BaseText.qml +++ /dev/null @@ -1,50 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-FWdgtText {
- id: myText
-
- property bool enabled: true
- property bool secondary: false
- property double secondaryOpacity: 0.7
- property alias horAlignment: myText.horizontalAlignment
- property alias vertAlignment: myText.verticalAlignment
- property int pxSize: 24
- property bool boldTx: false
- property alias theFont: testFont.source
-
- color: "white"
- smooth: true
-
- property alias style: _styler.style
-
- FontLoader {
- id: testFont; source: "../Fonts/HelveticaNeueLTStd-Roman.ttf"
- }
-
- font.family: testFont.name
- font.pixelSize: pxSize
- font.bold: boldTx
- //horizontalAlignment: Text.AlignLeft
- //verticalAlignment: Text.AlignTop
-
- states: [
- State {
- name: "disabled"
- when: enabled === false
- PropertyChanges { target:myText; opacity: secondaryOpacity }
- },
-
- State {
- name: "secondary"
- when: secondary === true
- PropertyChanges { target:myText; opacity: secondaryOpacity }
- }
- ]
-
- FStyler {
- id: _styler
- styleTarget: myText
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/CondText.qml b/src/components/qt_hmi/References/Look/Widgets/CondText.qml deleted file mode 100644 index 7b8ae4ada6..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/CondText.qml +++ /dev/null @@ -1,14 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-BaseText {
- FontLoader {
- id: testFont; source: "../Fonts/HelveticaNeueLTCom-LtCn.ttf"
- }
-
- font.family: testFont.name
- font.pixelSize: 30
-
- height: 51
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/FocusListViewWidget.qml b/src/components/qt_hmi/References/Look/Widgets/FocusListViewWidget.qml deleted file mode 100644 index 082ebdf881..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/FocusListViewWidget.qml +++ /dev/null @@ -1,45 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../WidgetLayouts"
-
-FWidget {
- property alias focusNext: _focusNext
- property alias focusPrevious: _focusPrevious
- property alias selectElement: _selectElement
-
- property alias list: l.list
- property alias list_itemWidget: l.list_itemWidget
- property alias list_data: l.list_data
- property alias listWrap: l.listWrap
-
- FEvent { id: _focusNext; }
- FEvent { id: _focusPrevious; }
- FEvent { id: _selectElement; }
-
- layout: FocusListViewLayout {
- id: l
- anchors.fill: parent
- }
-
- triggers: [
- FTrgEvent { event: _focusPrevious
- FActScriptCall { onScript: {
- l.list.decrementCurrentIndex();
- }
- }
- },
- FTrgEvent { event: _focusNext
- FActScriptCall { onScript: {
- l.list.incrementCurrentIndex();
- }
- }
- },
- FTrgEvent { event: _selectElement
- FActScriptCall { onScript: {
- list_data.selectElement(l.list.currentIndex);
- }
- }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/GridViewImgItemWidget.qml b/src/components/qt_hmi/References/Look/Widgets/GridViewImgItemWidget.qml deleted file mode 100644 index f76057722a..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/GridViewImgItemWidget.qml +++ /dev/null @@ -1,31 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
- id: w
- height: 178
- width: 200
-
-
-
- layout: GridViewImgItemLayout {
- id: l
- bitmap: menuIcon
- }
-
- FViewUseCaseSimple {
- condition: isEnabled == false
- PropertyChanges { target: l
- opacity: 0.5
- }
- }
-
- triggers: [
- FTrgTouchArea { touchArea: l.touch; touchAction: TA.Out
- FActScriptCall { onScript: w.GridView.view.model.selectElement(index) }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/GridViewItemWidget.qml b/src/components/qt_hmi/References/Look/Widgets/GridViewItemWidget.qml deleted file mode 100644 index 5b81d7e1bc..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/GridViewItemWidget.qml +++ /dev/null @@ -1,32 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
- id: w
- height: 55
- width: 200
-
-
-
- layout: GridViewItemLayout {
- id: l
- cx_text: menuText
- indentLevel: 0
- }
-
- FViewUseCaseSimple {
- condition: isEnabled == false
- PropertyChanges { target: l
- opacity: 0.5
- }
- }
-
- triggers: [
- FTrgTouchArea { touchArea: l.touch; touchAction: TA.Out
- FActScriptCall { onScript: w.GridView.view.model.selectElement(index) }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/GridViewPresetItemWidget.qml b/src/components/qt_hmi/References/Look/Widgets/GridViewPresetItemWidget.qml deleted file mode 100644 index fa2cb44918..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/GridViewPresetItemWidget.qml +++ /dev/null @@ -1,41 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
- id: w
- height: 115
- width: 169
-
- property int currPreset: 0
- property bool pressed: false
-
-
-
- layout: GridViewPresetItemLayout {
- id: l
- presetName: menuText
- pressed: w.pressed
- presetNumber: index + 1
- }
-
- FViewUseCaseSimple {
- condition: isEnabled == false
- PropertyChanges { target: l
- opacity: 0.5
- }
- }
-
- FViewUseCaseSimple {
- condition: w.currPreset===index+1
- PropertyChanges { target: w; pressed: true}
- }
-
- triggers: [
- FTrgTouchArea { touchArea: l.touchBtn.touchBtn; touchAction: TA.Out
- FActScriptCall { onScript: w.GridView.view.model.selectElement(index) }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/GridViewPresetWidget.qml b/src/components/qt_hmi/References/Look/Widgets/GridViewPresetWidget.qml deleted file mode 100644 index f232bf2c68..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/GridViewPresetWidget.qml +++ /dev/null @@ -1,35 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../WidgetLayouts"
-
-FWidget {
-
- property alias selectElement: _selectElement
- property alias list: l.list
- property alias list_itemWidget: l.list_itemWidget
- property alias list_data: l.list_data
- property alias listWrap: l.listWrap
- property alias gridItemHeight: l.gridItemHeight
- property alias gridItemWidth: l.gridItemWidth
- property alias gridCurItem: l.curItem
- property alias moving: l.moving
- property alias direction: l.direction
-
-
- FEvent { id: _selectElement; }
-
- layout: GridViewPresetLayout {
- id: l
- anchors.fill: parent
- }
-
- triggers: [
- FTrgEvent { event: _selectElement
- FActScriptCall { onScript: {
- list_data.selectElement(l.list.currentIndex);
- }
- }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/GridViewWidget.qml b/src/components/qt_hmi/References/Look/Widgets/GridViewWidget.qml deleted file mode 100644 index cfbba62530..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/GridViewWidget.qml +++ /dev/null @@ -1,31 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../WidgetLayouts"
-
-FWidget {
-
- property alias selectElement: _selectElement
- property alias list: l.list
- property alias list_itemWidget: l.list_itemWidget
- property alias list_data: l.list_data
- property alias listWrap: l.listWrap
- property alias gridItemHeight: l.gridItemHeight
- property alias gridItemWidth: l.gridItemWidth
-
- FEvent { id: _selectElement; }
-
- layout: GridViewLayout {
- id: l
- anchors.fill: parent
- }
-
- triggers: [
- FTrgEvent { event: _selectElement
- FActScriptCall { onScript: {
- list_data.selectElement(l.list.currentIndex);
- }
- }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/MenuListItemWidget.qml b/src/components/qt_hmi/References/Look/Widgets/MenuListItemWidget.qml deleted file mode 100644 index 48b3bff4a6..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/MenuListItemWidget.qml +++ /dev/null @@ -1,48 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
- id: w
- height: 50
-
- layout: TGListItemLayout {
- id: l
- anchors.fill: parent
- ax_bitmap: ""
- cx_text: menuText
- activeMarker_visible: false
- indentLevel: level
- }
-
- FViewUseCaseSimple {
- condition: isEnabled == false
- PropertyChanges { target: l
- opacity: 0.5
- }
- }
-
- FViewUseCaseGroup {
- FViewUseCase {
- condition: menuType == FMenuElement.Popup
- PropertyChanges { target: l
- ax_bitmap: "../Resources/g137p.png"
- }
- }
-
- FViewUseCase {
- condition: menuType == FMenuElement.Submenu
- PropertyChanges { target: l
- ax_bitmap: "../Resources/g136p.png"
- }
- }
- }
-
- triggers: [
- FTrgTouchArea { touchArea: l.touch; touchAction: TA.In
- FActScriptCall { onScript: w.ListView.view.model.selectElement(index) }
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/MenuSubmenuListItemWidget.qml b/src/components/qt_hmi/References/Look/Widgets/MenuSubmenuListItemWidget.qml deleted file mode 100644 index df96329060..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/MenuSubmenuListItemWidget.qml +++ /dev/null @@ -1,60 +0,0 @@ -// import QtQuick 2.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
- height: 50
-
- layout: TGListItemLayout {
- id: l
- anchors.fill: parent
- ax_bitmap: ""
- cx_text: menuItem
- activeMarker_visible: false
- }
-
- FViewUseCaseGroup {
- FViewUseCase {
- condition: type === "popup"
- PropertyChanges { target: l
- ax_bitmap: "../Resources/g137p.png"
- }
-
- }
-
- FViewUseCase {
- condition: type === "arrow"
- PropertyChanges { target: l
- ax_bitmap: "../Resources/g136p.png"
- }
- }
-
- FViewUseCase {
- condition: type === "tickboxChecked"
- PropertyChanges { target: l
- gx_bitmap: "../Resources/g134p.png"
- cx_width: ++ax_width
- }
- }
-
- FViewUseCase {
- condition: type === "tickboxUnchecked"
- PropertyChanges { target: l
- gx_bitmap: "../Resources/g135p.png"
- cx_width: ++ax_width
- }
- }
-
-
- FViewUseCase {
- condition: type === ""
- PropertyChanges { target: l
- visible: true
- ax_bitmap: ""
- cx_width: ++(ax_width+gx_width)
- }
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/PhoneContactListItemWdgt.qml b/src/components/qt_hmi/References/Look/Widgets/PhoneContactListItemWdgt.qml deleted file mode 100644 index d357c50dc2..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/PhoneContactListItemWdgt.qml +++ /dev/null @@ -1,28 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-
-FWidget {
- id: w
- height: 50
-
- property FEvent itemClicked
-
- layout: PhoneListWdgtLayout {
- anchors.fill: parent
- id: l
- cx_text: staticItem
- cn_text: staticNumber
- ct_text: type
- }
- triggers: [
- FTrgTouchArea { touchArea: l.touch; touchAction: TA.Out
- FActEventFire{ event: itemClicked; data: index }
- FActScriptCall { onScript: console.log(staticItem) }
- }
- ]
-
-
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/PresetPCA.qml b/src/components/qt_hmi/References/Look/Widgets/PresetPCA.qml deleted file mode 100644 index a575ff91eb..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/PresetPCA.qml +++ /dev/null @@ -1,27 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
-
- id:pcaButton
-
- property alias active: button.active
- property alias presetNumber: button.text
- property alias presetName: button.presetText
- property alias touchBtn: button.touchBtn
-
-
- clip: false
-
-
-
- layout: PresetPCALayout{
- id:button
- }
-
-
-
-}
-
diff --git a/src/components/qt_hmi/References/Look/Widgets/PresetsGridPCA.qml b/src/components/qt_hmi/References/Look/Widgets/PresetsGridPCA.qml deleted file mode 100644 index b23375f886..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/PresetsGridPCA.qml +++ /dev/null @@ -1,48 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-
-
-FWidget {
- id:sv
- property int currPreset: 2
- property alias listModel: l.list_data
- property alias gridCurItem: l.gridCurItem
- property alias moving: l.moving
- property alias direction: l.direction
-
-
- layout: PresetGridLayoutPCA {
- id:l
-
-
- listWrap: false
- list_data: FProxyListModel {
- id: menuProxy
- sourceModel: menuItemData
- }
- list_itemWidget: GridViewPresetItemWidget {
- currPreset: sv.currPreset
- }
- }
-
- FMenuModel {
- id: menuItemData
- FMenuElement { id: preset1; menuText: "96.3"; menuData: false; }
- FMenuElement { id: preset2; menuText: "107.9"; menuData: true }
- FMenuElement { id: preset3; menuText: "104.3"; menuData: false }
- FMenuElement { id: preset4; menuText: "101.9"; menuData: false }
- FMenuElement { id: preset5; menuText: "97.1"; menuData: false }
- FMenuElement { id: preset6; menuText: "91.7"; menuData: false }
- FMenuElement { id: preset7; menuText: "101.1"; menuData: false }
- FMenuElement { id: preset8; menuText: "91.9"; menuData: false}
- }
-
- FViewUseCaseSimple { condition: sv.isInEntry
- PropertyChanges { target: l; list_data: null }
- }
-
-
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/ScrollBar.qml b/src/components/qt_hmi/References/Look/Widgets/ScrollBar.qml deleted file mode 100644 index b1f67d043c..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/ScrollBar.qml +++ /dev/null @@ -1,78 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-Item {
- id: scrollbar
- property variant target
-
- clip: true
-
- //anchors {top: target.top; bottom: target.bottom; right: target.right }
- visible: (track.height == slider.height) ? false : true //TODO: !visible -> width: 0 (but creates a binding loop)
-
- Timer {
- property int scrollAmount
-
- id: timer
- repeat: true
- interval: 20
- onTriggered: {
- target.contentY = Math.max(
- 0, Math.min(
- target.contentY + scrollAmount,
- target.contentHeight - target.height));
- }
- }
-
- MouseArea {
- anchors.fill: scrollbar
- onPressed: {
- timer.scrollAmount = target.height * (mouseY < slider.y ? -1 : 1) // scroll by a page
- timer.running = true;
- }
- onReleased: {
- timer.running = false;
- }
- }
-
- Rectangle {
- id: track
-
- color: "red"
- opacity: 0.3
- radius: 2
- smooth: true
-
- anchors.top: scrollbar.top
- anchors.bottom: scrollbar.bottom
- anchors.horizontalCenter: scrollbar.horizontalCenter
- width: 3
- }
-
- Rectangle {
- id:slider
-
- width: scrollbar.width
- color: "red"
- opacity: 0.7
- radius: 4
- smooth: true
-
- height: Math.min(target.height / target.contentHeight * track.height, track.height)
- y: target.visibleArea.yPosition * track.height
-
- MouseArea {
- anchors.fill: parent
- drag.target: parent
- drag.axis: Drag.YAxis
- drag.minimumY: 0
- drag.maximumY: track.height - height
-
- onPositionChanged: {
- if (pressedButtons == Qt.LeftButton) {
- target.contentY = slider.y * target.contentHeight / track.height
- }
- }
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/Widgets/TouchButton.qml b/src/components/qt_hmi/References/Look/Widgets/TouchButton.qml deleted file mode 100644 index c05e1ab525..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/TouchButton.qml +++ /dev/null @@ -1,77 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-
-FWdgtTouchArea {
- id: button
-
- property string text: "Text"
- property string bitmap: ""
- property int wrapText: Text.NoWrap
- property bool indicatorState: false
- property string unpressedColor: "gray"
- property string pressEventColor: "lightGray"
- property string pressedColor: "darkGray"
- property bool vis: true
-
-
- width: 120
- height: 40
- enabled: button.vis
-
-
-
- Rectangle {
- id: buttonArea
- radius: 10
- anchors.centerIn: parent
- width: button.width
- height: button.height
- color: "gray"
- visible: button.vis
-
- BaseText {
- id: st
- anchors.centerIn: parent
- text: button.text
- wrapMode: wrapText
- visible: button.vis
- }
-
- FWdgtImage{
- id: img
- anchors.fill: buttonArea
- bitmap: button.bitmap
- visible: false
- }
-
-
- }
-
- FViewUseCaseSimple{
- condition: button.bitmap !== ""
- PropertyChanges {
- target: img; visible: true
- }
- }
-
- FViewUseCaseGroup{
- FViewUseCase{condition: pressed === true
- PropertyChanges {
- target: buttonArea; color: pressEventColor
- }
- }
- FViewUseCase{condition: indicatorState === true
- PropertyChanges {
- target: buttonArea; color: pressedColor
- }
- }
- FViewUseCase{condition: pressed === false
- PropertyChanges {
- target: buttonArea; color: unpressedColor
- }
- }
- }
-
-}
-
diff --git a/src/components/qt_hmi/References/Look/Widgets/TouchButton2.qml b/src/components/qt_hmi/References/Look/Widgets/TouchButton2.qml deleted file mode 100644 index 2f3ca939a2..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/TouchButton2.qml +++ /dev/null @@ -1,32 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import QtGraphicalEffects 1.0
-import "../Widgets"
-
-
-
-Item {
- width: 160
- height: 45
-
- RectangularGlow {
- id: effect
- anchors.fill: rect
- glowRadius: 10
- spread: 0.2
- color: "#1d81d5"
- cornerRadius: rect.radius + glowRadius
- }
-
- Rectangle {
- id: rect
- color: "black"
- anchors.centerIn: parent
- width: 160
- height: 45
- radius: 25
- border.color: "#1d81d5"
- }
-}
-
-
diff --git a/src/components/qt_hmi/References/Look/Widgets/TouchButtonBackGround_PCA.qml b/src/components/qt_hmi/References/Look/Widgets/TouchButtonBackGround_PCA.qml deleted file mode 100644 index 6dbd6b125b..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/TouchButtonBackGround_PCA.qml +++ /dev/null @@ -1,27 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
-
- id:pcaButton
-
- property alias bitmap:button.bitmap
- property alias active: button.selected
- property alias text: button.text
- property alias touchBtn: button.touchBtn
-
-
- clip: false
-
-
-
- layout: TouchButtonBackGroundPCALayout{
- id:button
- }
-
-
-
-}
-
diff --git a/src/components/qt_hmi/References/Look/Widgets/TouchButtonClimatePCA.qml b/src/components/qt_hmi/References/Look/Widgets/TouchButtonClimatePCA.qml deleted file mode 100644 index 401e538201..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/TouchButtonClimatePCA.qml +++ /dev/null @@ -1,38 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
-
- id:pcaButton
-
- property alias bitmap: button.bitmap
- property alias bitmap2: button.bitmap2
- property alias selected: button.selected
- property alias touchBtn: button.touchBtn
- property alias text: button.text
- property alias image: button.image
- property alias imageActive: button.imageActive
- property alias imagePressed: button.imagePressed
- property alias imageInActive: button.imageInActive
- property alias active: button.active
- property alias newFont: button.newFont
- property alias txtSize: button.txtSize
- property alias txtColor: button.txtColor
-
-
- height: 80
- width: 80
- clip: false
-
-
-
- layout: TouchButtonClimatePCALayout{
- id:button
- }
-
-
-
-}
-
diff --git a/src/components/qt_hmi/References/Look/Widgets/TouchButtonSpecial_PCA.qml b/src/components/qt_hmi/References/Look/Widgets/TouchButtonSpecial_PCA.qml deleted file mode 100644 index e48c5f2762..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/TouchButtonSpecial_PCA.qml +++ /dev/null @@ -1,34 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
-
- id:pcaButton
-
- property alias bitmap:button.bitmap
- property alias bitmap2: button.bitmap2
- property alias text: button.text
- property alias text1: button.text1
- property alias text2:button.text2
- property alias textWidth: button.centerWidth
- property alias touchBtn: button.touchBtn
- property alias imageShift: button.imageShift
- property alias spacing: button.spacing
- property alias pressed: button.pressed
- property alias curHD: button.curHD
- property alias totHD: button.totHD
- width: 164
- clip: false
-
-
-
- layout: TouchButtonPCASpecialLayout{
- id:button
- }
-
-
-
-}
-
diff --git a/src/components/qt_hmi/References/Look/Widgets/TouchButton_PCA.qml b/src/components/qt_hmi/References/Look/Widgets/TouchButton_PCA.qml deleted file mode 100644 index e46dbf28c5..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/TouchButton_PCA.qml +++ /dev/null @@ -1,27 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-FWidget {
-
- id:pcaButton
-
-
- property alias text: button.text
- property alias textWidth: button.centerWidth
- property alias touchBtn: button.touchBtn
- property alias pressed: button.pressed
- width: textWidth+44
- clip: false
-
-
-
- layout: TouchButtonPCALayout{
- id:button
- }
-
-
-
-}
-
diff --git a/src/components/qt_hmi/References/Look/Widgets/VerySimpleListItemWidget.qml b/src/components/qt_hmi/References/Look/Widgets/VerySimpleListItemWidget.qml deleted file mode 100644 index 42049240fd..0000000000 --- a/src/components/qt_hmi/References/Look/Widgets/VerySimpleListItemWidget.qml +++ /dev/null @@ -1,18 +0,0 @@ -import QtQuick 2.0
-import com.ford.hmiframework 1.0
-import "../Widgets"
-import "../WidgetLayouts"
-
-
-FWidget {
- id: w
- height: 50
- property alias vis: l.vis
-
- layout: SimpleItemWdgLayout {
- anchors.fill: parent
- id: l
- cx_text: staticItem
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/QtHMIFramework.dll b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/QtHMIFramework.dll Binary files differdeleted file mode 100644 index 52506bb139..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/QtHMIFramework.dll +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/QtHMIFrameworkd.dll b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/QtHMIFrameworkd.dll Binary files differdeleted file mode 100644 index 4d811bed1e..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/QtHMIFrameworkd.dll +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/QtHMIFrameworkd.pdb b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/QtHMIFrameworkd.pdb Binary files differdeleted file mode 100644 index b6a4d31838..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/QtHMIFrameworkd.pdb +++ /dev/null diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/plugin.qmltypes b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/plugin.qmltypes deleted file mode 100644 index b03753aa5c..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/plugin.qmltypes +++ /dev/null @@ -1,682 +0,0 @@ -import QtQuick.tooling 1.1
-
-// This file describes the plugin-supplied types contained in the library.
-// It is used for QML tooling purposes only.
-//
-// This file was auto-generated with the command 'C:\Qt\Qt5.0.1\5.0.1\msvc2010\bin\qmlplugindump.exe -notrelocatable com.ford.hmiframework 1.0 C:\HMIRepository\trunk\Framework\QtHMIFramework\output'.
-
-Module {
- Component {
- name: "FAbstractListElement"
- prototype: "QObject"
- exports: ["com.ford.hmiframework/FAbstractListElement 1.0"]
- Signal {
- name: "elementSelected"
- Parameter { name: "element"; type: "FAbstractListElement"; isPointer: true }
- }
- Method { name: "selectElement" }
- }
- Component {
- name: "FAbstractListModel"
- prototype: "QAbstractListModel"
- exports: ["com.ford.hmiframework/FAbstractListModel 1.0"]
- Signal {
- name: "elementSelected"
- Parameter { type: "FAbstractListElement"; isPointer: true }
- Parameter { type: "int" }
- }
- }
- Component {
- name: "FActAnimControl"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActAnimControl 1.0"]
- Property { name: "animation"; type: "FAnimation"; isPointer: true }
- Property { name: "animAction"; type: "int" }
- }
- Component {
- name: "FActEventFire"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActEventFire 1.0"]
- Property { name: "event"; type: "FEvent"; isPointer: true }
- Property { name: "data"; type: "QVariant" }
- }
- Component {
- name: "FActFunction"
- defaultProperty: "actions"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActFunction 1.0"]
- Property { name: "data"; type: "QVariant" }
- Property { name: "actions"; type: "FAction"; isList: true; isReadonly: true }
- }
- Component {
- name: "FActFunctionCall"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActFunctionCall 1.0"]
- Property { name: "func"; type: "FActFunction"; isPointer: true }
- Property { name: "data"; type: "QVariant" }
- }
- Component {
- name: "FActHistoryClear"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActHistoryClear 1.0"]
- Property { name: "queue"; type: "string" }
- }
- Component {
- name: "FActHistoryPop"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActHistoryPop 1.0"]
- Property { name: "queue"; type: "string" }
- }
- Component {
- name: "FActHistoryPush"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActHistoryPush 1.0"]
- Property { name: "queue"; type: "string" }
- Property { name: "animation"; type: "string" }
- Property { name: "data"; type: "QVariant" }
- }
- Component {
- name: "FActHistoryShow"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActHistoryShow 1.0"]
- Property { name: "queue"; type: "string" }
- Property { name: "animation"; type: "string" }
- Property { name: "skipMe"; type: "bool" }
- }
- Component {
- name: "FActViewHide"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActViewHide 1.0"]
- Property { name: "view"; type: "string" }
- Property { name: "animation"; type: "string" }
- }
- Component {
- name: "FActViewShow"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FActViewShow 1.0"]
- Property { name: "view"; type: "string" }
- Property { name: "animation"; type: "string" }
- Property { name: "data"; type: "QVariant" }
- }
- Component {
- name: "FAction"
- prototype: "FMetaInfoObject"
- exports: ["com.ford.hmiframework/FAction 1.0"]
- Property { name: "passed"; type: "bool" }
- Signal { name: "execute" }
- Method { name: "getDisplay"; type: "FDisplay*" }
- Method { name: "getStateView"; type: "FStateView*" }
- }
- Component {
- name: "FAnimView"
- defaultProperty: "data"
- prototype: "FAnimation"
- exports: ["com.ford.hmiframework/FAnimView 1.0"]
- Property { name: "inView"; type: "FStateView"; isPointer: true }
- Property { name: "outView"; type: "FStateView"; isPointer: true }
- Property { name: "ingoing"; type: "FLayout"; isReadonly: true; isPointer: true }
- Property { name: "outgoing"; type: "FLayout"; isReadonly: true; isPointer: true }
- }
- Component {
- name: "FAnimation"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["com.ford.hmiframework/FAnimation 1.0"]
- Property { name: "isRunning"; type: "bool"; isReadonly: true }
- Signal {
- name: "animationComplete"
- Parameter { name: "anim"; type: "FAnimation"; isPointer: true }
- }
- }
- Component {
- name: "FAnimationCoordinator"
- defaultProperty: "defaultAnims"
- prototype: "FMetaInfoObject"
- exports: ["com.ford.hmiframework/FAnimationCoordinator 1.0"]
- Property { name: "defaultAnims"; type: "FDefaultAnimation"; isList: true; isReadonly: true }
- }
- Component {
- name: "FDefaultAnimation"
- prototype: "FMetaInfoObject"
- exports: ["com.ford.hmiframework/FDefaultAnimation 1.0"]
- Property { name: "from"; type: "FViewClass"; isPointer: true }
- Property { name: "to"; type: "FViewClass"; isPointer: true }
- Property { name: "animation"; type: "string" }
- }
- Component {
- name: "FDisplay"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["com.ford.hmiframework/FDisplay 1.0"]
- Property { name: "xPixel"; type: "int" }
- Property { name: "yPixel"; type: "int" }
- Property { name: "initialView"; type: "string" }
- Property { name: "initialAnim"; type: "string" }
- Property { name: "modelPath"; type: "QUrl" }
- Property { name: "activeVariant"; type: "string" }
- Property { name: "priorityLayerCount"; type: "int" }
- Property { name: "minPriority"; type: "int" }
- Property { name: "priorityLayerDebug"; type: "QStringList"; isReadonly: true }
- Property { name: "viewCacheSize"; type: "int" }
- Signal { name: "preStartInit" }
- Method {
- name: "animationCompleted"
- Parameter { type: "FAnimation"; isPointer: true }
- }
- Method { name: "updateDebugInformation" }
- }
- Component {
- name: "FEvent"
- prototype: "FMetaInfoObject"
- exports: ["com.ford.hmiframework/FEvent 1.0"]
- Signal {
- name: "fire"
- Parameter { name: "data"; type: "QVariant" }
- }
- Method {
- name: "doFire"
- Parameter { name: "data"; type: "QVariant" }
- }
- }
- Component {
- name: "FGrdCondition"
- defaultProperty: "actions"
- prototype: "FGuard"
- exports: ["com.ford.hmiframework/FGrdCondition 1.0"]
- Property { name: "condition"; type: "bool" }
- }
- Component {
- name: "FGuard"
- defaultProperty: "actions"
- prototype: "FAction"
- exports: ["com.ford.hmiframework/FGuard 1.0"]
- Property { name: "actions"; type: "FAction"; isList: true; isReadonly: true }
- }
- Component {
- name: "FHardwareControl"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["com.ford.hmiframework/FHardwareControl 1.0"]
- Property { name: "hardwareControlID"; type: "string" }
- Signal {
- name: "checkKeyPressed"
- Parameter { name: "key"; type: "int" }
- }
- Signal {
- name: "checkKeyReleased"
- Parameter { name: "key"; type: "int" }
- }
- Method {
- name: "sendHardwareControlEvent"
- Parameter { name: "data"; type: "int" }
- }
- }
- Component {
- name: "FHardwareKey"
- defaultProperty: "data"
- prototype: "FHardwareControl"
- exports: ["com.ford.hmiframework/FHardwareKey 1.0"]
- Property { name: "pressed"; type: "bool" }
- Property { name: "keyboardKey"; type: "int" }
- Property { name: "longPressMSec"; type: "int" }
- Property { name: "repeatDelayMSec"; type: "int" }
- Property { name: "repeatIntervalMSec"; type: "int" }
- }
- Component {
- name: "FHardwareRotary"
- defaultProperty: "knob"
- prototype: "FHardwareControl"
- exports: ["com.ford.hmiframework/FHardwareRotary 1.0"]
- Property { name: "knob"; type: "QQuickItem"; isPointer: true }
- Property { name: "stepsPerRotation"; type: "int" }
- Property { name: "currentAbsPosition"; type: "int" }
- Property { name: "currentRelPosition"; type: "int" }
- Property { name: "generateEvents"; type: "bool" }
- Property { name: "updateInterval"; type: "int" }
- }
- Component {
- name: "FLayer"
- defaultProperty: "data"
- prototype: "FWidgetBase"
- exports: ["com.ford.hmiframework/FLayer 1.0"]
- Property { name: "layerID"; type: "int" }
- Property { name: "initialView"; type: "string" }
- Property { name: "activeViewName"; type: "string" }
- }
- Component {
- name: "FLayout"
- defaultProperty: "data"
- prototype: "FMetaInfoItem"
- exports: ["com.ford.hmiframework/FLayout 1.0"]
- Property { name: "viewX"; type: "double" }
- Property { name: "viewY"; type: "double" }
- Property { name: "viewZ"; type: "double" }
- }
- Component {
- name: "FLogHandlerItem"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["com.ford.hmiframework/FLogHandlerItem 1.0"]
- Signal {
- name: "newEntry"
- Parameter { name: "s"; type: "string" }
- }
- }
- Component {
- name: "FLogger"
- prototype: "QObject"
- exports: ["com.ford.hmiframework/FLogger 1.0"]
- Property { name: "perfStamp"; type: "bool" }
- Method {
- name: "debug"
- Parameter { name: "name"; type: "string" }
- Parameter { name: "s"; type: "string" }
- }
- Method {
- name: "warning"
- Parameter { name: "name"; type: "string" }
- Parameter { name: "s"; type: "string" }
- }
- Method {
- name: "error"
- Parameter { name: "name"; type: "string" }
- Parameter { name: "s"; type: "string" }
- }
- Method {
- name: "info"
- Parameter { name: "name"; type: "string" }
- Parameter { name: "s"; type: "string" }
- }
- Method {
- name: "perf"
- Parameter { name: "name"; type: "string" }
- Parameter { name: "s"; type: "string" }
- }
- }
- Component {
- name: "FLoggerConsole"
- prototype: "QObject"
- exports: ["com.ford.hmiframework/FLoggerConsole 1.0"]
- }
- Component {
- name: "FLoggerFile"
- prototype: "QObject"
- exports: ["com.ford.hmiframework/FLoggerFile 1.0"]
- Property { name: "file"; type: "string" }
- }
- Component {
- name: "FMenuElement"
- defaultProperty: "children"
- prototype: "FTreeElement"
- exports: ["com.ford.hmiframework/FMenuElement 1.0"]
- Enum {
- name: "MenuElementType"
- values: {
- "Undefined": 0,
- "Submenu": 1,
- "Popup": 2,
- "Hyperlink": 3,
- "Checkbox": 4,
- "Radiobutton": 5,
- "Multistate": 6
- }
- }
- Property { name: "isVisible"; type: "bool" }
- Property { name: "isEnabled"; type: "bool" }
- Property { name: "menuType"; type: "int" }
- Property { name: "menuText"; type: "string" }
- Property { name: "menuIcon"; type: "string" }
- Property { name: "menuStatus"; type: "int" }
- Property { name: "menuData"; type: "QVariant" }
- }
- Component {
- name: "FMenuModel"
- defaultProperty: "children"
- prototype: "FTreeModel"
- exports: ["com.ford.hmiframework/FMenuModel 1.0"]
- }
- Component {
- name: "FMetaInfoItem"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["com.ford.hmiframework/FMetaInfoItem 1.0"]
- Property { name: "metaInfo"; type: "string" }
- Property { name: "metaID"; type: "string" }
- Property { name: "metaVersion"; type: "string" }
- }
- Component {
- name: "FMetaInfoObject"
- prototype: "QObject"
- exports: ["com.ford.hmiframework/FMetaInfoObject 1.0"]
- Property { name: "metaInfo"; type: "string" }
- Property { name: "metaID"; type: "string" }
- Property { name: "metaVersion"; type: "string" }
- }
- Component {
- name: "FProxyListModel"
- prototype: "QIdentityProxyModel"
- exports: ["com.ford.hmiframework/FProxyListModel 1.0"]
- Property { name: "sourceModel"; type: "FAbstractListModel"; isPointer: true }
- Property { name: "isFrozen"; type: "bool" }
- Signal {
- name: "elementSelected"
- Parameter { type: "FAbstractListElement"; isPointer: true }
- Parameter { type: "int" }
- }
- Method {
- name: "selectElement"
- Parameter { name: "index"; type: "int" }
- }
- }
- Component {
- name: "FReactiveElementBase"
- prototype: "FMetaInfoObject"
- exports: ["com.ford.hmiframework/FReactiveElementBase 1.0"]
- Property { name: "triggers"; type: "FTrigger"; isList: true; isReadonly: true }
- }
- Component {
- name: "FState"
- prototype: "FStateBase"
- exports: ["com.ford.hmiframework/FState 1.0"]
- Property { name: "baseBehavior"; type: "FStateBase"; isPointer: true }
- }
- Component {
- name: "FStateBase"
- prototype: "FReactiveElementBase"
- exports: ["com.ford.hmiframework/FStateBase 1.0"]
- }
- Component {
- name: "FStateView"
- defaultProperty: "childObjects"
- prototype: "FState"
- exports: ["com.ford.hmiframework/FStateView 1.0"]
- Property { name: "priority"; type: "int" }
- Property { name: "visualPriority"; type: "int" }
- Property { name: "view"; type: "FView"; isPointer: true }
- Property { name: "preload"; type: "QVariant" }
- Property { name: "attachedViews"; type: "QStringList" }
- Property { name: "childObjects"; type: "QObject"; isList: true; isReadonly: true }
- Property { name: "isInEntry"; type: "bool"; isReadonly: true }
- Property { name: "isInExit"; type: "bool"; isReadonly: true }
- Signal {
- name: "entry"
- Parameter { name: "previousView"; type: "string" }
- Parameter { name: "data"; type: "QVariant" }
- }
- Signal { name: "entryComplete" }
- Signal { name: "exit" }
- Signal { name: "exitComplete" }
- }
- Component {
- name: "FThemeProvider"
- prototype: "QObject"
- exports: ["com.ford.hmiframework/FThemeProvider 1.0"]
- Property { name: "theme"; type: "string" }
- Property { name: "resourcePath"; type: "QUrl" }
- Method {
- name: "getFileSubPath"
- type: "string"
- Parameter { type: "string" }
- }
- Method {
- name: "getStyle"
- type: "FStyle*"
- Parameter { type: "string" }
- }
- Method {
- name: "applyStyle"
- Parameter { name: "target"; type: "QObject"; isPointer: true }
- Parameter { name: "styleName"; type: "string" }
- }
- }
- Component {
- name: "FTreeElement"
- defaultProperty: "children"
- prototype: "FAbstractListElement"
- exports: ["com.ford.hmiframework/FTreeElement 1.0"]
- Property { name: "children"; type: "FTreeElement"; isList: true; isReadonly: true }
- Property { name: "level"; type: "int"; isReadonly: true }
- Property { name: "isOpened"; type: "bool" }
- }
- Component {
- name: "FTreeModel"
- defaultProperty: "children"
- prototype: "FAbstractListModel"
- exports: ["com.ford.hmiframework/FTreeModel 1.0"]
- Property { name: "children"; type: "FTreeElement"; isList: true; isReadonly: true }
- Property { name: "root"; type: "FTreeElement"; isPointer: true }
- Property { name: "rootRoot"; type: "FTreeElement"; isReadonly: true; isPointer: true }
- Method {
- name: "openElement"
- Parameter { name: "numIndex"; type: "int" }
- }
- Method {
- name: "closeElement"
- Parameter { name: "numIndex"; type: "int" }
- }
- Method {
- name: "selectElement"
- Parameter { name: "index"; type: "int" }
- }
- }
- Component {
- name: "FTrgAnimCompleted"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgAnimCompleted 1.0"]
- Property { name: "animation"; type: "FAnimation"; isPointer: true }
- Method {
- name: "animCompleted"
- Parameter { type: "FAnimation"; isPointer: true }
- }
- }
- Component {
- name: "FTrgCondition"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgCondition 1.0"]
- Property { name: "condition"; type: "bool" }
- Property { name: "checkOnEntry"; type: "bool" }
- }
- Component {
- name: "FTrgEntry"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgEntry 1.0"]
- Property { name: "previousView"; type: "string"; isReadonly: true }
- Property { name: "data"; type: "QVariant"; isReadonly: true }
- Method {
- name: "entry"
- Parameter { name: "previousView"; type: "string" }
- Parameter { name: "data"; type: "QVariant" }
- }
- }
- Component {
- name: "FTrgEntryComplete"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgEntryComplete 1.0"]
- }
- Component {
- name: "FTrgEvent"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgEvent 1.0"]
- Property { name: "event"; type: "FEvent"; isPointer: true }
- Property { name: "data"; type: "QVariant" }
- Method {
- name: "eventTrigger"
- Parameter { name: "data"; type: "QVariant" }
- }
- }
- Component {
- name: "FTrgExit"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgExit 1.0"]
- }
- Component {
- name: "FTrgExitComplete"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgExitComplete 1.0"]
- }
- Component {
- name: "FTrgHardwareControl"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgHardwareControl 1.0"]
- Property { name: "hardControls"; type: "QVariant" }
- Signal {
- name: "handleHardwareControlEvent"
- Parameter { name: "action"; type: "int" }
- }
- }
- Component {
- name: "FTrgHardwareKey"
- defaultProperty: "actions"
- prototype: "FTrgHardwareControl"
- exports: ["com.ford.hmiframework/FTrgHardwareKey 1.0"]
- Property { name: "keyAction"; type: "int" }
- Property { name: "hardkeys"; type: "QVariant" }
- }
- Component {
- name: "FTrgHardwareRotary"
- defaultProperty: "actions"
- prototype: "FTrgHardwareControl"
- exports: ["com.ford.hmiframework/FTrgHardwareRotary 1.0"]
- Property { name: "valueChange"; type: "int" }
- Property { name: "rotary"; type: "QVariant" }
- }
- Component {
- name: "FTrgListModel"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgListModel 1.0"]
- Property { name: "model"; type: "FAbstractListModel"; isPointer: true }
- Property { name: "element"; type: "FAbstractListElement"; isReadonly: true; isPointer: true }
- Property { name: "index"; type: "int"; isReadonly: true }
- Method {
- name: "elementSelected"
- Parameter { type: "FAbstractListElement"; isPointer: true }
- Parameter { type: "int" }
- }
- }
- Component {
- name: "FTrgMenuElement"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgMenuElement 1.0"]
- Property { name: "menuElement"; type: "FMenuElement"; isPointer: true }
- Method {
- name: "elementSelected"
- Parameter { type: "FAbstractListElement"; isPointer: true }
- }
- }
- Component {
- name: "FTrgTouchArea"
- defaultProperty: "actions"
- prototype: "FTrigger"
- exports: ["com.ford.hmiframework/FTrgTouchArea 1.0"]
- Property { name: "touchArea"; type: "FWdgtTouchArea"; isPointer: true }
- Property { name: "touchAction"; type: "int" }
- Property { name: "xPos"; type: "int" }
- Property { name: "yPos"; type: "int" }
- Method {
- name: "touchEvent"
- Parameter { name: "action"; type: "int" }
- Parameter { name: "x"; type: "int" }
- Parameter { name: "y"; type: "int" }
- }
- }
- Component {
- name: "FTrigger"
- defaultProperty: "actions"
- prototype: "FMetaInfoObject"
- exports: ["com.ford.hmiframework/FTrigger 1.0"]
- Property { name: "initialized"; type: "bool" }
- Property { name: "actions"; type: "FAction"; isList: true; isReadonly: true }
- Signal {
- name: "init"
- Parameter { type: "FStateView"; isPointer: true }
- }
- Signal {
- name: "cleanup"
- Parameter { type: "FStateView"; isPointer: true }
- }
- Signal { name: "intializedChanged" }
- }
- Component {
- name: "FView"
- defaultProperty: "data"
- prototype: "FWidget"
- exports: ["com.ford.hmiframework/FView 1.0"]
- Property { name: "viewClass"; type: "FViewClass"; isPointer: true }
- }
- Component {
- name: "FViewClass"
- defaultProperty: "derivedClass"
- prototype: "FMetaInfoObject"
- exports: ["com.ford.hmiframework/FViewClass 1.0"]
- Property { name: "derivedClass"; type: "FViewClass"; isList: true; isReadonly: true }
- }
- Component {
- name: "FWdgtTouchArea"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["com.ford.hmiframework/FWdgtTouchArea 1.0"]
- Property { name: "pressed"; type: "bool" }
- Property { name: "enabled"; type: "bool" }
- Property { name: "longPressMSec"; type: "int" }
- Property { name: "repeatDelayMSec"; type: "int" }
- Property { name: "repeatIntervalMSec"; type: "int" }
- Signal {
- name: "touchEvent"
- Parameter { name: "event"; type: "int" }
- Parameter { name: "x"; type: "int" }
- Parameter { name: "y"; type: "int" }
- }
- }
- Component {
- name: "FWidget"
- defaultProperty: "data"
- prototype: "FWidgetBase"
- exports: ["com.ford.hmiframework/FWidget 1.0"]
- Property { name: "layout"; type: "FLayout"; isPointer: true }
- Property { name: "triggers"; type: "FTrigger"; isList: true; isReadonly: true }
- }
- Component { name: "FWidgetBase"; defaultProperty: "data"; prototype: "FMetaInfoItem" }
- Component {
- name: "QAbstractProxyModel"
- prototype: "QAbstractItemModel"
- Property { name: "sourceModel"; type: "QAbstractItemModel"; isPointer: true }
- }
- Component { name: "QIdentityProxyModel"; prototype: "QAbstractProxyModel" }
- Component {
- name: "QSortFilterProxyModel"
- prototype: "QAbstractProxyModel"
- exports: ["com.ford.hmiframework/FSortFilterProxyListModel 1.0"]
- Property { name: "filterRegExp"; type: "QRegExp" }
- Property { name: "filterKeyColumn"; type: "int" }
- Property { name: "dynamicSortFilter"; type: "bool" }
- Property { name: "filterCaseSensitivity"; type: "Qt::CaseSensitivity" }
- Property { name: "sortCaseSensitivity"; type: "Qt::CaseSensitivity" }
- Property { name: "isSortLocaleAware"; type: "bool" }
- Property { name: "sortRole"; type: "int" }
- Property { name: "filterRole"; type: "int" }
- Method {
- name: "setFilterRegExp"
- Parameter { name: "pattern"; type: "string" }
- }
- Method {
- name: "setFilterWildcard"
- Parameter { name: "pattern"; type: "string" }
- }
- Method {
- name: "setFilterFixedString"
- Parameter { name: "pattern"; type: "string" }
- }
- Method { name: "clear" }
- Method { name: "invalidate" }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtBorderImage.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtBorderImage.qml deleted file mode 100644 index c95ebd3191..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtBorderImage.qml +++ /dev/null @@ -1,40 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-BorderImage {
- property string bitmap: ""
- property bool themed: false
-
- onBitmapChanged: {
- applyThemedImage();
- }
-
- function applyThemedImage() {
- if (bitmap !== "") {
- if (themed) {
- source = FThemeProvider.resourcePath + "/" + FThemeProvider.theme + "/" + bitmap;
- }
- else {
- source = FThemeProvider.resourcePath + "/" + bitmap;
- }
- }
- else {
- source = "";
- }
- }
-
- Component.onCompleted: {
- if (themed)
- {
- FThemeProvider.themeChanged.connect(applyThemedImage);
- }
- }
-
- Component.onDestruction: {
- if (themed)
- {
- FThemeProvider.themeChanged.disconnect(applyThemedImage);
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtContainer.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtContainer.qml deleted file mode 100644 index f0e4720cce..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtContainer.qml +++ /dev/null @@ -1,8 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-Item {
- id: container
-
- property alias widget: container.children
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtGridView.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtGridView.qml deleted file mode 100644 index 61d1832db4..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtGridView.qml +++ /dev/null @@ -1,35 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-GridView {
- id: theGrid
-
- property alias data : theGrid.model
- property alias itemWidget : theGrid.delegate
-
- /*
- Setting rows/columns fundamentally changes how children fit into the GridView.
- -Normal behaviour: Children have a fixed size (cellWidth/cellHeight) and the NUMBER of them
- that will fit into the GridView varies with the GridView's size.
- -Modified behaviour(setting rows and/or columns triggers this mode): A fixed number of children
- will fit into the GridView (determined by number of rows/columns) and their SIZE
- (cellWidth/cellHeight) will vary with the GridView's size
- -rows/columns determines the size of VISIBLE children and simply sets cellWidth/cellHeight at runtime.
- If the number of children is different than rows * columns, it will either scroll or not
- fill the GridView completely, same as normal.
- -the item_Widget component must be designed for fluid layout using anchors, not fixed sizes,
- for this to have any effect besides spacing
- */
- property int rows
- property int columns
-
- Component.onCompleted: {
- if (rows) {
- theGrid.cellHeight = theGrid.height/rows
- }
- if (columns) {
- theGrid.cellWidth = theGrid.width/columns
- }
- }
-
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtImage.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtImage.qml deleted file mode 100644 index 89e57bbf0e..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtImage.qml +++ /dev/null @@ -1,43 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-Image {
- property string bitmap: ""
- property bool themed: false
-
- fillMode: Image.PreserveAspectFit
- asynchronous: true
-
- onBitmapChanged: {
- applyThemedImage();
- }
-
- function applyThemedImage() {
- if (bitmap !== "") {
- if (themed) {
- source = FThemeProvider.resourcePath + "/" + FThemeProvider.getFileSubPath(bitmap) + bitmap;
- }
- else {
- source = FThemeProvider.resourcePath + "/" + bitmap;
- }
- }
- else {
- source = "";
- }
- }
-
- Component.onCompleted: {
- if (themed)
- {
- FThemeProvider.themeChanged.connect(applyThemedImage);
- }
- }
-
- Component.onDestruction: {
- if (themed)
- {
- FThemeProvider.themeChanged.disconnect(applyThemedImage);
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtListView.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtListView.qml deleted file mode 100644 index 7e1ccd10a3..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtListView.qml +++ /dev/null @@ -1,9 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-ListView {
- id: theList
-
- property alias data : theList.model
- property alias itemWidget : theList.delegate
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtPathView.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtPathView.qml deleted file mode 100644 index 08762015a9..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtPathView.qml +++ /dev/null @@ -1,9 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-PathView {
- id: thePathView
-
- property alias data : thePathView.model
- property alias itemWidget : thePathView.delegate
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtScrollbar.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtScrollbar.qml deleted file mode 100644 index 74c1e27e9b..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtScrollbar.qml +++ /dev/null @@ -1,104 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-BorderImage {
- property variant target
-
- source: "../Resources/scrollbar.png"
- border {left: 0; top: 3; right: 0; bottom: 3}
- width: 17
-
- //anchors {top: target.top; bottom: target.bottom; right: target.right }
- visible: (track.height == slider.height) ? false : true //TODO: !visible -> width: 0 (but creates a binding loop)
-
- Item {
- anchors {fill: parent; margins: 1; rightMargin: 2; bottomMargin: 2}
-
- Image {
- id: upArrow
- source: "../Resources/up-arrow.png"
- anchors.top: parent.top
- MouseArea {
- anchors.fill: parent
- onPressed: {
- timer.scrollAmount = -10
- timer.running = true;
- }
- onReleased: {
- timer.running = false;
- }
- }
- }
-
- Timer {
- property int scrollAmount
-
- id: timer
- repeat: true
- interval: 20
- onTriggered: {
- target.contentY = Math.max(
- 0, Math.min(
- target.contentY + scrollAmount,
- target.contentHeight - target.height));
- }
- }
-
- Item {
- id: track
- anchors {top: upArrow.bottom; topMargin: 1; bottom: dnArrow.top;}
- width: parent.width
-
- MouseArea {
- anchors.fill: parent
- onPressed: {
- timer.scrollAmount = target.height * (mouseY < slider.y ? -1 : 1) // scroll by a page
- timer.running = true;
- }
- onReleased: {
- timer.running = false;
- }
- }
-
- BorderImage {
- id:slider
-
- source: "../Resources/slider.png"
- border {left: 0; top: 3; right: 0; bottom: 3}
- width: parent.width
-
- height: Math.min(target.height / target.contentHeight * track.height, track.height)
- y: target.visibleArea.yPosition * track.height
-
- MouseArea {
- anchors.fill: parent
- drag.target: parent
- drag.axis: Drag.YAxis
- drag.minimumY: 0
- drag.maximumY: track.height - height
-
- onPositionChanged: {
- if (pressedButtons == Qt.LeftButton) {
- target.contentY = slider.y * target.contentHeight / track.height
- }
- }
- }
- }
- }
- Image {
- id: dnArrow
- source: "../Resources/dn-arrow.png"
- anchors.bottom: parent.bottom
- MouseArea {
- anchors.fill: parent
- onPressed: {
- timer.scrollAmount = 10
- timer.running = true;
- }
- onReleased: {
- timer.running = false;
- }
- }
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtScrollview.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtScrollview.qml deleted file mode 100644 index a42f74c9fe..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtScrollview.qml +++ /dev/null @@ -1,7 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-Flickable {
- id: theScrollView
- clip: true
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtText.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtText.qml deleted file mode 100644 index 9e7a93773f..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtText.qml +++ /dev/null @@ -1,6 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-Text {
- id: myText
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtTouchAreaEnums.js b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtTouchAreaEnums.js deleted file mode 100644 index f21a454065..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/BaseWidgets/FWdgtTouchAreaEnums.js +++ /dev/null @@ -1,12 +0,0 @@ -.pragma library
-
-var In = 1
-var Out = 2
-var Short = 4
-var Long = 8
-var Repeat = 16
-var InRepeat = 17
-var All = 31
-var Cancel = 32
-var DragOut = 64
-var DragIn = 128
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActScriptCall.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActScriptCall.qml deleted file mode 100644 index 39862d6f22..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActScriptCall.qml +++ /dev/null @@ -1,13 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-FAction {
- id: theAction
-
- signal script
-
- onExecute: {
- script();
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActSystemModelCall.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActSystemModelCall.qml deleted file mode 100644 index 5783286ccf..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActSystemModelCall.qml +++ /dev/null @@ -1,14 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-
-FAction {
- id: theAction
-
- signal call
-
- onExecute: {
- call();
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActTimer.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActTimer.qml deleted file mode 100644 index e31937a2b9..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActTimer.qml +++ /dev/null @@ -1,25 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-FAction {
- id: theAction
-
- property variant timer
- property int action: 1
-
- onExecute: {
- switch(action)
- {
- case TM.Start:
- timer.start();
- break;
- case TM.Restart:
- timer.restart();
- break;
- case TM.Stop:
- timer.stop();
- break;
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActWidgetCall.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActWidgetCall.qml deleted file mode 100644 index 6e7048fe9a..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActWidgetCall.qml +++ /dev/null @@ -1,13 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-FAction {
- id: theAction
-
- signal call
-
- onExecute: {
- call();
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActWidgetProperty.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActWidgetProperty.qml deleted file mode 100644 index 040695d298..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FActWidgetProperty.qml +++ /dev/null @@ -1,13 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-FAction {
- id: theAction
-
- signal change
-
- onExecute: {
- change();
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FAnimViewHide.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FAnimViewHide.qml deleted file mode 100644 index 4eef062bea..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FAnimViewHide.qml +++ /dev/null @@ -1,6 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-FAnimView {
- supportOutgoing: true
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FAnimationEnums.js b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FAnimationEnums.js deleted file mode 100644 index 117cb99267..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FAnimationEnums.js +++ /dev/null @@ -1,7 +0,0 @@ -.pragma library
-
-var Start = 1
-var Restart = 2
-var Pause = 3
-var Resume = 4
-var Stop = 0
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FConditionPool.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FConditionPool.qml deleted file mode 100644 index 97c502e517..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FConditionPool.qml +++ /dev/null @@ -1,5 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-QtObject {
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FDataPool.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FDataPool.qml deleted file mode 100644 index 97c502e517..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FDataPool.qml +++ /dev/null @@ -1,5 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-QtObject {
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FEventPool.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FEventPool.qml deleted file mode 100644 index add0413172..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FEventPool.qml +++ /dev/null @@ -1,9 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-QtObject {
- id: theEventPool
- default property alias events: theEventPool._events
- property list<FEvent> _events
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FGaugeValue.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FGaugeValue.qml deleted file mode 100644 index 1886d54af7..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FGaugeValue.qml +++ /dev/null @@ -1,51 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-// The FGauge allows to transform an input value range into an output value rang using a smooth transition
-// it can be e.g. used to transfrom the speed of a vehicle into an angle of the pointer needle
-// The borders of the input and output ranges are mapped to each other and a linear transformation is executed
-
-Item {
- id: theGauge
-
- // the time required to move through the full range from e.g. min to max
- property int fullSweepTime: 1000
-
- // minimum border, the input value can reach
- property double minInput: 0.0
- // maximum value, the input can reach
- property double maxInput: 100.0
- // the current input value. Each change will trigger an animated change of the output
- property double currentInput: 50.0
-
- // minimum border, the output value can reach
- property double minOutput: 0.0
- // maximum value, the output can reach
- property double maxOutput: 100.0
- //
- property double currentOutput: 50.0
-
- // this is the targetted output. Changing this, will trigger the animation to be executed
- property double targetOutput
- // this is the time required to move to the target value
- property int targetTime
-
- PropertyAnimation { id: anim; target: theGauge; properties: "currentOutput"; to: theGauge.targetOutput; duration: theGauge.targetTime }
-
- onCurrentInputChanged: {
- // we need to calculate the target and the required time to reach it
- var target = (currentInput - minInput) * (maxOutput - minOutput) / (maxInput - minInput) + minOutput;
- if(target < minOutput) {
- target = minOutput;
- }
- else if (target > maxOutput) {
- target = maxOutput;
- }
-
- targetTime = Math.abs((target - currentOutput) / (maxOutput - minOutput)) * fullSweepTime;
- if(targetTime > 0) {
- targetOutput = target;
- anim.restart();
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FHardwareKeyEnums.js b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FHardwareKeyEnums.js deleted file mode 100644 index ee1db632a7..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FHardwareKeyEnums.js +++ /dev/null @@ -1,9 +0,0 @@ -.pragma library
-
-var In = 1
-var Out = 2
-var Short = 4
-var Long = 8
-var Repeat = 16
-var InRepeat = 17
-var All = 31
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStringFormat.js b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStringFormat.js deleted file mode 100644 index 1a1d2af589..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStringFormat.js +++ /dev/null @@ -1,132 +0,0 @@ -var leadSection = ""
-var trailSection = ""
-var varName = ""
-var formatSection = ""
-
-var digits = 0
-var digitZeros = 0
-var decimals = 0
-var decimalsZeros = 0
-var decimalSymbol = "."
-
-function splitFormatString(format) {
- // we need to analyze the structure of the string first
- // a typical notation is like this: "{distance:#00.0#} km", where
- // "{" "}" variable limiters
- // "distance" variable name, this will be discarded and has not effect
- // "#" non-leading/-trailing zero character
- // "0" leading/trailing zero character
- // " km" additional text which will remain unchanged
- leadSection = ""
- trailSection = ""
- varName = ""
- formatSection = ""
-
- var startPos = 0;
- var searchStep = 0;
- for(var i = 0; i < format.length; ++i)
- {
- // search for the opening "{"
- if(searchStep === 0) {
- if(format.charAt(i)==='{') {
- leadSection = format.slice(startPos, i);
- startPos = i + 1;
- searchStep++;
- }
- }
- // search for the ":" or the closing "}"
- else if(searchStep === 1) {
- if(format.charAt(i) === '}') {
- formatSection = format.slice(startPos, i);
- startPos = i + 1;
- trailSection = format.slice(startPos)
- break;
- }
- else if(format.charAt(i) === ':') {
- varName = format.slice(startPos, i);
- startPos = i + 1;
- searchStep++;
- }
- }
- else if(searchStep === 2) {
- if(format.charAt(i) === '}') {
- formatSection = format.slice(startPos, i);
- startPos = i + 1;
- trailSection = format.slice(startPos)
- break;
- }
- }
- }
-
- // finally we need to create the formatting string for sprintf out of the formatSection
- digits = 0;
- digitZeros = 0;
- decimals = 0;
- decimalsZeros = 0;
- searchStep = 0;
- for(var i = 0; i < formatSection.length; ++i) {
- if(searchStep === 0) {
- if(formatSection.charAt(i) === '#') {
- digits++;
- }
- else if(formatSection.charAt(i) === '0') {
- digits++;
- digitZeros++;
- }
- else if(formatSection.charAt(i) === '.' || formatSection.charAt(i) === ',') {
- decimalSymbol = formatSection.charAt(i);
- searchStep++;
- }
- }
- else if(searchStep === 1) {
- if(formatSection.charAt(i) === '#') {
- decimals++;
- }
- else if(formatSection.charAt(i) === '0') {
- decimals++;
- decimalsZeros++;
- }
- }
- }
-}
-
-function formatOutput(data)
-{
- // format the output, first the digits
- var digitString = Math.floor(data).toString();
- if(digitString.length < digitZeros) {
- // zero pad the string
- var temp = "";
- for(var i = 0; i < digitZeros - digitString.length; ++i) {
- temp += '0';
- }
- digitString = temp + digitString;
- }
- else {
- digitString = digitString.slice(-digits);
- }
-
- var decimalString = (data - Math.floor(data)).toFixed(decimals).slice(2);
- if (decimalString.length > decimalsZeros) {
- for (var i = decimalString.length - 1; i >= decimalsZeros; i--)
- {
- if(decimalString.charAt(i) === '0')
- {
- decimalString = decimalString.slice(0, -1);
- }
- }
- }
- else {
- for (var i = decimalString.length; i < decimalsZeros; i++)
- {
- decimalString += '0';
- }
- }
-
- if (decimalString.length > 0) {
- return leadSection + digitString + decimalSymbol + decimalString + trailSection;
- }
- else {
- return leadSection + digitString + trailSection;
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStringFormat.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStringFormat.qml deleted file mode 100644 index c3be3832fa..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStringFormat.qml +++ /dev/null @@ -1,28 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import "FStringFormat.js" as CB
-
-QtObject {
- // output string for which is used as output
- property string output
-
- // this string defines the format of the output
- property string format
-
- // this is the data to be formatted into the output
- property variant data
-
-
- onFormatChanged: {
- CB.splitFormatString(format);
- }
-
- onDataChanged: {
- doFormat();
- }
-
- function doFormat()
- {
- output = CB.formatOutput(data);
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStyle.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStyle.qml deleted file mode 100644 index 5f9106f9af..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStyle.qml +++ /dev/null @@ -1,56 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-QtObject {
- id: _style
-
- Component.onCompleted: {
- FThemeProvider.themeChanged.connect(themeChanged);
- }
-
- // This property is used to assign a "style" filename to the style. This file loads the style data and updates the properties of the style
- property string styleFile: ""
-
- property bool themed: false
-
- onStyleFileChanged: {
- loadStyle(_style);
- }
-
- function themeChanged() {
- if (themed)
- {
- loadStyle(_style);
- }
- }
-
- // indicate, that the style has been updated to the attached widgets
- signal styleUpdated
-
- function loadStyle(style)
- {
- if(styleFile.length > 0) {
- console.log( "Loading style: " + styleFile + " (" + FThemeProvider.theme + ")")
- var xhr = new XMLHttpRequest();
- xhr.open("GET", FThemeProvider.resourcePath + FThemeProvider.getFileSubPath(styleFile + ".qmlstyle") + "/" + styleFile + ".qmlstyle");
- xhr.onreadystatechange = function() {
- if (xhr.readyState === XMLHttpRequest.DONE) {
- try {
- var a = JSON.parse(xhr.responseText);
- for (var b in a) {
- if (style.hasOwnProperty(b)) {
- style[b] = a[b];
- }
- }
- styleUpdated();
- }
- catch (ex) {
- console.log("Style exception (" + styleFile + "): " + ex);
- }
- }
- }
- xhr.send();
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStyler.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStyler.qml deleted file mode 100644 index 3fb89882da..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FStyler.qml +++ /dev/null @@ -1,41 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-QtObject {
- // this property can be FStyle, but only if the instance is created in place and not assigned. Otherwise we need to use variant
- //property FStyle style
- property variant style
- property variant styleTarget
-
- onStyleChanged: {
- if(style !== undefined && style !== null) {
- style.styleUpdated.connect(applyStyle);
- applyStyle();
- }
- }
-
- onStyleTargetChanged: {
- applyStyle();
- }
-
- function applyStyle()
- {
- if(style !== undefined && style !== null && styleTarget !== undefined && styleTarget !== null) {
- setStyledProperties(style, styleTarget)
- }
- }
-
- function setStyledProperties(style, target)
- {
- for(var prop in style) {
- // first filter unwanted properties
- if(prop !== "objectName" && prop.slice(-7) !== "Changed" ) {
- // process only properties owned by style & target
- if (target.hasOwnProperty(prop)) {
- // assign the value
- target[prop] = style[prop];
- }
- }
- }
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FTimer.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FTimer.qml deleted file mode 100644 index bc148998b9..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FTimer.qml +++ /dev/null @@ -1,6 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-Timer {
- triggeredOnStart: false
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FTimerEnums.js b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FTimerEnums.js deleted file mode 100644 index d657de1f0c..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FTimerEnums.js +++ /dev/null @@ -1,5 +0,0 @@ -.pragma library
-
-var Stop = 0
-var Start = 1
-var Restart = 2
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FTrgTimer.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FTrgTimer.qml deleted file mode 100644 index b3ac5f8a15..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FTrgTimer.qml +++ /dev/null @@ -1,19 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-import com.ford.hmiframework 1.0
-
-FTrigger {
- property QtObject timer
-
- onInit: {
- timer.triggered.connect(timerTrigger);
- }
-
- onCleanup: {
- timer.triggered.disconnect(timerTrigger);
- }
-
- function timerTrigger() {
- executeActions();
- }
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCase.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCase.qml deleted file mode 100644 index 258a1da623..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCase.qml +++ /dev/null @@ -1,9 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-State {
- default property alias propertyChange: myState.changes
- property alias condition: myState.when
- id: myState
- when: true === true
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCaseGroup.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCaseGroup.qml deleted file mode 100644 index 7b1fa6ba51..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCaseGroup.qml +++ /dev/null @@ -1,7 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-StateGroup {
- id: myUseCaseGroup
- default property alias useCases: myUseCaseGroup.states
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCaseSimple.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCaseSimple.qml deleted file mode 100644 index 44da5a5a79..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCaseSimple.qml +++ /dev/null @@ -1,15 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-StateGroup {
- default property alias propertyChange: theState.changes
- property alias condition: theState.when
-
- states: [
- State {
- id: theState
- name: "*"
- when: true == true
- }
- ]
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCaseTransition.qml b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCaseTransition.qml deleted file mode 100644 index 24f6acfa4f..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qml/Framework/FViewUseCaseTransition.qml +++ /dev/null @@ -1,6 +0,0 @@ -// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
-import QtQuick 2.0
-
-Transition {
- to: "*"
-}
diff --git a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qmldir b/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qmldir deleted file mode 100644 index 3ccd0e58e8..0000000000 --- a/src/components/qt_hmi/References/Look/plugins/com/ford/hmiframework/qmldir +++ /dev/null @@ -1,35 +0,0 @@ -module com.ford.hmiframework
-plugin QtHMIFramework
-typeinfo plugin.qmltypes
-FActScriptCall 1.0 qml/Framework/FActScriptCall.qml
-FActSystemModelCall 1.0 qml/Framework/FActSystemModelCall.qml
-FActTimer 1.0 qml/Framework/FActTimer.qml
-FActWidgetCall 1.0 qml/Framework/FActWidgetCall.qml
-FActWidgetProperty 1.0 qml/Framework/FActWidgetProperty.qml
-FConditionPool 1.0 qml/Framework/FConditionPool.qml
-FDataPool 1.0 qml/Framework/FDataPool.qml
-FEventPool 1.0 qml/Framework/FEventPool.qml
-FGaugeValue 1.0 qml/Framework/FGaugeValue.qml
-FStringFormat 1.0 qml/Framework/FStringFormat.qml
-FStyle 1.0 qml/Framework/FStyle.qml
-FStyler 1.0 qml/Framework/FStyler.qml
-FTimer 1.0 qml/Framework/FTimer.qml
-FTrgTimer 1.0 qml/Framework/FTrgTimer.qml
-FViewUseCase 1.0 qml/Framework/FViewUseCase.qml
-FViewUseCaseGroup 1.0 qml/Framework/FViewUseCaseGroup.qml
-FViewUseCaseSimple 1.0 qml/Framework/FViewUseCaseSimple.qml
-FViewUseCaseTransition 1.0 qml/Framework/FViewUseCaseTransition.qml
-FWdgtBorderImage 1.0 qml/BaseWidgets/FWdgtBorderImage.qml
-FWdgtContainer 1.0 qml/BaseWidgets/FWdgtContainer.qml
-FWdgtImage 1.0 qml/BaseWidgets/FWdgtImage.qml
-FWdgtListView 1.0 qml/BaseWidgets/FWdgtListView.qml
-FWdgtPathView 1.0 qml/BaseWidgets/FWdgtPathView.qml
-FWdgtGridView 1.0 qml/BaseWidgets/FWdgtGridView.qml
-FWdgtScrollbar 1.0 qml/BaseWidgets/FWdgtScrollbar.qml
-FWdgtScrollview 1.0 qml/BaseWidgets/FWdgtScrollview.qml
-FWdgtScrollText 1.0 qml/BaseWidgets/FWdgtScrollText.qml
-FWdgtText 1.0 qml/BaseWidgets/FWdgtText.qml
-HK 1.0 qml/Framework/FHardwareKeyEnums.js
-TA 1.0 qml/BaseWidgets/FWdgtTouchAreaEnums.js
-ANIM 1.0 qml/Framework/FAnimationEnums.js
-TM 1.0 qml/Framework/FTimerEnums.js
diff --git a/src/components/qt_hmi/References/Work/bananasnacks/BananaSnacks.pro b/src/components/qt_hmi/References/Work/bananasnacks/BananaSnacks.pro deleted file mode 100644 index c20d41ede5..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/BananaSnacks.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add more folders to ship with the application, here -folder_01.source = qml/Bananas -folder_01.target = qml - -folder_02.source = plugins/com -folder_02.target = plugins -DEPLOYMENTFOLDERS = folder_01 folder_02 - -SOURCES += main.cpp - -linux-g++* { - QMAKE_CXXFLAGS += -m32 - QMAKE_LFLAGS += -m32 -L/usr/lib/i386-linux-gnu/mesa -} - -# Please do not modify the following two lines. Required for deployment. -include(qtquick2applicationviewer/qtquick2applicationviewer.pri) -qtcAddDeployment() - -OTHER_FILES += \ - qml/Bananas/Layouts/TitledLayout.qml diff --git a/src/components/qt_hmi/References/Work/bananasnacks/Bananas.desktop b/src/components/qt_hmi/References/Work/bananasnacks/Bananas.desktop deleted file mode 100644 index a7bfa0111f..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/Bananas.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Version=1.0 -Type=Application -Terminal=false -Name=Bananas -Exec=/opt/Bananas/bin/Bananas -Icon=Bananas64 -X-Window-Icon= -X-HildonDesk-ShowInToolbar=true -X-Osso-Type=application/x-executable diff --git a/src/components/qt_hmi/References/Work/bananasnacks/Bananas64.png b/src/components/qt_hmi/References/Work/bananasnacks/Bananas64.png Binary files differdeleted file mode 100644 index 707d5c4e85..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/Bananas64.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/Bananas80.png b/src/components/qt_hmi/References/Work/bananasnacks/Bananas80.png Binary files differdeleted file mode 100644 index 6ad8096c45..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/Bananas80.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/Bananas_harmattan.desktop b/src/components/qt_hmi/References/Work/bananasnacks/Bananas_harmattan.desktop deleted file mode 100644 index 5ced151d06..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/Bananas_harmattan.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Version=1.0 -Type=Application -Terminal=false -Name=Bananas -Exec=/usr/bin/single-instance /opt/Bananas/bin/Bananas -Icon=/usr/share/icons/hicolor/80x80/apps/Bananas80.png -X-Window-Icon= -X-HildonDesk-ShowInToolbar=true -X-Osso-Type=application/x-executable diff --git a/src/components/qt_hmi/References/Work/bananasnacks/README.md b/src/components/qt_hmi/References/Work/bananasnacks/README.md deleted file mode 100644 index 993a4bf59d..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/README.md +++ /dev/null @@ -1,37 +0,0 @@ -#### sudo vi /etc/apt/apt.conf - -``ruby -Acquire::http::proxy "http://proxyvipecc.nb.ford.com:83"; -Acquire::https::proxy "https://proxyvipecc.nb.ford.com:83"; -`` - -``bash -sudo apt-get update -sudo apt-get install git vim build-essential mesa-common-dev libgl1-mesa-dev # for 64bit: libc6-dev-i386 lib32stdc++6 lib32stdc++6-4.7-dev libgl1-mesa-dev:i386 - -ssh-keygen -<enter x3> -cat ~/.ssh/id_rsa.pub # Save this as a public ssh key on your Gitlab account - -git clone git@devbox.pd8.ford.com:zchurch/bananasnacks.git # Type 'yes' to trust the remote host - -wget http://releases.qt-project.org/qt5/5.0.1/qt-linux-opensource-5.0.1-x86-offline.run -chmod +x qt-linux-opensource-5.0.1-x86-offline.run -./qt-linux-opensource-5.0.1-x86-offline.run # Press next, accept, etc... Do install the Tools. This includes Creator. - -echo "export PATH=\$PATH:~/Qt5.0.1/5.0.1/gcc/bin" >> ~/.bashrc - -cd ~/bananasnacks -./fetch_plugins.sh -qmake -make -./Bananas - -`` - - -### Troubleshooting - -#### bash: ./qt-linux-opensource-5.0.1-x86-offline.run: No such file or directory -You didn't install all your apt-get things. You're missing ia32-libs. Or the file isn't there. - diff --git a/src/components/qt_hmi/References/Work/bananasnacks/bananas.qmlproject b/src/components/qt_hmi/References/Work/bananasnacks/bananas.qmlproject deleted file mode 100644 index f9502d2a90..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/bananas.qmlproject +++ /dev/null @@ -1,19 +0,0 @@ -import QmlProject 1.1 - -Project { - mainFile: "qml/Bananas/main.qml" - - QmlFiles { - directory: "." - } - - JavaScriptFiles { - directory: "." - } - - ImageFiles { - directory: "." - } - - importPaths: [ "plugins" ] -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/fetch_plugins.sh b/src/components/qt_hmi/References/Work/bananasnacks/fetch_plugins.sh deleted file mode 100755 index 0f90baeb58..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/fetch_plugins.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -wget http://19.7.95.92/uploads/note/attachment/12/libFordMediaCore.so -chmod 775 libFordMediaCore.so -mv libFordMediaCore.so plugins/com/ford/mediacore - -wget http://19.7.95.92/uploads/note/attachment/11/libFordPhoneCore.so -chmod 775 libFordPhoneCore.so -mv libFordPhoneCore.so plugins/com/ford/phonecore diff --git a/src/components/qt_hmi/References/Work/bananasnacks/load_env.sh b/src/components/qt_hmi/References/Work/bananasnacks/load_env.sh deleted file mode 100755 index 0f094b5275..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/load_env.sh +++ /dev/null @@ -1 +0,0 @@ -# source ./load_env.sh diff --git a/src/components/qt_hmi/References/Work/bananasnacks/main.cpp b/src/components/qt_hmi/References/Work/bananasnacks/main.cpp deleted file mode 100644 index bb40110e13..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/main.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include <QtGui/QGuiApplication> -#include <QQmlContext> -#include "qtquick2applicationviewer.h" - -int main(int argc, char* argv[]) { - QGuiApplication app(argc, argv); - - QtQuick2ApplicationViewer viewer; - - viewer.addImportPath(QStringLiteral("plugins")); - - viewer.setMainQmlFile(QStringLiteral("qml/Bananas/main.qml")); - viewer.showExpanded(); - - return app.exec(); -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/mediacore/qmldir b/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/mediacore/qmldir deleted file mode 100644 index bb93f40934..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/mediacore/qmldir +++ /dev/null @@ -1,2 +0,0 @@ -module com.ford.mediacore -plugin FordMediaCore diff --git a/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/navcore/qmldir b/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/navcore/qmldir deleted file mode 100644 index aaacfe020e..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/navcore/qmldir +++ /dev/null @@ -1,3 +0,0 @@ -module com.ford.navcore -plugin FordNavCore - diff --git a/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/phonecore/qmldir b/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/phonecore/qmldir deleted file mode 100644 index 861f2e2232..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/phonecore/qmldir +++ /dev/null @@ -1,3 +0,0 @@ -module com.ford.phonecore -plugin FordPhoneCore - diff --git a/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/sdlcore/qmldir b/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/sdlcore/qmldir deleted file mode 100644 index da1a7b7f96..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/plugins/com/ford/sdlcore/qmldir +++ /dev/null @@ -1,3 +0,0 @@ -module com.ford.sdlcore -plugin FordSdlCore - diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/AddIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/AddIcon.png Binary files differdeleted file mode 100644 index 7111c7c932..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/AddIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/BackIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/BackIcon.png Binary files differdeleted file mode 100644 index d8e6079685..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/BackIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/BluetoothIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/BluetoothIcon.png Binary files differdeleted file mode 100644 index 1a65f07518..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/BluetoothIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/CMaxCal.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/CMaxCal.png Binary files differdeleted file mode 100644 index cfb6d6d59e..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/CMaxCal.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ChromeBottom.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ChromeBottom.png Binary files differdeleted file mode 100644 index 91ed3ef6e2..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ChromeBottom.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ChromeTop.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ChromeTop.png Binary files differdeleted file mode 100644 index d7ba38ab8c..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ChromeTop.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Cloud.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Cloud.png Binary files differdeleted file mode 100644 index 4555d71dfb..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Cloud.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/CloudNight.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/CloudNight.png Binary files differdeleted file mode 100644 index c21373f220..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/CloudNight.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Content/FunArtwork.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Content/FunArtwork.png Binary files differdeleted file mode 100644 index 251db8a7a5..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Content/FunArtwork.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Content/MapMich.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Content/MapMich.png Binary files differdeleted file mode 100644 index 2f8dc5130c..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Content/MapMich.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Content/SiriusArtwork.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Content/SiriusArtwork.png Binary files differdeleted file mode 100644 index 49a01feeaf..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Content/SiriusArtwork.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Crosshairs.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Crosshairs.png Binary files differdeleted file mode 100644 index 52430d8c56..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Crosshairs.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/DeleteIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/DeleteIcon.png Binary files differdeleted file mode 100644 index f47954968c..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/DeleteIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/DndIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/DndIcon.png Binary files differdeleted file mode 100644 index caa6489154..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/DndIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/EvIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/EvIcon.png Binary files differdeleted file mode 100644 index 6c58389891..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/EvIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/FavoritesIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/FavoritesIcon.png Binary files differdeleted file mode 100644 index 0871c51503..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/FavoritesIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Forward.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Forward.png Binary files differdeleted file mode 100644 index 02548e946d..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Forward.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/HomeIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/HomeIcon.png Binary files differdeleted file mode 100644 index 2bdd652e0a..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/HomeIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/KeyboardIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/KeyboardIcon.png Binary files differdeleted file mode 100644 index c6797a440b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/KeyboardIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/KeypadEntryIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/KeypadEntryIcon.png Binary files differdeleted file mode 100644 index b9ca08ad02..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/KeypadEntryIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/KeypadIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/KeypadIcon.png Binary files differdeleted file mode 100644 index a70ee397fe..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/KeypadIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/LightingIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/LightingIcon.png Binary files differdeleted file mode 100644 index 3847da93c8..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/LightingIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Loop.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Loop.png Binary files differdeleted file mode 100644 index 4405a629ce..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Loop.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/MediaTab.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/MediaTab.png Binary files differdeleted file mode 100644 index 482b6821e2..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/MediaTab.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/MessagesIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/MessagesIcon.png Binary files differdeleted file mode 100644 index 5e86d80c76..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/MessagesIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/MissingArtwork.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/MissingArtwork.png Binary files differdeleted file mode 100644 index 525e4b9158..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/MissingArtwork.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/NavigationTab.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/NavigationTab.png Binary files differdeleted file mode 100644 index 4bce721385..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/NavigationTab.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PandoraIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PandoraIcon.png Binary files differdeleted file mode 100644 index 55498b9134..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PandoraIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Pause.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Pause.png Binary files differdeleted file mode 100644 index bbede19900..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Pause.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhoneCornerIcons.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhoneCornerIcons.png Binary files differdeleted file mode 100644 index 281e20a1f4..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhoneCornerIcons.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhoneIcons.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhoneIcons.png Binary files differdeleted file mode 100644 index e4071e0932..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhoneIcons.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhoneTab.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhoneTab.png Binary files differdeleted file mode 100644 index 9b36907b33..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhoneTab.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhonebookIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhonebookIcon.png Binary files differdeleted file mode 100644 index 6af9c10463..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PhonebookIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Play.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Play.png Binary files differdeleted file mode 100644 index 1b665e3633..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Play.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PoiIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PoiIcon.png Binary files differdeleted file mode 100644 index b7b532db7b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/PoiIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RadioIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RadioIcon.png Binary files differdeleted file mode 100644 index f660610202..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RadioIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RecentCallsIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RecentCallsIcon.png Binary files differdeleted file mode 100644 index 16a31b29ba..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RecentCallsIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RecentDestinationsIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RecentDestinationsIcon.png Binary files differdeleted file mode 100644 index 4351243d4b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RecentDestinationsIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Rewind.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Rewind.png Binary files differdeleted file mode 100644 index 798f754801..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Rewind.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RightTurn.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RightTurn.png Binary files differdeleted file mode 100644 index b1d03d24ae..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/RightTurn.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ScoutIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ScoutIcon.png Binary files differdeleted file mode 100644 index 2c8e7cb2da..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ScoutIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SearchIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SearchIcon.png Binary files differdeleted file mode 100644 index 571d06c97b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SearchIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SeatsIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SeatsIcon.png Binary files differdeleted file mode 100644 index caff60c58b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SeatsIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ServicesIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ServicesIcon.png Binary files differdeleted file mode 100644 index 63a5a6a9db..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/ServicesIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Shuffle.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Shuffle.png Binary files differdeleted file mode 100644 index 4b3fc65c61..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/Shuffle.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SiriusIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SiriusIcon.png Binary files differdeleted file mode 100644 index 0ea1209925..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SiriusIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SpeedDialIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SpeedDialIcon.png Binary files differdeleted file mode 100644 index f871a96543..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/SpeedDialIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/UsbIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/UsbIcon.png Binary files differdeleted file mode 100644 index 8f0c759edf..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/UsbIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VehicleCornerIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VehicleCornerIcon.png Binary files differdeleted file mode 100644 index 79a277b185..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VehicleCornerIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VehicleTab.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VehicleTab.png Binary files differdeleted file mode 100644 index b6fb90276f..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VehicleTab.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VhrIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VhrIcon.png Binary files differdeleted file mode 100644 index c27ac4a874..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VhrIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VoicemailIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VoicemailIcon.png Binary files differdeleted file mode 100644 index c3f91de709..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/VoicemailIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/WallpaperIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/WallpaperIcon.png Binary files differdeleted file mode 100644 index e3277af0ac..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/WallpaperIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/WifiIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/WifiIcon.png Binary files differdeleted file mode 100644 index 97ce15688d..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/WifiIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/WorkIcon.png b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/WorkIcon.png Binary files differdeleted file mode 100644 index 69e50caa39..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Assets/WorkIcon.png +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/BackButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/BackButton.qml deleted file mode 100644 index 61f0311815..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/BackButton.qml +++ /dev/null @@ -1,9 +0,0 @@ -import QtQuick 2.0 - -ImageButton { - icon: "../Assets/BackIcon.png" - height: 42 - width: 60 - anchors.top: parent.top - anchors.left: parent.left -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Button.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Button.qml deleted file mode 100644 index 7f3c30126b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Button.qml +++ /dev/null @@ -1,32 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - signal press - property alias text: clickable.text - property alias textAnchors: clickable.textAnchors - property alias clickable: clickable - id: container - border.color: "#333" - border.width: 1 - height: 45 - width: 150 - radius: 3 - gradient: Gradient { - GradientStop { - position: 0.0 - color: clickable.pressed ? "#3C1414" : Qt.rgba(0.18, 0.18, 0.18, 1) - } - GradientStop { - position: 1.0 - color: clickable.pressed ? "#9C3335" : "black" - } - } - Clickable { - anchors.fill: parent - id: clickable - onPress: container.press() - - textAnchors.horizontalCenter: horizontalCenter - textAnchors.verticalCenter: verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/CheckButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/CheckButton.qml deleted file mode 100644 index 713d00d1b3..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/CheckButton.qml +++ /dev/null @@ -1,36 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - signal press - property alias text: clickable.text - - states: [ - State { - name: 'pressed' - } - ] - id: container - border.color: "#333" - border.width: 1 - height: 45 - width: 150 - radius: 3 - gradient: Gradient { - GradientStop { - position: 0.0 - color: (state === 'pressed' || clickable.pressed) ? "#3C1414" : Qt.rgba(0.18, 0.18, 0.18, 1) - } - GradientStop { - position: 1.0 - color: (state === 'pressed' || clickable.pressed) ? "#9C3335" : "black" - } - } - Clickable { - anchors.fill: parent - id: clickable - onPress: { container.press(); container.state = (container.state === '') ? 'pressed' : '' } - - textAnchors.horizontalCenter: horizontalCenter - textAnchors.verticalCenter: verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Clickable.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Clickable.qml deleted file mode 100644 index 2fdc97d7cd..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Clickable.qml +++ /dev/null @@ -1,24 +0,0 @@ -import QtQuick 2.0 - -Item { - property alias text: text.text - property alias pressed: mousearea.pressed - property alias textAnchors: text.anchors - signal press - - id: container - - Text { - id: text - color: "white" - font.pixelSize: 16 - } - - MouseArea { - id: mousearea - width: parent.width - height: parent.height - - onClicked: container.press() - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/GraphicalButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/GraphicalButton.qml deleted file mode 100644 index 2e670682ee..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/GraphicalButton.qml +++ /dev/null @@ -1,40 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - signal press - property alias text: clickable.text - property alias image: image.source - - id: container - border.color: "#333" - border.width: 1 - height: 110 - width: 150 - radius: 3 - gradient: Gradient { - GradientStop { - position: 0.0 - color: clickable.pressed ? "#3C1414" : Qt.rgba(0.18, 0.18, 0.18, 1) - } - GradientStop { - position: 1.0 - color: clickable.pressed ? "#9C3335" : "black" - } - } - Clickable { - anchors.fill: parent - id: clickable - onPress: container.press() - - textAnchors.horizontalCenter: horizontalCenter - textAnchors.bottom: bottom - textAnchors.bottomMargin: 10 - - Image { - id: image - anchors.top: parent.top - anchors.topMargin: 10 - anchors.horizontalCenter: parent.horizontalCenter - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H1.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H1.qml deleted file mode 100644 index b68c7f0f1b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H1.qml +++ /dev/null @@ -1,6 +0,0 @@ -import QtQuick 2.0 - -Text { - color: "#fff" - font.pixelSize: 32 -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H2.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H2.qml deleted file mode 100644 index 775838be06..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/H2.qml +++ /dev/null @@ -1,9 +0,0 @@ -import QtQuick 2.0 - -Text { - color: "#fff" - font.pixelSize: 24 - anchors.margins: 20 - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/ImageButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/ImageButton.qml deleted file mode 100644 index 81c18a4311..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/ImageButton.qml +++ /dev/null @@ -1,13 +0,0 @@ -import QtQuick 2.0 - -Button { - property alias icon: icon.source - - width: icon.width + 30 - - Image { - id: icon - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Key.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Key.qml deleted file mode 100644 index 7fe5dbab83..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Key.qml +++ /dev/null @@ -1,7 +0,0 @@ -import QtQuick 2.0 - -Button { - width: 60 - - onPress: keyboard.letterClicked(text) -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keyboard.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keyboard.qml deleted file mode 100644 index fc5d26aa88..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keyboard.qml +++ /dev/null @@ -1,129 +0,0 @@ -import QtQuick 2.0 - -Item { - signal letterClicked(string letter) - signal go() - id: keyboard - - states: [ - State { - name: 'numpad' - PropertyChanges { - target: qwerty - visible: false - } - PropertyChanges { - target: numpad - visible: true - } - } - - ] - - Column { - id: qwerty - anchors.fill: parent - spacing: 10 - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "Q" } - Key { text: "W" } - Key { text: "E" } - Key { text: "R" } - Key { text: "T" } - Key { text: "Y" } - Key { text: "U" } - Key { text: "I" } - Key { text: "O" } - Key { text: "P" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "A" } - Key { text: "S" } - Key { text: "D" } - Key { text: "F" } - Key { text: "G" } - Key { text: "H" } - Key { text: "J" } - Key { text: "K" } - Key { text: "L" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "Z" } - Key { text: "X" } - Key { text: "C" } - Key { text: "V" } - Key { text: "B" } - Key { text: "N" } - Key { text: "M" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - Button { text: "123"; width: 60 - onPress: keyboard.state = 'numpad' - } - Button { text: "!@#"; width: 60 } - Key { text: " "; width: 300 } - Key { text: "." } - Key { text: "&" } - } - } - - Column { - id: numpad - visible: false - anchors.fill: parent - spacing: 10 - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "1" } - Key { text: "2" } - Key { text: "3" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "4" } - Key { text: "5" } - Key { text: "6" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "7" } - Key { text: "8" } - Key { text: "9" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Button { - text: "ABC" - width: 60 - onPress: keyboard.state = '' - } - Key { text: "*" } - Key { text: "0" } - Key { text: "#" } - Button { - text: "Go" - width: 60 - onPress: keyboard.go() - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keypad.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keypad.qml deleted file mode 100644 index 0dc0115acf..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Keypad.qml +++ /dev/null @@ -1,43 +0,0 @@ -import QtQuick 2.0 - -Item { - signal letterClicked(string letter) - id: keyboard - - Column { - anchors.fill: parent - spacing: 10 - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "1" } - Key { text: "2" } - Key { text: "3" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "4" } - Key { text: "5" } - Key { text: "6" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "7" } - Key { text: "8" } - Key { text: "9" } - } - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - Key { text: "*" } - Key { text: "0" } - Key { text: "#" } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/MediaBrowser.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/MediaBrowser.qml deleted file mode 100644 index f0ef3ed2ae..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/MediaBrowser.qml +++ /dev/null @@ -1,40 +0,0 @@ -import QtQuick 2.0 - -ListView { - id: listView - anchors.fill: parent - anchors.topMargin: 120 - spacing: 10 - clip: true - model: MediaModel - - delegate: Button { - width: 500 - anchors.horizontalCenter: parent.horizontalCenter - OverflowableText { - text: name - fontColor: "#fff" - font.pixelSize: 20 - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 20 - width: parent.width - 40 - } - Text { - text: (model.count === 0) ? "" : model.count - anchors.right: parent.right - anchors.rightMargin: 20 - anchors.verticalCenter: parent.verticalCenter - color: "#fff" - } - - onPress: { - if (model.is_file) { - MediaPlayer.setPlaylist(model.pid, model.index); - usb.state = ''; - } else { - MediaModel.browseToChild(model.id) - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/OverflowableText.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/OverflowableText.qml deleted file mode 100644 index 3149943613..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/OverflowableText.qml +++ /dev/null @@ -1,46 +0,0 @@ -import QtQuick 2.0 -import QtGraphicalEffects 1.0 - -Rectangle { - id: oflow_text - property alias text: text.text - property alias font: text.font - property alias fontColor: text.color - property string textAlign - color: Qt.rgba(0,0,0,0) - height: text.font.pixelSize * 1.2 - clip: true - Text { - id: text - Component.onCompleted: { - if (oflow_text.width < width) { - anchors.left = parent.left - } - else if (oflow_text.textAlign == 'center') { - anchors.horizontalCenter = parent.horizontalCenter - } - } - - NumberAnimation on anchors.leftMargin { - id: scroll_animation - to: oflow_text.width - text.width - duration: ((oflow_text.width - text.width) < 0) ? (text.width - oflow_text.width) * 15 : 0 - running: false - onStopped: { - restart_timer.start() - } - } - } - - Timer { - id: scroll_timer - running: true - interval: 3000 - onTriggered: { if (oflow_text.width < text.width) scroll_animation.start();} - } - Timer { - id: restart_timer - interval: 3000 - onTriggered: text.anchors.leftMargin = 0 - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButton.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButton.qml deleted file mode 100644 index 676d65be39..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButton.qml +++ /dev/null @@ -1,30 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - signal press - property alias text: clickable.text - id: container - border.color: "#333" - border.width: 1 - height: 45 - width: 150 - radius: 3 - gradient: Gradient { - GradientStop { - position: 0.0 - color: (container.focus || clickable.pressed) ? "#3C1414" : Qt.rgba(0.18, 0.18, 0.18, 1) - } - GradientStop { - position: 1.0 - color: (container.focus || clickable.pressed) ? "#9C3335" : "black" - } - } - Clickable { - anchors.fill: parent - id: clickable - onPress: { container.forceActiveFocus(); container.press(); } - - textAnchors.horizontalCenter: horizontalCenter - textAnchors.verticalCenter: verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButtonGroup.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButtonGroup.qml deleted file mode 100644 index d4266d149b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/RadioButtonGroup.qml +++ /dev/null @@ -1,5 +0,0 @@ -import QtQuick 2.0 - -FocusScope { - -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Section.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Section.qml deleted file mode 100644 index 18b5c22f7d..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Section.qml +++ /dev/null @@ -1,6 +0,0 @@ -import QtQuick 2.0 - -Loader { - anchors.fill: parent - asynchronous: true -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextBox.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextBox.qml deleted file mode 100644 index 4c52e05b2a..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextBox.qml +++ /dev/null @@ -1,29 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - property alias text: text.text - property alias icon: icon.source - - border.width: 2 - color: 'black' - height: 42 - radius: 3 - - Image { - id: icon - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 20 - } - - TextInput { - id: text - color: "white" - font.pixelSize: 24 - anchors.left: icon.right - anchors.right: parent.right - anchors.leftMargin: 20 - anchors.rightMargin: 10 - anchors.verticalCenter: parent.verticalCenter - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextEntry.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextEntry.qml deleted file mode 100644 index 774894c137..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/TextEntry.qml +++ /dev/null @@ -1,72 +0,0 @@ -import QtQuick 2.0 - -Item { - id: textentry - property alias input_border: search_text_box.border - property alias autocompleteModel: autocomplete.model - property alias text: search_text_box.text - signal selected - anchors.fill: parent - - TextBox { - id: search_text_box - icon: "../Assets/SearchIcon.png" - anchors.top: parent.top - width: parent.width - 160 - anchors.horizontalCenter: parent.horizontalCenter - - onTextChanged: if (autocomplete.model) autocomplete.model.setSearchString(text) - } - - BackButton { - anchors.top: search_text_box.top - anchors.topMargin: 1 - anchors.right: search_text_box.left - anchors.rightMargin: 10 - onPress: section.state = 'menu' - } - - ImageButton { - anchors.top: search_text_box.top - anchors.topMargin: 1 - icon: "../Assets/DeleteIcon.png" - anchors.left: search_text_box.right - anchors.leftMargin: 10 - height: 42 - - onPress: search_text_box.text = search_text_box.text.replace(/.$/, '') - } - - Keyboard { - anchors.left: parent.left - anchors.right: parent.right - anchors.topMargin: 40 - anchors.top: search_text_box.bottom - - onLetterClicked: search_text_box.text += letter - onGo: textentry.selected() - } - - ListView { - id: autocomplete - anchors.top: search_text_box.bottom - anchors.bottom: parent.bottom - anchors.right: search_text_box.right - anchors.left: search_text_box.left - clip: true - visible: (count > 0 && count <= 5) - - delegate: Button { - text: model.text - width: parent.width - textAnchors.horizontalCenter: undefined - textAnchors.left: clickable.left - textAnchors.leftMargin: 70 - - onPress: { - autocomplete.model.selected = model.text; - textentry.selected() - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Weather.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Weather.qml deleted file mode 100644 index 0bcaf77205..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Components/Weather.qml +++ /dev/null @@ -1,34 +0,0 @@ -import QtQuick 2.0 - -Item { - property alias text: text.text - property alias temp: temp.text - property alias image: image.source - - width: 150 - height: 75 - - Text { - id: text - text: "Today" - anchors.top: parent.top - color: "#ffffff" - anchors.horizontalCenter: parent.horizontalCenter - } - - Text { - id: temp - text: "72" - font.pixelSize: 36 - anchors.bottom: parent.bottom - anchors.right: parent.right - color: "#ffffff" - } - - Image { - id: image - source: "../Assets/Cloud.png" - anchors.left: parent.left - anchors.bottom: parent.bottom - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/EmptyLayout.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/EmptyLayout.qml deleted file mode 100644 index 8fe6fcfd7c..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/EmptyLayout.qml +++ /dev/null @@ -1,16 +0,0 @@ -import QtQuick 2.0 -import "../Components" - -Item { - anchors.fill: parent - anchors.topMargin: 70 - anchors.leftMargin: 20 - anchors.rightMargin: 20 - anchors.bottomMargin: 70 - property bool back_button: false - - BackButton { - onPress: section.state = '' - visible: parent.back_button - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/LeftThirdSection.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/LeftThirdSection.qml deleted file mode 100644 index b0a7c2f6af..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/LeftThirdSection.qml +++ /dev/null @@ -1,16 +0,0 @@ -import QtQuick 2.0 -import "../Components" - -FocusScope { - anchors.fill: parent - property alias header: header.text - - Text { - id: header - font.pixelSize: 24 - color: "#ffffff" - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - anchors.topMargin: 70 - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/MediaLayout.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/MediaLayout.qml deleted file mode 100644 index 767184de36..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/MediaLayout.qml +++ /dev/null @@ -1,59 +0,0 @@ -import QtQuick 2.0 -import "../Components" - -FocusScope { - anchors.fill: parent - property alias header: header.text - property alias artwork: artwork.source - property alias title: title.text - property alias artist: artist.text - - Text { - id: title - text: "" - color: "#ffffff" - anchors.top: source_select.bottom - anchors.topMargin: 20 - font.pixelSize: 28 - anchors.left: parent.left - anchors.leftMargin: 20 - } - Text { - id: artist - text: "" - color: "#ffffff" - anchors.top: title.bottom - anchors.topMargin: 10 - font.pixelSize: 18 - anchors.left: title.left - } - - Text { - id: header - font.pixelSize: 24 - color: "#ffffff" - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - anchors.topMargin: parent.height / 20 + 60 - } - - Button { - id: source_select - text: "Select source" - x: 20 - y: 75 - onPress: section.state = 'menu' - } - - Image { - id: artwork - anchors.right: parent.right - anchors.rightMargin: 40 - anchors.top: parent.top - width: 230 - height: 230 - anchors.topMargin: 140 - source: "" - } - -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/MediaPlayerLayout.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/MediaPlayerLayout.qml deleted file mode 100644 index 797815d058..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/MediaPlayerLayout.qml +++ /dev/null @@ -1,34 +0,0 @@ -import QtQuick 2.0 -import "../Components" - -MediaLayout { - - Row { - anchors.bottom: parent.bottom - anchors.bottomMargin: 100 - anchors.left: parent.left - anchors.leftMargin: 20 - spacing: 10 - - ImageButton { - icon: "../Assets/Rewind.png" - onPress: MediaPlayer.previous() - } - - ImageButton { - icon: "../Assets/Pause.png" - visible: MediaPlayer.playing - onPress: MediaPlayer.pause() - } - ImageButton { - icon: "../Assets/Play.png" - visible: ! MediaPlayer.playing - onPress: MediaPlayer.play() - } - ImageButton { - icon: "../Assets/Forward.png" - onPress: MediaPlayer.next() - } - - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/TitledLayout.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/TitledLayout.qml deleted file mode 100644 index 2ef47fa101..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Layouts/TitledLayout.qml +++ /dev/null @@ -1,14 +0,0 @@ -import QtQuick 2.0 -import "../Components" - -EmptyLayout { - property alias title: title.text - anchors.topMargin: 120 - - H1 { - id: title - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: parent.top - anchors.bottomMargin: 10 - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/.usb.qml.swp b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/.usb.qml.swp Binary files differdeleted file mode 100644 index a88c240c3a..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/.usb.qml.swp +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/Browse/artists.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/Browse/artists.qml deleted file mode 100644 index af5804e72e..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/Browse/artists.qml +++ /dev/null @@ -1,6 +0,0 @@ -import QtQuick 2.0 - -Rectangle { - width: 100 - height: 62 -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/applink.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/applink.qml deleted file mode 100644 index 4f9d281964..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/applink.qml +++ /dev/null @@ -1,29 +0,0 @@ -import QtQuick 2.0 -import com.ford.sdlcore 1.0 -import "../../Components" -import "../../Layouts" - -MediaPlayerLayout { - header: "AppLink" - id: applink - - Column { - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 20 - - Text { - id: title - text: AppLink.show1 - color: "#ffffff" - font.pixelSize: 28 - anchors.leftMargin: 20 - } - Text { - id: artist - text: AppLink.show2 - color: "#ffffff" - font.pixelSize: 18 - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/bluetooth.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/bluetooth.qml deleted file mode 100644 index 397b844698..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/bluetooth.qml +++ /dev/null @@ -1,13 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import "../../Layouts" - -MediaLayout { - header: "Bluetooth" - - Image { - source: "../../Assets/Content/SiriusArtwork.png" - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/fm.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/fm.qml deleted file mode 100644 index b5f3ad1c8c..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/fm.qml +++ /dev/null @@ -1,46 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import "../../Layouts" - -MediaLayout { - header: "FM" - - Flickable { - width: 700 - height: 50 - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: parent.bottom - anchors.bottomMargin: 80 - contentHeight: height - contentWidth: row.width - clip: true - - RadioButtonGroup { - width: row.width - height: row.height - Row { - id: row - spacing: 8 - - RadioButton { - text: "Button" - } - RadioButton { - text: "Button" - } - RadioButton { - text: "Button" - } - RadioButton { - text: "Button" - } - RadioButton { - text: "Button" - } - RadioButton { - text: "Button" - } - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/menu.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/menu.qml deleted file mode 100644 index d9d951ef3b..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/menu.qml +++ /dev/null @@ -1,54 +0,0 @@ -import QtQuick 2.0 -import com.ford.sdlcore 1.0 -import "../../Components" -import "../../Layouts" - -LeftThirdSection { - header: "Select a source" - - Grid { - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - GraphicalButton { - text: "Radio" - image: "../../Assets/RadioIcon.png" - onPress: section.state = 'fm' - } - - GraphicalButton { - text: "Pandora" - image: "../../Assets/PandoraIcon.png" - onPress: section.state = 'fm' - } - - GraphicalButton { - text: "Sirius" - image: "../../Assets/SiriusIcon.png" - onPress: section.state = 'sirius' - } - - GraphicalButton { - text: "Bluetooth" - image: "../../Assets/BluetoothIcon.png" - onPress: section.state = 'bluetooth' - } - - GraphicalButton { - text: "USB" - image: "../../Assets/UsbIcon.png" - onPress: section.state = 'usb' - } - - Repeater { - model: MediaApps - - delegate: GraphicalButton { - text: modelData - image: "../../Assets/UsbIcon.png" - onPress: section.state = 'applink' - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/sirius.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/sirius.qml deleted file mode 100644 index dfe9fc4d53..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/sirius.qml +++ /dev/null @@ -1,13 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import "../../Layouts" - -MediaLayout { - header: "Sirius" - - Image { - source: "../../Assets/Content/SiriusArtwork.png" - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/usb.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/usb.qml deleted file mode 100644 index 7236e98cbe..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/usb.qml +++ /dev/null @@ -1,59 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import "../../Layouts" - -MediaPlayerLayout { - header: "USB" - id: usb - - Button { - text: "Browse Media" - anchors.top: parent.top - anchors.right: parent.right - anchors.rightMargin: 40 - anchors.topMargin: 75 - - onPress: parent.state = 'browse' - } - - states: [ - State { - name: 'browse' - PropertyChanges { target: browse_interface; visible: true; opacity: 0.9 } - } - - ] - - Rectangle { - color: "#000000" - opacity: 0 - anchors.fill: parent - radius: 10 - visible: false - id: browse_interface - - BackButton { - id: back_button - anchors.topMargin: 80 - anchors.leftMargin: 20 - } - - - H2 { - id: header - text: "Browse Media" - anchors.topMargin: 80 - } - - Item { - anchors.fill: parent - id: browse_container - } - - Button { - anchors.top: back_button.bottom - anchors.left: parent.left - text: "Jump" - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/.menu.qml.swp b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/.menu.qml.swp Binary files differdeleted file mode 100644 index 183438e037..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/.menu.qml.swp +++ /dev/null diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/favorites.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/favorites.qml deleted file mode 100644 index db16b994b4..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/favorites.qml +++ /dev/null @@ -1,70 +0,0 @@ -import QtQuick 2.0 -import com.ford.navcore 1.0 -import "../../Components" -import "../../Layouts" - -Item { - BackButton { onPress: section.state = 'menu' } - NavController { - id: navController - } - - Flickable { - height: 300 - width: 400 - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - clip: true - contentWidth: content.width - contentHeight: content.height - - Column { - id: content - width: parent.width - spacing: 10 - - Button { - text: "Barry Church's home" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Davison", "Victoria Sta", "3465"); - section.state = 'map'; - } - } - Button { - text: "Subway" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Dearborn Heights", "Pelham St", "3929"); - section.state = 'map'; - } - } - Button { - text: "Ford World Headquarters" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Dearborn", "American Rd", "1"); - section.state = 'map'; - } - } - Button { - text: "Qdoba" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Allen Park", "Fairlane Dr", "48101"); - section.state = 'map'; - } - } - Button { - text: "Levagood Park" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Dearborn", "Denwood St", "1100"); - section.state = 'map'; - } - } - - } - } -} - diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/keyboard_search.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/keyboard_search.qml deleted file mode 100644 index 011c761646..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/keyboard_search.qml +++ /dev/null @@ -1,64 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import "../../Layouts" - -Item { - anchors.fill: parent - id: keyboard_search - - states: [ - State { - name: 'city' - PropertyChanges {target: text_entry; autocompleteModel: citySuggestions} - }, - State { - name: 'street' - PropertyChanges {target: text_entry; autocompleteModel: streetSuggestions} - }, - State { - name: 'door' - PropertyChanges {target: text_entry; autocompleteModel: undefined} - }, - State { - name: 'review' - PropertyChanges {target: text_entry; visible: false} - PropertyChanges {target: review; visible: true} - } - ] - - Column { - id: review - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - width: 500 - - visible: false - Button { - text: stateSuggestions.selected - width: parent.width - onPress: keyboard_search.state = "" - } - Button { - text: citySuggestions.selected - width: parent.width - onPress: keyboard_search.state = "city" - } - Button { - text: streetSuggestions.selected - width: parent.width - onPress: keyboard_search.state = "city" - } - Button { - id: doornumber - width: parent.width - onPress: keyboard_search.state = "door" - } - Button { - text: "Begin navigation" - anchors.horizontalCenter: parent.horizontalCenter - onPress: { - section.state = 'map'; - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/map.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/map.qml deleted file mode 100644 index 8b48efe780..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/map.qml +++ /dev/null @@ -1,63 +0,0 @@ -import QtQuick 2.0 -import "../../Components" - -Item { - Column { - anchors.left: parent.left; - anchors.verticalCenter: parent.verticalCenter - spacing: 10 - - Button { - text: "Zoom in" - } - - Button { - text: "Zoom out" - } - - Button { - text: "3D" - } - - Button { - text: "2D" - } - - Button { - text: "North up" - } - } - - Rectangle { - width: next_turn.width + 20 - height: 30 - anchors.top: parent.top - anchors.topMargin: 65 - anchors.horizontalCenter: parent.horizontalCenter - color: "black" - opacity: 0.6 - - } - - Rectangle { - width: current_street.width + 20 - height: 30 - anchors.bottom: parent.bottom - anchors.bottomMargin: 65 - anchors.horizontalCenter: parent.horizontalCenter - color: "black" - opacity: 0.6 - visible: navController.current_street.length > 0 - - } - - - Button { - text: "Go" - anchors.top: parent.top - anchors.topMargin: 3 - anchors.right: parent.right - anchors.rightMargin: 20 - onPress: section.state = 'menu' - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/menu.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/menu.qml deleted file mode 100644 index fdcae3f58e..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/menu.qml +++ /dev/null @@ -1,57 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import "../../Layouts" - -EmptyLayout { - back_button: true - - Grid { - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - GraphicalButton { - text: "Home" - image: "../../Assets/HomeIcon.png" - onPress: { - section.state = 'map'; - } - } - GraphicalButton { - text: "Work" - image: "../../Assets/WorkIcon.png" - onPress: { - section.state = 'map'; - } - } - GraphicalButton { - text: "Recent Destination" - image: "../../Assets/RecentDestinationsIcon.png" - onPress: section.state = 'recent_destinations' - } - GraphicalButton { - text: "Keyboard" - image: "../../Assets/KeyboardIcon.png" - onPress: section.state = 'keyboard_search' - } - GraphicalButton { - text: "Favorites" - image: "../../Assets/FavoritesIcon.png" - onPress: section.state = 'favorites' - } - GraphicalButton { - text: "Point of Interest" - image: "../../Assets/PoiIcon.png" - onPress: section.state = 'poi' - } - GraphicalButton { - text: "Scout" - image: "../../Assets/ScoutIcon.png" - } - GraphicalButton { - text: "SYNC Services" - image: "../../Assets/ServicesIcon.png" - onPress: section.state = "video_moving_map" - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/poi.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/poi.qml deleted file mode 100644 index 0ecea8a113..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/poi.qml +++ /dev/null @@ -1,205 +0,0 @@ -import QtQuick 2.0 -import com.ford.navcore 1.0 -import "../../Components" -import "../../Layouts" - -EmptyLayout { - anchors.fill: parent - back_button: true - id: poi_search - - Component.onCompleted: state = "search_type" - - states: [ - State { - name: 'search_type' - PropertyChanges { - target: search_type - visible: true - } - }, - State { - name: 'categories' - PropertyChanges { - target: category_select - visible: true - } - }, - State { - name: 'select_state' - PropertyChanges { - target: text_entry - visible: true - } - }, - State { - name: 'results' - PropertyChanges { - target: results - visible: true - } - }, - State { - name: 'result' - PropertyChanges { - target: result - visible: true - } - } - ] - - NavController { - id: navController - } - - Grid { - id: search_type - property string type - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - visible: false - - GraphicalButton { - text: "Near me" - image: "../../Assets/HomeIcon.png" - onPress: { - search_type.type = "nearby" - poi_search.state = "categories" - } - } - - GraphicalButton { - text: "Along route" - image: "../../Assets/HomeIcon.png" - onPress: { - search_type.type = "route" - poi_search.state = "categories" - } - } - - GraphicalButton { - text: "In city" - image: "../../Assets/HomeIcon.png" - onPress: { - search_type.type = "city" - poi_search.state = "select_state" - } - } - } - - ListView { - id: category_select - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - height: parent.height - 120 - width: parent.width - spacing: 10 - clip: true - - GraphicalButton { - text: "Search by name" - image: "../../Assets/HomeIcon.png" - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 20 - } - - visible: false - model: NavPoiCategoryListModel { id: poi_categories } - - delegate: Button { - property int category_id: id - text: name - width: 400 - anchors.horizontalCenter: parent.horizontalCenter - onPress: { - navController.poiSearch(search_type.type, category_id, "USA", state_suggestions.getSelected(), city_suggestions.getSelected()); - poi_search.state = "results" - } - } - } - - ListView { - id: results - visible: false - anchors.topMargin: 80 - anchors.top: parent.top - anchors.bottomMargin: 80 - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - width: 400 - height: parent.height - 120 - spacing: 10 - clip: true - - model: NavPoiSuggestionListModel { - id: poi_suggestions - } - - delegate: Button { - text: name - width: parent.width - onPress: { - results.currentIndex = index - poi_search.state = "result" - } - } - } - - Item { - anchors.fill: parent - anchors.topMargin: 80 - anchors.bottomMargin: 80 - id: result - visible: false - - H1 { - id: poi_name - anchors.horizontalCenter: parent.horizontalCenter - text: (results.currentItem ? results.currentItem.text : "") - } - - Button { - text: "Begin navigation" - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: poi_name.bottom - onPress: { - poi_suggestions.navigateToResult(results.currentIndex); - section.state = 'map' - } - } - } - - TextEntry { - id: text_entry - anchors.topMargin: 80 - input_border.color: "#3C7855" - - states: [ - State { - name: "city_select" - PropertyChanges { - target: text_entry - autocompleteModel: city_suggestions - } - } - - ] - - NavStateSuggestionListModel { id: state_suggestions } - NavCitySuggestionListModel { id: city_suggestions; stateListModel: state_suggestions } - autocompleteModel: state_suggestions - visible: false - - onSelected: { - if (text_entry.state === '') { - text = ""; - text_entry.state = 'city_select'; - } - else { - poi_search.state = 'categories' - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/recent_destinations.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/recent_destinations.qml deleted file mode 100644 index db16b994b4..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/recent_destinations.qml +++ /dev/null @@ -1,70 +0,0 @@ -import QtQuick 2.0 -import com.ford.navcore 1.0 -import "../../Components" -import "../../Layouts" - -Item { - BackButton { onPress: section.state = 'menu' } - NavController { - id: navController - } - - Flickable { - height: 300 - width: 400 - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - clip: true - contentWidth: content.width - contentHeight: content.height - - Column { - id: content - width: parent.width - spacing: 10 - - Button { - text: "Barry Church's home" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Davison", "Victoria Sta", "3465"); - section.state = 'map'; - } - } - Button { - text: "Subway" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Dearborn Heights", "Pelham St", "3929"); - section.state = 'map'; - } - } - Button { - text: "Ford World Headquarters" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Dearborn", "American Rd", "1"); - section.state = 'map'; - } - } - Button { - text: "Qdoba" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Allen Park", "Fairlane Dr", "48101"); - section.state = 'map'; - } - } - Button { - text: "Levagood Park" - width: parent.width - onPress: { - navController.beginNavigation("USA", "MI", "Dearborn", "Denwood St", "1100"); - section.state = 'map'; - } - } - - } - } -} - diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/video_moving_map.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/video_moving_map.qml deleted file mode 100644 index 2f6b798d18..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Navigation/video_moving_map.qml +++ /dev/null @@ -1,20 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import QtMultimedia 5.0 - -Item { - Video { - anchors.fill: parent - source: "rtsp://172.20.10.7:8086" - autoPlay: true - } - - Button { - text: "Go" - anchors.top: parent.top - anchors.topMargin: 3 - anchors.right: parent.right - anchors.rightMargin: 20 - onPress: section.state = 'menu' - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/device_info.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/device_info.qml deleted file mode 100644 index 1f409f58e6..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/device_info.qml +++ /dev/null @@ -1,21 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import com.ford.phonecore 1.0 - -Item { - anchors.fill: parent - - H2 { - id: h2 - text: PhoneCore.device_name - - anchors.horizontalCenter: parent.horizontalCenter - } - Button { - text: "Forget device" - onPress: PhoneCore.unpairDevice() - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: h2.bottom - anchors.topMargin: 20 - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/discovery.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/discovery.qml deleted file mode 100644 index 5d7c51be6c..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/discovery.qml +++ /dev/null @@ -1,23 +0,0 @@ -import QtQuick 2.0 -import com.ford.phonecore 1.0 -import "../../Components" - -Item { - ListView { - anchors.horizontalCenter: parent.horizontalCenter - width: 300 - anchors.top: parent.top - anchors.bottom: parent.bottom - spacing: 10 - - delegate: Button { - text: name - width: parent.width - onPress: bluetooth_devices.createPairedDevice(mac) - } - - model: BluetoothDiscoveredDevices { - id: bluetooth_devices - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/keypad.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/keypad.qml deleted file mode 100644 index fd5ed4ff09..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/keypad.qml +++ /dev/null @@ -1,55 +0,0 @@ -import QtQuick 2.0 -import com.ford.phonecore 1.0 -import "../../Components" -import "../../Layouts" - -Item { - anchors.top: parent.top - anchors.topMargin: 80 - - TextBox { - id: phone_number - border.color: Qt.rgba(0.454901961,0.37254902,0.203921569,1) - anchors.top: parent.top - width: parent.width - 160 - anchors.horizontalCenter: parent.horizontalCenter - } - - BackButton { - anchors.top: phone_number.top - anchors.topMargin: 1 - anchors.right: phone_number.left - anchors.rightMargin: 10 - onPress: section.state = '' - } - - ImageButton { - anchors.top: phone_number.top - anchors.topMargin: 1 - icon: "../../Assets/DeleteIcon.png" - anchors.left: phone_number.right - anchors.leftMargin: 10 - height: 42 - - onPress: phone_number.text = phone_number.text.replace(/.$/, '') - } - - Keypad { - anchors.topMargin: 40 - anchors.top: phone_number.bottom - anchors.horizontalCenter: parent.horizontalCenter - - onLetterClicked: phone_number.text += letter - } - - Button { - text: "Call" - onPress: PhoneCore.dial(phone_number.text); - y: 100 - } - Button { - text: "End call" - onPress: PhoneCore.hangup(); - y: 160 - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/manage_devices.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/manage_devices.qml deleted file mode 100644 index cf62a9c287..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/manage_devices.qml +++ /dev/null @@ -1,16 +0,0 @@ -import QtQuick 2.0 -import com.ford.phonecore 1.0 -import "../../Components" -import "../../Layouts" - -TitledLayout { - title: "Manage Bluetooth devices" - back_button: true - - Loader { - id: view - - anchors.fill: parent - source: (PhoneCore.device_name === "") ? "discovery.qml" : "device_info.qml" - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/menu.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/menu.qml deleted file mode 100644 index 2d53656ba0..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/menu.qml +++ /dev/null @@ -1,54 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import "../../Layouts" - -LeftThirdSection { - Grid { - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - GraphicalButton { - text: "Do Not Disturb" - image: "../../Assets/DndIcon.png" - } - - GraphicalButton { - text: "Phonebook" - image: "../../Assets/PhonebookIcon.png" - } - - GraphicalButton { - text: "Voicemail" - image: "../../Assets/VoicemailIcon.png" - } - - GraphicalButton { - text: "Messages" - image: "../../Assets/MessagesIcon.png" - } - - GraphicalButton { - text: "Recent Calls" - image: "../../Assets/RecentCallsIcon.png" - onPress: section.state = 'recent_calls' - } - - GraphicalButton { - text: "Keypad" - image: "../../Assets/KeypadIcon.png" - onPress: section.state = 'keypad' - } - - GraphicalButton { - text: "Speed Dial" - image: "../../Assets/SpeedDialIcon.png" - } - - GraphicalButton { - text: "Devices" - image: "../../Assets/SpeedDialIcon.png" - onPress: section.state = 'manage_devices' - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/recent_calls.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/recent_calls.qml deleted file mode 100644 index 1873ed4382..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Phone/recent_calls.qml +++ /dev/null @@ -1,62 +0,0 @@ -import QtQuick 2.0 -import com.ford.phonecore 1.0 -import "../../Components" -import "../../Layouts" - -TitledLayout { - title: "Recent calls" - Component.onCompleted: PhoneCore.hangup() - back_button: true - - Flickable { - height: 300 - width: 400 - anchors.top: parent.top - anchors.horizontalCenter: parent.horizontalCenter - clip: true - contentWidth: content.width - contentHeight: content.height - - Column { - id: content - width: parent.width - spacing: 10 - - Button { - text: "Chris Church: Mobile" - onPress: PhoneCore.dial("8106567195") - width: parent.width - } - Button { - text: "Barry Church: Mobile" - onPress: PhoneCore.dial("3134074522") - width: parent.width - } - Button { - text: "Barry Church: Work" - onPress: PhoneCore.dial("3134074522") - width: parent.width - } - Button { - text: "Aaron Church: Mobile" - onPress: PhoneCore.dial("3134074522") - width: parent.width - } - Button { - text: "Aaron Church: Mobile" - onPress: PhoneCore.dial("3134074522") - width: parent.width - } - Button { - text: "Aaron Church: Mobile" - onPress: PhoneCore.dial("3134074522") - width: parent.width - } - Button { - text: "Aaron Church: Mobile" - onPress: PhoneCore.dial("3134074522") - width: parent.width - } - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Vehicle/menu.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Vehicle/menu.qml deleted file mode 100644 index b95bc52da8..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Vehicle/menu.qml +++ /dev/null @@ -1,60 +0,0 @@ -import QtQuick 2.0 -import "../../Components" -import "../../Layouts" - -LeftThirdSection { - MultiPointTouchArea { - anchors.fill: parent - } - - Grid { - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - spacing: 10 - - GraphicalButton { - text: "HEV" - image: "../../Assets/EvIcon.png" - } - - GraphicalButton { - text: "Ambient Lighting" - image: "../../Assets/LightingIcon.png" - } - - GraphicalButton { - text: "Wallpaper" - image: "../../Assets/WallpaperIcon.png" - } - - GraphicalButton { - text: "Wi-Fi" - image: "../../Assets/WifiIcon.png" - } - - GraphicalButton { - text: "Health Report" - image: "../../Assets/VhrIcon.png" - } - - GraphicalButton { - text: "Seats" - image: "../../Assets/SeatsIcon.png" - } - - GraphicalButton { - text: "Keypad Entry" - image: "../../Assets/KeypadEntryIcon.png" - } - - GraphicalButton { - text: "Sync Services" - image: "../../Assets/ServicesIcon.png" - } - - GraphicalButton { - text: "Add Shortcut" - image: "../../Assets/AddIcon.png" - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/alert.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/alert.qml deleted file mode 100644 index f19539b9be..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/alert.qml +++ /dev/null @@ -1,68 +0,0 @@ -import QtQuick 2.0 - -Item { - property alias text: alert_text.text - id: alert_item - opacity: 0 - - transitions: Transition { - NumberAnimation { - properties: "opacity" - } - } - - function alert(message) { - text = message; - state = 'alerting'; - alert_timer.start(); - } - - states: [ - State { - name: 'alerting' - PropertyChanges { - target: alert_item - opacity: 1 - } - } - ] - - Timer { - id: alert_timer - running: false - interval: 4000 - onTriggered: alert_item.state = ''; - } - - - Rectangle { - id: background - anchors.fill: parent - color: "#000" - opacity: 0.8 - } - - Rectangle { - color: "#111" - width: 500 - height: alert_text.height + 40 - radius: 8 - border.color: "#666" - border.width: 2 - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - - Text { - id: alert_text - text: "This is a really really long long really really long longreally really long longreally really long longreally really long long alert" - color: "#fff" - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - horizontalAlignment: Text.AlignHCenter - font.pixelSize: 24 - width: parent.width - wrapMode: Text.WordWrap - } - } - -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/chrome.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/chrome.qml deleted file mode 100644 index b8f4f09d56..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/chrome.qml +++ /dev/null @@ -1,144 +0,0 @@ -import QtQuick 2.0 -import "../Components" - -Item { - id: container - anchors.fill: parent - - property int horizontalLabelMargin: 20 - - Image { - id: phonetab - source: "../Assets/PhoneTab.png" - anchors.top: parent.top - anchors.topMargin: (root.state === "phone") ? -height : 0 - Behavior on anchors.topMargin { PropertyAnimation {} } - width: parent.width / 2 - 145 - height: parent.height / 20 + 25 - - Clickable { - anchors.fill: parent - text: "Phone" - onPress: go("phone") - textAnchors.verticalCenter: verticalCenter - textAnchors.leftMargin: horizontalLabelMargin - textAnchors.left: left - } - } - Row { - anchors.right: phonetab.right - anchors.rightMargin: phonetab.width / 4 - anchors.top: parent.top - height: phonetab.height - spacing: 10 - - Image { - source: "../Assets/PhoneCornerIcons.png" - anchors.verticalCenter: parent.verticalCenter - } - } - - - Image { - source: "../Assets/NavigationTab.png" - anchors.right: parent.right - anchors.top: parent.top - anchors.topMargin: (root.state === "navigation") ? -height : 0 - Behavior on anchors.topMargin { PropertyAnimation {} } - width: parent.width / 2 - 145 - height: parent.height / 20 + 25 - - Clickable { - anchors.fill: parent - text: "Navigation" - onPress: go("navigation") - textAnchors.verticalCenter: verticalCenter - textAnchors.rightMargin: horizontalLabelMargin - textAnchors.right: right - } - } - - Image { - id: test1 - source: "../Assets/MediaTab.png" - anchors.bottom: parent.bottom - anchors.bottomMargin: (root.state === "media") ? -height : 0 - anchors.left: parent.left - Behavior on anchors.bottomMargin { PropertyAnimation {} } - width: parent.width / 2 - 145 - height: parent.height / 20 + 25 - - Clickable { - anchors.fill: parent - text: "Media" - onPress: go("media") - textAnchors.verticalCenter: verticalCenter - textAnchors.leftMargin: horizontalLabelMargin - textAnchors.left: left - } - } - - Image { - source: "../Assets/VehicleTab.png" - anchors.right: parent.right - anchors.bottom: parent.bottom - anchors.bottomMargin: (root.state === "vehicle") ? -height : 0 - Behavior on anchors.bottomMargin { PropertyAnimation {} } - width: parent.width / 2 - 145 - height: parent.height / 20 + 25 - - Clickable { - anchors.fill: parent - text: "Vehicle" - onPress: go("vehicle") - textAnchors.verticalCenter: verticalCenter - textAnchors.rightMargin: horizontalLabelMargin - textAnchors.right: right - } - } - - Image { - id: chrometop - source: "../Assets/ChromeTop.png" - anchors.top: parent.top - anchors.horizontalCenter: parent.horizontalCenter - height: parent.height / 18 + 35 - width: parent.width / 2 + 40 - fillMode: Image.PreserveAspectFit - Clickable { - onPress: go((root.state === 'home_corners') ? 'home' : 'home_corners') - width: parent.width / 5 - height: parent.height - anchors.left: parent.left - anchors.leftMargin: (parent.width - parent.paintedWidth)/2 + 20 - } - - Text { - id: clock - text: "12:00" - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - anchors.topMargin: 10 - color: "#ffffff" - font.pixelSize: 28 - } - } - Image { - source: "../Assets/ChromeBottom.png" - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - height: parent.height / 18 + 35 - width: parent.width / 2 - fillMode: Image.PreserveAspectFit - - Text { - id: exterior_temp - text: "72F Outside" - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: parent.bottom - color: "#ffffff" - anchors.bottomMargin: 15 - font.pixelSize: 18 - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/home.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/home.qml deleted file mode 100644 index c45f66782f..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/home.qml +++ /dev/null @@ -1,51 +0,0 @@ -import QtQuick 2.0 -import "../Components" -import "../Layouts" -import com.ford.phonecore 1.0 - -LeftThirdSection { - header: "Good Morning, Jen" - - Column { - anchors.left: parent.left - anchors.leftMargin: 60 - spacing: 40 - anchors.verticalCenter: parent.verticalCenter - - Weather {} - Weather { - text: "Tonight" - temp: "55" - image: "../Assets/CloudNight.png" - } - } - - - Image { - id: schedule - source: "../Assets/CMaxCal.png" - anchors.right: parent.right - anchors.rightMargin: 70 - anchors.verticalCenter: parent.verticalCenter - } - - Column { - anchors.right: schedule.left - anchors.rightMargin: 20 - anchors.top: schedule.top - anchors.topMargin: 5 - spacing: 40 - - Button { - text: "Dial" - } - Button { - text: "Navigate" - } - Button { - text: "Siri" - onPress: PhoneCore.siriEyesFree() - visible: PhoneCore.device_state === "connected" || PhoneCore.device_state === "playing" - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/home_corners.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/home_corners.qml deleted file mode 100644 index 432e978b87..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/home_corners.qml +++ /dev/null @@ -1,133 +0,0 @@ -import QtQuick 2.0 -import com.ford.phonecore 1.0 -import "../Components" -import "../Layouts" - -Item { - - Image { - source: "../Assets/Crosshairs.png" - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - } - - Item { - width: parent.width / 2 - height: parent.height / 2 - - Image { - id: phone_corner_icon - visible: (PhoneCore.device_state === "connected") - source: "../Assets/PhoneIcons.png" - anchors.top: parent.top - anchors.topMargin: 80 - anchors.horizontalCenter: parent.horizontalCenter - } - - OverflowableText { - id: phone_name - text: PhoneCore.device_name - anchors.top: phone_corner_icon.bottom - anchors.horizontalCenter: parent.horizontalCenter - textAlign: 'center' - anchors.topMargin: 10 - width: 350 - fontColor: (PhoneCore.device_state === "connected") ? "#ffffff" : "#333" - font.pixelSize: 24 - } - - Text { - text: "Connecting..." - anchors.top: phone_name.bottom - anchors.horizontalCenter: parent.horizontalCenter - anchors.topMargin: 10 - color: "#333" - visible: (PhoneCore.device_state === "connecting") - font.pixelSize: 24 - } - - CheckButton { - text: "Do Not Disturb" - visible: (PhoneCore.device_state === "connected") - anchors.top: phone_name.bottom - anchors.horizontalCenter: parent.horizontalCenter - anchors.topMargin: 10 - } - - - - Row { - anchors.top: phone_name.bottom - anchors.horizontalCenter: parent.horizontalCenter - anchors.topMargin: 10 - visible: (PhoneCore.device_state === "disconnected") - spacing: 10 - - Button { - text: "Connect" - onPress: { - PhoneCore.initializeDevice() - } - } - - Button { - text: "Manage Phones" - onPress: { - go("phone"); - } - } - } - - } - - Item { - width: parent.width / 2 - height: parent.height / 2 - anchors.right: parent.right - } - - Item { - width: parent.width / 2 - height: parent.height / 2 - anchors.right: parent.right - anchors.bottom: parent.bottom - - Image { - source: "../Assets/VehicleCornerIcon.png" - anchors.horizontalCenter: parent.horizontalCenter - } - } - - Item { - width: parent.width / 2 - height: parent.height / 2 - anchors.bottom: parent.bottom - - Image { - id: media_corner_icon - source: "../Assets/UsbIcon.png" - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - anchors.topMargin: 40 - } - - Text { - id: media_artist - text: "" - font.pixelSize: 18 - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: media_corner_icon.bottom - color: "#ffffff" - anchors.topMargin: 10 - } - - Text { - id: media_title - text: "" - font.pixelSize: 24 - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: media_artist.bottom - color: "#ffffff" - } - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/media.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/media.qml deleted file mode 100644 index af33ddaffd..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/media.qml +++ /dev/null @@ -1,55 +0,0 @@ -import QtQuick 2.0 -import "../Components" -import "../Layouts" - -Rectangle { - anchors.fill: parent - id: section - - gradient: Gradient { - GradientStop { position: 0.8; color: "#000000" } - GradientStop { position: 1.0; color: "#7C3232" } - } - - states: [ - State { - name: 'menu' - PropertyChanges { target: page; source: "Media/menu.qml" } - }, - State { - name: 'fm' - PropertyChanges { target: page; source: "Media/fm.qml" } - }, - State { - name: 'sirius' - PropertyChanges { target: page; source: "Media/sirius.qml" } - }, - State { - name: 'usb' - PropertyChanges { target: page; source: "Media/usb.qml" } - }, - State { - name: 'bluetooth' - PropertyChanges { target: page; source: "Media/bluetooth.qml" } - }, - State { - name: 'applink' - PropertyChanges { target: page; source: "Media/applink.qml" } - } - ] - - transitions: [ - Transition { - to: "bluetooth" - }, - Transition { - to: "usb" - } - - ] - - Section { - id: page - source: "Media/usb.qml" - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/navigation.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/navigation.qml deleted file mode 100644 index e26326b458..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/navigation.qml +++ /dev/null @@ -1,49 +0,0 @@ -import QtQuick 2.0 -import "../Components" -import "../Layouts" - -Rectangle { - id: section - anchors.fill: parent - - gradient: Gradient { - GradientStop { position: 0.0; color: "#3C7855" } - GradientStop { position: 0.4; color: "#000000" } - } - - Section { - id: page - source: "Navigation/map.qml" - } - - states: [ - State { - name: '' - PropertyChanges { target: page; source: "Navigation/map.qml" } - }, - State { - name: 'menu' - PropertyChanges { target: page; source: "Navigation/menu.qml" } - }, - State { - name: 'keyboard_search' - PropertyChanges { target: page; source: "Navigation/keyboard_search.qml" } - }, - State { - name: 'favorites' - PropertyChanges { target: page; source: "Navigation/favorites.qml" } - }, - State { - name: 'recent_destinations' - PropertyChanges { target: page; source: "Navigation/recent_destinations.qml" } - }, - State { - name: 'poi' - PropertyChanges { target: page; source: "Navigation/poi.qml" } - }, - State { - name: 'video_moving_map' - PropertyChanges { target: page; source: "Navigation/video_moving_map.qml" } - } - ] -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/phone.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/phone.qml deleted file mode 100644 index 8c2987f2f9..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/phone.qml +++ /dev/null @@ -1,37 +0,0 @@ -import QtQuick 2.0 -import "../Components" -import "../Layouts" - -Rectangle { - id: section - anchors.fill: parent - - states: [ - State { - name: '' - PropertyChanges { target: page; source: "Phone/menu.qml" } - }, - State { - name: 'recent_calls' - PropertyChanges { target: page; source: "Phone/recent_calls.qml" } - }, - State { - name: 'keypad' - PropertyChanges { target: page; source: "Phone/keypad.qml" } - }, - State { - name: 'manage_devices' - PropertyChanges { target: page; source: "Phone/manage_devices.qml" } - } - ] - - gradient: Gradient { - GradientStop { position: 0.0; color: Qt.rgba(0.454901961,0.37254902,0.203921569,1) } - GradientStop { position: 0.4; color: "#000000" } - } - - Section { - id: page - source: "Phone/menu.qml" - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/vehicle.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/vehicle.qml deleted file mode 100644 index 9687e7c463..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/vehicle.qml +++ /dev/null @@ -1,17 +0,0 @@ -import QtQuick 2.0 -import "../Components" -import "../Layouts" - -Rectangle { - anchors.fill: parent - - gradient: Gradient { - GradientStop { position: 0.4; color: "#000000" } - GradientStop { position: 1.0; color: "#104369" } - } - - Section { - id: section - source: "Vehicle/menu.qml" - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/main.qml b/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/main.qml deleted file mode 100644 index c6f0b0e769..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/main.qml +++ /dev/null @@ -1,79 +0,0 @@ -import QtQuick 2.0 -import "Components" -import com.ford.sdlcore 1.0 -import com.ford.phonecore 1.0 - -Rectangle { - id: root - width: 800 - height: 470 - color: "#000" - - states: [ - State { - name: "home" - PropertyChanges { target: maincontent; source: "Sections/home.qml" } - }, - State { - name: "home_corners" - PropertyChanges { target: maincontent; source: "Sections/home_corners.qml" } - }, - State { - name: "phone" - PropertyChanges { target: maincontent; source: "Sections/phone.qml" } - }, - State { - name: "navigation" - PropertyChanges { target: maincontent; source: "Sections/navigation.qml" } - }, - State { - name: "media" - PropertyChanges { target: maincontent; source: "Sections/media.qml" } - }, - State { - name: "vehicle" - PropertyChanges { target: maincontent; source: "Sections/vehicle.qml" } - } - ] - - transitions: [ - Transition { - to: '*' - PropertyAnimation { target: maincontent; property: 'opacity'; from: 0; to: 1} - } - ] - - function go(string) { - state = string - } - - Connections { - target: AppLink - onAlert: root.alert(message); - } - - Connections { - target: PhoneCore - onCallAdded: root.alert("Incoming call: \n" + name + "\n" + number) - onCallRemoved: root.alert("Call ended") - } - - function alert(message) { - alert_loader.item.alert(message) - } - - Section { - id: maincontent - source: "Sections/home.qml" - } - - Section { - id: alert_loader - source: "Sections/alert.qml" - } - - Section { - id: chrome - source: "Sections/chrome.qml" - } -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qtquick2applicationviewer/qtquick2applicationviewer.cpp b/src/components/qt_hmi/References/Work/bananasnacks/qtquick2applicationviewer/qtquick2applicationviewer.cpp deleted file mode 100644 index 8fcc4a6d38..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qtquick2applicationviewer/qtquick2applicationviewer.cpp +++ /dev/null @@ -1,64 +0,0 @@ -// checksum 0x56a9 version 0x80001 -/* - This file was generated by the Qt Quick 2 Application wizard of Qt Creator. - QtQuick2ApplicationViewer is a convenience class containing mobile device - specific - code such as screen orientation handling. Also QML paths and debugging are - handled here. - It is recommended not to modify this file, since newer versions of Qt Creator - may offer an updated version of it. -*/ - -#include "qtquick2applicationviewer.h" - -#include <QtCore/QCoreApplication> -#include <QtCore/QDir> -#include <QtQml/QQmlEngine> - -class QtQuick2ApplicationViewerPrivate { - QString mainQmlFile; - friend class QtQuick2ApplicationViewer; - static QString adjustPath(const QString& path); -}; - -QString QtQuick2ApplicationViewerPrivate::adjustPath(const QString& path) { -#if defined(Q_OS_MAC) - if (!QDir::isAbsolutePath(path)) - return QString::fromLatin1("%1/../Resources/%2") - .arg(QCoreApplication::applicationDirPath(), path); -#elif defined(Q_OS_UNIX) - const QString pathInInstallDir = - QString::fromLatin1("%1/../%2") - .arg(QCoreApplication::applicationDirPath(), path); - if (QFileInfo(pathInInstallDir).exists()) - return pathInInstallDir; -#endif - return path; -} - -QtQuick2ApplicationViewer::QtQuick2ApplicationViewer(QWindow* parent) - : QQuickView(parent), d(new QtQuick2ApplicationViewerPrivate()) { - connect(engine(), SIGNAL(quit()), SLOT(close())); - setResizeMode(QQuickView::SizeRootObjectToView); -} - -QtQuick2ApplicationViewer::~QtQuick2ApplicationViewer() { - delete d; -} - -void QtQuick2ApplicationViewer::setMainQmlFile(const QString& file) { - d->mainQmlFile = QtQuick2ApplicationViewerPrivate::adjustPath(file); - setSource(QUrl::fromLocalFile(d->mainQmlFile)); -} - -void QtQuick2ApplicationViewer::addImportPath(const QString& path) { - engine()->addImportPath(QtQuick2ApplicationViewerPrivate::adjustPath(path)); -} - -void QtQuick2ApplicationViewer::showExpanded() { -#if defined(Q_WS_SIMULATOR) - showFullScreen(); -#else - show(); -#endif -} diff --git a/src/components/qt_hmi/References/Work/bananasnacks/qtquick2applicationviewer/qtquick2applicationviewer.h b/src/components/qt_hmi/References/Work/bananasnacks/qtquick2applicationviewer/qtquick2applicationviewer.h deleted file mode 100644 index 42287e8d79..0000000000 --- a/src/components/qt_hmi/References/Work/bananasnacks/qtquick2applicationviewer/qtquick2applicationviewer.h +++ /dev/null @@ -1,33 +0,0 @@ -// checksum 0xfde6 version 0x80001 -/* - This file was generated by the Qt Quick 2 Application wizard of Qt Creator. - QtQuick2ApplicationViewer is a convenience class containing mobile device - specific - code such as screen orientation handling. Also QML paths and debugging are - handled here. - It is recommended not to modify this file, since newer versions of Qt Creator - may offer an updated version of it. - */ - -#ifndef QTQUICK2APPLICATIONVIEWER_H -#define QTQUICK2APPLICATIONVIEWER_H - -#include <QtQuick/QQuickView> - -class QtQuick2ApplicationViewer : public QQuickView { - Q_OBJECT - - public: - explicit QtQuick2ApplicationViewer(QWindow* parent = 0); - virtual ~QtQuick2ApplicationViewer(); - - void setMainQmlFile(const QString& file); - void addImportPath(const QString& path); - - void showExpanded(); - - private: - class QtQuick2ApplicationViewerPrivate* d; -}; - -#endif // QTQUICK2APPLICATIONVIEWER_H diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/FordSdlCore.pro b/src/components/qt_hmi/References/Work/fordsdlcore/FordSdlCore.pro deleted file mode 100644 index ea541b24ce..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/FordSdlCore.pro +++ /dev/null @@ -1,48 +0,0 @@ -TEMPLATE = lib -TARGET = FordSdlCore -QT += qml quick -CONFIG += qt plugin - -TARGET = $$qtLibraryTarget($$TARGET) -uri = com.ford.sdlcore - -# Input -SOURCES += \ - fordsdlcore_plugin.cpp \ - smartdevicelink.cpp \ - sdlalert.cpp \ - QtWebsocket/QWsSocket.cpp \ - QtWebsocket/QWsServer.cpp \ - sdlappslistmodel.cpp - -HEADERS += \ - fordsdlcore_plugin.h \ - smartdevicelink.h \ - sdlalert.h \ - QtWebsocket/QWsSocket.h \ - QtWebsocket/QWsServer.h \ - sdlappslistmodel.h - -OTHER_FILES = qmldir - -!equals(_PRO_FILE_PWD_, $$OUT_PWD) { - copy_qmldir.target = $$OUT_PWD/qmldir - copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir - copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\" - QMAKE_EXTRA_TARGETS += copy_qmldir - PRE_TARGETDEPS += $$copy_qmldir.target -} - -qmldir.files = qmldir -unix { - installPath = ../BananaSnacks/plugins/com/ford/sdlcore - qmldir.path = $$installPath - target.path = $$installPath - INSTALLS += target qmldir -} - -linux-g++* { - QMAKE_CXXFLAGS += -m32 - QMAKE_LFLAGS += -m32 -} -QMAKE_LIBDIR += /usr/lib/i386-linux-gnu/mesa diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsServer.cpp b/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsServer.cpp deleted file mode 100644 index 9c4eed8cc1..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsServer.cpp +++ /dev/null @@ -1,456 +0,0 @@ -#include "QWsServer.h" - -#include <QRegExp> -#include <QStringList> -#include <QByteArray> -#include <QCryptographicHash> -#include <QDateTime> - -const QString QWsServer::regExpResourceNameStr( - QLatin1String("^GET\\s(.*)\\sHTTP/1.1\r\n")); -const QString QWsServer::regExpHostStr( - QLatin1String("\r\nHost:\\s(.+(:\\d+)?)\r\n")); -const QString QWsServer::regExpKeyStr( - QLatin1String("\r\nSec-WebSocket-Key:\\s(.{24})\r\n")); -const QString QWsServer::regExpKey1Str( - QLatin1String("\r\nSec-WebSocket-Key1:\\s(.+)\r\n")); -const QString QWsServer::regExpKey2Str( - QLatin1String("\r\nSec-WebSocket-Key2:\\s(.+)\r\n")); -const QString QWsServer::regExpKey3Str(QLatin1String("\r\n(.{8})$")); -const QString QWsServer::regExpVersionStr( - QLatin1String("\r\nSec-WebSocket-Version:\\s(\\d+)\r\n")); -const QString QWsServer::regExpOriginStr( - QLatin1String("\r\nSec-WebSocket-Origin:\\s(.+)\r\n")); -const QString QWsServer::regExpOrigin2Str( - QLatin1String("\r\nOrigin:\\s(.+)\r\n")); -const QString QWsServer::regExpProtocolStr( - QLatin1String("\r\nSec-WebSocket-Protocol:\\s(.+)\r\n")); -const QString QWsServer::regExpExtensionsStr( - QLatin1String("\r\nSec-WebSocket-Extensions:\\s(.+)\r\n")); - -QWsServer::QWsServer(QObject* parent) : QObject(parent) { - tcpServer = new QTcpServer(this); - connect(tcpServer, SIGNAL(newConnection()), this, SLOT(newTcpConnection())); - qsrand(QDateTime::currentMSecsSinceEpoch()); -} - -QWsServer::~QWsServer() { - tcpServer->deleteLater(); -} - -bool QWsServer::listen(const QHostAddress& address, quint16 port) { - return tcpServer->listen(address, port); -} - -void QWsServer::close() { - tcpServer->close(); -} - -QAbstractSocket::SocketError QWsServer::serverError() { - return tcpServer->serverError(); -} - -QString QWsServer::errorString() { - return tcpServer->errorString(); -} - -void QWsServer::newTcpConnection() { - QTcpSocket* tcpSocket = tcpServer->nextPendingConnection(); - connect(tcpSocket, SIGNAL(readyRead()), this, SLOT(dataReceived())); - headerBuffer.insert(tcpSocket, QStringList()); -} - -void QWsServer::closeTcpConnection() { - QTcpSocket* tcpSocket = qobject_cast<QTcpSocket*>(sender()); - if (tcpSocket == 0) - return; - - tcpSocket->close(); -} - -void QWsServer::dataReceived() { - QTcpSocket* tcpSocket = qobject_cast<QTcpSocket*>(sender()); - if (tcpSocket == 0) - return; - - bool allHeadersFetched = false; - - const QLatin1String emptyLine("\r\n"); - - while (tcpSocket->canReadLine()) { - QString line = tcpSocket->readLine(); - - if (line == emptyLine) { - allHeadersFetched = true; - break; - } - - headerBuffer[tcpSocket].append(line); - } - - if (!allHeadersFetched) - return; - - QString request(headerBuffer[tcpSocket].join("")); - - QRegExp regExp; - regExp.setMinimal(true); - - // Extract mandatory datas - // Version - regExp.setPattern(QWsServer::regExpVersionStr); - regExp.indexIn(request); - QString versionStr = regExp.cap(1); - EWebsocketVersion version; - if (!versionStr.isEmpty()) { - version = (EWebsocketVersion)versionStr.toInt(); - } else if (tcpSocket->bytesAvailable() >= 8) { - version = WS_V0; - request.append(tcpSocket->read(8)); - } else { - version = WS_VUnknow; - } - - // Resource name - regExp.setPattern(QWsServer::regExpResourceNameStr); - regExp.indexIn(request); - QString resourceName = regExp.cap(1); - - // Host (address & port) - regExp.setPattern(QWsServer::regExpHostStr); - regExp.indexIn(request); - QString host = regExp.cap(1); - QStringList hostTmp = host.split(':'); - QString hostAddress = hostTmp[0]; - QString hostPort; - if (hostTmp.size() > 1) - hostPort = hostTmp.last(); // fix for IPv6 - - // Key - QString key, key1, key2, key3; - if (version >= WS_V4) { - regExp.setPattern(QWsServer::regExpKeyStr); - regExp.indexIn(request); - key = regExp.cap(1); - } else { - regExp.setPattern(QWsServer::regExpKey1Str); - regExp.indexIn(request); - key1 = regExp.cap(1); - regExp.setPattern(QWsServer::regExpKey2Str); - regExp.indexIn(request); - key2 = regExp.cap(1); - regExp.setPattern(QWsServer::regExpKey3Str); - regExp.indexIn(request); - key3 = regExp.cap(1); - } - - //////////////////////////////////////////////////////////////////// - - // If the mandatory fields are not specified, we abord the connection to the - // Websocket server - if (version == WS_VUnknow || resourceName.isEmpty() || - hostAddress.isEmpty() || - (key.isEmpty() && (key1.isEmpty() || key2.isEmpty() || key3.isEmpty()))) { - // Send bad request response - QString response = QWsServer::composeBadRequestResponse( - QList<EWebsocketVersion>() << WS_V6 << WS_V7 << WS_V8 << WS_V13); - tcpSocket->write(response.toUtf8()); - tcpSocket->flush(); - return; - } - - //////////////////////////////////////////////////////////////////// - - // Extract optional datas - - // Origin - regExp.setPattern(QWsServer::regExpOriginStr); - if (regExp.indexIn(request) == -1) { - regExp.setPattern(QWsServer::regExpOrigin2Str); - regExp.indexIn(request); - } - QString origin = regExp.cap(1); - - // Protocol - regExp.setPattern(QWsServer::regExpProtocolStr); - regExp.indexIn(request); - QString protocol = regExp.cap(1); - - // Extensions - regExp.setPattern(QWsServer::regExpExtensionsStr); - regExp.indexIn(request); - QString extensions = regExp.cap(1); - - //////////////////////////////////////////////////////////////////// - - // Compose opening handshake response - QString response; - - if (version >= WS_V6) { - QString accept = computeAcceptV4(key); - response = QWsServer::composeOpeningHandshakeResponseV6(accept, protocol); - } else if (version >= WS_V4) { - QString accept = computeAcceptV4(key); - QString nonce = generateNonce(); - response = - QWsServer::composeOpeningHandshakeResponseV4(accept, nonce, protocol); - } else { - QString accept = computeAcceptV0(key1, key2, key3); - response = QWsServer::composeOpeningHandshakeResponseV0( - accept, origin, hostAddress, hostPort, resourceName, protocol); - } - - // Handshake OK, disconnect readyRead - disconnect(tcpSocket, SIGNAL(readyRead()), this, SLOT(dataReceived())); - - // Send opening handshake response - if (version == WS_V0) - tcpSocket->write(response.toLatin1()); - else - tcpSocket->write(response.toUtf8()); - tcpSocket->flush(); - - QWsSocket* wsSocket = new QWsSocket(this, tcpSocket, version); - wsSocket->setResourceName(resourceName); - wsSocket->setHost(host); - wsSocket->setHostAddress(hostAddress); - wsSocket->setHostPort(hostPort.toInt()); - wsSocket->setOrigin(origin); - wsSocket->setProtocol(protocol); - wsSocket->setExtensions(extensions); - wsSocket->serverSideSocket = true; - - // ORIGINAL CODE - // int socketDescriptor = tcpSocket->socketDescriptor(); - // incomingConnection( socketDescriptor ); - - // CHANGED CODE FOR LINUX COMPATIBILITY - addPendingConnection(wsSocket); - emit newConnection(); -} - -void QWsServer::incomingConnection(int socketDescriptor) { - QTcpSocket* tcpSocket = new QTcpSocket(tcpServer); - tcpSocket->setSocketDescriptor(socketDescriptor, - QAbstractSocket::ConnectedState); - QWsSocket* wsSocket = new QWsSocket(this, tcpSocket); - - addPendingConnection(wsSocket); - emit newConnection(); -} - -void QWsServer::addPendingConnection(QWsSocket* socket) { - if (pendingConnections.size() < maxPendingConnections()) - pendingConnections.enqueue(socket); -} - -QWsSocket* QWsServer::nextPendingConnection() { - return pendingConnections.dequeue(); -} - -bool QWsServer::hasPendingConnections() { - if (pendingConnections.size() > 0) - return true; - return false; -} - -int QWsServer::maxPendingConnections() { - return tcpServer->maxPendingConnections(); -} - -bool QWsServer::isListening() { - return tcpServer->isListening(); -} - -QNetworkProxy QWsServer::proxy() { - return tcpServer->proxy(); -} - -QHostAddress QWsServer::serverAddress() { - return tcpServer->serverAddress(); -} - -quint16 QWsServer::serverPort() { - return tcpServer->serverPort(); -} - -void QWsServer::setMaxPendingConnections(int numConnections) { - tcpServer->setMaxPendingConnections(numConnections); -} - -void QWsServer::setProxy(const QNetworkProxy& networkProxy) { - tcpServer->setProxy(networkProxy); -} - -bool QWsServer::setSocketDescriptor(int socketDescriptor) { - return tcpServer->setSocketDescriptor(socketDescriptor); -} - -int QWsServer::socketDescriptor() { - return tcpServer->socketDescriptor(); -} - -bool QWsServer::waitForNewConnection(int msec, bool* timedOut) { - return tcpServer->waitForNewConnection(msec, timedOut); -} - -QString QWsServer::computeAcceptV0(QString key1, QString key2, QString key3) { - QString numStr1; - QString numStr2; - - QChar carac; - for (int i = 0; i < key1.size(); i++) { - carac = key1[i]; - if (carac.isDigit()) - numStr1.append(carac); - } - for (int i = 0; i < key2.size(); i++) { - carac = key2[i]; - if (carac.isDigit()) - numStr2.append(carac); - } - - quint32 num1 = numStr1.toUInt(); - quint32 num2 = numStr2.toUInt(); - - int numSpaces1 = key1.count(' '); - int numSpaces2 = key2.count(' '); - - num1 /= numSpaces1; - num2 /= numSpaces2; - - QString concat = serializeInt(num1) + serializeInt(num2) + key3; - - QByteArray md5 = - QCryptographicHash::hash(concat.toLatin1(), QCryptographicHash::Md5); - - return QString(md5); -} - -QString QWsServer::computeAcceptV4(QString key) { - key += QLatin1String("258EAFA5-E914-47DA-95CA-C5AB0DC85B11"); - QByteArray hash = - QCryptographicHash::hash(key.toUtf8(), QCryptographicHash::Sha1); - return hash.toBase64(); -} - -QString QWsServer::generateNonce() { - qsrand(QDateTime::currentDateTime().toTime_t()); - - QByteArray nonce; - int i = 16; - - while (i--) { - nonce.append(qrand() % 0x100); - } - - return QString(nonce.toBase64()); -} - -QByteArray QWsServer::serializeInt(quint32 number, quint8 nbBytes) { - QByteArray ba; - quint8 currentNbBytes = 0; - while (number > 0 && currentNbBytes < nbBytes) { - char car = static_cast<char>(number & 0xFF); - ba.prepend(car); - number = number >> 8; - currentNbBytes++; - } - char car = 0x00; - while (currentNbBytes < nbBytes) { - ba.prepend(car); - currentNbBytes++; - } - return ba; -} - -QString QWsServer::composeOpeningHandshakeResponseV0(QString accept, - QString origin, - QString hostAddress, - QString hostPort, - QString resourceName, - QString protocol) { - QString response; - - response.append( - QLatin1String("HTTP/1.1 101 WebSocket Protocol Handshake\r\n")); - response.append(QLatin1String("Upgrade: Websocket\r\n")); - response.append(QLatin1String("Connection: Upgrade\r\n")); - response.append(QLatin1String("Sec-WebSocket-Origin: ") + origin + - QLatin1String("\r\n")); - response.append(QLatin1String("Sec-WebSocket-Location: ws://") + hostAddress); - if (!hostPort.isEmpty()) - response.append(QLatin1String(":") + hostPort); - response.append(resourceName + QLatin1String("\r\n")); - if (!protocol.isEmpty()) - response.append(QLatin1String("Sec-WebSocket-Protocol: ") + protocol + - QLatin1String("\r\n")); - response.append(QLatin1String("\r\n")); - response.append(accept); - - return response; -} - -QString QWsServer::composeOpeningHandshakeResponseV4(QString accept, - QString nonce, - QString protocol, - QString extensions) { - QString response; - - response.append(QLatin1String("HTTP/1.1 101 Switching Protocols\r\n")); - response.append(QLatin1String("Upgrade: websocket\r\n")); - response.append(QLatin1String("Connection: Upgrade\r\n")); - response.append(QLatin1String("Sec-WebSocket-Accept: ") + accept + - QLatin1String("\r\n")); - response.append(QLatin1String("Sec-WebSocket-Nonce: ") + nonce + - QLatin1String("\r\n")); - if (!protocol.isEmpty()) - response.append(QLatin1String("Sec-WebSocket-Protocol: ") + protocol + - QLatin1String("\r\n")); - if (!extensions.isEmpty()) - response.append(QLatin1String("Sec-WebSocket-Extensions: ") + extensions + - QLatin1String("\r\n")); - response.append(QLatin1String("\r\n")); - - return response; -} - -QString QWsServer::composeOpeningHandshakeResponseV6(QString accept, - QString protocol, - QString extensions) { - QString response; - - response.append(QLatin1String("HTTP/1.1 101 Switching Protocols\r\n")); - response.append(QLatin1String("Upgrade: websocket\r\n")); - response.append(QLatin1String("Connection: Upgrade\r\n")); - response.append(QLatin1String("Sec-WebSocket-Accept: ") + accept + - QLatin1String("\r\n")); - if (!protocol.isEmpty()) - response.append(QLatin1String("Sec-WebSocket-Protocol: ") + protocol + - QLatin1String("\r\n")); - if (!extensions.isEmpty()) - response.append(QLatin1String("Sec-WebSocket-Extensions: ") + extensions + - QLatin1String("\r\n")); - response.append(QLatin1String("\r\n")); - - return response; -} - -QString QWsServer::composeBadRequestResponse( - QList<EWebsocketVersion> versions) { - QString response; - - response.append(QLatin1String("HTTP/1.1 400 Bad Request\r\n")); - if (!versions.isEmpty()) { - QString versionsStr = QString::number((int)versions.takeLast()); - int i = versions.size(); - while (i--) { - versionsStr.append(QLatin1String(", ") + - QString::number((int)versions.takeLast())); - } - response.append(QLatin1String("Sec-WebSocket-Version: ") + versionsStr + - QLatin1String("\r\n")); - } - - return response; -} diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsServer.h b/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsServer.h deleted file mode 100644 index f37dd4b5b2..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsServer.h +++ /dev/null @@ -1,98 +0,0 @@ -#ifndef QWSSERVER_H -#define QWSSERVER_H - -#include <QTcpServer> -#include <QTcpSocket> -#include <QNetworkProxy> -#include <QString> -#include <QStringList> -#include <QMap> -#include <QQueue> - -#include "QWsSocket.h" - -class QWsServer : public QObject { - Q_OBJECT - - public: - // ctor - QWsServer(QObject* parent = 0); - // dtor - virtual ~QWsServer(); - - // public functions - void close(); - QString errorString(); - bool hasPendingConnections(); - bool isListening(); - bool listen(const QHostAddress& address = QHostAddress::Any, - quint16 port = 0); - int maxPendingConnections(); - virtual QWsSocket* nextPendingConnection(); - QNetworkProxy proxy(); - QHostAddress serverAddress(); - QAbstractSocket::SocketError serverError(); - quint16 serverPort(); - void setMaxPendingConnections(int numConnections); - void setProxy(const QNetworkProxy& networkProxy); - bool setSocketDescriptor(int socketDescriptor); - int socketDescriptor(); - bool waitForNewConnection(int msec = 0, bool* timedOut = 0); - -signals: - void newConnection(); - - protected: - // protected functions - void addPendingConnection(QWsSocket* socket); - virtual void incomingConnection(int socketDescriptor); - - private slots: - // private slots - void newTcpConnection(); - void closeTcpConnection(); - void dataReceived(); - - private: - // private attributes - QTcpServer* tcpServer; - QQueue<QWsSocket*> pendingConnections; - QMap<const QTcpSocket*, QStringList> headerBuffer; - - public: - // public static functions - static QByteArray serializeInt(quint32 number, quint8 nbBytes = 4); - static QString computeAcceptV0(QString key1, QString key2, QString thirdPart); - static QString computeAcceptV4(QString key); - static QString generateNonce(); - static QString composeOpeningHandshakeResponseV0(QString accept, - QString origin, - QString hostAddress, - QString hostPort, - QString resourceName, - QString protocol = ""); - static QString composeOpeningHandshakeResponseV4(QString accept, - QString nonce, - QString protocol = "", - QString extensions = ""); - static QString composeOpeningHandshakeResponseV6(QString accept, - QString protocol = "", - QString extensions = ""); - static QString composeBadRequestResponse( - QList<EWebsocketVersion> versions = QList<EWebsocketVersion>()); - - // public static vars - static const QString regExpResourceNameStr; - static const QString regExpHostStr; - static const QString regExpKeyStr; - static const QString regExpKey1Str; - static const QString regExpKey2Str; - static const QString regExpKey3Str; - static const QString regExpVersionStr; - static const QString regExpOriginStr; - static const QString regExpOrigin2Str; - static const QString regExpProtocolStr; - static const QString regExpExtensionsStr; -}; - -#endif // QWSSERVER_H diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsSocket.cpp b/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsSocket.cpp deleted file mode 100644 index 428f559517..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsSocket.cpp +++ /dev/null @@ -1,749 +0,0 @@ -#include "QWsSocket.h" - -#include <QCryptographicHash> -#include <QtEndian> - -#include "QWsServer.h" - -int QWsSocket::maxBytesPerFrame = 1400; -const QString QWsSocket::regExpAcceptStr( - QLatin1String("Sec-WebSocket-Accept:\\s(.{28})\r\n")); -const QString QWsSocket::regExpUpgradeStr(QLatin1String("Upgrade:\\s(.+)\r\n")); -const QString QWsSocket::regExpConnectionStr( - QLatin1String("Connection:\\s(.+)\r\n")); - -QWsSocket::QWsSocket(QObject* parent, - QTcpSocket* socket, - EWebsocketVersion ws_v) - : QAbstractSocket(QAbstractSocket::UnknownSocketType, parent) - , tcpSocket(socket ? socket : new QTcpSocket(this)) - , _version(ws_v) - , _hostPort(-1) - , closingHandshakeSent(false) - , closingHandshakeReceived(false) - , readingState(HeaderPending) - , isFinalFragment(false) - , hasMask(false) - , payloadLength(0) - , maskingKey(4, 0) - , serverSideSocket(false) { - tcpSocket->setParent(this); - - QAbstractSocket::setSocketState(tcpSocket->state()); - QAbstractSocket::setPeerAddress(tcpSocket->peerAddress()); - QAbstractSocket::setPeerPort(tcpSocket->peerPort()); - - if (_version == WS_V0) - connect(tcpSocket, SIGNAL(readyRead()), this, SLOT(processDataV0())); - else if (_version >= WS_V4) - connect(tcpSocket, SIGNAL(readyRead()), this, SLOT(processDataV4())); - connect(tcpSocket, - SIGNAL(error(QAbstractSocket::SocketError)), - this, - SIGNAL(error(QAbstractSocket::SocketError))); - connect(tcpSocket, - SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&, - QAuthenticator*)), - this, - SIGNAL(proxyAuthenticationRequired(const QNetworkProxy&, - QAuthenticator*))); - connect(tcpSocket, - SIGNAL(stateChanged(QAbstractSocket::SocketState)), - this, - SLOT(processTcpStateChanged(QAbstractSocket::SocketState))); - connect(tcpSocket, - SIGNAL(readChannelFinished()), - this, - SIGNAL(readChannelFinished())); - connect(tcpSocket, SIGNAL(hostFound()), this, SIGNAL(hostFound())); -} - -QWsSocket::~QWsSocket() { - QAbstractSocket::SocketState state = QAbstractSocket::state(); - if (state != QAbstractSocket::UnconnectedState) { - qDebug() << "CloseAway, socket destroyed in server"; - close(CloseGoingAway, QLatin1String("The server destroyed the socket.")); - tcpSocket->abort(); - QAbstractSocket::setSocketState(QAbstractSocket::UnconnectedState); - QAbstractSocket::stateChanged(QAbstractSocket::UnconnectedState); - emit QAbstractSocket::disconnected(); - } -} - -void QWsSocket::connectToHost(const QString& hostName, - quint16 port, - OpenMode mode) { - QWsSocket::connectToHost(QHostAddress(hostName), port, mode); -} - -void QWsSocket::connectToHost(const QHostAddress& address, - quint16 port, - OpenMode mode) { - handshakeResponse.clear(); - setPeerAddress(address); - setPeerPort(port); - setOpenMode(mode); - tcpSocket->connectToHost(address, port, mode); -} - -void QWsSocket::disconnectFromHost() { - QWsSocket::close(); -} - -void QWsSocket::abort(QString reason) { - QWsSocket::close(CloseAbnormalDisconnection, reason); - tcpSocket->abort(); -} - -void QWsSocket::close(ECloseStatusCode closeStatusCode, QString reason) { - if (QAbstractSocket::state() == QAbstractSocket::UnconnectedState) - return; - - if (!closingHandshakeSent) { - switch (_version) { - case WS_V4: - case WS_V5: - case WS_V6: - case WS_V7: - case WS_V8: - case WS_V13: { - // Compose and send close frame - QByteArray BA; - - // Body - if (closeStatusCode == NoCloseStatusCode) { - // Header - BA.append(QWsSocket::composeHeader(true, OpClose, 0)); - } else { - // Header - QByteArray maskingKey; - if (!serverSideSocket) - maskingKey = QWsSocket::generateMaskingKey(); - BA.append(QWsSocket::composeHeader( - true, OpClose, reason.size() + 2, maskingKey)); - - QByteArray body; - - // Close status code (optional) - body.append(QWsServer::serializeInt((int)closeStatusCode, 2)); - - // Reason (optional) - if (reason.size()) { - QByteArray reason_ba = reason.toUtf8(); - if (!serverSideSocket) { - reason_ba = QWsSocket::mask(reason_ba, maskingKey); - } - body.append(reason_ba); - } - - BA.append(body); - } - - // Send closing handshake - tcpSocket->write(BA); - - break; - } - case WS_V0: { - QByteArray closeFrame; - closeFrame.append((char)0xFF); - closeFrame.append((char)0x00); - tcpSocket->write(closeFrame); - break; - } - default: { break; } - } - - closingHandshakeSent = true; - } - - if (QAbstractSocket::state() != QAbstractSocket::ClosingState) { - QAbstractSocket::setSocketState(QAbstractSocket::ClosingState); - emit QAbstractSocket::stateChanged(QAbstractSocket::ClosingState); - emit QAbstractSocket::aboutToClose(); - } - - if (closingHandshakeSent && closingHandshakeReceived) { - QAbstractSocket::setSocketState(QAbstractSocket::UnconnectedState); - emit stateChanged(QAbstractSocket::UnconnectedState); - emit disconnected(); - tcpSocket->disconnectFromHost(); - } -} - -qint64 QWsSocket::write(const QString& string) { - if (_version == WS_V0) { - return QWsSocket::write(string.toUtf8()); - } - - const QList<QByteArray>& framesList = - QWsSocket::composeFrames(string.toUtf8(), false, maxBytesPerFrame); - return writeFrames(framesList); -} - -qint64 QWsSocket::write(const QByteArray& byteArray) { - if (_version == WS_V0) { - QByteArray BA; - BA.append((char)0x00); - BA.append(byteArray); - BA.append((char)0xFF); - return writeFrame(BA); - } - - const QList<QByteArray>& framesList = - QWsSocket::composeFrames(byteArray, true, maxBytesPerFrame); - - qint64 nbBytesWritten = writeFrames(framesList); - emit bytesWritten(nbBytesWritten); - - return nbBytesWritten; -} - -void QWsSocket::processHandshake() { - // copy from QWsServer::dataReceived(); - QTcpSocket* tcpSocket = qobject_cast<QTcpSocket*>(sender()); - if (tcpSocket == 0) - return; - - bool allHeadersFetched = false; - - const QLatin1String emptyLine("\r\n"); - - while (tcpSocket->canReadLine()) { - QString line = tcpSocket->readLine(); - - if (line == emptyLine) { - allHeadersFetched = true; - break; - } - - handshakeResponse.append(line); - } - - if (!allHeadersFetched) - return; - - QRegExp regExp; - regExp.setMinimal(true); - - // check accept field - regExp.setPattern(regExpAcceptStr); - regExp.indexIn(handshakeResponse); - QString acceptFromServer = regExp.cap(1); - - // check upgrade field - regExp.setPattern(regExpUpgradeStr); - regExp.indexIn(handshakeResponse); - QString upgrade = regExp.cap(1); - - // check connection field - regExp.setPattern(regExpConnectionStr); - regExp.indexIn(handshakeResponse); - QString connection = regExp.cap(1); - - // check extensions field - regExp.setPattern(QWsServer::regExpExtensionsStr); - regExp.indexIn(handshakeResponse); - QString extensions = regExp.cap(1); - - // TODO: check extensions field - // If the mandatory params are not setted, we abord the connection to the - // Websocket server - if ((acceptFromServer.isEmpty()) || - (!upgrade.contains(QLatin1String("websocket"), Qt::CaseInsensitive)) || - (!connection.contains(QLatin1String("Upgrade"), Qt::CaseInsensitive))) { - // emit error(QAbstractSocket::ConnectionRefusedError); - // return; - } - - // TODO: check HTTP code - - // TODO: check protocol field - - QString accept = QWsServer::computeAcceptV4(key); - if (accept != acceptFromServer) { - // emit error(QAbstractSocket::ConnectionRefusedError); - // return; - } - - // handshake procedure succeeded - QAbstractSocket::setSocketState(QAbstractSocket::ConnectedState); - emit QAbstractSocket::stateChanged(QAbstractSocket::ConnectedState); - emit QAbstractSocket::connected(); -} - -void QWsSocket::processDataV0() { - if (state() == QAbstractSocket::ConnectingState) { - processHandshake(); - return; - } - - QByteArray BA, buffer; - quint8 type, b = 0x00; - - BA = tcpSocket->read(1); // TODO: refactor like processDataV4 - type = BA[0]; - - if ((type & 0x80) == 0x00) // MSB of type not set - { - if (type != 0x00) { - // ABORT CONNEXION - tcpSocket->readAll(); - return; - } - - // read data - do { - BA = tcpSocket->read(1); - b = BA[0]; - if (b != 0xFF) - buffer.append(b); - } while (b != 0xFF); - - currentFrame.append(buffer); - } else // MSB of type set - { - if (type != 0xFF) { - // ERROR, ABORT CONNEXION - close(); - return; - } - - quint8 length = 0x00; - - bool bIsNotZero = true; - do { - BA = tcpSocket->read(1); - b = BA[0]; - bIsNotZero = (b != 0x00 ? true : false); - if (bIsNotZero) // b must be != 0 - { - quint8 b_v = b & 0x7F; - length *= 128; - length += b_v; - } - } while (((b & 0x80) == 0x80) && bIsNotZero); - - BA = tcpSocket->read(length); // discard this bytes - } - - if (currentFrame.size() > 0) { - emit frameReceived(QString::fromUtf8(currentFrame)); - currentFrame.clear(); - } - - if (tcpSocket->bytesAvailable()) - processDataV0(); -} - -void QWsSocket::processDataV4() { - if (state() == QAbstractSocket::ConnectingState) { - processHandshake(); - } else - while (true) - switch (readingState) { - case HeaderPending: { - if (tcpSocket->bytesAvailable() < 2) - return; - - // END, RSV1-3, Opcode - char header[2]; - tcpSocket->read(header, 2); // XXX: Handle return value - isFinalFragment = (header[0] & 0x80) != 0; - opcode = static_cast<EOpcode>(header[0] & 0x0F); - - // Mask, PayloadLength - hasMask = (header[1] & 0x80) != 0; - quint8 length = (header[1] & 0x7F); - - switch (length) { - case 126: - readingState = PayloadLengthPending; - break; - case 127: - readingState = BigPayloadLenghPending; - break; - default: - payloadLength = length; - readingState = MaskPending; - break; - } - }; break; - case PayloadLengthPending: { - if (tcpSocket->bytesAvailable() < 2) - return; - - uchar length[2]; - tcpSocket->read(reinterpret_cast<char*>(length), - 2); // XXX: Handle return value - payloadLength = - qFromBigEndian<quint16>(reinterpret_cast<const uchar*>(length)); - readingState = MaskPending; - }; break; - case BigPayloadLenghPending: { - if (tcpSocket->bytesAvailable() < 8) - return; - - uchar length[8]; - tcpSocket->read(reinterpret_cast<char*>(length), - 8); // XXX: Handle return value - // Most significant bit must be set to 0 as per - // http://tools.ietf.org/html/rfc6455#section-5.2 - // XXX: Check for that? - payloadLength = qFromBigEndian<quint64>(length) & ~(1LL << 63); - readingState = MaskPending; - }; break; - case MaskPending: { - if (!hasMask) { - readingState = PayloadBodyPending; - break; - } - - if (tcpSocket->bytesAvailable() < 4) - return; - - tcpSocket->read(maskingKey.data(), 4); // XXX: Handle return value - - if (opcode == OpClose) { - readingState = CloseDataPending; - } else { - readingState = PayloadBodyPending; - } - }; /* Intentional fall-through */ - case PayloadBodyPending: { - // TODO: Handle large payloads - if (tcpSocket->bytesAvailable() < static_cast<qint32>(payloadLength)) - return; - - if (opcode == OpClose) { - if (payloadLength >= 2 && tcpSocket->bytesAvailable() >= 2) { - uchar bytes[2]; - tcpSocket->read(reinterpret_cast<char*>(bytes), 2); - closeStatusCode = (ECloseStatusCode)qFromBigEndian<quint16>( - reinterpret_cast<const uchar*>(bytes)); - } else { - closeStatusCode = NoCloseStatusCode; - } - } - - QByteArray ApplicationData = tcpSocket->read(payloadLength); - if (hasMask) - ApplicationData = QWsSocket::mask(ApplicationData, maskingKey); - currentFrame.append(ApplicationData); - - readingState = HeaderPending; - - if (!isFinalFragment) - break; - - switch (opcode) { - case OpBinary: - emit frameReceived(currentFrame); - break; - case OpText: - emit frameReceived(QString::fromUtf8(currentFrame)); - break; - case OpPing: - write(QWsSocket::composeHeader(true, OpPong, 0)); - break; - case OpPong: - emit pong(pingTimer.elapsed()); - break; - case OpClose: - closingHandshakeReceived = true; - close(closeStatusCode); - break; - default: - // DO NOTHING - break; - } - - currentFrame.clear(); - }; break; - case CloseDataPending: - default: - break; - } /* while (true) switch */ -} - -qint64 QWsSocket::writeFrame(const QByteArray& byteArray) { - return tcpSocket->write(byteArray); -} - -qint64 QWsSocket::writeFrames(const QList<QByteArray>& framesList) { - qint64 nbBytesWritten = 0; - for (int i = 0; i < framesList.size(); i++) { - nbBytesWritten += writeFrame(framesList[i]); - } - return nbBytesWritten; -} - -void QWsSocket::processTcpStateChanged( - QAbstractSocket::SocketState tcpSocketState) { - QAbstractSocket::SocketState wsSocketState = QAbstractSocket::state(); - switch (tcpSocketState) { - case QAbstractSocket::HostLookupState: { - QAbstractSocket::setSocketState(QAbstractSocket::HostLookupState); - emit QAbstractSocket::stateChanged(QAbstractSocket::HostLookupState); - break; - } - case QAbstractSocket::ConnectingState: { - QAbstractSocket::setSocketState(QAbstractSocket::ConnectingState); - emit QAbstractSocket::stateChanged(QAbstractSocket::ConnectingState); - break; - } - case QAbstractSocket::ConnectedState: { - if (wsSocketState == QAbstractSocket::ConnectingState) { - key = QWsServer::generateNonce(); - QString handshake = - composeOpeningHandShake(QLatin1String("/"), - QLatin1String("example.com"), - QString(), - QString(), - key); - tcpSocket->write(handshake.toUtf8()); - } - break; - } - case QAbstractSocket::ClosingState: { - if (wsSocketState == QAbstractSocket::ConnectedState) { - QWsSocket::close(CloseGoingAway); - QAbstractSocket::setSocketState(QAbstractSocket::ClosingState); - emit QAbstractSocket::stateChanged(QAbstractSocket::ClosingState); - emit QAbstractSocket::aboutToClose(); - } - break; - } - case QAbstractSocket::UnconnectedState: { - if (wsSocketState != QAbstractSocket::UnconnectedState) { - QAbstractSocket::setSocketError(QAbstractSocket::NetworkError); - emit QAbstractSocket::error(QAbstractSocket::NetworkError); - QAbstractSocket::setSocketState(QAbstractSocket::UnconnectedState); - emit QAbstractSocket::stateChanged(QAbstractSocket::UnconnectedState); - emit QAbstractSocket::disconnected(); - } - closingHandshakeSent = false; - closingHandshakeReceived = false; - break; - } - default: - break; - } -} - -QByteArray QWsSocket::generateMaskingKey() { - QByteArray key; - for (int i = 0; i < 4; i++) { - key.append(qrand() % 0x100); - } - return key; -} - -QByteArray QWsSocket::generateMaskingKeyV4(QString key, QString nonce) { - QString concat = - key + nonce + QLatin1String("61AC5F19-FBBA-4540-B96F-6561F1AB40A8"); - QByteArray hash = - QCryptographicHash::hash(concat.toUtf8(), QCryptographicHash::Sha1); - return hash; -} - -QByteArray QWsSocket::mask(QByteArray& data, QByteArray& maskingKey) { - QByteArray result; - result.reserve(data.size()); - - for (int i = 0; i < data.size(); i++) { - result[i] = (data[i] ^ maskingKey[i % 4]); - } - - return result; -} - -QList<QByteArray> QWsSocket::composeFrames(QByteArray byteArray, - bool asBinary, - int maxFrameBytes) { - if (maxFrameBytes == 0) - maxFrameBytes = maxBytesPerFrame; - - QList<QByteArray> framesList; - - QByteArray maskingKey; - - int nbFrames = byteArray.size() / maxFrameBytes + 1; - - for (int i = 0; i < nbFrames; i++) { - QByteArray BA; - - // end, size - bool end = false; - quint64 size = maxFrameBytes; - EOpcode opcode = OpContinue; - if (i == nbFrames - 1) // for multi-frames - { - end = true; - size = byteArray.size(); - } - if (i == 0) { - if (asBinary) - opcode = OpBinary; - else - opcode = OpText; - } - - // Header - BA.append(QWsSocket::composeHeader(end, opcode, size, maskingKey)); - - // Application Data - QByteArray dataForThisFrame = byteArray.left(size); - byteArray.remove(0, size); - - // dataForThisFrame = QWsSocket::mask( dataForThisFrame, maskingKey ); - BA.append(dataForThisFrame); - - framesList << BA; - } - - return framesList; -} - -QByteArray QWsSocket::composeHeader(bool end, - EOpcode opcode, - quint64 payloadLength, - QByteArray maskingKey) { - QByteArray BA; - quint8 byte; - - // end, RSV1-3, Opcode - byte = 0x00; - // end - if (end) - byte = (byte | 0x80); - // Opcode - byte = (byte | opcode); - BA.append(byte); - - // Mask, PayloadLength - byte = 0x00; - QByteArray BAsize; - // Mask - if (maskingKey.size() == 4) - byte = (byte | 0x80); - // PayloadLength - if (payloadLength <= 125) { - byte = (byte | payloadLength); - } - // Extended payloadLength - else { - // 2 bytes - if (payloadLength <= 0xFFFF) { - byte = (byte | 126); - BAsize.append((payloadLength >> 1 * 8) & 0xFF); - BAsize.append((payloadLength >> 0 * 8) & 0xFF); - } - // 8 bytes - else if (payloadLength <= 0x7FFFFFFF) { - byte = (byte | 127); - BAsize.append((payloadLength >> 7 * 8) & 0xFF); - BAsize.append((payloadLength >> 6 * 8) & 0xFF); - BAsize.append((payloadLength >> 5 * 8) & 0xFF); - BAsize.append((payloadLength >> 4 * 8) & 0xFF); - BAsize.append((payloadLength >> 3 * 8) & 0xFF); - BAsize.append((payloadLength >> 2 * 8) & 0xFF); - BAsize.append((payloadLength >> 1 * 8) & 0xFF); - BAsize.append((payloadLength >> 0 * 8) & 0xFF); - } - } - BA.append(byte); - BA.append(BAsize); - - // Masking - if (maskingKey.size() == 4) - BA.append(maskingKey); - - return BA; -} - -void QWsSocket::ping() { - pingTimer.restart(); - QByteArray pingFrame = QWsSocket::composeHeader(true, OpPing, 0); - writeFrame(pingFrame); -} - -void QWsSocket::setResourceName(QString rn) { - _resourceName = rn; -} - -void QWsSocket::setHost(QString h) { - _host = h; -} - -void QWsSocket::setHostAddress(QString ha) { - _hostAddress = ha; -} - -void QWsSocket::setHostPort(int hp) { - _hostPort = hp; -} - -void QWsSocket::setOrigin(QString o) { - _origin = o; -} - -void QWsSocket::setProtocol(QString p) { - _protocol = p; -} - -void QWsSocket::setExtensions(QString e) { - _extensions = e; -} - -EWebsocketVersion QWsSocket::version() { - return _version; -} - -QString QWsSocket::resourceName() { - return _resourceName; -} - -QString QWsSocket::host() { - return _host; -} - -QString QWsSocket::hostAddress() { - return _hostAddress; -} - -int QWsSocket::hostPort() { - return _hostPort; -} - -QString QWsSocket::origin() { - return _origin; -} - -QString QWsSocket::protocol() { - return _protocol; -} - -QString QWsSocket::extensions() { - return _extensions; -} - -QString QWsSocket::composeOpeningHandShake(QString resourceName, - QString host, - QString origin, - QString extensions, - QString key) { - QString hs; - hs.append(QLatin1String("GET ") + resourceName + - QLatin1String(" HTTP/1.1\r\n")); - hs.append(QLatin1String("Host: ") + host + "\r\n"); - hs.append(QLatin1String("Upgrade: websocket\r\n")); - hs.append(QLatin1String("Connection: Upgrade\r\n")); - hs.append(QLatin1String("Sec-WebSocket-Key: ") + key + QLatin1String("\r\n")); - hs.append(QLatin1String("Origin: ") + origin + QLatin1String("\r\n")); - hs.append(QLatin1String("Sec-WebSocket-Extensions: ") + extensions + - QLatin1String("\r\n")); - hs.append(QLatin1String("Sec-WebSocket-Version: 13\r\n")); - hs.append(QLatin1String("\r\n")); - return hs; -} diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsSocket.h b/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsSocket.h deleted file mode 100644 index cdd19db38a..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QWsSocket.h +++ /dev/null @@ -1,181 +0,0 @@ -#ifndef QWSSOCKET_H -#define QWSSOCKET_H - -#include <QTcpSocket> -#include <QHostAddress> -#include <QTime> - -enum EWebsocketVersion { - WS_VUnknow = -1, - WS_V0 = 0, - WS_V4 = 4, - WS_V5 = 5, - WS_V6 = 6, - WS_V7 = 7, - WS_V8 = 8, - WS_V13 = 13 -}; - -class QWsSocket : public QAbstractSocket { - Q_OBJECT - - friend class QWsServer; - - public: - enum EOpcode { - OpContinue = 0x0, - OpText = 0x1, - OpBinary = 0x2, - OpReserved3 = 0x3, - OpReserved4 = 0x4, - OpReserved5 = 0x5, - OpReserved6 = 0x6, - OpReserved7 = 0x7, - OpClose = 0x8, - OpPing = 0x9, - OpPong = 0xA, - OpReservedB = 0xB, - OpReservedV = 0xC, - OpReservedD = 0xD, - OpReservedE = 0xE, - OpReservedF = 0xF - }; - enum ECloseStatusCode { - NoCloseStatusCode = 0, - CloseNormal = 1000, - CloseGoingAway = 1001, - CloseProtocolError = 1002, - CloseDataTypeNotSupported = 1003, - CloseReserved1004 = 1004, - CloseMissingStatusCode = 1005, - CloseAbnormalDisconnection = 1006, - CloseWrongDataType = 1007, - ClosePolicyViolated = 1008, - CloseTooMuchData = 1009, - CloseMissingExtension = 1010, - CloseBadOperation = 1011, - CloseTLSHandshakeFailed = 1015 - }; - - public: - // ctor - QWsSocket(QObject* parent = 0, - QTcpSocket* socket = 0, - EWebsocketVersion ws_v = WS_V13); - // dtor - virtual ~QWsSocket(); - - // Public methods - EWebsocketVersion version(); - QString resourceName(); - QString host(); - QString hostAddress(); - int hostPort(); - QString origin(); - QString protocol(); - QString extensions(); - - void setResourceName(QString rn); - void setHost(QString h); - void setHostAddress(QString ha); - void setHostPort(int hp); - void setOrigin(QString o); - void setProtocol(QString p); - void setExtensions(QString e); - - qint64 write(const QString& string); // write data as text - qint64 write(const QByteArray& byteArray); // write data as binary - - public slots: - void connectToHost(const QString& hostName, - quint16 port, - OpenMode mode = ReadWrite); - void connectToHost(const QHostAddress& address, - quint16 port, - OpenMode mode = ReadWrite); - void disconnectFromHost(); - void abort(QString reason = QString()); - void ping(); - -signals: - void frameReceived(QString frame); - void frameReceived(QByteArray frame); - void pong(quint64 elapsedTime); - - protected: - qint64 writeFrames(const QList<QByteArray>& framesList); - qint64 writeFrame(const QByteArray& byteArray); - - protected slots: - virtual void close(ECloseStatusCode closeStatusCode = NoCloseStatusCode, - QString reason = QString()); - void processDataV0(); - void processDataV4(); - void processHandshake(); - void processTcpStateChanged(QAbstractSocket::SocketState socketState); - - private: - enum EReadingState { - HeaderPending, - PayloadLengthPending, - BigPayloadLenghPending, - MaskPending, - PayloadBodyPending, - CloseDataPending - }; - - // private vars - QTcpSocket* tcpSocket; - QByteArray currentFrame; - QTime pingTimer; - - EWebsocketVersion _version; - QString _resourceName; - QString _host; - QString _hostAddress; - int _hostPort; - QString _origin; - QString _protocol; - QString _extensions; - bool serverSideSocket; - - bool closingHandshakeSent; - bool closingHandshakeReceived; - - EReadingState readingState; - EOpcode opcode; - bool isFinalFragment; - bool hasMask; - quint64 payloadLength; - QByteArray maskingKey; - ECloseStatusCode closeStatusCode; - - static const QString regExpAcceptStr; - static const QString regExpUpgradeStr; - static const QString regExpConnectionStr; - QString handshakeResponse; - QString key; - - public: - // Static functions - static QByteArray generateMaskingKey(); - static QByteArray generateMaskingKeyV4(QString key, QString nonce); - static QByteArray mask(QByteArray& data, QByteArray& maskingKey); - static QList<QByteArray> composeFrames(QByteArray byteArray, - bool asBinary = false, - int maxFrameBytes = 0); - static QByteArray composeHeader(bool end, - EOpcode opcode, - quint64 payloadLength, - QByteArray maskingKey = QByteArray()); - static QString composeOpeningHandShake(QString resourceName, - QString host, - QString origin, - QString extensions, - QString key); - - // static vars - static int maxBytesPerFrame; -}; - -#endif // QWSSOCKET_H diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QtWebsocket.pro b/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QtWebsocket.pro deleted file mode 100644 index f52bda256e..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QtWebsocket.pro +++ /dev/null @@ -1,21 +0,0 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2012-03-05T10:38:43 -# -#------------------------------------------------- - -QT += network - -QT -= gui - -TARGET = QtWebsocket -TEMPLATE = lib -CONFIG += staticlib - -SOURCES += \ - QWsServer.cpp \ - QWsSocket.cpp - -HEADERS += \ - QWsServer.h \ - QWsSocket.h diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QtWebsocket.vcproj b/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QtWebsocket.vcproj deleted file mode 100644 index 306dcada09..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/QtWebsocket/QtWebsocket.vcproj +++ /dev/null @@ -1,328 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioProject - ProjectType="Visual C++" - Version="9,00" - Name="QtWebsocket" - ProjectGUID="{7E3A920C-4257-41A1-B9B9-BFA138C1C8A2}" - Keyword="Qt4VSv1.0" - TargetFrameworkVersion="0" - > - <Platforms> - <Platform - Name="Win32" - /> - </Platforms> - <ToolFiles> - </ToolFiles> - <Configurations> - <Configuration - Name="Release|Win32" - OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)" - IntermediateDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)" - ConfigurationType="4" - > - <Tool - Name="VCPreBuildEventTool" - /> - <Tool - Name="VCCustomBuildTool" - /> - <Tool - Name="VCXMLDataGeneratorTool" - /> - <Tool - Name="VCWebServiceProxyGeneratorTool" - /> - <Tool - Name="VCMIDLTool" - /> - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories="".\GeneratedFiles";".";"$(QTDIR)\include";".\GeneratedFiles\$(ConfigurationName)";"$(QTDIR)\include\QtCore";"$(QTDIR)\include\QtNetwork"" - PreprocessorDefinitions=",UNICODE,WIN32,QT_LARGEFILE_SUPPORT;QT_DLL;QT_NO_DEBUG,NDEBUG;QT_CORE_LIB;QT_NETWORK_LIB;QTWEBSOCKET_LIB" - RuntimeLibrary="2" - TreatWChar_tAsBuiltInType="false" - DebugInformationFormat="0" - /> - <Tool - Name="VCManagedResourceCompilerTool" - /> - <Tool - Name="VCResourceCompilerTool" - /> - <Tool - Name="VCPreLinkEventTool" - /> - <Tool - Name="VCLibrarianTool" - OutputFile="$(OutDir)\$(ProjectName).lib" - AdditionalLibraryDirectories="$(QTDIR)\lib" - /> - <Tool - Name="VCALinkTool" - /> - <Tool - Name="VCXDCMakeTool" - /> - <Tool - Name="VCBscMakeTool" - /> - <Tool - Name="VCFxCopTool" - /> - <Tool - Name="VCPostBuildEventTool" - /> - </Configuration> - <Configuration - Name="Debug|Win32" - OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)" - IntermediateDirectory="$(ProjectDir)$(PlatformName)\$(ConfigurationName)" - ConfigurationType="4" - > - <Tool - Name="VCPreBuildEventTool" - /> - <Tool - Name="VCCustomBuildTool" - /> - <Tool - Name="VCXMLDataGeneratorTool" - /> - <Tool - Name="VCWebServiceProxyGeneratorTool" - /> - <Tool - Name="VCMIDLTool" - /> - <Tool - Name="VCCLCompilerTool" - Optimization="0" - AdditionalIncludeDirectories="".\GeneratedFiles";".";"$(QTDIR)\include";".\GeneratedFiles\$(ConfigurationName)";"$(QTDIR)\include\QtCore";"$(QTDIR)\include\QtNetwork"" - PreprocessorDefinitions=",UNICODE,WIN32,QT_LARGEFILE_SUPPORT;QT_DLL;QT_CORE_LIB;QT_NETWORK_LIB;QTWEBSOCKET_LIB" - RuntimeLibrary="3" - TreatWChar_tAsBuiltInType="false" - DebugInformationFormat="3" - /> - <Tool - Name="VCManagedResourceCompilerTool" - /> - <Tool - Name="VCResourceCompilerTool" - /> - <Tool - Name="VCPreLinkEventTool" - /> - <Tool - Name="VCLibrarianTool" - OutputFile="$(OutDir)\$(ProjectName).lib" - AdditionalLibraryDirectories="$(QTDIR)\lib" - /> - <Tool - Name="VCALinkTool" - /> - <Tool - Name="VCXDCMakeTool" - /> - <Tool - Name="VCBscMakeTool" - /> - <Tool - Name="VCFxCopTool" - /> - <Tool - Name="VCPostBuildEventTool" - /> - </Configuration> - </Configurations> - <References> - </References> - <Files> - <Filter - Name="Source Files" - Filter="cpp;cxx;c;def" - UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" - > - <File - RelativePath=".\QWsServer.cpp" - > - </File> - <File - RelativePath=".\QWsSocket.cpp" - > - </File> - </Filter> - <Filter - Name="Header Files" - Filter="h" - UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" - > - <File - RelativePath=".\QWsServer.h" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Moc'ing QWsServer.h..." - CommandLine=""$(QTDIR)\bin\moc.exe" "$(InputPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp" -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_NETWORK_LIB -DQTWEBSOCKET_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtNetwork"
" - AdditionalDependencies=""$(QTDIR)\bin\moc.exe";$(InputPath)" - Outputs="".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Moc'ing QWsServer.h..." - CommandLine=""$(QTDIR)\bin\moc.exe" "$(InputPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp" -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_CORE_LIB -DQT_NETWORK_LIB -DQTWEBSOCKET_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtNetwork"
" - AdditionalDependencies=""$(QTDIR)\bin\moc.exe";$(InputPath)" - Outputs="".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\QWsSocket.h" - > - <FileConfiguration - Name="Release|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Moc'ing QWsSocket.h..." - CommandLine=""$(QTDIR)\bin\moc.exe" "$(InputPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp" -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DNDEBUG -DQT_CORE_LIB -DQT_NETWORK_LIB -DQTWEBSOCKET_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtNetwork"
" - AdditionalDependencies=""$(QTDIR)\bin\moc.exe";$(InputPath)" - Outputs="".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"" - /> - </FileConfiguration> - <FileConfiguration - Name="Debug|Win32" - > - <Tool - Name="VCCustomBuildTool" - Description="Moc'ing QWsSocket.h..." - CommandLine=""$(QTDIR)\bin\moc.exe" "$(InputPath)" -o ".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp" -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_CORE_LIB -DQT_NETWORK_LIB -DQTWEBSOCKET_LIB "-I.\GeneratedFiles" "-I." "-I$(QTDIR)\include" "-I.\GeneratedFiles\$(ConfigurationName)\." "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtNetwork"
" - AdditionalDependencies=""$(QTDIR)\bin\moc.exe";$(InputPath)" - Outputs="".\GeneratedFiles\$(ConfigurationName)\moc_$(InputName).cpp"" - /> - </FileConfiguration> - </File> - </Filter> - <Filter - Name="Form Files" - Filter="ui" - UniqueIdentifier="{99349809-55BA-4b9d-BF79-8FDBB0286EB3}" - > - </Filter> - <Filter - Name="Resource Files" - Filter="qrc;*" - UniqueIdentifier="{D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E}" - ParseFiles="false" - > - </Filter> - <Filter - Name="Generated Files" - Filter="moc;h;cpp" - UniqueIdentifier="{71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}" - SourceControlFiles="false" - > - <Filter - Name="Release" - Filter="cpp;moc" - SourceControlFiles="false" - > - <File - RelativePath=".\GeneratedFiles\Release\moc_QWsServer.cpp" - > - <FileConfiguration - Name="Debug|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\GeneratedFiles\Release\moc_QWsSocket.cpp" - > - <FileConfiguration - Name="Debug|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - </File> - </Filter> - <Filter - Name="Debug" - Filter="cpp;moc" - SourceControlFiles="false" - > - <File - RelativePath=".\GeneratedFiles\Debug\moc_QWsServer.cpp" - > - <FileConfiguration - Name="Release|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - </File> - <File - RelativePath=".\GeneratedFiles\Debug\moc_QWsSocket.cpp" - > - <FileConfiguration - Name="Release|Win32" - ExcludedFromBuild="true" - > - <Tool - Name="VCCLCompilerTool" - /> - </FileConfiguration> - </File> - </Filter> - </Filter> - </Files> - <Globals> - <Global - Name="lreleaseOptions" - Value="" - /> - <Global - Name="lupdateOnBuild" - Value="0" - /> - <Global - Name="lupdateOptions" - Value="" - /> - <Global - Name="MocDir" - Value=".\GeneratedFiles\$(ConfigurationName)" - /> - <Global - Name="MocOptions" - Value="" - /> - <Global - Name="QtVersion Win32" - Value="4.8.2" - /> - <Global - Name="RccDir" - Value=".\GeneratedFiles" - /> - <Global - Name="UicDir" - Value=".\GeneratedFiles" - /> - </Globals> -</VisualStudioProject> diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.cpp b/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.cpp deleted file mode 100644 index 003b098d47..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include "fordsdlcore_plugin.h" -#include "smartdevicelink.h" -#include <QDebug> -#include <qqml.h> -#include "sdlalert.h" -#include <QQmlEngine> -#include <QQmlContext> - -QObject* sdlSingleton(QQmlEngine* engine, QJSEngine* js) { - Q_UNUSED(engine) - Q_UNUSED(js) - - engine->rootContext()->setContextProperty( - "MediaApps", SmartDeviceLink::getInstance().getMediaApps()); - - return (QObject*)&SmartDeviceLink::getInstance(); -} - -QObject* mediaAppsSingleton(QQmlEngine* engine, QJSEngine* js) { - Q_UNUSED(engine) - Q_UNUSED(js) - - return (QObject*)SmartDeviceLink::getInstance().getMediaApps(); -} - -void FordSdlCorePlugin::registerTypes(const char* uri) { - qmlRegisterSingletonType<SdlAppsListModel>( - uri, 1, 0, "MediaApps", mediaAppsSingleton); - qmlRegisterSingletonType<SmartDeviceLink>(uri, 1, 0, "AppLink", sdlSingleton); -} diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.h b/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.h deleted file mode 100644 index 2c8bf39d28..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/fordsdlcore_plugin.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef FORDSDLCORE_PLUGIN_H -#define FORDSDLCORE_PLUGIN_H - -#include <QQmlExtensionPlugin> - -class FordSdlCorePlugin : public QQmlExtensionPlugin { - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") - - public: - void registerTypes(const char* uri); -}; - -#endif // FORDSDLCORE_PLUGIN_H diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/qmldir b/src/components/qt_hmi/References/Work/fordsdlcore/qmldir deleted file mode 100644 index da1a7b7f96..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/qmldir +++ /dev/null @@ -1,3 +0,0 @@ -module com.ford.sdlcore -plugin FordSdlCore - diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/sdlalert.cpp b/src/components/qt_hmi/References/Work/fordsdlcore/sdlalert.cpp deleted file mode 100644 index ec4350df77..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/sdlalert.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#include "sdlalert.h" - -SdlAlert::SdlAlert(QObject* parent) : QQuickItem() {} diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/sdlalert.h b/src/components/qt_hmi/References/Work/fordsdlcore/sdlalert.h deleted file mode 100644 index 9c32718c56..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/sdlalert.h +++ /dev/null @@ -1,16 +0,0 @@ -#ifndef SDLALERT_H -#define SDLALERT_H - -#include <QQuickItem> - -class SdlAlert : public QQuickItem { - Q_OBJECT - public: - explicit SdlAlert(QObject* parent = 0); - -signals: - - public slots: -}; - -#endif // SDLALERT_H diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.cpp b/src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.cpp deleted file mode 100644 index 419908339e..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.cpp +++ /dev/null @@ -1,4 +0,0 @@ -#include "sdlappslistmodel.h" - -SdlAppsListModel::SdlAppsListModel(QObject* parent) - : QAbstractListModel(parent) {} diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.h b/src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.h deleted file mode 100644 index b78aeeec01..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef SDLAPPSLISTMODEL_H -#define SDLAPPSLISTMODEL_H - -#include <QAbstractListModel> -#include <QStringList> - -class SdlAppsListModel : public QAbstractListModel { - Q_OBJECT - public: - explicit SdlAppsListModel(QObject* parent = 0); - - int rowCount(const QModelIndex& parent) const { - return m_data.size(); - } - - QVariant data(const QModelIndex& index, int role) const { - return m_data.values().at(index.row()); - } - - virtual QHash<int, QByteArray> roleNames() const { - QHash<int, QByteArray> roles; - roles['t'] = "text"; - return roles; - } - - void append(int id, QString string) { - beginResetModel(); - m_data.clear(); - m_data[id] = string; - endResetModel(); - } - - void clear() { - beginResetModel(); - m_data.clear(); - endResetModel(); - } - -signals: - - public slots: - - private: - QHash<int, QString> m_data; -}; - -#endif // SDLAPPSLISTMODEL_H diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/smartdevicelink.cpp b/src/components/qt_hmi/References/Work/fordsdlcore/smartdevicelink.cpp deleted file mode 100644 index 5ee8c455e9..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/smartdevicelink.cpp +++ /dev/null @@ -1,386 +0,0 @@ -#include "smartdevicelink.h" -#include <QDebug> -#include "QtWebsocket/QWsSocket.h" -#include <QJsonDocument> -#include <QJsonObject> -#include <unistd.h> - -SmartDeviceLink::SmartDeviceLink(QQuickItem* parent) : QObject(parent) { - connect(&m_ws_basic, SIGNAL(connected()), this, SLOT(basic_connected())); - connect(&m_ws_basic, - SIGNAL(frameReceived(QString)), - this, - SLOT(basic_receive(QString))); - connect(&m_ws_basic, SIGNAL(disconnected()), this, SLOT(disconnected())); - - connect(&m_ws_buttons, SIGNAL(connected()), this, SLOT(buttons_connected())); - connect(&m_ws_buttons, - SIGNAL(frameReceived(QString)), - this, - SLOT(buttons_receive(QString))); - connect(&m_ws_buttons, SIGNAL(disconnected()), this, SLOT(disconnected())); - - connect(&m_ws_tts, SIGNAL(connected()), this, SLOT(tts_connected())); - connect(&m_ws_tts, - SIGNAL(frameReceived(QString)), - this, - SLOT(tts_receive(QString))); - connect(&m_ws_tts, SIGNAL(disconnected()), this, SLOT(disconnected())); - - connect(&m_ws_vehicle, SIGNAL(connected()), this, SLOT(vehicle_connected())); - connect(&m_ws_vehicle, - SIGNAL(frameReceived(QString)), - this, - SLOT(vehicle_receive(QString))); - connect(&m_ws_vehicle, SIGNAL(disconnected()), this, SLOT(disconnected())); - - connect(&m_ws_ui, SIGNAL(connected()), this, SLOT(ui_connected())); - connect(&m_ws_ui, - SIGNAL(frameReceived(QString)), - this, - SLOT(ui_receive(QString))); - connect(&m_ws_ui, SIGNAL(disconnected()), this, SLOT(disconnected())); - - connect(&m_ws_vr, SIGNAL(connected()), this, SLOT(vr_connected())); - connect(&m_ws_vr, - SIGNAL(frameReceived(QString)), - this, - SLOT(vr_receive(QString))); - connect(&m_ws_vr, SIGNAL(disconnected()), this, SLOT(disconnected())); - - connect(this, - SIGNAL(newAppAvailable(int, QString)), - this, - SLOT(registerApp(int, QString))); - - m_ws_buttons.connectToHost(QLatin1String("127.0.0.1"), 8087); - m_ws_tts.connectToHost(QLatin1String("127.0.0.1"), 8087); - m_ws_vr.connectToHost(QLatin1String("127.0.0.1"), 8087); - m_ws_basic.connectToHost(QLatin1String("127.0.0.1"), 8087); - m_ws_vehicle.connectToHost(QLatin1String("127.0.0.1"), 8087); - m_ws_ui.connectToHost(QLatin1String("127.0.0.1"), 8087); -} - -SmartDeviceLink::~SmartDeviceLink() { - qDebug() << "SmartDeviceLink destroyed"; -} - -void SmartDeviceLink::basic_connected() { - basic_send( - "{\"jsonrpc\":\"2.0\",\"id\":600,\"method\":\"MB.registerComponent\"," - "\"params\":{\"componentName\":\"BasicCommunicationClient\"}}"); -} - -void SmartDeviceLink::buttons_connected() { - buttons_send( - "{\"jsonrpc\":\"2.0\",\"id\":200,\"method\":\"MB.registerComponent\"," - "\"params\":{\"componentName\":\"Buttons\"}}"); -} - -void SmartDeviceLink::tts_connected() { - tts_send( - "{\"jsonrpc\":\"2.0\",\"id\":300,\"method\":\"MB.registerComponent\"," - "\"params\":{\"componentName\":\"TTS\"}}"); -} - -void SmartDeviceLink::vehicle_connected() { - vehicle_send( - "{\"jsonrpc\":\"2.0\",\"id\":700,\"method\":\"MB.registerComponent\"," - "\"params\":{\"componentName\":\"VehicleInfo\"}}"); -} - -void SmartDeviceLink::ui_connected() { - ui_send( - "{\"jsonrpc\":\"2.0\",\"id\":400,\"method\":\"MB.registerComponent\"," - "\"params\":{\"componentName\":\"UI\"}}"); -} - -void SmartDeviceLink::vr_connected() { - vr_send( - "{\"jsonrpc\":\"2.0\",\"id\":500,\"method\":\"MB.registerComponent\"," - "\"params\":{\"componentName\":\"VR\"}}"); -} - -void SmartDeviceLink::basic_send(QString message) { - qDebug() << "Sending (basic):" << message; - m_ws_basic.write(message.append('\n')); -} - -void SmartDeviceLink::buttons_send(QString message) { - qDebug() << "Sending (buttons):" << message; - m_ws_buttons.write(message.append('\n')); -} - -void SmartDeviceLink::tts_send(QString message) { - qDebug() << "Sending (tts):" << message; - m_ws_tts.write(message.append('\n')); -} - -void SmartDeviceLink::vehicle_send(QString message) { - qDebug() << "Sending (vehicle):" << message; - m_ws_vehicle.write(message.append('\n')); -} - -void SmartDeviceLink::ui_send(QString message) { - qDebug() << "Sending (ui):" << message; - m_ws_ui.write(message.append('\n')); -} - -void SmartDeviceLink::vr_send(QString message) { - qDebug() << "Sending (vr):" << message; - m_ws_vr.write(message.append('\n')); -} - -void SmartDeviceLink::basic_receive(QString message) { - qDebug() << "Receiving(basic):" << message; - QJsonObject root = QJsonDocument::fromJson(message.toLocal8Bit()).object(); - int id = root.value("id").toDouble(); - int result = root.value("result").toDouble(); - QString method = root.value("method").toString(); - - if (id == 600) { - char* reg, *unreg, *update; - - asprintf(®, - "{\"jsonrpc\":\"2.0\",\"id\":%i,\"method\":\"MB.subscribeTo\"," - "\"params\":{\"propertyName\":\"BasicCommunication." - "OnAppRegistered\"}}", - result + 1); - basic_send(reg); - free(reg); - - asprintf(&unreg, - "{\"jsonrpc\":\"2.0\",\"id\":%i,\"method\":\"MB.subscribeTo\"," - "\"params\":{\"propertyName\":\"BasicCommunication." - "OnAppUnregistered\"}}", - result + 2); - basic_send(unreg); - free(unreg); - - asprintf(&update, - "{\"jsonrpc\":\"2.0\",\"id\":%i,\"method\":\"MB.subscribeTo\"," - "\"params\":{\"propertyName\":\"BasicCommunication." - "OnDeviceListUpdated\"}} ", - result + 3); - basic_send(update); - free(update); - } else if (method.compare("BasicCommunication.OnAppRegistered") == 0) { - QJsonObject params = root.value("params").toObject(); - QJsonObject application = params.value("application").toObject(); - QString appName = application.value("appName").toString(); - int appId = application.value("appId").toDouble(); - - char* update; - asprintf(&update, - "{\"jsonrpc\":\"2.0\",\"id\":3000,\"method\":\"BasicCommunication." - "ActivateApp\",\"params\":{\"appName\":\"%s\",\"appId\":%i}}", - appName.toLocal8Bit().data(), - appId); - basic_send(update); - free(update); - emit newAppAvailable(appId, appName); - } else if (method.compare("BasicCommunication.OnAppUnregistered") == 0) { - m_media_apps.clear(); - } -} - -void SmartDeviceLink::buttons_receive(QString message) { - qDebug() << "Receiving(buttons):" << message; - QJsonObject root = QJsonDocument::fromJson(message.toLocal8Bit()).object(); - int id = root.value("id").toDouble(); - QString method = root.value("method").toString(); - - if (method.compare("Buttons.GetCapabilities") == 0) { - buttons_send( - "{\"jsonrpc\":\"2.0\",\"id\":19,\"result\":{\"capabilities\":[{" - "\"name\":\"PRESET_0\",\"shortPressAvailable\":true," - "\"longPressAvailable\":true,\"upDownAvailable\":true},{\"name\":" - "\"PRESET_1\",\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"PRESET_2\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"PRESET_3\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"PRESET_4\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"PRESET_5\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"PRESET_6\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"PRESET_7\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"PRESET_8\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"PRESET_9\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"OK\",\"shortPressAvailable\":" - "true,\"longPressAvailable\":true,\"upDownAvailable\":true},{\"name\":" - "\"SEEKLEFT\",\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"SEEKRIGHT\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"TUNEUP\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true},{\"name\":\"TUNEDOWN\"," - "\"shortPressAvailable\":true,\"longPressAvailable\":true," - "\"upDownAvailable\":true}],\"presetBankCapabilities\":{" - "\"onScreenPresetsAvailable\":true},\"method\":\"Buttons." - "GetCapabilitiesResponse\",\"resultCode\":\"SUCCESS\"}}"); - } -} - -void SmartDeviceLink::tts_receive(QString message) { - qDebug() << "Receiving(tts):" << message; - QJsonObject root = QJsonDocument::fromJson(message.toLocal8Bit()).object(); - int id = root.value("id").toDouble(); - QString method = root.value("method").toString(); - - if (method.compare("TTS.GetCapabilities") == 0) { - tts_send( - "{\"jsonrpc\":\"2.0\",\"id\":18,\"result\":{\"capabilities\":[\"TEXT\"]" - ",\"resultCode\":\"SUCCESS\",\"method\":\"TTS." - "GetCapabilitiesResponse\"}}"); - } else if (method.compare("TTS.GetLanguage") == 0) { - tts_send( - "{\"jsonrpc\":\"2.0\",\"id\":26,\"result\":{\"resultCode\":\"SUCCESS\"," - "\"method\":\"TTS.GetLanguageResponse\",\"language\":\"EN-US\"}}"); - } else if (method.compare("TTS.GetSupportedLanguages") == 0) { - tts_send( - "{\"jsonrpc\":\"2.0\",\"id\":22,\"result\":{\"resultCode\":\"SUCCESS\"," - "\"method\":\"TTS.GetSupportedLanguagesResponse\",\"languages\":[\"EN-" - "US\",\"ES-MX\",\"FR-CA\",\"DE-EU\",\"ES-EU\",\"EN-EU\",\"RU-RU\",\"TR-" - "TR\",\"PL-EU\",\"FR-EU\",\"IT-EU\",\"SV-EU\",\"PT-EU\",\"NL-EU\",\"EN-" - "AU\",\"ZH-CN\",\"ZH-TW\",\"JA-JP\",\"AR\",\"KO-KR\"]}}"); - } -} - -void SmartDeviceLink::vehicle_receive(QString message) { - qDebug() << "Receiving(vehicle):" << message; - QJsonObject root = QJsonDocument::fromJson(message.toLocal8Bit()).object(); - int id = root.value("id").toDouble(); - QString method = root.value("method").toString(); - - if (method.compare("VehicleInfo.GetVehicleType") == 0) { - vehicle_send( - "{\"jsonrpc\":\"2.0\",\"id\":20,\"result\":{\"resultCode\":\"SUCCESS\"," - "\"method\":\"VehicleInfo.GetVehicleTypeResponse\",\"vehicleType\":{" - "\"make\":\"Ford\",\"model\":\"Fiesta\",\"modelYear\":\"2013\"," - "\"trim\":\"SE\"}}}"); - } -} - -void SmartDeviceLink::ui_receive(QString message) { - qDebug() << "Receiving(ui):" << message; - QJsonObject root = QJsonDocument::fromJson(message.toLocal8Bit()).object(); - int id = root.value("id").toDouble(); - int result = root.value("result").toDouble(); - QString method = root.value("method").toString(); - - if (id == 400) { - char* onchoise; - asprintf(&onchoise, - "{\"jsonrpc\":\"2.0\",\"id\":%i,\"method\":\"MB.subscribeTo\"," - "\"params\":{\"propertyName\":\"VR.OnChoise\"}}", - result + 1); - ui_send(onchoise); - free(onchoise); - - ui_send("{\"jsonrpc\":\"2.0\",\"method\":\"UI.OnReady\"}"); - } else if (method.compare("UI.GetCapabilities") == 0) { - ui_send( - "{\"jsonrpc\":\"2.0\",\"id\":16,\"result\":{\"displayCapabilities\":{" - "\"displayType\":\"GEN2_8_DMA\",\"textFields\":[{\"name\":" - "\"mainField1\",\"characterSet\":\"TYPE2SET\",\"width\":1,\"rows\":1},{" - "\"name\":\"mainField2\",\"characterSet\":\"TYPE2SET\",\"width\":1," - "\"rows\":1},{\"name\":\"statusBar\",\"characterSet\":\"TYPE2SET\"," - "\"width\":1,\"rows\":1},{\"name\":\"mediaClock\",\"characterSet\":" - "\"TYPE2SET\",\"width\":1,\"rows\":1},{\"name\":\"mediaTrack\"," - "\"characterSet\":\"TYPE2SET\",\"width\":1,\"rows\":1},{\"name\":" - "\"alertText1\",\"characterSet\":\"TYPE2SET\",\"width\":1,\"rows\":1},{" - "\"name\":\"alertText2\",\"characterSet\":\"TYPE2SET\",\"width\":1," - "\"rows\":1}],\"mediaClockFormats\":[\"CLOCK1\",\"CLOCK2\"," - "\"CLOCKTEXT1\",\"CLOCKTEXT2\",\"CLOCKTEXT3\"]}," - "\"hmiZoneCapabilities\":[\"FRONT\",\"BACK\"]," - "\"softButtonCapabilities\":[{\"shortPressAvailable\":true," - "\"longPressAvailable\":true,\"upDownAvailable\":true," - "\"imageSupported\":true}],\"method\":\"UI.GetCapabilitiesResponse\"," - "\"resultCode\":\"SUCCESS\"}}"); - } else if (method.compare("UI.GetSupportedLanguages") == 0) { - ui_send( - "{\"jsonrpc\":\"2.0\",\"id\":21,\"result\":{\"resultCode\":\"SUCCESS\"," - "\"method\":\"UI.GetSupportedLanguagesResponse\",\"languages\":[\"EN-" - "US\",\"ES-MX\",\"FR-CA\",\"DE-EU\",\"ES-EU\",\"EN-EU\",\"RU-RU\",\"TR-" - "TR\",\"PL-EU\",\"FR-EU\",\"IT-EU\",\"SV-EU\",\"PT-EU\",\"NL-EU\",\"EN-" - "AU\",\"ZH-CN\",\"ZH-TW\",\"JA-JP\",\"AR\",\"KO-KR\"]}}"); - } else if (method.compare("UI.GetLanguage") == 0) { - ui_send( - "{\"jsonrpc\":\"2.0\",\"id\":24,\"result\":{\"resultCode\":\"SUCCESS\"," - "\"method\":\"UI.GetLanguageResponse\",\"hmiDisplayLanguage\":\"EN-" - "US\"}}"); - } else if (method.compare("UI.Show") == 0) { - QJsonObject params = root.value("params").toObject(); - setShow1(params.value("mainField1").toString()); - setShow2(params.value("mainField2").toString()); - char* response; - asprintf(&response, - "{\"jsonrpc\":\"2.0\",\"id\":%i,\"result\":{\"resultCode\":" - "\"SUCCESS\",\"method\":\"UI.ShowResponse\"}}", - id); - ui_send(response); - free(response); - } else if (method.compare("UI.Alert") == 0) { - QJsonObject params = root.value("params").toObject(); - QString message(params.value("AlertText1").toString()); - message.append("\n").append(params.value("AlertText2").toString()); - char* response; - asprintf(&response, - "{\"jsonrpc\":\"2.0\",\"id\":%i,\"result\":{\"resultCode\":" - "\"SUCCESS\",\"method\":\"UI.AlertResponse\"}}", - id); - ui_send(response); - free(response); - emit alert(message); - } -} - -void SmartDeviceLink::vr_receive(QString message) { - qDebug() << "Receiving(vr):" << message; - QJsonObject root = QJsonDocument::fromJson(message.toLocal8Bit()).object(); - int id = root.value("id").toDouble(); - QString method = root.value("method").toString(); - - if (method.compare("VR.GetCapabilities") == 0) { - vr_send( - "{\"jsonrpc\":\"2.0\",\"id\":17,\"result\":{\"capabilities\":[\"TEXT\"]" - ",\"method\":\"VR.GetCapabilitiesResponse\",\"resultCode\":\"SUCCESS\"}" - "}"); - } else if (method.compare("VR.GetSupportedLanguages") == 0) { - vr_send( - "{\"jsonrpc\":\"2.0\",\"id\":23,\"result\":{\"resultCode\":\"SUCCESS\"," - "\"method\":\"VR.GetSupportedLanguagesResponse\",\"languages\":[\"EN-" - "US\",\"ES-MX\",\"FR-CA\",\"DE-EU\",\"ES-EU\",\"EN-EU\",\"RU-RU\",\"TR-" - "TR\",\"PL-EU\",\"FR-EU\",\"IT-EU\",\"SV-EU\",\"PT-EU\",\"NL-EU\",\"EN-" - "AU\",\"ZH-CN\",\"ZH-TW\",\"JA-JP\",\"AR\",\"KO-KR\"]}}"); - } else if (method.compare("VR.GetLanguage") == 0) { - vr_send( - "{\"jsonrpc\":\"2.0\",\"id\":25,\"result\":{\"resultCode\":\"SUCCESS\"," - "\"method\":\"VR.GetLanguageResponse\",\"language\":\"EN-US\"}}"); - } -} - -void SmartDeviceLink::registerApp(int appId, QString appName) { - qDebug() << "New app registered:" << appName; - m_media_apps.append(appId, appName); -} - -void SmartDeviceLink::setShow1(QString show) { - m_show1 = show; - emit show1Changed(show); -} - -void SmartDeviceLink::setShow2(QString show) { - m_show2 = show; - emit show2Changed(show); -} - -void SmartDeviceLink::disconnected() { - qDebug() << "Websocket disconnected"; -} diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/smartdevicelink.h b/src/components/qt_hmi/References/Work/fordsdlcore/smartdevicelink.h deleted file mode 100644 index 18ad605f40..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/smartdevicelink.h +++ /dev/null @@ -1,80 +0,0 @@ -#ifndef SMARTDEVICELINK_H -#define SMARTDEVICELINK_H - -#include <QQuickItem> -#include <QStringListModel> -#include "QtWebsocket/QWsSocket.h" -#include "sdlappslistmodel.h" - -class SmartDeviceLink : public QObject { - Q_OBJECT - Q_PROPERTY(QString show1 READ getShow1 NOTIFY show1Changed) - Q_PROPERTY(QString show2 READ getShow2 NOTIFY show2Changed) - - public: - SmartDeviceLink(QQuickItem* parent = 0); - ~SmartDeviceLink(); - - static SmartDeviceLink& getInstance() { - static SmartDeviceLink instance; - return instance; - } - - SdlAppsListModel* getMediaApps() { - return &m_media_apps; - } - QString getShow1() { - return m_show1; - } - QString getShow2() { - return m_show2; - } - - private: - QWsSocket m_ws_basic; - QWsSocket m_ws_tts; - QWsSocket m_ws_buttons; - QWsSocket m_ws_vehicle; - QWsSocket m_ws_ui; - QWsSocket m_ws_vr; - - SdlAppsListModel m_media_apps; - - QString m_show1; - QString m_show2; - - void basic_send(QString message); - void tts_send(QString message); - void buttons_send(QString message); - void vehicle_send(QString message); - void ui_send(QString message); - void vr_send(QString message); - void setShow1(QString); - void setShow2(QString); - - public slots: - void basic_connected(); - void tts_connected(); - void buttons_connected(); - void vehicle_connected(); - void ui_connected(); - void vr_connected(); - - void basic_receive(QString); - void tts_receive(QString); - void buttons_receive(QString); - void vehicle_receive(QString); - void ui_receive(QString); - void vr_receive(QString); - void registerApp(int, QString); - - void disconnected(); - -signals: - void show1Changed(QString); - void show2Changed(QString); - void newAppAvailable(int, QString); - void alert(QString message); -}; - -#endif // SMARTDEVICELINK_H diff --git a/src/components/qt_hmi/qml_model_qt4/CMakeLists.txt b/src/components/qt_hmi/qml_model_qt4/CMakeLists.txt deleted file mode 100644 index e6eeb9e525..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/CMakeLists.txt +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright (c) 2013, Ford Motor Company -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with the -# distribution. -# -# Neither the name of the Ford Motor Company nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -cmake_minimum_required(VERSION 2.8.11) - -set(components_dir ${CMAKE_CURRENT_SOURCE_DIR}/../..) -set(dbus_dir ${components_dir}/dbus) -set(codegen_dir ${dbus_dir}/codegen) -set(codegen ${codegen_dir}/make_qml_dbus_qml.py) -set(parser ${codegen_dir}/ford_xml_parser.py) -set(interfaces_dir ${components_dir}/interfaces) -set(api_xml ${interfaces_dir}/QT_HMI_API.xml) -set(proxy_dir ${CMAKE_CURRENT_BINARY_DIR}/hmi_api) -set(qml_dirs hmi_api controls models popups views) -set(qml_files MainWindow.qml) - -add_custom_target(qml_auto ALL - COMMAND python ${codegen} --infile ${api_xml} --version ${qt_version} --outdir ${proxy_dir} - DEPENDS ${api_xml} ${codegen} ${parser} - COMMENT "Generating files: - ${proxy_dir}/BasicCommunicationProxy.qml - ${proxy_dir}/ButtonsProxy.qml - ${proxy_dir}/NavigationProxy.qml - ${proxy_dir}/TTSProxy.qml - ${proxy_dir}/UIProxy.qml - ${proxy_dir}/VehicleInfoProxy.qml - ${proxy_dir}/VRProxy.qml - from: - ${api_xml} ..." -) - -add_custom_target(qml_copy_resources ALL - COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../res ${CMAKE_CURRENT_BINARY_DIR}/res - COMMENT "Copying resources") - -if(NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") - foreach(qml_dir ${qml_dirs}) - add_custom_target(qml_copy_${qml_dir} ALL - COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/${qml_dir} ${CMAKE_CURRENT_BINARY_DIR}/${qml_dir} - COMMENT "Copying directory ${qml_dir}") - endforeach(qml_dir) - - add_dependencies(qml_auto qml_copy_hmi_api) - - foreach(qml_file ${qml_files}) - add_custom_target(qml_copy_${qml_file} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${qml_file} ${CMAKE_CURRENT_BINARY_DIR}/${qml_file} - COMMENT "Copying file ${qml_file}") - endforeach(qml_file) -endif() - -install(DIRECTORY - ${CMAKE_CURRENT_BINARY_DIR}/controls - ${CMAKE_CURRENT_BINARY_DIR}/hmi_api - ${CMAKE_CURRENT_BINARY_DIR}/models - ${CMAKE_CURRENT_BINARY_DIR}/popups - ${CMAKE_CURRENT_BINARY_DIR}/res - ${CMAKE_CURRENT_BINARY_DIR}/views - DESTINATION bin/hmi) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/MainWindow.qml DESTINATION bin/hmi) diff --git a/src/components/qt_hmi/qml_model_qt4/MainWindow.qml b/src/components/qt_hmi/qml_model_qt4/MainWindow.qml deleted file mode 100644 index 1a3b06fd41..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/MainWindow.qml +++ /dev/null @@ -1,356 +0,0 @@ -/** - * @file MainWindow.qml - * @brief Implementation of main window. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import com.ford.sdl.hmi.dbus_adapter 1.0 -import com.ford.sdl.hmi.log4cxx 1.0 -import "./controls" -import "./views" -import "./hmi_api" as HmiApi -import "./models" -import "./popups" -import "hmi_api/Common.js" as Common -import "./models/Constants.js" as Constants -import "models/Internal.js" as Internal - -Rectangle { - width: 1280 - height: 768 - property string startQml: "./views/ApplicationListView.qml" - property int minWidth: Constants.mainScreenMinWidth - property int minHeight: Constants.mainScreenMiHeight - color: Constants.secondaryColor - - DataStorage { - id: dataContainer - - onSystemContextChanged: { - sdlUI.onSystemContext(systemContext) - } - - // Please note that applicationContext is changed only after setting currentApplication - onApplicationContextChanged: { - if (applicationContext) { - sdlBasicCommunication.onAppActivated(currentApplication.appId) - } else { - sdlBasicCommunication.onAppDeactivated(currentApplication.appId, contentLoader.item.category) - } - } - } - -// TODO(KKolodiy): find way for play sound -// Audio { -// id: beep -// source: "res/initial.wav" -// } - - SettingsStorage { - id: settingsContainer - } - - Item { - id: mainScreen - anchors.top: parent. top - anchors.left: parent.left - width: (parent.width - simulationScreen.width < minWidth) ? - minWidth : parent.width - simulationScreen.width - height: (parent.height - hardwareScreen.height < minHeight) ? - minHeight : parent.height - hardwareScreen.height - clip: true - visible: false - - Item { - anchors.top: parent.top - anchors.horizontalCenter: parent.horizontalCenter - height: parent.height * 0.10 - width: parent.width - HeaderMenu {} - } - - Item { - height: parent.height * 0.90 - width: parent.width - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - - Loader { - id: contentLoader - height: parent.height - Constants.margin - width: parent.width - 2 * Constants.margin - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - anchors.leftMargin: Constants.margin - anchors.rightMargin: Constants.margin - anchors.bottomMargin: Constants.margin - - - source:startQml - property variant viewTransitionStack : [] - - function reset() { - viewTransitionStack = [] - } - - property string currentLocation - function go(path, appId) { - console.debug("enter:", path, ", appId:", appId) - if (path) { - if (currentLocation !== path) { - viewTransitionStack.push({ uri: source.toString(), applicationContext: false }) - if (appId) { - dataContainer.setCurrentApplication(appId) - } - currentLocation = path - source = path - } - } - console.debug("exit") - } - - function back() { - if (viewTransitionStack.length) { - source = viewTransitionStack.pop().uri - } - currentLocation = "" - } - - onStatusChanged: { - if (status == Component.Ready) { - if (!dataContainer.activeAlert) { - dataContainer.applicationContext = item.applicationContext - } - else { - dataContainer.applicationSavedContext = item.applicationContext - } - if (viewTransitionStack && viewTransitionStack.length) { - viewTransitionStack[viewTransitionStack.length - 1].applicationContext = item.applicationContext - } - dataContainer.setSystemContext() - } - } - } - } - - WarningInfo { id: warningInfo } - - InteractionPopup { - id: interactionPopup - popUpName: "UI.PerformInteraction" - anchors.centerIn: parent - visible: false - } - - SliderPopup { - id: sliderPopup - popUpName: "UI.Slider" - anchors.centerIn: parent - visible: false - } - - PerformAudioPassThruPopup { - id: performAudioPassThruPopup - popUpName: "UI.PerformAudioPassThru" - anchors.centerIn: parent - visible: false - } - - VRHelpPopup { - id: vrHelpPopup - popUpName: "UI.VrHelp" - anchors.centerIn: parent - visible: false - } - - AlertWindow { - id: alertWindow - popUpName: "UI.Alert" - objectName: "AlertWindow" - anchors.fill: parent - visible: false - } - } - - Item { - id: simulationScreen - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.left: mainScreen.right - width: simulationPanel.width - clip: true - SimulationView { - id: simulationPanel - - VRPopUp { - id: vrPopUp - visible: false - anchors.fill: parent - } - - TTSPopUp { - id: ttsPopUp - anchors.top: parent.top - anchors.right: parent.right - visible: false - } - } - } - - Item { - id: hardwareScreen - anchors.top: mainScreen.bottom - anchors.left: parent.left - anchors.right: simulationScreen.left - height: hardwarePanel.height - clip: true - HardwareButtonsView { id: hardwarePanel } - } - - HMIProxy { - HmiApi.ButtonsProxy { - id: sdlButtons - objectName: "Buttons" - } - HmiApi.BasicCommunicationProxy { - id: sdlBasicCommunication - objectName: "BasicCommunication" - } - HmiApi.VRProxy { - id: sdlVR - objectName: "VR" - } - HmiApi.TTSProxy { - id: sdlTTS - objectName: "TTS" - } - HmiApi.NavigationProxy { - id: sdlNavigation - objectName: "Navigation" - } - HmiApi.VehicleInfoProxy { - id: sdlVehicleInfo - objectName: "VehicleInfo" - } - HmiApi.UIProxy { - id: sdlUI - objectName: "UI" - } - } - - SDLProxy { - id: sdlProxy - - onAppRegistered: { - dataContainer.addApplication( - { - appName: application.appName, - ngnMediaScreenAppName: application.ngnMediaScreenAppName, - icon: application.icon, - deviceName: application.deviceName, - appId: application.appId, - hmiDisplayLanguageDesired: application.hmiDisplayLanguageDesired, - isMediaApplication: application.isMediaApplication, - appType: application.appType, - hmiUIText: { }, - mediaClock: { - "updateMode": Internal.MediaClockUpdateMode.MCU_COUNTUP, - "runningMode": Internal.MediaClockRunningMode.MCR_STOPPED, - "startTime": -1, - "endTime": -1, - "startTimeForProgress": -1 - } - }); - } - - onAppUnregistered: { - console.debug("enter") - dataContainer.removeApplication(appId); - if ((dataContainer.currentApplication.appId === appId)) { - if (dataContainer.applicationContext) { - contentLoader.go("views/ApplicationListView.qml"); - } - if (contentLoader.viewTransitionStack.filter(function(x) { return x.applicationContext })) { - contentLoader.reset(); - } - dataContainer.currentApplication.reset() - } - console.debug("exit") - } - - onPlayTone: { - beep.play() - } - - } - - Component.onCompleted: { - dataContainer.hmiVRAvailable = true - dataContainer.hmiTTSAvailable = true - dataContainer.hmiNavigationAvailable = true - dataContainer.hmiVehicleInfoAvailable = true - dataContainer.hmiUIAvailable = true - - sdlBasicCommunication.onReady() - } - - /* - * Test Support Section - * - */ - function getSlider(){ - return sliderPopup - } - - function getDataStorage(){ - return dataContainer - } - - function getUIProxy(){ - return sdlUI - } - - function getMainScreen(){ - return mainScreen - } - - function getContentLoader(){ - return contentLoader - } - - function getWarningInfo(){ - return warningInfo - } - /* - * Test Support Section End - */ -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/ArrowKeys.qml b/src/components/qt_hmi/qml_model_qt4/controls/ArrowKeys.qml deleted file mode 100644 index 4f33960127..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/ArrowKeys.qml +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @file ArrowKeys.qml - * @brief Keys with arrow for cursor movement. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common - -Item { - width: buttonOk.width - height: buttonOk.height - - HardwareButton { - id: arrowUp - buttonId: Common.ButtonName.TUNEUP - name: "Up" - } - HardwareButton { - id: arrowDown - buttonId: Common.ButtonName.TUNEDOWN - name: "Down" - } - HardwareButton { - id: arrowLeft - buttonId: Common.ButtonName.SEEKLEFT - name: "Left" - } - HardwareButton { - id: arrowRight - buttonId: Common.ButtonName.SEEKRIGHT - name: "Right" - } - HardwareButton { - id: buttonOk - buttonId: Common.ButtonName.OK - name: "Ok" - longPressAvailable: false - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/BackButton.qml b/src/components/qt_hmi/qml_model_qt4/controls/BackButton.qml deleted file mode 100644 index 906b3098ba..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/BackButton.qml +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @file BackButton.qml - * @brief Button "Back" that return to previous menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -OvalButton { - text: "Back" - onClicked: { contentLoader.back() } - fontSize: Constants.fontSize - opacity: 0 - - NumberAnimation on opacity { - to: 1; - duration: Constants.animationDuration - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/CheckBox.qml b/src/components/qt_hmi/qml_model_qt4/controls/CheckBox.qml deleted file mode 100644 index 39d693b971..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/CheckBox.qml +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file CheckBox.qml - * @brief Check box - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Item { - property alias text: text.text - property alias color: text.color - property bool checked: false - - signal clicked - - onCheckedChanged: { - selector.color = checked ? Constants.primaryColorPressed : Constants.transparentColor - } - - height: checkbox.height + Constants.generalSpacing / 2 - width: checkbox.width + text.width + 1.5 * Constants.generalSpacing - - MouseArea { - anchors.fill: parent - onClicked: { checked = !checked; parent.clicked() } - } - Rectangle { - id: checkbox - width: text.font.pixelSize + Constants.generalSpacing / 2 - height: width - anchors.left: parent.left - border.color: Constants.controlsBorderColor - border.width: Constants.controlsBorderWidth - color: Constants.panelTextColor - radius: Constants.controlsRadius - Rectangle { - id: selector - anchors.fill: parent - anchors.margins: checkbox.width / 8 - color: Constants.transparentColor - } - } - Text { - id: text - anchors.left: checkbox.right - anchors.leftMargin: Constants.generalSpacing - anchors.verticalCenter: checkbox.verticalCenter - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/CircleButton.qml b/src/components/qt_hmi/qml_model_qt4/controls/CircleButton.qml deleted file mode 100644 index 818f07ffc5..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/CircleButton.qml +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @file CircleButton.qml - * @brief Parent class for circle button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Image { - id: circleBtn - source: imgOff - property alias text: btnText.text - property alias pixelSize: btnText.font.pixelSize - property string dest: "" - property bool isPressed: false - property string imgOff: "../res/buttons/round_btn.png" - property string imgOn: "../res/buttons/round_pressed_btn.png" - property string textColorOnPressed: Constants.secondaryColor - property string textColorDefault: Constants.primaryColor - - signal clicked() - function wasClicked() - { - clicked() - } - - Text { - anchors.centerIn: parent - id: btnText - color: textColorDefault - } - - MouseArea { - anchors.fill: parent - onPressed: { - console.log("CircleButton onPressed enter"); - source = imgOn - btnText.color = textColorOnPressed - isPressed = true - console.log("CircleButton onPressed exit"); - } - onReleased: { - console.log("CircleButton onReleased enter"); - source = imgOff - btnText.color = textColorDefault - isPressed = false - console.log("CircleButton onReleased exit"); - } - onClicked: { - console.log("CircleButton onClicked enter"); - if(dest !== ""){ - contentLoader.go(dest) - } - circleBtn.wasClicked() - console.log("CircleButton onClicked enter"); - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/ClickableImage.qml b/src/components/qt_hmi/qml_model_qt4/controls/ClickableImage.qml deleted file mode 100644 index f35f7c3020..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/ClickableImage.qml +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @file ClickableImage.qml - * @brief Clickable image item - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Image { - signal pressed () - signal released () - signal canceled () - signal clicked() - - MouseArea { - anchors.fill: parent - - onPressed: { - parent.scale = Constants.pressedIconScale - parent.pressed() - } - - onReleased: { - parent.scale = 1 - parent.released() - } - - onCanceled: { - parent.scale = 1 - parent.canceled() - } - - onClicked: { - parent.clicked() - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/ClickableText.qml b/src/components/qt_hmi/qml_model_qt4/controls/ClickableText.qml deleted file mode 100644 index e6b9fbf246..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/ClickableText.qml +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @file ClickableText.qml - * @brief Clickable text item - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -Text { - property string defaultColor - property string pressedColor - signal pressed () - signal released () - signal canceled () - signal clicked () - - color: defaultColor - - MouseArea { - anchors.fill: parent - - onPressed: { - press() - parent.pressed() - } - - onReleased: { - release() - parent.released() - } - - onCanceled: { - release() - parent.canceled() - } - - onClicked: { - parent.clicked() - } - } - - function press () { - color = pressedColor - } - - function release () { - color = defaultColor - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/ClimateControlBtn.qml b/src/components/qt_hmi/qml_model_qt4/controls/ClimateControlBtn.qml deleted file mode 100644 index abd344272c..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/ClimateControlBtn.qml +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @file ClimateControlBtn.qml - * @brief Round button, which is used at climat menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Item -{ - id: climateControlBtn - width: climateBtnImg.width - height: climateBtnImg.height - property string name: "" - property string txt: "" - state: "off" - - Image { - id: climateBtnImg - source: climateControlBtn.state === "off" ? "../res/climate/climate_round_off_btn.png" : "../res/climate/climate_round_on_btn.png" - - Image { - id: hoverImg - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - property string st: climateControlBtn.state === "off" ? "_off" : "_on" - source: climateControlBtn.name === "" ? "": "../res/climate/" + climateControlBtn.name + st + ".png" - } - - Text { - id: hoverText - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - text: climateControlBtn.txt - font.pixelSize: Constants.fontSize - color: climateControlBtn.state === "off" ? Constants.primaryColor : Constants.secondaryColor - } - - MouseArea { - anchors.fill: parent - onClicked: { - if(climateControlBtn.state === "on") { - climateControlBtn.state = "off" - climateBtnImg.source = "../res/climate/climate_round_off_btn.png" - if(climateControlBtn.txt != "") { - hoverText.color = Constants.primaryColor - } - if(climateControlBtn.name != "") { - hoverImg.source = "../res/climate/" + climateControlBtn.name + "_off.png" - } - } else { - climateControlBtn.state = "on" - climateBtnImg.source = "../res/climate/climate_round_on_btn.png" - if(climateControlBtn.txt != "") { - hoverText.color = Constants.secondaryColor - } - if(climateControlBtn.name != "") { - hoverImg.source = "../res/climate/" + climateControlBtn.name + "_on.png" - } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/ComboBox.qml b/src/components/qt_hmi/qml_model_qt4/controls/ComboBox.qml deleted file mode 100644 index d5129a2a10..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/ComboBox.qml +++ /dev/null @@ -1,143 +0,0 @@ -/** - * @file ComboBox.qml - * @brief Combo box - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Item { - id: container - width: Constants.defaultComboboxWidth - height: main.height - - property alias model: listView.model - property alias currentIndex: listView.currentIndex - property alias currentText: textMain.text - property string textRole - - function choose(name) { - var count = listView.count - for (var i = 0; i < count; ++i) { - if (name === listView.model.get(i).name) { - listView.currentIndex = i - break - } - } - - textMain.text = name - } - - Rectangle { - id: main - - anchors.left: parent.left - anchors.right: parent.right - height: label.font.pixelSize + Constants.generalSpacing - color: Constants.panelTextColor - border.color: Constants.controlsBorderColor - border.width: Constants.controlsBorderWidth - radius: Constants.controlsRadius - - Text { - id: textMain - anchors.left: parent.left - anchors.right: arrow.left - anchors.top: parent.top - anchors.bottom: parent.bottom - color: Constants.secondaryColor - verticalAlignment: Text.AlignVCenter - anchors.leftMargin: Constants.generalSpacing - anchors.rightMargin: Constants.generalSpacing - elide: Text.ElideRight - } - - Rectangle { - id: arrow - anchors.right: parent.right - height: parent.height; width: height - - color: Constants.panelTextColor - border.color: Constants.controlsBorderColor - border.width: Constants.controlsBorderWidth - radius: Constants.controlsRadius - - Text { - anchors.fill: parent - text: "v" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - color: Constants.secondaryColor - } - } - - MouseArea { - anchors.fill: parent - hoverEnabled: true - onClicked: listView.visible = !listView.visible - } - } - - ScrollableListView { - id: listView - anchors.top: main.bottom - anchors.left: main.left - anchors.right: main.right - height: 150 - visible: false - delegate: Rectangle { - anchors.left: parent.left - anchors.right: parent.right - height: label.font.pixelSize + Constants.generalSpacing - color: Constants.panelTextColor - border.color: Constants.controlsBorderColor - border.width: Constants.controlsBorderWidth - Text { - id: label - anchors.fill: parent - anchors.leftMargin: Constants.generalSpacing - anchors.rightMargin: Constants.generalSpacing - verticalAlignment: Text.AlignVCenter - text: model.name - color: Constants.secondaryColor - elide: Text.ElideRight - } - MouseArea { - anchors.fill: parent - hoverEnabled: true - onClicked: { choose(model.name); listView.visible = false } - onEntered: { parent.color = Constants.primaryColorPressed } - onExited: { parent.color = Constants.panelTextColor } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/GradientRectangle.qml b/src/components/qt_hmi/qml_model_qt4/controls/GradientRectangle.qml deleted file mode 100644 index 7b21bb4567..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/GradientRectangle.qml +++ /dev/null @@ -1,125 +0,0 @@ -/** - * @file GradientRectangle.qml - * @brief Rectangle with gradient. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common - -Rectangle { - property string firstColor: "grey" - property string secondColor: "#2E2E2E" - property alias fontSize: text.font.pixelSize - property alias text: text.text - property int customButtonID - property bool isCustomButton: false - property bool clickProcessed - signal pressed() - signal released() - - radius: 5 - border.color: "#D3D3D3" - - Text { - id: text - anchors.fill: parent - font.pixelSize: Constants.titleFontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - elide: Text.ElideRight - } - - MouseArea { - anchors.fill: parent - - onPressed: { - firstColor = "#2E2E2E" - secondColor = "grey" - parent.pressed() - } - onReleased: { - firstColor = "grey" - secondColor = "#2E2E2E" - parent.released() - } - } - - Timer { - id: timer - interval: Constants.customButtonTimer - repeat: false - triggeredOnStart: false - } - - onPressed: { - if (isCustomButton) { - timer.start() - clickProcessed = false - sdlButtons.onButtonEvent(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonEventMode.BUTTONDOWN, customButtonID) - } - } - - onReleased: { - if (isCustomButton) { - sdlButtons.onButtonEvent(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonEventMode.BUTTONUP, customButtonID) - timer.stop() - if (!clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonPressMode.SHORT, customButtonID) - } - } - } - - Connections { - target: timer - onTriggered: { - if (isCustomButton) { - if(!clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonPressMode.LONG, customButtonID) - clickProcessed = true - } - } - } - } - - gradient: Gradient { - GradientStop { - position: 0.1 - color: firstColor - } - GradientStop { - position: 0.5 - color: secondColor - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/GridItem.qml b/src/components/qt_hmi/qml_model_qt4/controls/GridItem.qml deleted file mode 100644 index 84528ab800..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/GridItem.qml +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @file GridItem.qml - * @brief Item with animation for GridMenu - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Item { - id: item - opacity: 0 - SequentialAnimation { - id: animation - PauseAnimation {duration: index * 100 } - NumberAnimation { - target: item - duration: Constants.animationDuration - property: "opacity" - from: 0; to: 1; - } - } - Component.onCompleted: { - animation.start() - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/HardwareButton.qml b/src/components/qt_hmi/qml_model_qt4/controls/HardwareButton.qml deleted file mode 100644 index ea8e406c6e..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/HardwareButton.qml +++ /dev/null @@ -1,108 +0,0 @@ -/** - * @file HardwareButton.qml - * @brief Parent class for hardware button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import com.ford.sdl.hmi.hw_buttons 1.0 -import "../hmi_api/Common.js" as Common - -MaskedContainer { - property string name - property int buttonId: Common.ButtonName.CUSTOM_BUTTON - property bool upDownAvailable: true - property bool shortPressAvailable: true - property bool longPressAvailable: true - - signal hold - - Image { - source: "../res/controlButtons/" + name + "Button.png" - } - Image { - id: pressedImg - source: "../res/controlButtons/" + name + "Button_pressed.png" - visible: false - Behavior on opacity { - NumberAnimation { duration: 80 } - } - } - Timer { - id: timer - interval: 2000 - repeat: false - triggeredOnStart: false - } - property bool clickProcessed - onPressed: { - clickProcessed = false - pressedImg.visible = true - timer.start() - if (upDownAvailable) { - sdlButtons.onButtonEvent(buttonId, Common.ButtonEventMode.BUTTONDOWN, undefined) - } - } - - onReleased: { - if (upDownAvailable) { - sdlButtons.onButtonEvent(buttonId, Common.ButtonEventMode.BUTTONUP, undefined) - } - timer.stop() - if (!clickProcessed && shortPressAvailable) { - sdlButtons.onButtonPress(buttonId, Common.ButtonPressMode.SHORT, undefined) - } - pressedImg.visible = false - } - - Connections { - target: timer - onTriggered: { - if(!clickProcessed && longPressAvailable) { - sdlButtons.onButtonPress(buttonId, Common.ButtonPressMode.LONG, undefined) - clickProcessed = true - hold() - } - } - } - - Component.onCompleted: { - if (buttonId !== Common.ButtonName.CUSTOM_BUTTON) { - settingsContainer.buttonCapabilities.push( - { - name: buttonId, - upDownAvailable: upDownAvailable, - shortPressAvailable: shortPressAvailable, - longPressAvailable: longPressAvailable - }); - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/HeaderMenu.qml b/src/components/qt_hmi/qml_model_qt4/controls/HeaderMenu.qml deleted file mode 100644 index 2b0b418c54..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/HeaderMenu.qml +++ /dev/null @@ -1,134 +0,0 @@ -/** - * @file HeaderMenu.qml - * @brief Header menu view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Item { - id: headerMenu - anchors.fill: parent - - Text { - anchors.leftMargin: Constants.margin - anchors.topMargin: Constants.margin - anchors.left: parent.left - anchors.verticalCenter: parent.verticalCenter - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - text: "75°" - } - - Item { - width: menuText.width - height: parent.height - anchors.topMargin: Constants.margin - anchors.horizontalCenter: headerMenu.horizontalCenter - signal clicked () - - ClickableText { - id: menuLogo - anchors.horizontalCenter: menuText.horizontalCenter - anchors.bottom: parent.verticalCenter - text: "≡" - defaultColor: Constants.primaryColor - pressedColor: Constants.primaryColorPressed - font.pixelSize: Constants.fontSize - - onClicked: parent.clicked() - onPressed: menuLogo.press() - onReleased: menuLogo.release() - onCanceled: menuLogo.release() - } - - ClickableText { - id: menuText - anchors.top: parent.verticalCenter - text: "MENU"; - defaultColor: Constants.primaryColor - pressedColor: Constants.primaryColorPressed - font.pixelSize: Constants.fontSize - - onClicked: parent.clicked() - onPressed: menuText.press() - onReleased: menuText.release() - onCanceled: menuText.release() - } - - onClicked: { - contentLoader.go("./views/MainMenuView.qml") - } - } - - Row { - id: clock - height: childrenRect.height - anchors.right: parent.right - anchors.verticalCenter: parent.verticalCenter - anchors.rightMargin: Constants.margin - anchors.topMargin: Constants.margin - property date date: new Date() - - Timer { - running: true - repeat: true - interval: 1000 - onTriggered: { - clock.date = new Date(); - } - } - - Text { - text: Qt.formatTime(clock.date, "hh"); - color: Constants.primaryColor - font.pixelSize: Constants.fontSize; - } - - Item { - width: 10 - height: parent.height - Text { - anchors.horizontalCenter: parent.horizontalCenter - text: clock.date.getSeconds() % 2 ? ":" : "" - color: Constants.primaryColor - font.pixelSize: Constants.fontSize; - } - } - - Text { - text: Qt.formatTime(clock.date, "mm"); - color: Constants.primaryColor - font.pixelSize: Constants.fontSize; - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/Icon.qml b/src/components/qt_hmi/qml_model_qt4/controls/Icon.qml deleted file mode 100644 index d0bfdba78b..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/Icon.qml +++ /dev/null @@ -1,65 +0,0 @@ -/** - * @file Navigation.qml - * @brief Icon. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common - -Item { - property variant source - - Image { - anchors.fill: parent - source: url(parent.source) - - function image(turnIcon) { - if (turnIcon && turnIcon.imageType === Common.ImageType.STATIC) { - return turnIcon.value; - } else { - return ""; - } - } - - function url(turnIcon) { - if (turnIcon && turnIcon.imageType === Common.ImageType.DYNAMIC) { - return turnIcon.value; - } else { - return ""; - } - } - } - - function reset () { - source = undefined - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/ListItem.qml b/src/components/qt_hmi/qml_model_qt4/controls/ListItem.qml deleted file mode 100644 index c87c24de4d..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/ListItem.qml +++ /dev/null @@ -1,70 +0,0 @@ -/** - * @file Entry.qml - * @brief Entry with icon and text for list. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Rectangle { - id: main - color: Constants.transparentColor - - property alias text: label.text - property alias fontSize: label.font.pixelSize - property alias icon: image.source - - Icon { - id: image - width: Constants.iconItemListSize - height: Constants.iconItemListSize - anchors.left: parent.left - anchors.leftMargin: Constants.generalSpacing - anchors.verticalCenter: parent.verticalCenter - visible: source ? true : false - } - Text { - id: label - anchors.verticalCenter: parent.verticalCenter - height: image.height - width: parent.width - image.width - z: 50 - verticalAlignment: Text.AlignVCenter - font.pixelSize: Constants.fontSize - text: "Name Entry" - anchors.left: image.right - anchors.leftMargin: Constants.generalSpacing - anchors.verticalCenterOffset: 0 - visible: text !== "" - color: Constants.primaryColor - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/MaskedButton.qml b/src/components/qt_hmi/qml_model_qt4/controls/MaskedButton.qml deleted file mode 100644 index d8a95d1a00..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/MaskedButton.qml +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @file MaskedButton.qml - * @brief Masked button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import com.ford.sdl.hmi.hw_buttons 1.0 - -MaskedContainer { - property string name - - Image { - id: icon - source: "../res/controlButtons/" + name + "Button.png" - } - - onPressed: { - state = "pressed"; - } - - onReleased: { - state = ""; - } - - states: [ - State { - name: "pressed" - PropertyChanges { - target: icon - source: "../res/controlButtons/" + name + "Button_pressed.png" - } - } - - ] -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/MultiTouchArea.qml b/src/components/qt_hmi/qml_model_qt4/controls/MultiTouchArea.qml deleted file mode 100644 index e86dcedc8f..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/MultiTouchArea.qml +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @file MultiTouchArea.qml - * @brief Area for multitouch. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common - -MultiPointTouchArea { - readonly property int created: Date.now() - - signal pressed(var touchPoints) - signal released(var touchPoints) - signal canceled(var touchPoints) - signal updated(var touchPoints) - - function fillEvent(touchPoints) { - var event = [] - for (var i = 0; i < touchPoints.length; ++i) { - event.push({ - id: touchPoints[i].pointId, - ts: [Date.now() - created], - c: [{ x: touchPoints.x, y: touchPoints.y }] // TODO(KKolodiy): need cast to int - }) - } - return event - } - - minimumTouchPoints: 1 - maximumTouchPoints: 10 - - onPressed: { - sdlUI.onTouchEvent(Common.BEGIN, fillEvent(touchPoints)) - parent.pressed(touchPoints) - } - onReleased: { - sdlUI.onTouchEvent(Common.END, fillEvent(touchPoints)) - parent.released(touchPoints) - } - onCanceled: { - sdlUI.onTouchEvent(Common.END, fillEvent(touchPoints)) - parent.canceled(touchPoints) - } - onUpdated: { - sdlUI.onTouchEvent(Common.MOVE, fillEvent(touchPoints)) - parent.updated(touchPoints) - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/OvalButton.qml b/src/components/qt_hmi/qml_model_qt4/controls/OvalButton.qml deleted file mode 100644 index 59458499a7..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/OvalButton.qml +++ /dev/null @@ -1,240 +0,0 @@ -/** - * @file OvalButton.qml - * @brief Oval button with flexible width. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import com.ford.sdl.hmi.hw_buttons 1.0 -import "../models/Constants.js" as Constants - -// Don't change constants. It break button -// TODO (dchmerev@luxoft.com): make this comment more clear -// todo (ykazakov): eliminate this problem and remove all such comments - -Item { - id: main - width: dynamic ? field.width + 2 * left.width : Constants.ovalButtonWidth - height: Constants.ovalButtonHeight - - signal clicked; - signal pressed; - signal released; - signal pressAndHold; - property alias text: label.text - property alias fontSize: label.font.pixelSize - property alias icon: image.source - property bool highlighted: false - property bool dynamic: false - property bool disabled: false - property color colorizeColor - property real colorizeStrength - - onDisabledChanged: colorize() - onHighlightedChanged: colorize() - Component.onCompleted: colorize() - - function colorize() { - if (disabled) { - colorizeColor = "gray"; - colorizeStrength = 1; - } else if (highlighted) { - colorizeColor = "cyan"; - colorizeStrength = 1; - } else { - colorizeStrength = 0; - } - } - - Item { - id: buttonBorderImage - visible: true - anchors.fill: parent - Image { - id: left - width: 31 - anchors.left: parent.left - anchors.bottom: parent.bottom - anchors.top: parent.top - source: "../res/buttons/oval_btn_left.png" - effect: Colorize { - color: main.colorizeColor - strength: main.colorizeStrength - } - } - - Image { - id: right - width: 31 - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.right: parent.right - source: "../res/buttons/oval_btn_right.png" - effect: Colorize { - color: main.colorizeColor - strength: main.colorizeStrength - } - } - - Image { - id: top - height: 10 - anchors.right: parent.right - anchors.rightMargin: 31 - anchors.left: parent.left - anchors.leftMargin: 31 - anchors.top: parent.top - fillMode: Image.TileHorizontally - source: "../res/buttons/oval_btn_top.png" - effect: Colorize { - color: main.colorizeColor - strength: main.colorizeStrength - } - } - - Image { - id: bottom - height: 11 - anchors.right: parent.right - anchors.rightMargin: 31 - anchors.left: parent.left - anchors.leftMargin: 31 - anchors.bottom: parent.bottom - fillMode: Image.TileHorizontally - source: "../res/buttons/oval_btn_bottom.png" - effect: Colorize { - color: main.colorizeColor - strength: main.colorizeStrength - } - } - } - - Rectangle { - id: background - color: Constants.transparentColor - anchors.fill: parent - anchors.rightMargin: 31 - anchors.leftMargin: 31 - anchors.bottomMargin: 10 - anchors.topMargin: 10 - visible: true - effect: Colorize { - color: main.colorizeColor - strength: main.colorizeStrength - } - } - - MouseArea { - id: mousearea - anchors.rightMargin: 15 - anchors.leftMargin: 15 - anchors.bottomMargin: 11 - anchors.topMargin: 10 - anchors.fill: parent - enabled: !parent.disabled - onPressed: { - parent.state = "pressed"; - parent.pressed(); - } - onReleased: { - parent.state = ""; - parent.released(); - } - onClicked: { - parent.clicked(); - } - onPressAndHold: { - parent.pressAndHold(); - } - onCanceled: { - parent.state = ""; - } - } - - Item { - id: field - anchors.fill: background - - Icon { - id: image - width: Constants.iconButtonSize - height: Constants.iconButtonSize - anchors.verticalCenter: parent.verticalCenter - visible: source ? true : false - } - Text { - id: label - width: image.visible ? parent.width - image.width : parent.width - color: Constants.primaryColor - anchors.centerIn: parent - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - font.pixelSize: Constants.ovalButtonFontSize - visible: true - elide: Text.ElideRight - effect: Colorize { - id: colorizeLabel - color: main.colorizeColor - strength: main.colorizeStrength - } - } - } - - states: [ - State { - name: "pressed" - PropertyChanges { - target: left - source: "../res/buttons/oval_btn_pressed_left.png" - } - - PropertyChanges { - target: right - source: "../res/buttons/oval_btn_pressed_right.png" - } - - PropertyChanges { - target: background - color: Constants.primaryColor - } - - PropertyChanges { - target: label - color: Constants.secondaryColor - } - - PropertyChanges { - target: colorizeLabel - strength: 0 - } - } - ] -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/PagedFlickable.qml b/src/components/qt_hmi/qml_model_qt4/controls/PagedFlickable.qml deleted file mode 100644 index 6d40ad6478..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/PagedFlickable.qml +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @file PagedFlickable.qml - * @brief Animated row. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -Item -{ - id: flickablePage - height: container.height + pager.height - default property alias content: containerRow.children - property alias spacing: containerRow.spacing - property int elementWidth - property int snapTo - property int count: 0 - - Flickable { - id: container - anchors.bottom: parent.bottom - maximumFlickVelocity: 1500 - contentWidth: containerRow.width - height: containerRow.height - width: parent.width - interactive: contentWidth > width - - onMovementEnded: { - var rest = contentX % snapTo - var t = 0.25 - if (rest > parent.snapTo / 2) { - rest = rest - parent.snapTo - } - var vel = 2 * rest / t - flickDeceleration = Math.abs(vel) / t - flick(vel, 0) - flickDeceleration = 1500 - } - Row { - id: containerRow - anchors.verticalCenter: parent.verticalCenter - } - } - - Pager { - id: pager - space: 7 - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - - pages: { - if ( (container.contentWidth % container.width) >= (flickablePage.elementWidth / 2 + flickablePage.spacing)) { - return Math.ceil(container.contentWidth / container.width) - } - else { - return Math.floor(container.contentWidth / container.width) - } - } - - activePage: { - if (container.contentX <= 0) { - return 0 - } - else if ( (container.contentWidth - container.contentX) < container.width) { - return pages -1 - } - else { - if ( (container.contentX % container.width) >= (flickablePage.elementWidth / 2 + flickablePage.spacing)) { - return Math.ceil(container.contentX / container.width) - } - else if ( (container.contentX % container.width) > 0) { - return Math.floor(container.contentX / container.width) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/Pager.qml b/src/components/qt_hmi/qml_model_qt4/controls/Pager.qml deleted file mode 100644 index 471d932113..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/Pager.qml +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @file Pager.qml - * @brief Bubbles that indicate about page switch. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -Row { - id: pager - property int pages - property int activePage: 0 - property int space - property int itemsInRowOnScreen: 3 - - spacing: space - visible: pages !== 1 - - Repeater { - model: pages - Image { - source: index === activePage ? "../res/white_ball.png" : "../res/blue_ball.png" - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/PlayPauseButton.qml b/src/components/qt_hmi/qml_model_qt4/controls/PlayPauseButton.qml deleted file mode 100644 index 825884cc1e..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/PlayPauseButton.qml +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @file PlayPauseButton.qml - * @brief Behavior of Play/Pause button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -Image { - id: playPauseButton - property string sourceOnPressed: "" - property string sourceOnReleased: "" - - signal clicked - - MouseArea { - anchors.fill: parent - onPressed: { - playPauseButton.source = playPauseButton.sourceOnPressed - } - onReleased: { - playPauseButton.source = playPauseButton.sourceOnReleased - } - onClicked: { - playPauseButton.clicked() - } - } - states: [ - State { - name: "Play" - PropertyChanges { - target: playPauseButton - source: "../res/buttons/player_play_btn.png" - sourceOnPressed: "../res/buttons/player_play_pressed_btn.png" - sourceOnReleased: "../res/buttons/player_pause_btn.png" - } - }, - - State { - name: "Pause" - PropertyChanges { - target: playPauseButton - source: "../res/buttons/player_pause_btn.png" - sourceOnPressed: "../res/buttons/player_pause_pressed_btn.png" - sourceOnReleased: "../res/buttons/player_play_btn.png" - } - } - ] -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/PowerSwitchButton.qml b/src/components/qt_hmi/qml_model_qt4/controls/PowerSwitchButton.qml deleted file mode 100644 index 2027e1f592..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/PowerSwitchButton.qml +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @file PowerSwitchBtn.qml - * @brief On/Off button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Rectangle { - id: powerSwitchBtn - state: "Turn ON" - width: 120 - height: 80 - radius: 5 - property bool pressed; - - gradient: Gradient { - GradientStop { position: pressed ? 1.0 : 0.0; color: "#2c2c2c" } - GradientStop { position: pressed ? 0.0 : 1.0; color: "black" } - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.pressed = true - } - onReleased: { - parent.pressed = false - parent.state = parent.state === "Turn ON" ? "Turn OFF" : "Turn ON" - btnText.text = parent.state - if (parent.state === "Turn OFF") { - contentLoader.reset() - mainScreen.visible = true - warningInfo.showOkButton() - } - } - } - - Text { - id: btnText - color: "red" - text: parent.state - anchors.centerIn: parent - font.pixelSize: Constants.powerButtonFornSize - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/PresetRow.qml b/src/components/qt_hmi/qml_model_qt4/controls/PresetRow.qml deleted file mode 100644 index 1454ed812d..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/PresetRow.qml +++ /dev/null @@ -1,106 +0,0 @@ -/** - * @file PresetRow.qml - * @brief Animated row with radio stations. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Item { - id: presetRow - height: childrenRect.height - property variant presets: [] - property int selectedIndex: 0 - signal presetSelected - signal presetButtonPressed() - signal presetButtonReleased() - signal presetButtonClicked() - signal presetButtonHold() - - Image { - id: circleButton - source: "../res/buttons/preset_pressed_btn.png" - visible: false - enabled: false - } - - PagedFlickable { - width: parent.width - spacing: (width - (circleButton.width * 4)) / 3 - snapTo: spacing + circleButton.width - elementWidth: circleButton.width - - Repeater { - model: presetRow.presets.length - delegate: - Column { - width: circleButton.width - Image { - anchors.horizontalCenter: parent.horizontalCenter - source: presetRow.selectedIndex === index ? "../res/buttons/preset_pressed_btn.png" : "../res/buttons/preset_btn.png" - MouseArea { - anchors.fill: parent - onPressed: { - presetRow.selectedIndex = index; - presetButtonPressed() - } - onReleased: { - presetRow.selectedIndex = index; - presetButtonReleased() - } - onClicked: { - presetRow.selectedIndex = index - presetButtonClicked() - } - onPressAndHold: { - presetRow.selectedIndex = index; - presetButtonHold() - } - } - Text { - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - text: index + 1 - font.pixelSize: Constants.fontSize - color: presetRow.selectedIndex === index ? Constants.secondaryColor : Constants.primaryColor - } - } - Text { - anchors.horizontalCenter: parent.horizontalCenter - text: presetRow.presets[index] - font.pixelSize: Constants.fontSize - color: "white" - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/PushButton.qml b/src/components/qt_hmi/qml_model_qt4/controls/PushButton.qml deleted file mode 100644 index 36ee9bbb3f..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/PushButton.qml +++ /dev/null @@ -1,136 +0,0 @@ -/** - * @file PushButton.qml - * @brief Simple button - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -Rectangle { - id: toggleButton - width: 160 - height: 40 - radius: 2 - border.width: 2 - border.color: "#000000" - gradient: grUnpressed - - property alias label : label.text - - signal pressed() - signal unpressed() - signal clicked() - - property bool toggleMode: false - - state: "unpressed" - onStateChanged: { - if (state == "pressed") { - pressed(); - } else { - unpressed(); - } - } - - Text { - id: label - color: "white" - text: "PushButton" - font.pixelSize: 18 - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - anchors.horizontalCenter: parent.horizontalCenter - anchors.fill: parent - } - MouseArea { - id: mouseArea - - anchors.fill: parent - onPressed: { - if (toggleMode) { - if (parent.state == "unpressed") { - parent.state = "pressed" - } else { - parent.state = "unpressed" - } - } else { - parent.state = "pressed" - } - } - onReleased: { - if (!toggleMode) { - parent.state = "unpressed" - if (mouse.isClick) { - parent.clicked() - } - } - } - } - - states: [ - State { - name: "pressed" - PropertyChanges { - target: toggleButton - gradient: grPressed - } - }, - State { - name: "unpressed" - PropertyChanges { - target: toggleButton - gradient: grUnpressed - } - } - ] - - Gradient { - id: grUnpressed - - GradientStop { position: 0.0; color: "#2c2c2c" } - GradientStop { position: 1.0; color: "#0c0c0c" } - } - - Gradient { - id: grPressed - - GradientStop { position: 0.0; color: "black" } - GradientStop { position: 1.0; color: "black" } - } - - transitions: [ - Transition { - from: "unpressed" - to: "pressed" - reversible: true - } - ] -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/ScrollableListView.qml b/src/components/qt_hmi/qml_model_qt4/controls/ScrollableListView.qml deleted file mode 100644 index cc26c87271..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/ScrollableListView.qml +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @file ScrollableListView.qml - * @brief ListView with scrollbar on the right - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -ListView { - clip: true - - Rectangle { - visible: parent.height < parent.contentHeight - anchors.right: parent.right - y: parent.visibleArea.yPosition * parent.height - width: Constants.scrollBarWidth - height: parent.visibleArea.heightRatio * parent.height - color: Constants.primaryColor - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/ScrollableText.qml b/src/components/qt_hmi/qml_model_qt4/controls/ScrollableText.qml deleted file mode 100644 index 82f568414b..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/ScrollableText.qml +++ /dev/null @@ -1,70 +0,0 @@ -/** - * @file ScrollableText.qml - * @brief Text with scrollers if text more than zone - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Item { - property alias text: text.text - clip: true - - Flickable { - id: flickable - anchors.fill: parent - contentWidth: text.width - contentHeight: text.height - - Text { - id: text - color: Constants.popUpBorderColor - font.pixelSize: Constants.ttsFontSize - } - } - Rectangle { - visible: flickable.height < flickable.contentHeight - anchors.right: flickable.right - y: flickable.visibleArea.yPosition * flickable.height - width: Constants.scrollBarWidth - height: flickable.visibleArea.heightRatio * flickable.height - color: Constants.popUpBorderColor - } - Rectangle { - visible: flickable.width < flickable.contentWidth - anchors.bottom: flickable.bottom - x: flickable.visibleArea.xPosition * flickable.width - height: Constants.scrollBarWidth - width: flickable.visibleArea.widthRatio * flickable.width - color: Constants.popUpBorderColor - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/SoftButton.js b/src/components/qt_hmi/qml_model_qt4/controls/SoftButton.js deleted file mode 100644 index 227f638366..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/SoftButton.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @file SoftButton.js - * @brief Soft button view constants - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -.pragma library - -var Action = { - doOnClicked: 0, - doOnReleased: 1 -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/SoftButton.qml b/src/components/qt_hmi/qml_model_qt4/controls/SoftButton.qml deleted file mode 100644 index b92cd51263..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/SoftButton.qml +++ /dev/null @@ -1,104 +0,0 @@ -/** - * @file SoftButton.qml - * @brief Soft button view - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common -import "SoftButton.js" as SoftButton - -OvalButton { - property variant button - property int appId - visible: !!button - - signal defaultAction; - signal stealFocus; - signal keepContext; - - property int actionOrder: SoftButton.Action.doOnClicked - - highlighted: button ? button.isHighlighted : false - onPressed: { - actionOrder = SoftButton.Action.doOnClicked - sdlButtons.onButtonEvent(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonEventMode.BUTTONDOWN, button.softButtonID) - } - - onReleased: { - if (actionOrder === SoftButton.Action.doOnReleased) { - switch (button.systemAction) { - case Common.SystemAction.DEFAULT_ACTION: - defaultAction(); - break; - case Common.SystemAction.STEAL_FOCUS: - if (dataContainer.currentApplication.isMediaApplication) { - contentLoader.go("views/SDLPlayerView.qml", appId); - } else { - contentLoader.go("views/SDLNonMediaView.qml", appId); - } - stealFocus(); - break; - case Common.SystemAction.KEEP_CONTEXT: - keepContext(); - break; - } - } - - sdlButtons.onButtonEvent(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonEventMode.BUTTONUP, button.softButtonID) - } - - onClicked: { - sdlButtons.onButtonPress(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonPressMode.SHORT, button.softButtonID); - switch (button.systemAction) { - case Common.SystemAction.DEFAULT_ACTION: - defaultAction(); - break; - case Common.SystemAction.STEAL_FOCUS: - if (dataContainer.currentApplication.isMediaApplication) { contentLoader.go("views/SDLPlayerView.qml", appId); } - else { contentLoader.go("views/SDLNonMediaView.qml", appId); } - stealFocus(); - break; - case Common.SystemAction.KEEP_CONTEXT: - keepContext(); - break; - } - } - - onPressAndHold: { - actionOrder = SoftButton.Action.doOnReleased; // action should be triggered on release - sdlButtons.onButtonPress(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonPressMode.LONG, button.softButtonID); - } - - onButtonChanged: { - icon = button && button.type !== Common.SoftButtonType.SBT_TEXT ? button.image : undefined; - text = button && button.type !== Common.SoftButtonType.SBT_IMAGE ? button.text : "" - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/controls/StatusBar.qml b/src/components/qt_hmi/qml_model_qt4/controls/StatusBar.qml deleted file mode 100644 index a6d7640f36..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/controls/StatusBar.qml +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @file StatusBar.qml - * @brief Status bar that contains text string. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Text { - text: dataContainer.currentApplication.hmiUIText.statusBar - color: Constants.primaryColor - font.pixelSize: Constants.statusBarFontSize -} diff --git a/src/components/qt_hmi/qml_model_qt4/hmi_api/Async.js b/src/components/qt_hmi/qml_model_qt4/hmi_api/Async.js deleted file mode 100644 index ebc5bfa3ca..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/hmi_api/Async.js +++ /dev/null @@ -1,7 +0,0 @@ -.pragma library - -var async_uid = 1; - -function AsyncCall() { - this.__async_uid = async_uid++; -} diff --git a/src/components/qt_hmi/qml_model_qt4/hmi_api/BasicCommunication.qml b/src/components/qt_hmi/qml_model_qt4/hmi_api/BasicCommunication.qml deleted file mode 100644 index 9d7e0432f2..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/hmi_api/BasicCommunication.qml +++ /dev/null @@ -1,88 +0,0 @@ -/** - * @file BasicCommunication.qml - * @brief Implement of interface Basic Communication. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -Item { - function updateDeviceList (deviceList) { - dataContainer.deviceList.clear(); - for(var i = 0; i < deviceList.length; i++) { - dataContainer.deviceList.append({ name: deviceList[i].name, devid: deviceList[i].id }) - } - } - - function updateAppList (applications) { - dataContainer.applicationList.clear(); - for(var i = 0; i < applications.length; i++) { - dataContainer.applicationList.append({ - appName: applications[i].appName, - ngnMediaScreenAppName: applications[i].ngnMediaScreenAppName, - icon: applications[i].icon, - deviceName: applications[i].deviceName, - appId: applications[i].appID, - hmiDisplayLanguageDesired: applications[i].hmiDisplayLanguageDesired, - isMediaApplication: applications[i].isMediaApplication, - appType: applications[i].appType - }); - } - } - - function allowDeviceToConnect (device) { - return { - allow: true - } - } - - function mixingAudioSupported() { - return { - attenuatedSupport: true - } - } - - function allowAllApps() { - return { - allowed: true - } - } - - function allowApp(app, appPermissions) { - return { - allowed: true - } - } - - function activateApp() { - contentLoader.go("views/SDLPlayerView.qml", appID); - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/hmi_api/Buttons.qml b/src/components/qt_hmi/qml_model_qt4/hmi_api/Buttons.qml deleted file mode 100644 index 83ea933eda..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/hmi_api/Buttons.qml +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @file Buttons.qml - * @brief Implement of interface Buttons. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -Item -{ - function getCapabilities() - { - return { - capabilities: settingsContainer.buttonCapabilities, - presetBankCapabilities: { - onScreenPresetsAvailable: true - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/hmi_api/Navigation.qml b/src/components/qt_hmi/qml_model_qt4/hmi_api/Navigation.qml deleted file mode 100644 index 3ec131c8c1..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/hmi_api/Navigation.qml +++ /dev/null @@ -1,127 +0,0 @@ -/** - * @file Navigation.qml - * @brief Navigation. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "Common.js" as Common - -Item { - function isReady () { - return { - available: dataContainer.hmiNavigationAvailable - } - } - - function showConstantTBT(navigationTexts, turnIcon, nextTurnIcon, distanceToManeuver, - distanceToManeuverScale, maneuverComplete, - softButtons, appID) { - console.debug("enter") - navigationTexts.forEach(fillTexts); - dataContainer.navigationModel.turnIcon = turnIcon ? turnIcon.value : "" - dataContainer.navigationModel.nextTurnIcon = nextTurnIcon ? nextTurnIcon.value : "" - dataContainer.navigationModel.distanceToManeuver = distanceToManeuver; - dataContainer.navigationModel.distanceToManeuverScale = distanceToManeuverScale; - if (maneuverComplete !== undefined) { - dataContainer.navigationModel.maneuverComplete = maneuverComplete; - } - if (softButtons !== undefined) { - dataContainer.navigationModel.softButtons.clear(); - softButtons.forEach(fillSoftButtons, dataContainer.navigationModel.softButtons); - } - dataContainer.navigationModel.appId = appID; - contentLoader.go("./views/TurnByTurnView.qml"); - console.debug("exit") - } - - function alertManeuver(softButtons) { - console.debug("enter") - if (softButtons !== undefined) { - dataContainer.navigationModel.alertManeuverSoftButtons.clear(); - softButtons.forEach(fillSoftButtons, dataContainer.navigationModel.alertManeuverSoftButtons); - } - console.debug("exit") - } - - function updateTurnList(turnList, softButtons, appID) { - console.debug("enter") - if (turnList !== undefined) { - dataContainer.getApplication(appID).turnList.clear(); - turnList.forEach(fillTurnList, dataContainer.getApplication(appID).turnList); - } - if (softButtons !== undefined) { - dataContainer.getApplication(appID).turnListSoftButtons.clear(); - softButtons.forEach(fillSoftButtons, dataContainer.getApplication(appID).turnListSoftButtons); - } - dataContainer.navigationModel.appId = appID; - console.debug("exit") - } - - function fillTexts(element, index, array) { - switch (element.fieldName) { - case Common.TextFieldName.navigationText1: - dataContainer.navigationModel.text1 = element.fieldText; - break; - case Common.TextFieldName.navigationText2: - dataContainer.navigationModel.text2 = element.fieldText; - break; - case Common.TextFieldName.ETA: - dataContainer.navigationModel.eta = element.fieldText; - break; - case Common.TextFieldName.totalDistance: - dataContainer.navigationModel.totalDistance = element.fieldText; - break; - case Common.TextFieldName.timeToDestination: - dataContainer.navigationModel.timeToDestination = element.fieldText; - break; - } - } - - function fillSoftButtons(element, index, array) { - this.append({ - type: element.type, - text: element.text, - image: element.image, - isHighlighted: element.isHighlighted, - buttonId: element.softButtonID, - systemAction: element.systemAction - }); - } - - function fillTurnList(element, index, array) { - this.append({ - navigationText: element.navigationText, - turnIcon: element.turnIcon - }); - console.debug(element.navigationText) - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/hmi_api/TTS.qml b/src/components/qt_hmi/qml_model_qt4/hmi_api/TTS.qml deleted file mode 100644 index 96aa9b2c29..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/hmi_api/TTS.qml +++ /dev/null @@ -1,115 +0,0 @@ -/** - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "Common.js" as Common -import "Async.js" as Async - -Item { - function isReady() { - return { - available: dataContainer.hmiTTSAvailable - } - } - - function speak(ttsChunks, appID) { - // appID unused - console.debug('enter:', ttsChunks, appID); - if (ttsPopUp.async) { - console.log('speak send abort'); - throw Common.Result.ABORTED; - } - - var message = ttsChunks.map(function(str) { return str.text }).join('\n'); - ttsPopUp.activate(message); - ttsPopUp.async = new Async.AsyncCall(); - console.debug('exit'); - return ttsPopUp.async; - } - - function stopSpeaking() { - console.debug("enter"); - ttsPopUp.deactivate(); - console.debug("exit"); - } - - function getLanguage() { - return { - language: dataContainer.hmiTTSVRLanguage - } - } - - function getSupportedLanguages() { - return { - languages: settingsContainer.sdlLanguagesList - } - } - - function getCapabilities() { - return { - capabilities: Common.SpeechCapabilities.SC_TEXT - } - } - - function changeRegistration(language, appID) { - console.debug("enter:", language, appID); - dataContainer.changeRegistrationTTSVR(language, appID); - console.debug("exit"); - } - - function setGlobalProperties(helpPrompt, timeoutPrompt, appID) { - console.debug("enter: " + helpPrompt + ", " + timeoutPrompt + ", " + appID) - - var newHelpPropmt = helpPrompt ? - helpPrompt.map( - function (structure) { - return structure.text - } - ).join(", ") : - dataContainer.currentApplication.helpPrompt - - var newTimeoutPrompt = timeoutPrompt ? - timeoutPrompt.map( - function (structure) { - return structure.text - } - ).join(", ") : - dataContainer.currentApplication.timeoutPrompt - - dataContainer.setApplicationProperties(dataContainer.currentApplication.appId, { - helpPrompt: newHelpPropmt, - timeoutPrompt: newTimeoutPrompt - }) - console.debug("exit") - } -} - diff --git a/src/components/qt_hmi/qml_model_qt4/hmi_api/UI.qml b/src/components/qt_hmi/qml_model_qt4/hmi_api/UI.qml deleted file mode 100644 index 648cd1397f..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/hmi_api/UI.qml +++ /dev/null @@ -1,449 +0,0 @@ -/** - * @file UI.qml - * @brief UI interface implementation. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "Common.js" as Common -import "Async.js" as Async -import "../models/Internal.js" as Internal - -Item { - function filter (strings, fields) { - console.debug("enter") -// substrings for each allowed field - var fieldSubstrings = {} -// this cycle concatenates allowed lines sorting them by field - for (var stringIndex = 0; stringIndex < strings.length; ++stringIndex) { - for (var fieldIndex = 0; fieldIndex < fields.length; ++fieldIndex) { - var fieldName = strings[stringIndex].fieldName - if (fieldName === fields[fieldIndex]) { - if (fieldSubstrings[fieldName] !== undefined) { - fieldSubstrings[fieldName] += "\n"; - fieldSubstrings[fieldName] += strings[stringIndex].fieldText - } - else { - fieldSubstrings[fieldName] = strings[stringIndex].fieldText - } - } - } - } - console.debug("exit") - return fieldSubstrings - } - - function alert (alertStrings, duration, softButtons, progressIndicator, appID) { - var fieldSubstrings = alertStrings - .sort(function(a, b) { return a.fieldName - b.fieldName }) // sorting by fieldName - .map(function(val) { return val.fieldText }); // mapping to array of strings - - var tryAgainTime = alertWindow.alert(fieldSubstrings, duration, progressIndicator, softButtons, appID) - if (tryAgainTime === undefined) { - alertWindow.async = new Async.AsyncCall(); - return alertWindow.async; - } - else { - return { - "__retCode": Common.Result.REJECTED, - "tryAgainTime": tryAgainTime - } - } - } - - function show (showStrings, alignment, graphic, softButtons, customPresets, appID) { - console.debug("enter: " + showStrings + ", " + alignment + ", " + graphic + ", "+ softButtons + ", " + customPresets + ", " + appID) - var app = dataContainer.getApplication(appID); - - if (softButtons) { - app.softButtons.clear() - softButtons.forEach(function(x) { app.softButtons.append(x); }); - } - - if (customPresets) { - app.customPresets.clear() - customPresets.forEach( function(x) { app.customPresets.append( {text: x} ); } ) - } - - var textAlignment - switch (alignment) { - case Common.TextAlignment.LEFT_ALIGNED: - textAlignment = Text.AlignLeft - break; - case Common.TextAlignment.RIGHT_ALIGNED: - textAlignment = Text.AlignRight - break; - case Common.TextAlignment.CENTERED: - textAlignment = Text.AlignHCenter - break; - default: - textAlignment = Text.AlignHCenter - break; - } - - // with this array we grab only the lines we need - var showFields = [ - Common.TextFieldName.mainField1, - Common.TextFieldName.mainField2, - Common.TextFieldName.mainField3, - Common.TextFieldName.mainField4, - Common.TextFieldName.statusBar, - Common.TextFieldName.mediaClock, - Common.TextFieldName.mediaTrack - ] - var fieldSubstrings = filter(showStrings, showFields) - var showData = { hmiUIText: {} } - if (fieldSubstrings[Common.TextFieldName.mainField1] !== undefined) { showData.hmiUIText.mainField1 = fieldSubstrings[Common.TextFieldName.mainField1]; } - if (fieldSubstrings[Common.TextFieldName.mainField2] !== undefined) { showData.hmiUIText.mainField2 = fieldSubstrings[Common.TextFieldName.mainField2]; } - if (fieldSubstrings[Common.TextFieldName.mainField3] !== undefined) { showData.hmiUIText.mainField3 = fieldSubstrings[Common.TextFieldName.mainField3]; } - if (fieldSubstrings[Common.TextFieldName.mainField4] !== undefined) { showData.hmiUIText.mainField4 = fieldSubstrings[Common.TextFieldName.mainField4]; } - if (fieldSubstrings[Common.TextFieldName.statusBar] !== undefined) { showData.hmiUIText.statusBar = fieldSubstrings[Common.TextFieldName.statusBar]; } - if (fieldSubstrings[Common.TextFieldName.mediaTrack] !== undefined) { showData.hmiUIText.mediaTrack = fieldSubstrings[Common.TextFieldName.mediaTrack]; } - if (graphic) { showData.hmiUIText.image = graphic.value; } - if (textAlignment) { showData.hmiUITextAlignment = textAlignment; } - if (fieldSubstrings[Common.TextFieldName.mediaClock]) { - showData.mediaClock = { - "updateMode": Internal.MediaClockUpdateMode.MCU_COUNTUP, - "runningMode": Internal.MediaClockRunningMode.MCR_STOPPED, - "magic": Internal.stringToHmsTime(fieldSubstrings[Common.TextFieldName.mediaClock]), - "total": 0 - } - } - - dataContainer.setApplicationProperties(appID, showData); - console.debug("exit") - } - - function addCommand (cmdID, menuParams, cmdIcon, appID) { - dataContainer.addCommand(cmdID, menuParams, cmdIcon, appID) - } - - function deleteCommand (cmdID, appID) { - dataContainer.deleteCommand(cmdID, appID) - } - - function addSubMenu (menuID, menuParams, appID) { - dataContainer.addSubMenu(menuID, menuParams, appID) - } - - function deleteSubMenu (menuID, appID) { - dataContainer.deleteSubMenu(menuID, appID) - } - - function performInteraction (initialText, choiceSet, vrHelp, timeout, appID) { - console.debug("enter") - var async = dataContainer.interactionModel.performInteraction(initialText, choiceSet, vrHelp, timeout, appID) - console.debug("exit") - return async - } - - function setMediaClockTimer (startTime, endTime, updateMode, appID) { - console.debug("enter: {", startTime, ", ", endTime, ", ", updateMode, ", ", appID, "}") - - var app = dataContainer.getApplication(appID) - var newStartTime - var newEndTime - var newUpdateMode - var newRunningMode - var newStartTimeForProgress - var resultCode - var sendErrorResponce = false - - switch (updateMode) { - case Common.ClockUpdateMode.COUNTUP: - if (startTime === undefined) { - resultCode = Common.Result.INVALID_DATA - sendErrorResponce = true - break - } - newStartTime = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds) - newEndTime = endTime ? Internal.hmsTime(endTime.hours, endTime.minutes, endTime.seconds) : -1 - newUpdateMode = Internal.MediaClockUpdateMode.MCU_COUNTUP - newRunningMode = Internal.MediaClockRunningMode.MCR_RUNNING - newStartTimeForProgress = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds) - resultCode = Common.Result.SUCCESS - break - - case Common.ClockUpdateMode.COUNTDOWN: - if (startTime === undefined) { - resultCode = Common.Result.INVALID_DATA - sendErrorResponce = true - break - } - newStartTime = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds) - newEndTime = endTime ? Internal.hmsTime(endTime.hours, endTime.minutes, endTime.seconds) : -1 - newUpdateMode = Internal.MediaClockUpdateMode.MCU_COUNTDOWN - newRunningMode = Internal.MediaClockRunningMode.MCR_RUNNING - newStartTimeForProgress = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds) - resultCode = Common.Result.SUCCESS - break - - case Common.ClockUpdateMode.PAUSE: - // Already paused or cleared - if ((app.mediaClock.runningMode === Internal.MediaClockRunningMode.MCR_STOPPED) - || (app.mediaClock.startTime === -1 && app.mediaClock.endTime === -1)) { - resultCode = Common.Result.IGNORED - sendErrorResponce = true - break - } - newStartTime = app.mediaClock.startTime - newEndTime = app.mediaClock.endTime - newRunningMode = Internal.MediaClockRunningMode.MCR_STOPPED - newUpdateMode = app.mediaClock.updateMode - newStartTimeForProgress = app.mediaClock.startTime - resultCode = Common.Result.SUCCESS - break - - case Common.ClockUpdateMode.RESUME: - // Already resumed or cleared - if ((app.mediaClock.runningMode === Internal.MediaClockRunningMode.MCR_RUNNING) - || (app.mediaClock.startTime === -1 && app.mediaClock.endTime === -1)) { - resultCode = Common.Result.IGNORED - sendErrorResponce = true - break - } - newStartTime = app.mediaClock.startTime - newEndTime = app.mediaClock.endTime - newRunningMode = Internal.MediaClockRunningMode.MCR_RUNNING - newStartTimeForProgress = app.mediaClock.startTime - newUpdateMode = app.mediaClock.updateMode - resultCode = Common.Result.SUCCESS - break - - case Common.ClockUpdateMode.CLEAR: - newStartTime = -1 - newEndTime = -1 - newRunningMode = Internal.MediaClockRunningMode.MCR_STOPPED - newUpdateMode = app.mediaClock.updateMode - newStartTimeForProgress = -1 - resultCode = Common.Result.SUCCESS - break - } - - if (sendErrorResponce) { - console.debug("exit with result code: ", resultCode) - return { __retCode: resultCode } - } - - dataContainer.setApplicationProperties(appID, { - "mediaClock": { - "updateMode": newUpdateMode, - "runningMode": newRunningMode, - "startTime": newStartTime, - "endTime": newEndTime, - "startTimeForProgress": newStartTimeForProgress - } - }) - - console.debug("exit") - return { __retCode: resultCode } - } - - function setGlobalProperties (vrHelpTitle, vrHelp, menuTitle, menuIcon, keyboardProperties, appID) { - console.debug("enter: " + vrHelpTitle + ", " + vrHelp + ", " + menuTitle + ", " + menuIcon + ", " + keyboardProperties + ", " + appID) - if (vrHelpTitle) { - vrHelpPopup.title = vrHelpTitle - } - dataContainer.setVrHelp(vrHelp) - console.debug("exit") - } - - function showVrHelp (vrHelpTitle, vrHelp, appID) { - console.debug("enter: " + vrHelpTitle + ", " + vrHelp + ", " + appID) - if (vrHelpTitle) { - vrHelpPopup.title = vrHelpTitle - } - dataContainer.setVrHelp(vrHelp) - vrHelpPopup.show() - console.debug("exit") - } - - function isReady () { - return { - available: dataContainer.hmiUIAvailable - } - } - - function getLanguage () { - return { - language: dataContainer.hmiUILanguage - } - } - - function getSupportedLanguages () { - return { - languages: settingsContainer.sdlLanguagesList - } - } - - function changeRegistration (language, appID) { - dataContainer.changeRegistrationUI(language, appID) - } - - function setAppIcon (syncFileName, appID) { - dataContainer.setApplicationProperties(appID, { icon: syncFileName.value }) - } - - function slider (numTicks, position, sliderHeader, sliderFooter, timeout, appID) { - console.debug("enter", numTicks, position, sliderHeader, sliderFooter, timeout, appID) - if (dataContainer.uiSlider.running) { - console.debug("aborted") - return {__retCode: Common.Result.ABORTED, sliderPosition: position} - } - - dataContainer.uiSlider.appName = dataContainer.getApplication(appID).appName - dataContainer.uiSlider.header = sliderHeader - dataContainer.uiSlider.footer = sliderFooter - dataContainer.uiSlider.numTicks = numTicks - dataContainer.uiSlider.position = position - dataContainer.uiSlider.timeout = timeout - - if (timeout !== 0) { - sliderPopup.showSlider() - sliderPopup.async = new Async.AsyncCall(); - console.debug("exit") - return sliderPopup.async; - } else { - return { sliderPosition: position } - } - } - - function scrollableMessage (messageText, timeout, softButtons, appID) { - console.debug("scrollableMessage ", messageText, timeout, softButtons, appID) - if(dataContainer.scrollableMessageModel.running){ - //send error response if long message already running - console.debug("scrollableMessage throw") - throw Common.Result.ABORTED - } - - dataContainer.scrollableMessageModel.longMessageText = messageText.fieldText - dataContainer.scrollableMessageModel.softButtons.clear(); - if (softButtons !== undefined) { - softButtons.forEach(fillSoftButtons, dataContainer.scrollableMessageModel.softButtons); - } - dataContainer.scrollableMessageModel.timeout = timeout - dataContainer.scrollableMessageModel.appId = appID - dataContainer.scrollableMessageModel.async = new Async.AsyncCall() - contentLoader.go("./views/ScrollableMessageView.qml") - console.debug("scrollableMessage exit") - return dataContainer.scrollableMessageModel.async - } - - function getCapabilities() { - return { - "audioPassThruCapabilities": { - "samplingRate": Common.SamplingRate.RATE_44KHZ, - "bitsPerSample": Common.BitsPerSample.RATE_8_BIT, - "audioType": Common.AudioType.PCM - }, - "displayCapabilities": settingsContainer.displayCapabilities, - "hmiZoneCapabilities": Common.HmiZoneCapabilities.FRONT, - "softButtonCapabilities": settingsContainer.softButtonCapabilities - } - } - - function performAudioPassThru (audioPassThruDisplayTexts, timeout, appID) { - console.debug("enter", audioPassThruDisplayTexts, timeout) - - if (dataContainer.uiAudioPassThru.running) { - console.debug("aborted") - throw Common.Result.ABORTED - } - - dataContainer.uiAudioPassThru.appName = dataContainer.getApplication(appID).appName - dataContainer.uiAudioPassThru.timeout = timeout - if (audioPassThruDisplayTexts.length === 2) { - dataContainer.uiAudioPassThru.firstLine = audioPassThruDisplayTexts[0].fieldText - dataContainer.uiAudioPassThru.secondLine = audioPassThruDisplayTexts[1].fieldText - } - performAudioPassThruPopup.async = new Async.AsyncCall(); - performAudioPassThruPopup.showAudioPassThru() - console.debug("exit") - return performAudioPassThruPopup.async; - } - - function endAudioPassThru () { - console.debug("enter") - if (!dataContainer.uiAudioPassThru.running) { - console.debug("rejected") - throw Common.Result.REJECTED - } - DBus.sendReply({__retCode: Common.Result.SUCCESS}) - performAudioPassThruPopup.complete(Common.Result.SUCCESS) - console.debug("exit") - } - - function closePopUp (methodName) { - console.debug("enter") - var popUpToClose - - if (dataContainer.activePopup.length === 0) { - return { __retCode: Common.Result.ABORT, __message: "No active PopUps"} - } - - if (methodName !== undefined) { - popUpToClose = methodName - } else { - popUpToClose = dataContainer.activePopup[dataContain.activePopUp.length - 1] - } - - switch (popUpToClose) { - case "UI.PerformInteraction": - interactionPopup.complete(Common.Result.SUCCESS) - break - case "UI.Slider": - sliderPopup.complete(Common.Result.SUCCESS) - break - case "UI.PerformAudioPassThru": - performAudioPassThruPopup.complete(Common.Result.SUCCESS) - break - case "UI.Alert": - alertWindow.complete(Common.Result.SUCCESS) - break - case "UI.VrHelp": - vrHelpPopup.complete(Common.Result.SUCCESS) - break - } - console.debug("exit") - } - - function fillSoftButtons(element, index, array) { - this.append({ - type: element.type, - text: element.text, - image: element.image, - isHighlighted: element.isHighlighted, - softButtonID: element.softButtonID, - systemAction: element.systemAction - }); - } - -} diff --git a/src/components/qt_hmi/qml_model_qt4/hmi_api/VR.qml b/src/components/qt_hmi/qml_model_qt4/hmi_api/VR.qml deleted file mode 100644 index 37d19f6a46..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/hmi_api/VR.qml +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @file VR.qml - * @brief Implement of interface VR. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "Common.js" as Common - -Item { - function isReady() { - return { - available: dataContainer.hmiVRAvailable - } - } - - function addCommand(cmdID, vrCommands, appID) { - console.log("VR.AddCommand: cmd ", cmdID, ", app ", appID); - for (var i = 0; i < vrCommands.length; ++i) { - dataContainer.vrCommands.append({ - cmdID: cmdID, - command: vrCommands[i], - appID: appID === undefined ? 0 : appID, - }); - } - console.log("exit") - } - - function deleteCommand(cmdID, appID) { - console.log("VR.DeleteCommand: cmd ", cmdID, ", app ", appID); - for (var i = 0; i < dataContainer.vrCommands.count; ) { - if ((dataContainer.vrCommands.get(i).cmdID === cmdID) && - ((appID === undefined) || (dataContainer.vrCommands.get(i).appID === appID))) { - dataContainer.vrCommands.remove(i); - continue; - } - ++i; - } - console.log("exit") - } - - function getLanguage() { - return { - language: dataContainer.hmiTTSVRLanguage - } - } - - function getSupportedLanguages() { - return { - languages: settingsContainer.sdlLanguagesList - } - } - - function getCapabilities() { - return { - vrCapabilities: [ Common.VrCapabilities.VR_TEXT ] - } - } - - function changeRegistration(language, appID) { - console.debug("enter:", language, appID); - dataContainer.changeRegistrationTTSVR(language, appID); - console.debug("exit"); - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/hmi_api/VehicleInfo.qml b/src/components/qt_hmi/qml_model_qt4/hmi_api/VehicleInfo.qml deleted file mode 100644 index 18f3a1ce9e..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/hmi_api/VehicleInfo.qml +++ /dev/null @@ -1,749 +0,0 @@ -/** - * @file VehicleInfo.qml - * @brief Vehicle information interface realisation. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "Common.js" as Common - -Item { - function isReady () { - return { - available: dataContainer.hmiVehicleInfoAvailable - } - } - - function getVehicleType() { - return { - "vehicleType": { - "make": "Ford", - "model": "Fiesta", - "modelYear": "2013", - "trim": "SE" - } - } - } - - function getGpsData(appID) { - console.debug("enter") - console.debug("exit") - return { gps: dataContainer.vehicleInfoModel.gps } - } - - function getSpeed(appID) { - console.debug("enter") - console.debug("exit") - return { speed: dataContainer.vehicleInfoModel.speed } - } - - function getRpm(appID) { - console.debug("enter") - console.debug("exit") - return { - rpm: dataContainer.vehicleInfoModel.rpm, - __retCode: Common.Result.DATA_NOT_AVAILABLE - } - } - - function getFuelLevel(appID) { - console.debug("enter") - console.debug("exit") - return { fuelLevel: dataContainer.vehicleInfoModel.fuelLevel } - } - - function getFuelLevelState(appID) { - console.debug("enter") - console.debug("exit") - return { fuelLevel_State: dataContainer.vehicleInfoModel.fuelLevel_State } - } - - function getInstantFuelConsumption(appID) { - console.debug("enter") - console.debug("exit") - return { instantFuelConsumption: dataContainer.vehicleInfoModel.instantFuelConsumption } - } - - function getExternalTemperature(appID) { - console.debug("enter") - console.debug("exit") - return { externalTemperature: dataContainer.vehicleInfoModel.externalTemperature } - } - - function getVin(appID) { - console.debug("enter") - console.debug("exit") - return { vin: dataContainer.vehicleInfoModel.vin } - } - - function getPrndl(appID) { - console.debug("enter") - if (dataContainer.vehicleInfoModel.prndl === -1) { // Test value, to check response - console.debug("exit") - return { - prndl: dataContainer.vehicleInfoModel.prndl, - __retCode: Common.Result.DATA_NOT_AVAILABLE - } - } - console.debug("exit") - return { prndl: dataContainer.vehicleInfoModel.prndl } - } - - function getTirePressure(appID) { - console.debug("enter") - console.debug("exit") - return { tirePressure: dataContainer.vehicleInfoModel.tirePressure } - } - - function getOdometer(appID) { - console.debug("enter") - console.debug("exit") - return { odometer: dataContainer.vehicleInfoModel.odometer } - } - - function getBeltStatus(appID) { - console.debug("enter") - console.debug("exit") - return { beltStatus: dataContainer.vehicleInfoModel.beltStatus } - } - - function getBodyInformation(appID) { - console.debug("enter") - console.debug("exit") - return { bodyInformation: dataContainer.vehicleInfoModel.bodyInformation } - } - - function getDeviceStatus(appID) { - console.debug("enter") - console.debug("exit") - return { deviceStatus: dataContainer.vehicleInfoModel.deviceStatus } - } - - function getDriverBraking(appID) { - console.debug("enter") - console.debug("exit") - return { driverBraking: dataContainer.vehicleInfoModel.driverBraking } - } - - function getWiperStatus(appID) { - console.debug("enter") - console.debug("exit") - return { wiperStatus: dataContainer.vehicleInfoModel.wiperStatus } - } - - function getHeadLampStatus(appID) { - console.debug("enter") - console.debug("exit") - return { headLampStatus: dataContainer.vehicleInfoModel.headLampStatus } - } - - function getEngineTorque(appID) { - console.debug("enter") - console.debug("exit") - return { engineTorque: dataContainer.vehicleInfoModel.engineTorque } - } - - function getAccPedalPosition(appID) { - console.debug("enter") - console.debug("exit") - return { accPedalPosition: dataContainer.vehicleInfoModel.accPedalPosition } - } - - function getSteeringWheelAngle(appID) { - console.debug("enter") - console.debug("exit") - return { steeringWheelAngle: dataContainer.vehicleInfoModel.steeringWheelAngle } - } - - function getECallInfo(appID) { - console.debug("enter") - console.debug("exit") - return { eCallInfo: dataContainer.vehicleInfoModel.eCallInfo } - } - - function getAirbagStatus(appID) { - console.debug("enter") - console.debug("exit") - return { airbagStatus: dataContainer.vehicleInfoModel.airbagStatus } - } - - function getEmergencyEvent(appID) { - console.debug("enter") - console.debug("exit") - return { emergencyEvent: dataContainer.vehicleInfoModel.emergencyEvent } - } - - function getClusterModeStatus(appID) { - console.debug("enter") - console.debug("exit") - return { clusterModeStatus: dataContainer.vehicleInfoModel.clusterModeStatus } - } - - function getMyKey(appID) { - console.debug("enter") - console.debug("exit") - return { myKey: dataContainer.vehicleInfoModel.myKey } - } - - function getDTCs(ecuName, dtcMask, appID) { - var ecuHeader = 2 - var dtc = [] - - for (var i = 0; i < 3; i++) { - dtc.push("line" + i) - } - return {ecuHeader: ecuHeader, dtc: dtc} - } - - function readDID(ecuName, didLocation, appID) { - console.debug("Enter") - //TODO{ALeshin}: refactoring of this function, when we'll have Vehicle Info module - var didResult = [] - - for (var i = 0; i < didLocation.length; i++) { - if (i < 10) { - didResult[i] = {} - didResult[i].resultCode = Common.VehicleDataResultCode.VDRC_SUCCESS - didResult[i].didLocation = didLocation[i] - didResult[i].data = '0' - } - else { - didResult[i] = {} - didResult[i].resultCode = Common.VehicleDataResultCode.VDRC_DATA_NOT_AVAILABLE - didResult[i].didLocation = didLocation[i] - didResult[i].data = '0' - } - } - console.debug("Exit") - return {didResult: didResult} - } - - function subscribeGps(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onGpsChanged.disconnect(model.sendGpsChange) - model.onGpsChanged.connect(model.sendGpsChange) - console.debug("exit") - return {gps: - { dataType: Common.VehicleDataType.VEHICLEDATA_GPS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS} } - } - function unsubscribeGps(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onGpsChanged.disconnect(model.sendGpsChange) - console.debug("exit") - return {gps: - { dataType: Common.VehicleDataType.VEHICLEDATA_GPS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS} } - - } - - function subscribeSpeed(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onSpeedChanged.disconnect(model.sendSpeedChange) - model.onSpeedChanged.connect(model.sendSpeedChange) - console.debug("exit") - return { speed: - { dataType: Common.VehicleDataType.VEHICLEDATA_SPEED, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeSpeed(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onSpeedChanged.disconnect(model.sendSpeedChange) - console.debug("exit") - return { speed: - { dataType: Common.VehicleDataType.VEHICLEDATA_SPEED, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeRpm(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onRpmChanged.disconnect(model.sendRpmChange) - model.onRpmChanged.connect(model.sendRpmChange) - console.debug("exit") - return { rpm: - { dataType: Common.VehicleDataType.VEHICLEDATA_RPM, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeRpm(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onRpmChanged.disconnect(model.sendRpmChange) - console.debug("exit") - return { rpm: - { dataType: Common.VehicleDataType.VEHICLEDATA_RPM, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeFuelLevel(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onFuelLevelChanged.disconnect(model.sendFuelLevelChange) - model.onFuelLevelChanged.connect(model.sendFuelLevelChange) - console.debug("exit") - return { fuelLevel: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELLEVEL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeFuelLevel(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onFuelLevelChanged.disconnect(model.sendFuelLevelChange) - console.debug("exit") - return { fuelLevel: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELLEVEL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeFuelLevel_State(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onFuelLevel_StateChanged.disconnect(model.sendFuelLevel_StateChange) - model.onFuelLevel_StateChanged.connect(model.sendFuelLevel_StateChange) - console.debug("exit") - return { fuelLevel_State: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELLEVEL_STATE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeFuelLevel_State(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onFuelLevel_StateChanged.disconnect(model.sendFuelLevel_StateChange) - console.debug("exit") - return { fuelLevel_State: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELLEVEL_STATE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeInstantFuelConsumption(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onInstantFuelConsumptionChanged.disconnect(model.sendInstantFuelConsumptionChange) - model.onInstantFuelConsumptionChanged.connect(model.sendInstantFuelConsumptionChange) - console.debug("exit") - return { instantFuelConsumption: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELCONSUMPTION, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeInstantFuelConsumption(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onInstantFuelConsumptionChanged.disconnect(model.sendInstantFuelConsumptionChange) - console.debug("exit") - return { instantFuelConsumption: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELCONSUMPTION, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeExternalTemperature(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onExternalTemperatureChanged.disconnect(model.sendExternalTemperatureChange) - model.onExternalTemperatureChanged.connect(model.sendExternalTemperatureChange) - console.debug("exit") - return { externalTemperature: - { dataType: Common.VehicleDataType.VEHICLEDATA_EXTERNTEMP, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeExternalTemperature(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onExternalTemperatureChanged.disconnect(model.sendExternalTemperatureChange) - console.debug("exit") - return { externalTemperature: - { dataType: Common.VehicleDataType.VEHICLEDATA_EXTERNTEMP, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribePrndl(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onPrndlChanged.disconnect(model.sendPrndlChange) - model.onPrndlChanged.connect(model.sendPrndlChange) - console.debug("exit") - return { prndl: - { dataType: Common.VehicleDataType.VEHICLEDATA_PRNDL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribePrndl(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onPrndlChanged.disconnect(model.sendPrndlChange) - console.debug("exit") - return { prndl: - { dataType: Common.VehicleDataType.VEHICLEDATA_PRNDL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeVin(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onVinChanged.disconnect(model.sendVinChange) - model.onVinChanged.connect(model.sendVinChange) - console.debug("exit") - return { vin: - { dataType: Common.VehicleDataType.VEHICLEDATA_VIN, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeVin(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onVinChanged.disconnect(model.sendVinChange) - console.debug("exit") - return { vin: - { dataType: Common.VehicleDataType.VEHICLEDATA_VIN, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeTirePressure(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onTirePressureChanged.disconnect(model.sendTirePressureChange) - model.onTirePressureChanged.connect(model.sendTirePressureChange) - console.debug("exit") - return { tirePressure: - { dataType: Common.VehicleDataType.VEHICLEDATA_TIREPRESSURE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeTirePressure(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onTirePressureChanged.disconnect(model.sendTirePressureChange) - console.debug("exit") - return { tirePressure: - { dataType: Common.VehicleDataType.VEHICLEDATA_TIREPRESSURE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeOdometer(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onOdometerChanged.disconnect(model.sendOdometerChange) - model.onOdometerChanged.connect(model.sendOdometerChange) - console.debug("exit") - return { odometer: - { dataType: Common.VehicleDataType.VEHICLEDATA_ODOMETER, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeOdometer(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onOdometerChanged.disconnect(model.sendOdometerChange) - console.debug("exit") - return { odometer: - { dataType: Common.VehicleDataType.VEHICLEDATA_ODOMETER, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeBeltStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onBeltStatusChanged.disconnect(model.sendBeltStatusChange) - model.onBeltStatusChanged.connect(model.sendBeltStatusChange) - console.debug("exit") - return { beltStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_BELTSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeBeltStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onBeltStatusChanged.disconnect(model.sendBeltStatusChange) - console.debug("exit") - return { beltStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_BELTSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeBodyInformation(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onBodyInformationChanged.disconnect(model.sendBodyInformationChange) - model.onBodyInformationChanged.connect(model.sendBodyInformationChange) - console.debug("exit") - return { bodyInformation: - { dataType: Common.VehicleDataType.VEHICLEDATA_BODYINFO, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeBodyInformation(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onBodyInformationChanged.disconnect(model.sendBodyInformationChange) - console.debug("exit") - return { bodyInformation: - { dataType: Common.VehicleDataType.VEHICLEDATA_BODYINFO, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeDeviceStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onDeviceStatusChanged.disconnect(model.sendDeviceStatusChange) - model.onDeviceStatusChanged.connect(model.sendDeviceStatusChange) - console.debug("exit") - return { deviceStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_DEVICESTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeDeviceStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onDeviceStatusChanged.disconnect(model.sendDeviceStatusChange) - console.debug("exit") - return { deviceStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_DEVICESTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeDriverBraking(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onDriverBrakingChanged.disconnect(model.sendDriverBrakingChange) - model.onDriverBrakingChanged.connect(model.sendDriverBrakingChange) - console.debug("exit") - return { driverBraking: - { dataType: Common.VehicleDataType.VEHICLEDATA_BRAKING, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeDriverBraking(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onDriverBrakingChanged.disconnect(model.sendDriverBrakingChange) - console.debug("exit") - return { driverBraking: - { dataType: Common.VehicleDataType.VEHICLEDATA_BRAKING, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeWiperStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onWiperStatusChanged.disconnect(model.sendWiperStatusChange) - model.onWiperStatusChanged.connect(model.sendWiperStatusChange) - console.debug("exit") - return { wiperStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_WIPERSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeWiperStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onWiperStatusChanged.disconnect(model.sendWiperStatusChange) - console.debug("exit") - return { wiperStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_WIPERSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeHeadLampStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onHeadLampStatusChanged.disconnect(model.sendHeadLampStatusChange) - model.onHeadLampStatusChanged.connect(model.sendHeadLampStatusChange) - console.debug("exit") - return { headLampStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_HEADLAMPSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeHeadLampStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onHeadLampStatusChanged.disconnect(model.sendHeadLampStatusChange) - console.debug("exit") - return { headLampStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_HEADLAMPSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeEngineTorque(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onEngineTorqueChanged.disconnect(model.sendEngineTorqueChange) - model.onEngineTorqueChanged.connect(model.sendEngineTorqueChange) - console.debug("exit") - return { engineTorque: - { dataType: Common.VehicleDataType.VEHICLEDATA_ENGINETORQUE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeEngineTorque(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onEngineTorqueChanged.disconnect(model.sendEngineTorqueChange) - console.debug("exit") - return { engineTorque: - { dataType: Common.VehicleDataType.VEHICLEDATA_ENGINETORQUE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeAccPedalPosition(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onAccPedalPositionChanged.disconnect(model.sendAccPedalPositionChange) - model.onAccPedalPositionChanged.connect(model.sendAccPedalPositionChange) - console.debug("exit") - return { accPedalPosition: - { dataType: Common.VehicleDataType.VEHICLEDATA_ACCPEDAL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeAccPedalPosition(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onAccPedalPositionChanged.disconnect(model.sendAccPedalPositionChange) - console.debug("exit") - return { accPedalPosition: - { dataType: Common.VehicleDataType.VEHICLEDATA_ACCPEDAL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeSteeringWheelAngle(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onSteeringWheelAngleChanged.disconnect(model.sendSteeringWheelAngleChange) - model.onSteeringWheelAngleChanged.connect(model.sendSteeringWheelAngleChange) - console.debug("exit") - return { steeringWheelAngle: - { dataType: Common.VehicleDataType.VEHICLEDATA_STEERINGWHEEL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeSteeringWheelAngle(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onSteeringWheelAngleChanged.disconnect(model.sendSteeringWheelAngleChange) - console.debug("exit") - return { steeringWheelAngle: - { dataType: Common.VehicleDataType.VEHICLEDATA_STEERINGWHEEL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeECallInfo(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onECallInfoChanged.disconnect(model.sendECallInfoChange) - model.onECallInfoChanged.connect(model.sendECallInfoChange) - console.debug("exit") - return { eCallInfo: - { dataType: Common.VehicleDataType.VEHICLEDATA_ECALLINFO, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeECallInfo(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onECallInfoChanged.disconnect(model.sendECallInfoChange) - console.debug("exit") - return { eCallInfo: - { dataType: Common.VehicleDataType.VEHICLEDATA_ECALLINFO, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeAirbagStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onAirbagStatusChanged.disconnect(model.sendAirbagStatusChange) - model.onAirbagStatusChanged.connect(model.sendAirbagStatusChange) - console.debug("exit") - return { airbagStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_AIRBAGSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeAirbagStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onAirbagStatusChanged.disconnect(model.sendAirbagStatusChange) - console.debug("exit") - return { airbagStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_AIRBAGSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeEmergencyEvent(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onEmergencyEventChanged.disconnect(model.sendEmergencyEventChange) - model.onEmergencyEventChanged.connect(model.sendEmergencyEventChange) - console.debug("exit") - return { emergencyEvent: - { dataType: Common.VehicleDataType.VEHICLEDATA_EMERGENCYEVENT, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeEmergencyEvent(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onEmergencyEventChanged.disconnect(model.sendEmergencyEventChange) - console.debug("exit") - return { emergencyEvent: - { dataType: Common.VehicleDataType.VEHICLEDATA_EMERGENCYEVENT, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeClusterModeStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onClusterModeStatusChanged.disconnect(model.sendClusterModeStatusChange) - model.onClusterModeStatusChanged.connect(model.sendClusterModeStatusChange) - console.debug("exit") - return { clusterModeStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_CLUSTERMODESTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeClusterModeStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onClusterModeStatusChanged.disconnect(model.sendClusterModeStatusChange) - console.debug("exit") - return { clusterModeStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_CLUSTERMODESTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeMyKey(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onMyKeyChanged.disconnect(model.sendMyKeyChange) - model.onMyKeyChanged.connect(model.sendMyKeyChange) - console.debug("exit") - return { myKey: - { dataType: Common.VehicleDataType.VEHICLEDATA_MYKEY, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeMyKey(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onMyKeyChanged.disconnect(model.sendMyKeyChange) - console.debug("exit") - return { myKey: - { dataType: Common.VehicleDataType.VEHICLEDATA_MYKEY, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/log4cxx.properties b/src/components/qt_hmi/qml_model_qt4/log4cxx.properties deleted file mode 100644 index 0bc5ac8fdf..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/log4cxx.properties +++ /dev/null @@ -1,41 +0,0 @@ -# Socket logger -log4j.appender.SocketHub=org.apache.log4j.net.SocketHubAppender -log4j.appender.SocketHub.port=4555 -log4j.appender.SocketHub.locationInfo=true - -# Only ERROR and FATAL messages are logged to console -log4j.appender.Console=org.apache.log4j.ConsoleAppender -log4j.appender.Console.ImmediateFlush=true -log4j.appender.Console.layout=org.apache.log4j.PatternLayout -log4j.appender.Console.layout.ConversionPattern=%-5p [%d{dd MMM yyyy HH:mm:ss,SSS}][%c] %m%n -log4j.appender.Console.Threshold=ERROR - -# Log for all DBus plugin messages -log4j.appender.DBusPluginLogFile=org.apache.log4j.FileAppender -log4j.appender.DBusPluginLogFile.File=DBusPlugin.log -log4j.appender.DBusPluginLogFile.append=false -log4j.appender.DBusPluginLogFile.DatePattern='.' yyyy-MM-dd -log4j.appender.DBusPluginLogFile.ImmediateFlush=true -log4j.appender.DBusPluginLogFile.layout=org.apache.log4j.PatternLayout -log4j.appender.DBusPluginLogFile.layout.ConversionPattern=%-5p [%d{dd MMM yyyy HH:mm:ss,SSS}][%c] %F:%L %M: %m%n - -# Log for all HMI Framework plugin -log4j.appender.HmiFrameworkPluginLogFile=org.apache.log4j.FileAppender -log4j.appender.HmiFrameworkPluginLogFile.File=HmiFrameworkPlugin.log -log4j.appender.HmiFrameworkPluginLogFile.append=false -log4j.appender.HmiFrameworkPluginLogFile.DatePattern='.' yyyy-MM-dd -log4j.appender.HmiFrameworkPluginLogFile.ImmediateFlush=true -log4j.appender.HmiFrameworkPluginLogFile.layout=org.apache.log4j.PatternLayout -log4j.appender.HmiFrameworkPluginLogFile.layout.ConversionPattern=%-5p [%d{dd MMM yyyy HH:mm:ss,SSS}][%c] %F:%L %M: %m%n - -# Log for all Qt HMI -log4j.rootLogger=ALL, Console - -# Log for DBus plugin QtHMI -log4j.logger.DBusPlugin=ALL, DBusPluginLogFile - -# Log for HMI Framework plugin -log4j.logger.HmiFrameworkPlugin=ALL, HmiFrameworkPluginLogFile - -# Log by log4cxx plugin -log4j.logger.Log4cxxPlugin=ALL, HmiFrameworkPluginLogFile diff --git a/src/components/qt_hmi/qml_model_qt4/models/ApplicationData.qml b/src/components/qt_hmi/qml_model_qt4/models/ApplicationData.qml deleted file mode 100644 index a50113095c..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/ApplicationData.qml +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @file ApplicationData.qml - * @brief Model for Application. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -QtObject { - property string mainField1 - property string mainField2 - property string mainField3 - property string mainField4 - property string statusBar - property string mediaTrack - property string image - - function reset () { - console.debug("enter") - mainField1 = "" - mainField2 = "" - mainField3 = "" - mainField4 = "" - statusBar = "" - mediaTrack = "" - image = "" - console.debug("exit") - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/ApplicationModel.qml b/src/components/qt_hmi/qml_model_qt4/models/ApplicationModel.qml deleted file mode 100644 index 206eaa9185..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/ApplicationModel.qml +++ /dev/null @@ -1,91 +0,0 @@ -/** - * @file ApplicationModel.qml - * @brief Own fields for each application. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" - -QtObject { - property int appId - property string appName - property string ngnMediaScreenAppName - property Icon appIcon: Icon { } - property string deviceName - property int hmiDisplayLanguageDesired - property bool isMediaApplication - property variant appType - property int hmiUITextAlignment - - // media player - property string playPauseState - property ApplicationData hmiUIText: ApplicationData { } - property MediaClockModel mediaClock: MediaClockModel { } - - property string helpPrompt - property string timeoutPrompt - property ListModel options: ListModel { } - - property ListModel currentSubMenu: options - property ListModel turnList - property ListModel softButtons - property ListModel turnListSoftButtons - property ListModel customPresets - property int languageTTSVR - // This place is for adding new properties - - function reset () { - console.debug("enter") - appId = -1 - appName = "" - ngnMediaScreenAppName = "" - appIcon.reset() - deviceName = "" - hmiDisplayLanguageDesired = -1 - isMediaApplication = false - appType = undefined - playPauseState = "" - hmiUIText.reset() -// no need to reset mediaClock - helpPrompt = "" - timeoutPrompt = "" - options.clear() - currentSubMenu = options - turnList = null - softButtons = null - turnListSoftButtons = null - customPresets = null - languageTTSVR = -1 - hmiUITextAlignment = null - console.debug("exit") - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/CarMenuModel.qml b/src/components/qt_hmi/qml_model_qt4/models/CarMenuModel.qml deleted file mode 100644 index f636d1e794..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/CarMenuModel.qml +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file CarMenuModel.qml - * @brief Car menu list of elements. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 - -ListModel -{ - ListElement { - name: "ambient" - icon: "../res/vehicle/Ambient Lighti Icon.png" - qml: "" - } - ListElement { - name: "cal" - icon: "../res/vehicle/cal.png" - qml: "" - } - ListElement { - name: "ev" - icon: "../res/vehicle/EV Icon.png" - qml: "" - } - ListElement { - name: "folders" - icon: "../res/vehicle/folders.png" - qml: "" - } - ListElement { - name: "key" - icon: "../res/vehicle/key_car.png" - qml: "" - } - ListElement { - name: "mcs" - icon: "../res/vehicle/MCS Icon.png" - qml: "" - } - ListElement { - name: "sun" - icon: "../res/vehicle/sun.png" - qml: "" - } - ListElement { - name: "sync" - icon: "../res/vehicle/SYNC Services.png" - qml: "" - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/Constants.js b/src/components/qt_hmi/qml_model_qt4/models/Constants.js deleted file mode 100644 index 1bc5c558ba..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/Constants.js +++ /dev/null @@ -1,249 +0,0 @@ -/** - * @file Constants.js - * @brief Namespace of constants. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -.pragma library - -// Colors - -// Main color of HMI model(now it ~lightblue). Buttons, text, icons of this color. -var primaryColor = "#1d81d5" - -// Color of pressed buttons, text, icons etc. -var primaryColorPressed = "#8ec0ea" - -// Secondary color of HMI model, backgroud of this color. -var secondaryColor = "black" - -// Color of text at buttonts that are inactive (at phone keyboard, when no any contact started with current letter). -var inactiveButtonTextColor = "grey" - -// Color of text at buttonts that are inactive but nevertheless pressed (at phone keyboard, when no any contact started with current letter). -var inactiveButtonTextColorPressed = "lightgrey" - -// Color of text at contact list screen view (Name, number and number type). -var contactTextColor = "lightblue" - -// Color of text at buttons, when they are pressed. -var pressedButtonTextColor = "black" - -// Color of text at "white" buttons, for all other buttons (which most) use primaryColor. -var releasedButtonTextColor = "white" - -// Transparent background. -var transparentColor = "#00000000" - -// "Warning" word color -var warningColor = "red" - -// Color for PopUp -var popUpBorderColor = "white" - -// Color for hardware and simulation panels -var panelColor = "#003" - -// Color for text in hardware and simulation panels -var panelTextColor = "white" - -// Audio pass thru PopUp text color -var audioPassThruTextColor = "white" - -// Color for border of controls -var controlsBorderColor = "#ababab" - -//-------------------------------------------------------------------------------------- - -// Font sizes of different elements - -// Font size for most of text in HMI model. -var fontSize = 20 - -// Font size for text inside oval buttons. -var ovalButtonFontSize = 15 - -// Title font size -var titleFontSize = 35 - -// Power on/off button font size -var powerButtonFornSize = 25 - -// Font size of status bar -var statusBarFontSize = 15 - -// Size icon for buttons -var iconButtonSize = 30 - -// Size icon for item list -var iconItemListSize = 40 - -// font size fo TTS popup -var ttsFontSize = 12 - -// Font size for list of applications -var appListFontSize = 40 - -// Size of contact list fields -var contactListNameFieldSize = 0.4 -var contactListPhoneFieldSize = 0.3 -var contactListDescriptionFieldSize = 0.3 - -//-------------------------------------------------------------------------------------- - -// Sizes of buttons, menus, screen, etc - -// Minimal width and height of screen (screen wont resize, if height and width are lower). -var mainScreenMinWidth = 800 -var mainScreenMiHeight = 600 - -// Width for long oval button -var ovalButtonWidth = 163 - -// Height for oval button -var ovalButtonHeight = 65 - -// Height item list -var itemListHeight = 60 - -// Width for TTS popup -var ttsPopUpWidth = 250 - -// Height for TTS popup -var ttsPopUpHeight = 100 - -// Width for popup view -var popupWidth = 700 - -// Width for alert window -var alertWidth = 360 - -// Height for popup view -var popupHeigth = 500 - -// Width for combobox -var defaultComboboxWidth = 150 - -// Size icon for list of applications -var appListIconSize = 100 - -// DistanceBar height -var distanceBarHeight = 1 - - -//--------------------------------------------------------------------------------------- - -// Other - -// Offset from the edges of the screen. -var margin = 20 - -// Offset from the edges of the popup -var popupMargin = 15 - -// Spacing between contacts at contact screen view. -var contactListSpacing = 30 - -// Duration of appearance of icon/button at icon/button menus. -var animationDuration = 500 - -// Duration of appearence of "OK" button at warning screen view, when HMI starts. -var warningScreenDuration = 1000 - -// Timer to check how long preset button is pressed. -var presetButtonTimer = 800 - -// Spacing between icon and item in list -var iconItemListSpacing = 20 - -// Spacing between item on views -var generalSpacing = 10 - -// Width of scrollBar -var scrollBarWidth = 5 - -// Speak text for a given time -var ttsSpeakTime = 2000 - -// Maximal number of submenus -var maximumSubmenus = 1000 - -// Maximal number of commands in submenu or root menu -var maximumCommandsPerSubmenu = 1000 - -// padding for popup view -var popUpPadding = 20 - -// Padding for TTS popup -var ttsPopUpPadding = 10 - -// ------------------------- -var sliderBarWidth = 400 -var sliderBarHeight = 50 -var sliderBarRadius = 3 -var sliderBarBorderWidth = 1 -var sliderTextColor = "white" -var sliderBarBorderColor = "white" -var sliderBarFillColor = "white" - -// ------------------------- -var scrollableMessageTextColor = "white" -var scrollableMessageScrollBarColor = "gray" -var scrollableMessageScrollBarWidth = 10 - -// Padding for hardware and simulation panels -var panelPadding = 20 - -// Scale for pressed icon in menu -var pressedIconScale = 1.1 - -// Values of color effect for highlighted button -var highlightedButtonHue = 0.9 -var highlightedButtonSaturation = 0.0 -var highlightedButtonLightness = 0.1 - -// Values of color effect for disabled button -var disabledButtonHue = 0.0 -var disabledButtonSaturation = -1.0 -var disabledButtonLightness = 0.1 - -// Count of rows for grid menu -var menuRowCount = 2 - -// Count of columns for grid menu -var menuColumnCount = 3 - -// Radius of controls -var controlsRadius = 2 - -// Width of border of controls -var controlsBorderWidth = 1 -// Position for element that came without position value (should be always at the end) -var positionOfElementWithoutPosition = 1001 diff --git a/src/components/qt_hmi/qml_model_qt4/models/ContactsListModel.qml b/src/components/qt_hmi/qml_model_qt4/models/ContactsListModel.qml deleted file mode 100644 index 348d30156c..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/ContactsListModel.qml +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @file ContactsListModel.qml - * @brief List of contacts. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 - -ListModel -{ - // TODO {ALeshin}: This list model should be sorted in ABC and Upper/lower case order, - // when it will be filled dynamically. - ListElement { name: "Aaron" ; phone:"(614)555-2444";type:"Mobile"} - ListElement { name: "Adrian" ; phone:"(740)245-3434";type:"Mobile" } - ListElement { name: "Albert" ; phone:"(614)245-5584";type:"Mobile" } - ListElement { name: "Alice" ; phone:"(313)878-3566";type:"Office"} - ListElement { name: "Alec" ; phone:"(917)608-2418";type:"Mobile"} - ListElement { name: "Alexander" ; phone:"(614)608-2400";type:"Home"} - ListElement { name: "Alexander Vasil'evich Michail Leontiy" ; phone:"(614)608-2400";type:"Mobile"} - ListElement { name: "Amber" ; phone:"(614)608-2111";type:"Mobile"} - ListElement { name: "Amy" ; phone:"(440)245-3434";type:"Mobile" } - ListElement { name: "Andy" ; phone:"(313)245-3434";type:"Mobile" } - ListElement { name: "Antje" ; phone:"(567)245-3434";type:"Home" } - ListElement { name: "buddy" ; phone:"(614)813-6610";type:"Mobile" } - ListElement { name: "Barry" ; phone:"(313)555-2211";type:"Mobile" } - ListElement { name: "Bea" ; phone:"(614)455-3434";type:"Mobile" } - ListElement { name: "Ben" ; phone:"(614)882-1843";type:"Office" } - ListElement { name: "Blake" ; phone:"(330)149-7778";type:"Mobile" } - ListElement { name: "Bob Mould" ; phone:"(313)245-3434";type:"Mobile" } - ListElement { name: "Brian" ; phone:"(614)332-7499";type:"Mobile" } - ListElement { name: "Calvin" ; phone:"(614)442-9974";type:"Mobile" } - ListElement { name: "Carl" ; phone:"(567)773-3434";type:"Home" } - ListElement { name: "Cat Power" ; phone:"(313)608-3434";type:"Home"} - ListElement { name: "Cathy" ; phone:"(313)444-456";type:"Home"} - ListElement { name: "Chris" ; phone:"(734)997-6514";type:"Home" } - ListElement { name: "Cloud Nothings"; phone:"(444)608-543";type:"Mobile"} - ListElement { name: "Cody" ; phone:"(567)365-8413";type:"Home" } - ListElement { name: "Curtis" ; phone:"(614)245-1547";type:"Office" } - ListElement { name: "Dakota" ; phone:"(567)555-4444";type:"Home" } - ListElement { name: "Dale" ; phone:"(567)723-1974";type:"Mobile" } - ListElement { name: "Dallas"; phone:"(614)556-879";type:"Home"} - ListElement { name: "Damian" ; phone:"(614)245-3434";type:"Office" } - ListElement { name: "Daniel"; phone:"(614)556-879";type:"Home"} - ListElement { name: "Darina"; phone:"(313)895-888";type:"Mobile"} - ListElement { name: "Dee "; phone:"(313)432-3434";type:"Home"} -// ListElement { name: "Edward" ; phone:"(917)608-975";type:"Office"} - ListElement { name: "Ferdinand" ; phone:"(917)879-795";type:"Mobile"} - ListElement { name: "gomez" ; phone:"(313)455-543";type:"Mobile"} - ListElement { name: "Harry Potter"; phone:"(313)888-432";type:"Home"} - ListElement { name: "Ivan"; phone:"(313)996-225";type:"Home"} -// ListElement { name: "James" ; phone:"(917)608-3434";type:"Mobile"} - ListElement { name: "Karen"; phone:"(313)998-332";type:"Home"} - ListElement { name: "Luis Torres"; phone:"(313)779-111";type:"Home"} - ListElement { name: "Mary"; phone:"(313)234-098";type:"Mobile"} - ListElement { name: "Neil"; phone:"(313)444-112";type:"Mobile"} - ListElement { name: "Oswald"; phone:"(313)456-921";type:"Mobile"} - ListElement { name: "Oscar"; phone:"(313)332-778";type:"Home"} - ListElement { name: "~1123"; phone:"(313)1332";type:"Home"} - ListElement { name: "Patrice"; phone:"(313)789-111";type:"Mobile"} - ListElement { name: "Queen Elizabeth"; phone:"(313)897-666";type:"Mobile"} - ListElement { name: "Rose"; phone:"(313)111-211";type:"Mobile"} - ListElement { name: "Susell"; phone:"(313)345-122";type:"Home"} - ListElement { name: "Thomas"; phone:"(917)608-342";type:"Mobile"} - ListElement { name: "Titus Andronicus" ; phone:"(917)608-321";type:"Office"} - ListElement { name: "Toretto" ; phone:"(917)608-3434";type:"Home"} - ListElement { name: "Uhl" ; phone:"(313)444-654";type:"Office"} - ListElement { name: "willi" ; phone:"(313)224-5712";type:"Office"} - ListElement { name: "Wanda" ; phone:"(313)666-6969";type:"Office"} - ListElement { name: "wanda" ; phone:"(313)666-6969";type:"Office"} - ListElement { name: "Zara" ; phone:"(313)231-009";type:"Mobile"} -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/DataStorage.qml b/src/components/qt_hmi/qml_model_qt4/models/DataStorage.qml deleted file mode 100644 index cc5f6fc215..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/DataStorage.qml +++ /dev/null @@ -1,510 +0,0 @@ -/** - * @file DataStorage.qml - * @brief Container for data. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common -import "Internal.js" as Internal -import "Constants.js" as Constants - -QtObject { - - property string contactsFirstLetter // first letter of contact's name that need to find at contact list - property ApplicationModel currentApplication: ApplicationModel { } - property SliderModel uiSlider: SliderModel { } - property PerformAudioPassThruModel uiAudioPassThru: PerformAudioPassThruModel { } - - function getApplication(appId) { - console.log("dataContainer getApplication enter"); - for(var i = 0; i < applicationList.count; i++) { - if(applicationList.get(i).appId === appId) { - console.log("Application found", applicationList.get(i)); - return applicationList.get(i); - } - } - console.log("dataContainer getApplication exit"); - } - - onApplicationListChanged: { - console.log("onApplicationListChanged()"); - setCurrentApplication(appId); - } - - function setCurrentApplication(appId) { - console.log("Enter setCurrentApplication function"); - var oldApplicationContext = applicationContext; - if (currentApplication.appId !== appId) { - applicationContext = false; - } - - for(var i = 0; i < applicationList.count; i++) { - if(applicationList.get(i).appId === appId) { - currentApplication.appId = appId - var application = applicationList.get(i) - currentApplication.appName = application.appName - currentApplication.appType = application.appType - currentApplication.appIcon.source = application.icon - currentApplication.playPauseState = application.playPauseState - currentApplication.options = application.options - currentApplication.softButtons = application.softButtons - currentApplication.customPresets = application.customPresets - - if (application.hmiUIText.mainField1 !== undefined) { - currentApplication.hmiUIText.mainField1 = application.hmiUIText.mainField1 - } - if (application.hmiUIText.mainField2 !== undefined) { - currentApplication.hmiUIText.mainField2 = application.hmiUIText.mainField2 - } - if (application.hmiUIText.mainField3 !== undefined) { - currentApplication.hmiUIText.mainField3 = application.hmiUIText.mainField3 - } - if (application.hmiUIText.mainField4 !== undefined) { - currentApplication.hmiUIText.mainField4 = application.hmiUIText.mainField4 - } - if (application.hmiUIText.statusBar !== undefined) { - currentApplication.hmiUIText.statusBar = application.hmiUIText.statusBar - } - if (application.hmiUIText.mediaTrack !== undefined) { - currentApplication.hmiUIText.mediaTrack = application.hmiUIText.mediaTrack - } - if (application.hmiUIText.image !== undefined) { - currentApplication.hmiUIText.image = application.hmiUIText.image - } - if (application.hmiUITextAlignment !== undefined) { - currentApplication.hmiUITextAlignment = application.hmiUITextAlignment - } - if (application.helpPrompt !== undefined) { - currentApplication.helpPrompt = application.helpPrompt - } - if (application.timeoutPrompt !== undefined) { - currentApplication.timeoutPrompt = application.timeoutPrompt - } - // Check fields with mandatory = false - - currentApplication.deviceName = application.deviceName - currentApplication.isMediaApplication = application.isMediaApplication - currentApplication.turnList = application.turnList - currentApplication.turnListSoftButtons = application.turnListSoftButtons - currentApplication.mediaClock.updateMode = application.mediaClock.updateMode - currentApplication.mediaClock.runningMode = application.mediaClock.runningMode - currentApplication.mediaClock.startTimeForProgress = application.mediaClock.startTimeForProgress - if (application.mediaClock.startTime !== undefined) { - currentApplication.mediaClock.startTime = application.mediaClock.startTime - } - if (application.mediaClock.endTime !== undefined) { - currentApplication.mediaClock.endTime = application.mediaClock.endTime - } - currentApplication.languageTTSVR = application.languageTTSVR - currentApplication.hmiDisplayLanguageDesired = application.hmiDisplayLanguageDesired - // This place is for adding new properties - } - } - applicationContext = oldApplicationContext; - currentApplicationChanged() - console.log("Exit setCurrentApplication function") - } - - function addApplication(app) { - console.log("enter") - applicationList.append({ - appName: app.appName, - ngnMediaScreenAppName: app.ngnMediaScreenAppName, - icon: app.icon, - deviceName: app.deviceName, - appId: app.appId, - hmiDisplayLanguageDesired: app.hmiDisplayLanguageDesired, - isMediaApplication: app.isMediaApplication, - appType: app.appType, - helpPrompt: "", - timeoutPrompt: "", - customPresets: app.customPresets ? app.customPresets : [], - playPauseState: 'Pause', - hmiUIText: app.hmiUIText, - hmiUITextAlignment: app.hmiUITextAlignment, - options: [], - turnList: [], - turnListSoftButtons: [], - mediaClock: app.mediaClock, - languageTTSVR: Common.Language.EN_US, - softButtons: [] - // This place is for adding new properties - }) - - if (app.isMediaApplication) { - musicSourceModel.insert(0, { - "title": app.appName, - "qml": "views/SDLPlayerView.qml", - "appId": app.appId - }) - } - - console.log("exit") - } - - function setApplicationProperties(appId, props) { - console.log("Enter setApplicationProperties function"); - var app = getApplication(appId) - for (var p in props) { - if (props[p] !== undefined) { - app[p] = props[p] - } - } - if (currentApplication.appId === appId) { - setCurrentApplication(appId); // copy new values to current application - } - console.log("Exit setApplicationProperties function"); - } - - function removeApplication(appId) { - console.log("enter"); - for (var j = 0; j < musicSourceModel.count; ++j) { - if (musicSourceModel.get(j).appId === appId) { - musicSourceModel.remove(j); - break; - } - } - for (var i = 0; i < applicationList.count; i++) { - if (applicationList.get(i).appId === appId) { - applicationList.remove(i); - break; - } - } - console.log("exit"); - } - - property int systemContext - property int hmiContext - property bool applicationContext: false - property bool applicationSavedContext - property string routeText: "" - property PlayerState cdPlayerState: PlayerState { - playPauseState: 'Pause' - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - } - property PlayerState ipodPlayerState: PlayerState { - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - playPauseState: 'Pause' - } - property PlayerState usbPlayerState: PlayerState { - playPauseState: 'Pause' - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - } - property PlayerState linePlayerState: PlayerState { - playPauseState: 'Pause' - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - } - property PlayerState btPlayerState: PlayerState { - playPauseState: 'Pause' - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - } - property PlayerState amPlayerState: PlayerState { - songName: "So Far Around The Bend" - albumName: "The National" - presets: [ "1130", "950", "760", "1270", "1400", "2100", "940", "1001" ] - } - property PlayerState fmPlayerState: PlayerState { - songName: "So Far Around The Bend" - albumName: "The National" - presets: ["96.3", "107.9", "104.3", "101.9", "105.3", "100.5", "107.9", "103.4"] - } - property PlayerState siriusPlayerState: PlayerState { - songName: "So Far Around The Bend" - albumName: "The National" - presets: [ "Lithium", "Spectrum", "ESPN", "Alt Nation", "Lithium", "Spectrum", "ESPN", "Alt Nation" ] - } - - property bool hmiVRAvailable: false - property bool hmiTTSAvailable: false - property bool hmiNavigationAvailable: false - property bool hmiVehicleInfoAvailable: false - property bool hmiUIAvailable: false - - property int hmiUILanguage: Common.Language.EN_US - property int hmiTTSVRLanguage: Common.Language.EN_US - - property ListModel deviceList: ListModel { } - property ListModel applicationList: ListModel { } - - property ListModel vrCommands: ListModel {} - - property ListModel vrHelp: ListModel {} - - function reset () { - console.log("dataContainer reset enter"); - routeText = "" - console.log("dataContainer reset exit"); - } - - function changeRegistrationUI (language, appID) { - console.log("dataContainer changeRegistrarionUI enter"); - setApplicationProperties(appID, { hmiDisplayLanguageDesired: language }); - console.log("dataContainer changeRegistrarionUI exit"); - } - - function changeRegistrationTTSVR(language, appID) { - console.log("dataContainer changeRegistrationTTSVR enter"); - setApplicationProperties(appID, { languageTTSVR: language }); - console.log("dataContainer changeRegistrationTTSVR exit"); - } - - function addCommand (cmdID, menuParams, cmdIcon, appID) { - console.debug("enter: " + - cmdID + - ", " + - (menuParams ? - "{" + menuParams.parentID + ", " + menuParams.position + ", " + menuParams.menuName + "}" : menuParams) + - ", " + - (cmdIcon ? - "{" + cmdIcon.value + ", " + cmdIcon.imageType + "}" : cmdIcon) + - ", " + - appID - ) - var commandToAddPosition - var app = getApplication(appID) - var currentMenu = app.options - var maximumCommands = Constants.maximumCommandsPerSubmenu - var index = 0 - - if ((menuParams) && (menuParams.parentID)) { // Work with sub menu - var parentNotFound = true - for (var optionIndex = 0; optionIndex < app.options.count; ++optionIndex) { - if ((app.options.get(optionIndex).type === Internal.MenuItemType.MI_SUBMENU) && (app.options.get(optionIndex).id === menuParams.parentID)) { - currentMenu = app.options.get(optionIndex).subMenu - parentNotFound = false - maximumCommands += 1 - } - } - if (parentNotFound) { - console.log("UI::addCommand(): parentID " + menuParams.parentID + " not found") - } - } - - if (currentMenu.count < maximumCommands) { - if (menuParams && (menuParams.position !== undefined)) { - commandToAddPosition = menuParams.position - } else { - commandToAddPosition = Constants.positionOfElementWithoutPosition - } - for (var i = 0; i < currentMenu.count; i++) { - if (commandToAddPosition >= currentMenu.get(i).position) { - index = i + 1 - } else { - break - } - } - currentMenu.insert( index, - { id: cmdID, - name: menuParams.menuName, - type: Internal.MenuItemType.MI_NODE, - position: commandToAddPosition, - icon: cmdIcon ? cmdIcon : {}, - subMenu: [] - }) - } else { - console.log("addCommand(): too many commands in menu: ", menuParams.parentID, " rejecting") - throw Common.Result.REJECTED - } - console.debug("exit") - } - - function deleteCommand (cmdID, appID) { - console.debug("enter: " + cmdID + ", " + appID) - for (var optionIndex = 0; optionIndex < getApplication(appID).options.count; ++optionIndex) { - var option = getApplication(appID).options.get(optionIndex) - if (option.type === Internal.MenuItemType.MI_NODE) { - if (option.id === cmdID) { - getApplication(appID).options.remove(optionIndex) - break - } - } - if (option.type === Internal.MenuItemType.MI_SUBMENU) { - var subMenu = option.subMenu - var idMatchFound = false - for (var subOptionIndex = 0; subOptionIndex < subMenu.count; ++subOptionIndex) { - if (subMenu.get(subOptionIndex).id === cmdID) { - idMatchFound = true - if (subMenu !== currentApplication.currentSubMenu) { - subMenu.remove(subOptionIndex) - } - else { - console.log("UI::deleteCommand(): cannot remove item from current submenu") - throw Common.Result.IN_USE - } - break - } - } - if (idMatchFound) { - break - } - } - } - console.debug("exit") - } - - function addSubMenu (menuID, menuParams, appID) { - console.debug("enter: " + menuID + ", {" + menuParams.parentID + ", " + menuParams.position + ", " + menuParams.menuName + "}, " + appID) - var app = getApplication(appID) - var index = 0 - var count = app.options.count - var subMenuToAddPosition - - if (count < Constants.maximumSubmenus) { - if (menuParams.position !== undefined) { - subMenuToAddPosition = menuParams.position - } else { - subMenuToAddPosition = Constants.positionOfElementWithoutPosition - } - for (var i = 0; i < count; i++) { - if (subMenuToAddPosition >= app.options.get(i).position) { - index = i + 1 - } else { - break - } - } - app.options.insert(index, { - "id": menuID, - "name": menuParams.menuName, - "position": subMenuToAddPosition, - "type": Internal.MenuItemType.MI_SUBMENU, - "icon": undefined, - "subMenu": [{ - "id": -1, - "name": menuParams.menuName, - "position": -1, - "type": Internal.MenuItemType.MI_PARENT, - "icon": { - "imageType": Common.ImageType.DYNAMIC, - "value": "../res/nav/turnArrow.png" - }, - "subMenu": getApplication(appID).options - }] - }) - } - else { - console.log("addSubMenu(): too many submenus, rejecting") - throw Common.Result.REJECTED - } - console.debug("exit") - } - - function deleteSubMenu (menuID, appID) { - console.debug("enter: " + menuID + ", " + appID) - for (var optionIndex = 0; optionIndex < getApplication(appID).options.count; ++optionIndex) { - var option = getApplication(appID).options.get(optionIndex) - if ((option.type === Internal.MenuItemType.MI_SUBMENU) && (option.id === menuID)) { - if (option.subMenu !== currentApplication.currentSubMenu) { - getApplication(appID).options.remove(optionIndex) - } - else { - console.log("UI::deleteSubMenu(): cannot remove current submenu") - throw Common.Result.IN_USE - } - break - } - } - console.debug("exit") - } - - function setVrHelp (vrHelp) { - this.vrHelp.clear() - var index - for (var i = 0; i < vrHelp.length; ++i) { - index = 0 -// sort by simple inserts - while ((index < this.vrHelp.count) && (this.vrHelp.get(index).position < vrHelp[i].position)) { - ++index - } - this.vrHelp.insert(index, { - "text": vrHelp[i].text, - "icon": vrHelp[i].image ? vrHelp[i].image : {}, - "position": vrHelp[i].position - }) - } - } - - property NavigationModel navigationModel: NavigationModel { } - property VehicleInfoModel vehicleInfoModel: VehicleInfoModel { } - property ScrollableMessageModel scrollableMessageModel: ScrollableMessageModel { } - property bool activeVR: false - - property InteractionModel interactionModel: InteractionModel { - } - - property int driverDistractionState: Common.DriverDistractionState.DD_OFF - onDriverDistractionStateChanged: { - sdlUI.onDriverDistraction(driverDistractionState); - } - property bool activeTTS: false - property variant activePopup - property int popups: 0 - - property bool activeAlert: false - - onActiveVRChanged: setSystemContext() - onActiveAlertChanged: setSystemContext() - onPopupsChanged: setSystemContext() - - function setSystemContext () { - console.debug("enter") - if (popups > 0) { - systemContext = Common.SystemContext.SYSCTXT_HMI_OBSCURED - } - else if (activeAlert) { - systemContext = Common.SystemContext.SYSCTXT_ALERT - } - else if (activeVR) { - systemContext = Common.SystemContext.SYSCTXT_VRSESSION - } - else if (contentLoader.item !== null) { - systemContext = contentLoader.item.systemContext - } - console.debug("exit") - } - property MusicSourceModel musicSourceModel: MusicSourceModel { - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/InteractionModel.qml b/src/components/qt_hmi/qml_model_qt4/models/InteractionModel.qml deleted file mode 100644 index 8da8a035db..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/InteractionModel.qml +++ /dev/null @@ -1,58 +0,0 @@ -/** - * @file InteractionModel.qml - * @brief Interaction model. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Async.js" as Async - -QtObject { - property string initialText - property ListModel choice: ListModel { - } - property int timeout - property variant async - - function performInteraction (initialText, choiceSet, vrHelp, timeout, appID) { - console.debug("enter") - this.initialText = initialText.fieldText - choice.clear() - for (var i = 0; i < choiceSet.length; ++i) { - choice.append({"id": choiceSet[i].choiceID, "name": choiceSet[i].menuName ? choiceSet[i].menuName : "choiceID = " + choiceSet[i].choiceID, image: choiceSet[i].image}) - } - this.timeout = timeout - interactionPopup.activate() - async = new Async.AsyncCall() - console.debug("exit") - return async - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/Internal.js b/src/components/qt_hmi/qml_model_qt4/models/Internal.js deleted file mode 100644 index 4a1ebc625a..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/Internal.js +++ /dev/null @@ -1,163 +0,0 @@ -/** - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -var MenuItemType = { - MI_NODE: 0, - MI_SUBMENU: 1, - MI_PARENT: 2 -} - -function activePageChoose(flickElement, pages) { - if (flickElement.contentX <= 0) { - return 0 - } - else if ( (flickElement.contentWidth - flickElement.contentX) < flickElement.width) { - return pages -1 - } - else { - if ( (flickElement.contentX % flickElement.width) >= (1/6 * flickElement.width)) { - return Math.ceil(flickElement.contentX / flickElement.width) - } - else if ( (flickElement.contentX % flickElement.width) > 0) { - return Math.floor(flickElement.contentX / flickElement.width) - } - } -} - -var MediaClockUpdateMode = { - MCU_COUNTUP: 0, - MCU_COUNTDOWN: 1, -} - -var MediaClockRunningMode = { - MCR_RUNNING: 0, - MCR_STOPPED: 1 -} - -function appendVrHelpItem (arrayElement, index, array) { - this.append({ - text: arrayElement.text, - image: arrayElement.image ? arrayElement.image : "", - position: arrayElement.position - }) -} - -function checkBit(value, bitPosition) { - return (value & (1 << bitPosition)) -} - -function getArrayForPresetRow() { - var array = [] - for (var i = 0; i < dataContainer.currentApplication.customPresets.count; i++) { - array.push(dataContainer.currentApplication.customPresets.get(i).text) - } - return array -} - -function pad (string, length, lead) { - if (!lead) { - lead = '0' - } - var paddedString = "" + string - while (paddedString.length < length) { - paddedString = lead + paddedString - } - return paddedString -} - -function hmsTime (hours, minutes, seconds) { - return 60 * (60 * hours + minutes) + seconds -} - -function hmsTimeToString (hmsTime) { - if (hmsTime === -1) { - return "0:00:00" - } - - var _time = hmsTime - var seconds = _time % 60 - _time -= seconds - _time /= 60 - var minutes = _time % 60 - _time -= minutes - _time /= 60 - var hours = _time - var string = "" - string += hours - string += ":" - string += pad(minutes, 2) - string += ":" - string += pad(seconds, 2) - return string -} - -function stringToHmsTime (hmsString) { - console.debug("enter: \"" + hmsString + "\"") - var substrings = hmsString.split(":") - var seconds = substrings.length > 0 ? parseInt(substrings.pop()) : 0 - if (seconds >= 60) { - console.log("incorrect field \"seconds\": " + seconds) - console.debug("exit") - return 0 - } - var minutes = substrings.length > 0 ? parseInt(substrings.pop()) : 0 - if (minutes >= 60) { - console.log("incorrect field \"minutes\": " + minutes) - console.debug("exit") - return 0 - } - var hours = substrings.length > 0 ? parseInt(substrings.pop()) : 0 - console.debug("exit") - return hmsTime(hours, minutes, seconds) -} - -function mediaClockUpdateModeToString (mediaClockUpdateMode) { - switch (mediaClockUpdateMode) { - case MediaClockUpdateMode.MCU_COUNTUP: - return "Internal.MediaClockUpdateMode.MCU_COUNTUP" - case MediaClockUpdateMode.MCU_COUNTDOWN: - return "Internal.MediaClockUpdateMode.MCU_COUNTDOWN" - default: - return "" - } -} - -function mediaClockRunningModeToString (mediaClockRunningMode) { - switch (mediaClockRunningMode) { - case MediaClockRunningMode.MCR_RUNNING: - return "Internal.MediaClockRunningMode.MCR_RUNNING" - case MediaClockRunningMode.MCR_STOPPED: - return "Internal.MediaClockRunningMode.MCR_STOPPED" - default: - return "" - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/MainMenuListModel.qml b/src/components/qt_hmi/qml_model_qt4/models/MainMenuListModel.qml deleted file mode 100644 index 49b4e7fb9a..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/MainMenuListModel.qml +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @file MainMenuListModel.qml - * @brief Main menu list of elements. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 - -ListModel -{ - ListElement { - name: "Climate" - icon: "../res/snow.png" - qml: "./views/ClimateControlView.qml" - } - - ListElement { - name: "Navigation" - icon: "../res/arrow.png" - qml: "./views/NavigationNoRouteGridView.qml" - } - - ListElement { - name: "Media" - icon: "../res/notes.png" - qml: "./views/MusicSourceView.qml" - } - - ListElement { - name: "Preferences" - icon: "../res/gear.png" - qml: "" - } - - ListElement { - name: "Apps" - icon: "../res/apps.png" - qml: "./views/ApplicationListView.qml" - } - - ListElement { - name: "Phone" - icon: "../res/phone/phone.png" - qml: "./views/PhoneMenuGridView.qml" - } - - ListElement { - name: "Car" - icon: "../res/car.png" - qml: "./views/CarMenuGridView.qml" - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/MediaClockModel.qml b/src/components/qt_hmi/qml_model_qt4/models/MediaClockModel.qml deleted file mode 100644 index 8f062008a4..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/MediaClockModel.qml +++ /dev/null @@ -1,112 +0,0 @@ -/** - * @file MediaClockModel.qml - * @brief Media clock model - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "Internal.js" as Internal - -QtObject { - property int updateMode - property int runningMode - property int startTime - property int endTime - property int upperTimeLimit: 60 * 60 * 60 - 1 - property int startTimeForProgress - property real progress - - property Timer timer: Timer { - id: timer - interval: 1000 - repeat: true - onTriggered: onTimer() - } - onRunningModeChanged: { - if (runningMode === Internal.MediaClockRunningMode.MCR_STOPPED) { - timer.stop() - } else { - timer.start() - } - } - - onStartTimeChanged: { - if (startTime === -1) { - progress = 0 - } else { - if (updateMode === Internal.MediaClockUpdateMode.MCU_COUNTUP) { - progress = (endTime !== -1) ? (startTime / endTime) : (startTime / upperTimeLimit) - } else { - progress = (endTime !== -1) ? ( (startTime - endTime) / (startTimeForProgress - endTime) ) - : (startTime / startTimeForProgress) - } - } - } - - function onTimer () { - switch (updateMode) { - case Internal.MediaClockUpdateMode.MCU_COUNTUP: - if (endTime !== -1) { - if (startTime < endTime) { - startTime++ - } else { - timer.stop() - runningMode = Internal.MediaClockRunningMode.MCR_STOPPED - console.debug("count Up timer stopped") - } - } else { - if (startTime < upperTimeLimit) { - startTime++ - } else { - startTime = 0 - } - } - break - case Internal.MediaClockUpdateMode.MCU_COUNTDOWN: - console.debug("count down") - if (--startTime === 0) { - timer.stop() - runningMode = Internal.MediaClockRunningMode.MCR_STOPPED - startTime = endTime = -1 - console.debug("count Down timer stopped") - } - break - } - dataContainer.setApplicationProperties(dataContainer.currentApplication.appId, { - "mediaClock": {startTime: startTime, - endTime: endTime, - updateMode: updateMode, - runningMode: runningMode, - startTimeForProgress: startTimeForProgress - } - }) - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/MusicSourceModel.qml b/src/components/qt_hmi/qml_model_qt4/models/MusicSourceModel.qml deleted file mode 100644 index b01c4cf834..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/MusicSourceModel.qml +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file MusicSourceModel.qml - * @brief Music source menu list of elements. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 - -ListModel -{ - ListElement { - title: "FM" - qml: "./views/FMPlayerView.qml" - appId: 0 - } - ListElement { - title: "AM" - qml: "./views/AMPlayerView.qml" - appId: 0 - } - ListElement { - title: "BT Audio" - qml: "./views/BTPlayerView.qml" - appId: 0 - } - ListElement { - title: "Sirius" - qml: "./views/SiriusPlayerView.qml" - appId: 0 - } - ListElement { - title: "CD" - qml: "./views/CDPlayerView.qml" - appId: 0 - } - ListElement { - title: "iPod" - qml: "./views/IPodPlayerView.qml" - appId: 0 - } - ListElement { - title: "USB" - qml: "./views/UsbPlayerView.qml" - appId: 0 - } - ListElement { - title: "LineIn" - qml: "./views/LineInPlayerView.qml" - appId: 0 - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/NavigationMenuModel.qml b/src/components/qt_hmi/qml_model_qt4/models/NavigationMenuModel.qml deleted file mode 100644 index 963225719e..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/NavigationMenuModel.qml +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @file NavigationMenuModel.qml - * @brief Music source menu list of elements. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -ListModel -{ - ListElement { - title: "Home" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Keyboard" - icon: "../res/buttons/long_oval_btn.png" - qml: "./views/NavigationKeyboardView.qml" - } - ListElement { - title: "Favorites" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Work" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Recent" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "POI" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Scout" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Waze" - icon: "../res/buttons/long_oval_btn.png" - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/NavigationModel.qml b/src/components/qt_hmi/qml_model_qt4/models/NavigationModel.qml deleted file mode 100644 index f9203875d3..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/NavigationModel.qml +++ /dev/null @@ -1,52 +0,0 @@ -/** - * @file NavigationModel.qml - * @brief Model for Navigation. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -QtObject { - property string text1: "" - property string text2: "" - property string totalDistance: "" - property string eta: "" - property string timeToDestination: "" - property variant turnIcon - property variant nextTurnIcon - - property real distanceToManeuver: 0 - property real distanceToManeuverScale: 0 - property bool maneuverComplete - property ListModel softButtons: ListModel {} - property int appId: -1 - property ListModel alertManeuverSoftButtons: ListModel {} -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/PerformAudioPassThruModel.qml b/src/components/qt_hmi/qml_model_qt4/models/PerformAudioPassThruModel.qml deleted file mode 100644 index 8b861d37a2..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/PerformAudioPassThruModel.qml +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @file PerformAudioPassThruModel.qml - * @brief Data model audio pass thru. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -QtObject { - property string appName: "" - property string firstLine: "" - property string secondLine: "" - property int timeout: 0 - property bool running: false -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/PhoneMenuModel.qml b/src/components/qt_hmi/qml_model_qt4/models/PhoneMenuModel.qml deleted file mode 100644 index a191f46e46..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/PhoneMenuModel.qml +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file PhoneMenuModel.qml - * @brief Phone menu list of elements. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 - -ListModel -{ - ListElement { - name: "phone" - icon: "../res/phone/phone.png" - qml: "" - } - ListElement { - name: "contacts" - icon: "../res/phone/contacts.png" - qml: "./views/PhoneKeyboardView.qml" - } - ListElement { - name: "messages" - icon: "../res/phone/messages.png" - qml: "" - } - ListElement { - name: "DND" - icon: "../res/phone/dnd_off.png" - qml: "" - } - ListElement { - name: "texts" - icon: "../res/phone/texts.png" - qml: "" - } - ListElement { - name: "recent" - icon: "../res/phone/recent.png" - qml: "" - } - ListElement { - name: "keyboard" - icon: "../res/phone/keypad.png" - qml: "" - } - ListElement { - name: "more" - icon: "../res/phone/more.png" - qml: "" - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/PlayerState.qml b/src/components/qt_hmi/qml_model_qt4/models/PlayerState.qml deleted file mode 100644 index bbacd49f8c..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/PlayerState.qml +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @file PlayerState.qml - * @brief List of parameters for each player. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 - -// Player state for all players except SDL media player -Item { - // Media players - property string playPauseState - property string albumImage - property string trackNumber - property int songPosition - property string trackName - - // Radio Players - property variant presets: [] - - // Both players - property string songName - property string albumName -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/ScrollableMessageModel.qml b/src/components/qt_hmi/qml_model_qt4/models/ScrollableMessageModel.qml deleted file mode 100644 index 6fd441ac3d..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/ScrollableMessageModel.qml +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @file ScrollableMessageModel.qml - * @brief Model for Scrollable Message. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common - -QtObject { - property string longMessageText: "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" - property ListModel softButtons: ListModel {} - property int appId: -1 - property int timeout: 0 - property variant async - property bool running: false - -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/SettingsStorage.qml b/src/components/qt_hmi/qml_model_qt4/models/SettingsStorage.qml deleted file mode 100644 index 7fb6cfcdd6..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/SettingsStorage.qml +++ /dev/null @@ -1,125 +0,0 @@ -/** - * @file SettingsStorage.qml - * @brief Storage for keeping settings. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common - -Item -{ - property variant sdlLanguagesList: [ - Common.Language.EN_US, - Common.Language.ES_MX, - Common.Language.FR_CA, - Common.Language.DE_DE, - Common.Language.ES_ES, - Common.Language.EN_GB, - Common.Language.RU_RU, - Common.Language.TR_TR, - Common.Language.PL_PL, - Common.Language.FR_FR, - Common.Language.IT_IT, - Common.Language.SV_SE, - Common.Language.PT_PT, - Common.Language.NL_NL, - Common.Language.ZH_TW, - Common.Language.JA_JP, - Common.Language.AR_SA, - Common.Language.KO_KR, - Common.Language.PT_BR, - Common.Language.CS_CZ, - Common.Language.DA_DK, - Common.Language.NO_NO - ] - - property variant displayCapabilities: { - "displayType": Common.DisplayType.GEN2_8_DMA, - "textFields": [ - Common.TextFieldName.mainField1, - Common.TextFieldName.mainField2, - Common.TextFieldName.mainField3, - Common.TextFieldName.mainField4, - Common.TextFieldName.statusBar, - Common.TextFieldName.mediaClock, - Common.TextFieldName.mediaTrack, - Common.TextFieldName.alertText1, - Common.TextFieldName.alertText2, - Common.TextFieldName.alertText3, - Common.TextFieldName.scrollableMessageBody, - Common.TextFieldName.initialInteractionText, - Common.TextFieldName.navigationText1, - Common.TextFieldName.navigationText2, - Common.TextFieldName.ETA, - Common.TextFieldName.totalDistance, - Common.TextFieldName.navigationText, - Common.TextFieldName.audioPassThruDisplayText1, - Common.TextFieldName.audioPassThruDisplayText2, - Common.TextFieldName.sliderHeader, - Common.TextFieldName.sliderFooter, - Common.TextFieldName.notificationText - ], - "mediaClockFormats": [ - Common.MediaClockFormat.CLOCK1, - Common.MediaClockFormat.CLOCK2, - Common.MediaClockFormat.CLOCK3, - Common.MediaClockFormat.CLOCKTEXT1, - Common.MediaClockFormat.CLOCKTEXT2, - Common.MediaClockFormat.CLOCKTEXT3, - Common.MediaClockFormat.CLOCKTEXT4 - ], - "graphicSupported": true, - "imageCapabilities": [ Common.ImageType.DYNAMIC ], - "templatesAvailable": [ "" ], - "screenParams": { - "resolution": { - "resolutionWidth": 800, - "resolutionHeight": 480 - }, - "touchEventAvailable": { - "pressAvailable": true, - "multiTouchAvailable": true, - "doublePressAvailable": true - } - }, - "numCustomPresetsAvailable": 6 - } - - property variant softButtonCapabilities: { - "shortPressAvailable": true, - "longPressAvailable": true, - "upDownAvailable": true, - "imageSupported": true - } - - property variant buttonCapabilities: [] -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/SliderModel.qml b/src/components/qt_hmi/qml_model_qt4/models/SliderModel.qml deleted file mode 100644 index d335c9eb2a..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/SliderModel.qml +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @file SliderModel.qml - * @brief Data model for slider. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -QtObject { - property string appName: "" - property string header: "" - property variant footer: [] - property int numTicks: 0 - property int position: 0 - property int timeout: 0 - property bool running: false -} diff --git a/src/components/qt_hmi/qml_model_qt4/models/VehicleInfoModel.qml b/src/components/qt_hmi/qml_model_qt4/models/VehicleInfoModel.qml deleted file mode 100644 index f5c309880c..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/models/VehicleInfoModel.qml +++ /dev/null @@ -1,234 +0,0 @@ -/** - * @file VehicleInfoModel.qml - * @brief Data model for vehicle info. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common - -QtObject { - id: vehicleInfo - property real speed: 80.1 - property int rpm: 5000 - property real fuelLevel: 0.2 - property int fuelLevel_State: Common.ComponentVolumeStatus.CVS_LOW - property real instantFuelConsumption: 2.2 - property int driverBraking: Common.VehicleDataEventStatus.VDES_NO_EVENT - property int wiperStatus: Common.WiperStatus.OFF - property real engineTorque: 2.5 - property real accPedalPosition: 0.5 - property real steeringWheelAngle: 1.2 - property real externalTemperature: 40.0 - property string vin: '52-452-52-752' - property int odometer: 2 - property int prndl: Common.PRNDL.FIFTH - - property variant headLampStatus: { - "lowBeamsOn": false, - "highBeamsOn": false, - "ambientLightSensorStatus": Common.AmbientLightStatus.TWILIGHT_1 - } - property variant deviceStatus: { - 'voiceRecOn': false, - 'btIconOn': false, - 'callActive': false, - 'phoneRoaming': false, - 'textMsgAvailable': false, - 'battLevelStatus': Common.DeviceLevelStatus.ZERO_LEVEL_BARS, - 'stereoAudioOutputMuted': false, - 'monoAudioOutputMuted': false, - 'signalLevelStatus': Common.DeviceLevelStatus.ZERO_LEVEL_BARS, - 'primaryAudioSource': Common.PrimaryAudioSource.NO_SOURCE_SELECTED, - 'eCallEventActive': false - } - property variant bodyInformation: { - 'parkBrakeActive': false, - 'ignitionStableStatus': Common.IgnitionStableStatus.IGNITION_SWITCH_NOT_STABLE, - 'ignitionStatus': Common.IgnitionStatus.IS_UNKNOWN - } - property variant beltStatus: { - 'driverBeltDeployed': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'passengerBeltDeployed': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'passengerBuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'driverBuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'leftRow2BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'passengerChildDetected': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'rightRow2BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'middleRow2BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'middleRow3BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'leftRow3BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'rightRow3BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'leftRearInflatableBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'rightRearInflatableBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'middleRow1BeltDeployed': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'middleRow1BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - } - property variant tirePressure: { - 'pressureTelltale': Common.WarningLightStatus.WLS_ON, - 'leftFront': { status: Common.ComponentVolumeStatus.CVS_NORMAL}, - 'rightFront': { status: Common.ComponentVolumeStatus.CVS_UNKNOWN }, - 'leftRear': { status: Common.ComponentVolumeStatus.CVS_NORMAL }, - 'rightRear': { status: Common.ComponentVolumeStatus.CVS_UNKNOWN }, - 'innerLeftRear': { status: Common.ComponentVolumeStatus.CVS_UNKNOWN }, - 'innerRightRear': { status: Common.ComponentVolumeStatus.CVS_UNKNOWN } - } - property variant gps: { - 'longitudeDegrees': 42.3293, - 'latitudeDegrees': -83.0464, - 'utcYear': 2013, - 'utcMonth': 2, - 'utcDay': 14, - 'utcHours': 13, - 'utcMinutes': 16, - 'utcSeconds': 54, - 'compassDirection': Common.CompassDirection.SOUTHWEST, - 'pdop': 4, - 'hdop': 5, - 'vdop': 6, - 'actual': false, - 'satellites': 8, - 'dimension': Common.Dimension.Dimension_2D, - 'altitude': 7, - 'heading': 173, - 'speed': 2 - } - property variant ecuDIDData: { - 'data1': 'ECU 1 Test Data', - 'data2': 'ECU 2 Test Data' - } - property variant eCallInfo: { - "eCallNotificationStatus" : Common.VehicleDataNotificationStatus.VDNS_NORMAL, - "auxECallNotificationStatus" : Common.VehicleDataNotificationStatus.VDNS_ACTIVE, - "eCallConfirmationStatus" : Common.ECallConfirmationStatus.ECCS_NORMAL - } - property variant airbagStatus: { - "driverAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NO_EVENT, - "driverSideAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NO, - "driverCurtainAirbagDeployed" : Common.VehicleDataEventStatus.VDES_YES, - "passengerAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NOT_SUPPORTED, - "passengerCurtainAirbagDeployed" : Common.VehicleDataEventStatus.VDES_FAULT, - "driverKneeAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NO, - "passengerSideAirbagDeployed" : Common.VehicleDataEventStatus.VDES_YES, - "passengerKneeAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NOT_SUPPORTED - } - property variant emergencyEvent: { - "emergencyEventType" : Common.EmergencyEventType.EET_NO_EVENT, - "fuelCutoffStatus" : Common.EmergencyEventType.EET_FRONTAL, - "rolloverEvent" : Common.EmergencyEventType.EET_SIDE, - "maximumChangeVelocity" : Common.EmergencyEventType.EET_REAR, - "multipleEvents" : Common.EmergencyEventType.EET_ROLLOVER - } - property variant clusterModeStatus: { - "powerModeActive" : true, - "powerModeQualificationStatus" : Common.PowerModeQualificationStatus.POWER_MODE_UNDEFINED, - "carModeStatus" : Common.CarModeStatus.CMS_NORMAL, - "powerModeStatus" : Common.PowerModeStatus.KEY_OUT - } - property variant myKey: { - "e911Override": Common.VehicleDataStatus.VDS_NO_DATA_EXISTS - } - - - function sendGpsChange(){ - sdlVehicleInfo.onGps(vehicleInfo.gps) - } - function sendSpeedChange(){ - sdlVehicleInfo.onSpeed(vehicleInfo.speed) - } - function sendRpmChange(){ - sdlVehicleInfo.onRpm(vehicleInfo.rpm) - } - function sendFuelLevelChange(){ - sdlVehicleInfo.onFuelLevel(vehicleInfo.fuelLevel) - } - function sendFuelLevel_StateChange(){ - sdlVehicleInfo.onFuelLevel_State(vehicleInfo.fuelLevel_State) - } - function sendInstantFuelConsumptionChange(){ - sdlVehicleInfo.onInstantFuelConsumption(vehicleInfo.instantFuelConsumption) - } - function sendExternalTemperatureChange(){ - sdlVehicleInfo.onExternalTemperature(vehicleInfo.externalTemperature) - } - function sendPrndlChange() { - if (dataContainer.vehicleInfoModel.prndl !== -1) - {sdlVehicleInfo.onPrndl(vehicleInfo.prndl)} - } - function sendTirePressureChange(){ - sdlVehicleInfo.onTirePressure(vehicleInfo.tirePressure) - } - function sendOdometerChange(){ - sdlVehicleInfo.onOdometer(vehicleInfo.odometer) - } - function sendBeltStatusChange(){ - sdlVehicleInfo.onBeltStatus(vehicleInfo.beltStatus) - } - function sendBodyInformationChange(){ - sdlVehicleInfo.onBodyInformation(vehicleInfo.bodyInformation) - } - function sendDeviceStatusChange(){ - sdlVehicleInfo.onDeviceStatus(vehicleInfo.deviceStatus) - } - function sendDriverBrakingChange(){ - sdlVehicleInfo.onDriverBraking(vehicleInfo.driverBraking) - } - function sendWiperStatusChange(){ - sdlVehicleInfo.onWiperStatus(vehicleInfo.wiperStatus) - } - function sendHeadLampStatusChange(){ - sdlVehicleInfo.onHeadLampStatus(vehicleInfo.headLampStatus) - } - function sendEngineTorqueChange(){ - sdlVehicleInfo.onEngineTorque(vehicleInfo.engineTorque) - } - function sendAccPedalPositionChange(){ - sdlVehicleInfo.onAccPedalPosition(vehicleInfo.accPedalPosition) - } - function sendSteeringWheelAngleChange(){ - sdlVehicleInfo.onSteeringWheelAngle(vehicleInfo.steeringWheelAngle) - } - function sendECallInfoChange(){ - sdlVehicleInfo.onECallInfo(vehicleInfo.eCallInfo) - } - function sendAirbagStatusChange(){ - sdlVehicleInfo.onAirbagStatus(vehicleInfo.airbagStatus) - } - function sendEmergencyEventChange(){ - sdlVehicleInfo.onEmergencyEvent(vehicleInfo.emergencyEvent) - } - function sendClusterModeStatusChange(){ - sdlVehicleInfo.onClusterModeStatus(vehicleInfo.clusterModeStatus) - } - function sendMyKeyChange(){ - sdlVehicleInfo.onMyKey(vehicleInfo.myKey) - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/AlertWindow.qml b/src/components/qt_hmi/qml_model_qt4/popups/AlertWindow.qml deleted file mode 100644 index 70e7ba29ef..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/AlertWindow.qml +++ /dev/null @@ -1,285 +0,0 @@ -/** - * @file AlertWindow.qml - * @brief Alert popup window - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -Rectangle { - id: alertWindow - property date lastAlertTime - property variant softButtons - property int appId - property string popUpName // TODO{ALESHIN}: No requerments for closePopUp, if alert couldn't be closed by closePopUp request - delete everywhere - - color: "transparent" - - property variant async - - Rectangle { - id: rectangle - - anchors.centerIn: parent - color: "black" - border.color: "white" - - width: alertContent.width + 60 - height: alertContent.height + 60 - - property alias alertString: alert.text - property alias appNameString: appName.text - property int duration - - Column { - id: alertContent - anchors.centerIn: parent - spacing: 20 - - Text { - id: appName - anchors.horizontalCenter: parent.horizontalCenter - color: "white" - font.pointSize: 16 - } - - Row { - width: Constants.alertWidth - spacing: 20 - - Image { - id: alertLogo - source: "../res/warning.png" - } - - Text { - id: alert - width: parent.width - alertLogo.width - parent.spacing - clip: true - color: "white" - font.pointSize: 16 - } - } - - Rectangle { - id: progressIndicator - color: "white" - height: 10 - } - - Column { - Item { - width: Constants.alertWidth - height: alertButton1.visible ? alertButton1.height : 0 - - SoftButton { - id: alertButton1 - appId: alertWindow.appId - button: softButtons && softButtons.length > 0 ? softButtons[0] : undefined - anchors.left: parent.left - anchors.right: alertButton2.visible ? alertButton2.left : parent.right - width: Constants.alertWidth / 2 - onPressed: { alertWindow.keep = true; } - onReleased: { alertWindow.keep = false; } - onKeepContext: { - alertWindow.restart(); - sdlUI.onResetTimeout(appId, "UI.Alert") - } - onDefaultAction: { alertWindow.complete(Common.Result.SUCCESS); } - onStealFocus: { - contentLoader.go("views/SDLPlayerView.qml", appId); - alertWindow.complete(Common.Result.SUCCESS); - } - } - SoftButton { - id: alertButton2 - appId: alertWindow.appId - button: softButtons && softButtons.length > 1 ? softButtons[1] : undefined - anchors.right: parent.right - width: Constants.alertWidth / 2 - onPressed: { alertWindow.keep = true; } - onReleased: { alertWindow.keep = false; } - onKeepContext: { - alertWindow.restart(); - sdlUI.onResetTimeout(appId, "UI.Alert") - } - onDefaultAction: { alertWindow.complete(Common.Result.SUCCESS); } - onStealFocus: { - contentLoader.go("views/SDLPlayerView.qml", appId); - alertWindow.complete(Common.Result.SUCCESS); - } - } - } - Item { - width: Constants.alertWidth - height: alertButton3.visible ? childrenRect.height : 0 - SoftButton { - id: alertButton3 - appId: alertWindow.appId - button: softButtons && softButtons.length > 2 ? softButtons[2] : undefined - anchors.left: parent.left - anchors.right: alertButton4.visible ? alertButton4.left : parent.right - width: Constants.alertWidth / 2 - onPressed: { alertWindow.keep = true; } - onReleased: { alertWindow.keep = false; } - onKeepContext: { - alertWindow.restart(); - sdlUI.onResetTimeout(appId, "UI.Alert") - } - onDefaultAction: { alertWindow.complete(Common.Result.SUCCESS); } - onStealFocus: { - contentLoader.go("views/SDLPlayerView.qml", appId); - alertWindow.complete(Common.Result.SUCCESS); - } - } - SoftButton { - id: alertButton4 - appId: alertWindow.appId - button: softButtons && softButtons.length > 3 ? softButtons[3] : undefined - anchors.right: parent.right - width: Constants.alertWidth / 2 - onPressed: { alertWindow.keep = true; } - onReleased: { alertWindow.keep = false; } - onKeepContext: { - alertWindow.restart(); - sdlUI.onResetTimeout(appId, "UI.Alert") - } - onDefaultAction: { alertWindow.complete(Common.Result.SUCCESS); } - onStealFocus: { - contentLoader.go("views/SDLPlayerView.qml", appId); - alertWindow.complete(Common.Result.SUCCESS); - } - } - } - } - } - - SequentialAnimation { - id: animation - PropertyAction { target: progressIndicator; property: "width"; value: alertContent.width } - PropertyAnimation { - id: shrinkProgressAnimation - target: progressIndicator - property: "width" - to: 0 - duration: rectangle.duration - } - } - } - - Timer { - id: timer - onTriggered: { - complete(Common.Result.SUCCESS) - } - } - - function alert (alertStrings, duration, showIndicator, sButtons, applicationId) { - if (timer.running) { // we have alert already - var currentTime = new Date() - var timeFromLastAlert = currentTime - lastAlertTime - var timeLeft = timer.interval - timeFromLastAlert - var discreteInMilliseconds = 1000 // wish to round left time to integer seconds - var timeLeftRounded = discreteInMilliseconds * Math.ceil(timeLeft / discreteInMilliseconds) - return timeLeftRounded - } - else { - lastAlertTime = new Date(); - appId = applicationId - rectangle.appNameString = dataContainer.getApplication(appId).appName; - softButtons = sButtons; - rectangle.alertString = alertStrings.join('\n'); - timer.interval = duration; - rectangle.duration = duration; - timer.start(); - show(); - - progressIndicator.visible = !!showIndicator - progressIndicator.width = alertContent.width - console.log("ProgressIndicator.width:", progressIndicator.width) - animation.start() - } - } - - function show () { - dataContainer.activeAlert = true - dataContainer.applicationSavedContext = dataContainer.applicationContext - visible = true - } - - function complete (reason, data) { - if (!keep) { - hide() - switch (reason) { - case Common.Result.SUCCESS: - DBus.sendReply(async, { __retCode: Common.Result.SUCCESS, __message: "UI.Alert" }) - break - // For other cases - } - } - timer.stop() - } - - function hide() { - console.debug(popUpName, "HIDE") - dataContainer.activeAlert = false - dataContainer.applicationContext = dataContainer.applicationSavedContext - visible = false - } - - function restart() { - animation.restart(); - timer.restart(); - } - - property bool keep: false - - onKeepChanged: { - if (visible && !keep && !timer.running) { - hide() - } - } - - onVisibleChanged: { - if (visible) { - dataContainer.activePopup.push(popUpName) - } else { - for (var i in dataContainer.activePopup) { - if (dataContainer.activePopup[i] === popUpName) { - dataContainer.activePopup.splice(i, 1) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/ContextPopup.qml b/src/components/qt_hmi/qml_model_qt4/popups/ContextPopup.qml deleted file mode 100644 index a1ef64144d..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/ContextPopup.qml +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @file ContextPopup.qml - * @brief Popup view with system context. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 - -PopUp { - function show() { - console.debug("enter") - if (!visible) { // must not increment counter if show() called for visible popup - visible = true; - dataContainer.popups++ - } - console.debug("exit") - } - - function hide() { - console.debug("enter") - console.debug(popUpName, "HIDE") - if (visible) { // must not decrement counter if hide() called for invisible popup - visible = false; - dataContainer.popups-- - } - console.debug("exit") - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/ExitAllApplicationsPopup.qml b/src/components/qt_hmi/qml_model_qt4/popups/ExitAllApplicationsPopup.qml deleted file mode 100644 index 17e5de50b7..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/ExitAllApplicationsPopup.qml +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @file ExitAllApplicationsPopup.qml - * @brief Popup "Exit all applications" - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../controls" - -PopUp { - function complete(reason){ - hide() - } - - Item { - ListModel { - id: reasonExit - - Component.onCompleted: { - for (var name in Common.ApplicationsCloseReason) { - append({name: name}); - } - } - } - } - - Column - { - anchors.centerIn: parent - Row { - Text { - text: "Select reason: " - color: "white" - } - - ComboBox { - id: reasonComboBox - model: reasonExit - } - z: 1000 - } - OvalButton { - text: "Exit" - anchors.horizontalCenter: parent.horizontalCenter - onClicked: { - sdlBasicCommunication.onExitAllApplications(Common.ApplicationsCloseReason[reasonComboBox.currentText]) - hide() - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/InteractionPopup.qml b/src/components/qt_hmi/qml_model_qt4/popups/InteractionPopup.qml deleted file mode 100644 index 7a5c53501e..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/InteractionPopup.qml +++ /dev/null @@ -1,103 +0,0 @@ -/** - * @file InteractionPopup.qml - * @brief Interaction popup view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -ContextPopup { - Text { - id: initialText - text: dataContainer.interactionModel.initialText - anchors.top: parent.top - anchors.topMargin: Constants.popupMargin - anchors.left: parent.left - anchors.leftMargin: Constants.popupMargin - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - ListView { - anchors.top: initialText.bottom - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.popupMargin - model: dataContainer.interactionModel.choice - delegate: OvalButton { - width: parent.width - text: name - icon: image - onClicked: { - complete(Common.Result.SUCCESS, {"choiceID": id}) - } - } - } - - Item { - Timer { - id: timer - onTriggered: { - complete(Common.Result.TIMED_OUT) - } - } - } - - function activate () { - console.debug("enter") - timer.interval = dataContainer.interactionModel.timeout - timer.start() - show() - console.debug("exit") - } - - function complete (reason, data) { - console.debug("enter") - switch (reason) { - case Common.Result.SUCCESS: - DBus.sendReply(dataContainer.interactionModel.async, data) - break - case Common.Result.ABORTED: - DBus.sendReply(dataContainer.interactionModel.async, { __retCode: Common.Result.ABORTED }) - break - case Common.Result.TIMED_OUT: - DBus.sendReply(dataContainer.interactionModel.async, { __retCode: Common.Result.TIMED_OUT }) - break - } - timer.stop() - hide() - console.debug("exit") - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/PerformAudioPassThruPopup.qml b/src/components/qt_hmi/qml_model_qt4/popups/PerformAudioPassThruPopup.qml deleted file mode 100644 index e65519d363..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/PerformAudioPassThruPopup.qml +++ /dev/null @@ -1,149 +0,0 @@ -/** - * @file PerformAudioPassThruPopup.qml - * @brief Popup for audio pass thru - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../controls" - -ContextPopup { - property variant async - - function showAudioPassThru(){ - console.debug("entered") - dataContainer.uiAudioPassThru.running = true - show() - if (dataContainer.uiAudioPassThru.timeout) { - timer.start() - } - console.debug("exited") - } - - function complete(reason){ - console.debug("enter", reason) - timer.stop() - dataContainer.uiAudioPassThru.timeout = 0 - dataContainer.uiAudioPassThru.running = false - switch (reason) { - case Common.Result.ABORTED: - console.debug("exit with abort") - DBus.sendError(async, Common.Result.ABORTED) - break; - case Common.Result.SUCCESS: - console.debug("exit with success") - DBus.sendReply(async, {}) - break; - case Common.Result.RETRY: - console.debug("exit with retry") - DBus.sendError(async, Common.Result.RETRY) - break; - } - hide() - } - - - Column { - spacing: Constants.generalSpacing - anchors.centerIn: parent - Timer { - id: timer - interval: dataContainer.uiAudioPassThru.timeout - onTriggered: { - complete(Common.Result.SUCCESS) - } - } - - Text { - id: appNameText - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiAudioPassThru.appName - color: Constants.primaryColor - font.pixelSize: Constants.fontSize * 2 - } - - Row { - spacing: Constants.generalSpacing - Image { - source: "../res/controlButtons/vrImage.png" - } - - Column { - Text { - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiAudioPassThru.firstLine - color: Constants.audioPassThruTextColor - font.pixelSize: Constants.fontSize - } - Text { - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiAudioPassThru.secondLine - color: Constants.audioPassThruTextColor - font.pixelSize: Constants.fontSize - } - } - } - - - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: Constants.generalSpacing - - OvalButton { - text: "Retry" - fontSize: Constants.fontSize - onClicked: { - complete(Common.Result.RETRY) - } - } - - OvalButton { - text: "Done" - fontSize: Constants.fontSize - onClicked: { - complete(Common.Result.SUCCESS) - } - } - } - - OvalButton { - text: "Close" - anchors.horizontalCenter: parent.horizontalCenter - onClicked: { - console.debug("enter") - complete(Common.Result.ABORTED) - console.debug("exit") - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/PopUp.qml b/src/components/qt_hmi/qml_model_qt4/popups/PopUp.qml deleted file mode 100644 index 07f8c98011..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/PopUp.qml +++ /dev/null @@ -1,94 +0,0 @@ -/** - * @file PopUp.qml - * @brief General popup view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -Item { - default property alias content: content.children - property int padding: Constants.popUpPadding - property string popUpName - - visible: false - - width: Constants.popupWidth - height: Constants.popupHeigth - - MouseArea { anchors.fill: parent } - - Rectangle { - width: parent.width - padding / 2 - height: parent.height - padding / 2 - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - color: Constants.secondaryColor - border.width: 1 - border.color: Constants.popUpBorderColor - radius: padding - Rectangle { - id: content - width: parent.width - padding - height: parent.height - padding - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - color: Constants.transparentColor - } - } - - onVisibleChanged: { - if (popUpName) { - if (visible) { - dataContainer.activePopup.push(popUpName) - } else { - for (var i in dataContainer.activePopup) { - if (dataContainer.activePopup[i] === popUpName) { - dataContainer.activePopup.splice(i, 1) - } - } - } - } - } - - function show() { - console.debug("enter"); - visible = true; - console.debug("exit"); - } - - function hide() { - console.debug("enter"); - visible = false; - console.debug("exit"); - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/SliderPopup.qml b/src/components/qt_hmi/qml_model_qt4/popups/SliderPopup.qml deleted file mode 100644 index 6dcd222ed3..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/SliderPopup.qml +++ /dev/null @@ -1,214 +0,0 @@ -/** - * @file ExitAllApplicationsPopup.qml - * @brief Popup "Exit all applications" - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../controls" - -ContextPopup { - property variant async - property int position: 1 - /** - * Test Support Section - */ - property int resultCode: -1 - signal onReady - /** - * Test Support Section End - */ - - function showSlider(){ - console.debug("enter") - - dataContainer.uiSlider.running = true - dataContainer.applicationSavedContext = dataContainer.applicationContext - if(dataContainer.uiSlider.footer.length === 0 || dataContainer.uiSlider.position === 0 ) { - footerText.text = "" - } else { - footerText.text = dataContainer.uiSlider.footer.length === 1 ? dataContainer.uiSlider.footer[0] : dataContainer.uiSlider.footer[dataContainer.uiSlider.position - 1] - } - position = dataContainer.uiSlider.position - show() - timer.start() - onReady() - console.debug("exit") - } - - function complete(reason){ - console.debug("enter reason = ", reason) - timer.stop() - dataContainer.applicationContext = dataContainer.applicationSavedContext - dataContainer.uiSlider.running = false - switch(reason) { - case Common.Result.ABORTED: - console.debug("aborted position is", position) - resultCode = Common.Result.ABORTED - DBus.sendReply(async, {__retCode: resultCode, sliderPosition: position}) - break - case Common.Result.SUCCESS: - console.debug("send position", position) - resultCode = Common.Result.SUCCESS - dataContainer.uiSlider.position = position - DBus.sendReply(async, {sliderPosition:position}) - break - default: - break - } - hide() - position = 1 - console.debug("exit") - } - - - Column - { - spacing: Constants.generalSpacing - anchors.centerIn: parent - Timer { - id: timer - interval: dataContainer.uiSlider.timeout - onTriggered: { - console.debug("triggered") - complete(Common.Result.SUCCESS) - } - } - - Text { - id: appNameText - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiSlider.appName - color: Constants.primaryColor - font.pixelSize: Constants.fontSize * 2 - } - - Text { - id: headerText - width: borderRectangle.width - elide: Text.ElideRight - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiSlider.header - color: Constants.sliderTextColor - font.pixelSize: Constants.fontSize * 2 - } - - Rectangle { - id: borderRectangle - width: Constants.sliderBarWidth - height: Constants.sliderBarHeight - anchors.horizontalCenter: parent.horizontalCenter - border.color: Constants.sliderBarBorderColor - border.width: Constants.sliderBarBorderWidth - radius: Constants.sliderBarRadius - color: "black" - - Rectangle { - id: rectangle - color: Constants.sliderBarFillColor - height: parent.height - border.color: parent.border.color - border.width: parent.border.width - radius: parent.radius - - onVisibleChanged: { - var tickWidth = borderRectangle.width / dataContainer.uiSlider.numTicks - rectangle.width = dataContainer.uiSlider.position * tickWidth - } - } - - MouseArea{ - id: mouseArea - anchors.fill: parent - onClicked: { - onPositionChanged(mouse) - } - - onPositionChanged: { - if(mouseX <= 0){ - rectangle.width = borderRectangle.width / dataContainer.uiSlider.numTicks - position = 1 - } - - if(mouseX > borderRectangle.width) { - rectangle.width = borderRectangle.width - position = dataContainer.uiSlider.numTicks - } - - if(mouseX > 0 && mouseX < borderRectangle.width) { - var tickWidth = borderRectangle.width / dataContainer.uiSlider.numTicks - position = Math.ceil(mouseX / tickWidth) - rectangle.width = position * tickWidth - } - - if(dataContainer.uiSlider.footer.length > 1){ - footerText.text = dataContainer.uiSlider.footer[position - 1] - } - } - } - } - - Text { - id:footerText - width: borderRectangle.width - elide: Text.ElideRight - anchors.horizontalCenter: parent.horizontalCenter - text: "" - color: Constants.sliderTextColor - font.pixelSize: Constants.fontSize * 2 - } - - OvalButton { - text: "Close" - anchors.horizontalCenter: parent.horizontalCenter - onClicked: { - console.debug("enter") - complete(Common.Result.ABORTED) - console.debug("exit") - } - } - } - - function getTimer() { - return timer - } - function getBackButton() { - return backButton - } - function getFooterText() { - return footerText - } - function getBorderRectangle() { - return borderRectangle - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/TBTClientStatePopUp.qml b/src/components/qt_hmi/qml_model_qt4/popups/TBTClientStatePopUp.qml deleted file mode 100644 index 9a833b19e7..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/TBTClientStatePopUp.qml +++ /dev/null @@ -1,71 +0,0 @@ -/** - * @file TBTClientStatePopUp.qml - * @brief Popup view for TBT interface (list of states). - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -PopUp { - Item { - ListModel { - id: tbtState - - Component.onCompleted: { - for (var name in Common.TBTState) { - append({name: name}); - } - } - } - } - Text { - text: "TBT Client State" - verticalAlignment: Text.AlignVCenter - anchors.right: parent.right - anchors.left: parent.left - anchors.top: parent.top - color: Constants.primaryColor - } - ComboBox { - id: comboBox - anchors.left: parent.left - anchors.right: parent.right - anchors.verticalCenter: parent.verticalCenter - model: tbtState - onCurrentTextChanged: { - console.log("Send signal onTBTClientState:", currentText); - sdlNavigation.onTBTClientState(Common.TBTState[currentText]); - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/TTSPopUp.qml b/src/components/qt_hmi/qml_model_qt4/popups/TTSPopUp.qml deleted file mode 100644 index ce64a6be89..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/TTSPopUp.qml +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @file TTSPopUp.qml - * @brief Popup view for TTS - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -PopUp { - height: Constants.ttsPopUpHeight - width: Constants.ttsPopUpWidth - padding: Constants.ttsPopUpPadding - property variant async - - ScrollableText { - id: text - anchors.fill: parent - } - - resources: [ - Timer { - id: timer - interval: Constants.ttsSpeakTime - onTriggered: deactivate() - } - ] - - function activate(message) { - console.debug("Activate TTS popup:", message); - dataContainer.activeTTS = true; - text.text = message; - show(); - timer.restart(); - console.debug("Exit"); - } - - function deactivate() { - console.debug("Deactivate TTS popup"); - dataContainer.activeTTS = false; - text.text = ''; - timer.stop(); - hide(); - DBus.sendReply(async, {}); - async = null; - console.debug("Exit"); - } -} - diff --git a/src/components/qt_hmi/qml_model_qt4/popups/VRHelpPopup.qml b/src/components/qt_hmi/qml_model_qt4/popups/VRHelpPopup.qml deleted file mode 100644 index 8718c8cd69..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/VRHelpPopup.qml +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @file VRHelpPopup.qml - * @brief Popup view for VR help - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common - -PopUp { - Text { - id: title - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.popupMargin - text: "VR HELP" // default title - font.pixelSize: Constants.titleFontSize - color: Constants.primaryColor - } - - ScrollableListView { - anchors.top: title.bottom - anchors.bottom: closeButton.top - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.popupMargin - - model: dataContainer.vrHelp - - delegate: Row { - spacing: Constants.iconItemListSpacing - Icon { - source: model.icon - width: Constants.iconItemListSize - height: Constants.iconItemListSize - } - - Text { - text: model.text - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - } - } - } - - OvalButton { - id: closeButton - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - anchors.margins: Constants.popupMargin - width: Constants.ovalButtonWidth - text: "Close" - onClicked: complete() - } - - property alias title: title.text - - function complete(reason, data) { - hide() - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/VRPopUp.qml b/src/components/qt_hmi/qml_model_qt4/popups/VRPopUp.qml deleted file mode 100644 index 8a8be54be7..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/VRPopUp.qml +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @file VRPopUp.qml - * @brief Popup view for VR interface (list commands). - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../views" -import "../controls" - -PopUp { - Text { - id: title - anchors.left: parent.left - anchors.top: parent.top - height: voice.height - width: parent.width - voice.width - text: "Speak the command" - verticalAlignment: Text.AlignVCenter - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - Image { - id: voice - anchors.top: parent.top - anchors.right: parent.right - source: "../res/controlButtons/vrImage.png" - } - - ScrollableListView { - anchors.bottomMargin: Constants.popupMargin - anchors.rightMargin: Constants.popupMargin - anchors.leftMargin: Constants.popupMargin - anchors.top: voice.bottom - anchors.right: parent.right - anchors.bottom: parent.bottom - anchors.left: parent.left - - model: dataContainer.vrCommands - - delegate: OvalButton { - width: parent.width - text: command - onClicked: { - sdlVR.onCommand(cmdID, appID === 0 ? undefined : appID); - } - } - } - - function activate() { - dataContainer.activeVR = true; - sdlVR.started(); - show(); - } - - function complete(reason) { - dataContainer.activeVR = false; - sdlVR.stopped(); - hide(); - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/popups/VehicleInfoPopUp.qml b/src/components/qt_hmi/qml_model_qt4/popups/VehicleInfoPopUp.qml deleted file mode 100644 index f4582c28ca..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/popups/VehicleInfoPopUp.qml +++ /dev/null @@ -1,111 +0,0 @@ -/** - * @file VIPopUp.qml - * @brief Pop up window with information about vehicle. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../controls" - -PopUp { - //TODO{ALeshin}: Redraw this window as ListView or Column, when we'll get requirements - Column { - anchors.fill: parent - Text { - id: viText - width: parent.width - height: 1/5 * parent.height - text: "Vehicle Information" - font.pixelSize: Constants.fontSize - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - color: Constants.primaryColor - } - - Row { - height: 1/5 * parent.height - width: parent.width - - Text { - width: 1/4 * parent.width - height: 1/5 * parent.height - anchors.verticalCenter: parent.verticalCenter - text: "PRNDL: " - font.pixelSize: Constants.fontSize - verticalAlignment: Text.AlignVCenter - color: Constants.primaryColor - } - - ComboBox { - anchors.verticalCenter: parent.verticalCenter - id: comboBox - model: prndlList - - onCurrentIndexChanged: { - console.debug("PRNDL:", currentIndex) - dataContainer.vehicleInfoModel.prndl = model.get(currentIndex).id - } - - textRole: "name" - ListModel { - id: prndlList - Component.onCompleted: { - append({ id: -1, name: "<NO DATA (prndl)>" }) - for (var name in Common.PRNDL) { - append({ id: Common.PRNDL[name], name: name }); - } - } - } - } - z: 1000 - } - - Text { - width: parent.width - height: 1/5 * parent.height - text: "ECU 1: " + dataContainer.vehicleInfoModel.ecuDIDData.data1 - font.pixelSize: Constants.fontSize - verticalAlignment: Text.AlignVCenter - color: Constants.primaryColor - } - - Text { - width: parent.width - height: 1/5 * parent.height - text: "ECU 2: " + dataContainer.vehicleInfoModel.ecuDIDData.data2 - font.pixelSize: Constants.fontSize - verticalAlignment: Text.AlignVCenter - color: Constants.primaryColor - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/qml_model.qmlproject b/src/components/qt_hmi/qml_model_qt4/qml_model.qmlproject deleted file mode 100644 index ea820e8019..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/qml_model.qmlproject +++ /dev/null @@ -1,20 +0,0 @@ -/* File generated by Qt Creator, version 2.7.0 */ - -import QmlProject 1.1 - -Project { - mainFile: "MainWindow.qml" - - /* Include .qml, .js, and image files from current directory and subdirectories */ - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "../res" - } - /* List of plugin directories passed to QML runtime */ - importPaths: [ "." ] -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/AMPlayerView.qml b/src/components/qt_hmi/qml_model_qt4/views/AMPlayerView.qml deleted file mode 100644 index 4a29168881..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/AMPlayerView.qml +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @file AMPlayerView.qml - * @brief AM player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common - -GeneralView { - category: Common.DeactivateReason.AUDIO - RadioPlayer { - id: amRadioPlayer - anchors.fill: parent - radioType: "AM" - radioName: "AM Radio" - - playerState: dataContainer.amPlayerState - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/ApplicationListView.qml b/src/components/qt_hmi/qml_model_qt4/views/ApplicationListView.qml deleted file mode 100644 index 19ecf4ca47..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/ApplicationListView.qml +++ /dev/null @@ -1,123 +0,0 @@ -/** - * @file ApplicationListView.qml - * @brief Application list view - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models" -import "../models/Constants.js" as Constants - -GeneralView { - Column { - anchors.fill: parent - Item { - // top 1/4 of screen - width: parent.width - height: 1/4 * parent.height - - PagedFlickable { - anchors.verticalCenter: parent.verticalCenter - width: parent.width - elementWidth: Constants.ovalButtonWidth - snapTo: elementWidth + spacing - spacing: (width - 4 * elementWidth) / 3 - - OvalButton { - text: "Find New Apps" - } - - OvalButton { - text: "Change device" - onReleased: contentLoader.go("./views/ChangeDeviceView.qml") - } - - OvalButton { - text: "911 Assist" - } - - OvalButton { - text: "Vehicle Health Report" - } - - OvalButton { - text: "Install applications/Up" - } - } - } - - Item { - height: parent.height / 2 - width: parent.width - - ScrollableListView { - id: applicationListView - anchors.fill: parent - model: dataContainer.applicationList - - delegate: Item { - width: parent.width - height: Math.max(applicationName.height, appIcon.height) - Image { - id: appIcon - source: icon - height: Constants.appListIconSize - width: height - } - ClickableText { - id: applicationName - text: appName - defaultColor: Constants.primaryColor - pressedColor: Constants.primaryColorPressed - font.pixelSize: Constants.appListFontSize - anchors.verticalCenter: parent.verticalCenter - anchors.left: appIcon.right - anchors.leftMargin: Constants.margin - onClicked: { - dataContainer.setCurrentApplication(appId) - dataContainer.currentApplication.isMediaApplication ? contentLoader.go("./views/SDLPlayerView.qml", dataContainer.currentApplication.appId) - : contentLoader.go("./views/SDLNonMediaView.qml", dataContainer.currentApplication.appId) - } - } - } - } - } - - Item { - // bottom 1/4 of screen - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/BTPlayerView.qml b/src/components/qt_hmi/qml_model_qt4/views/BTPlayerView.qml deleted file mode 100644 index 0a5390e920..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/BTPlayerView.qml +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @file BTPlayerView.qml - * @brief FM player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: btPlayer - playerName: "BT Audio" - anchors.fill: parent - - playerState: dataContainer.btPlayerState - image: playerState.albumImage - - buttons: [ - OvalButton { - text: btPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/CDPlayerView.qml b/src/components/qt_hmi/qml_model_qt4/views/CDPlayerView.qml deleted file mode 100644 index f582ff2f7e..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/CDPlayerView.qml +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @file CDPlayerView.qml - * @brief CD player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: cdPlayer - playerName: "CD" - anchors.fill: parent - image: playerState.albumImage - playerState: dataContainer.cdPlayerState - - buttons: [ - OvalButton { - text: cdPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/CarMenuGridView.qml b/src/components/qt_hmi/qml_model_qt4/views/CarMenuGridView.qml deleted file mode 100644 index 9b04b1bad7..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/CarMenuGridView.qml +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @file CarMenuGridView.qml - * @brief Car menu screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../models" -import "../controls" - -GridMenu { - id: menu - model: CarMenuModel { } - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - ClickableImage { - anchors.centerIn: parent - source: icon - onClicked: { - if(qml !== "") { - contentLoader.go(qml) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/ChangeDeviceView.qml b/src/components/qt_hmi/qml_model_qt4/views/ChangeDeviceView.qml deleted file mode 100644 index 643b074506..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/ChangeDeviceView.qml +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @file ChangeDeviceView.qml - * @brief Screen view with list of available devices. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - Text { - id: searchDeviceText - anchors.left: parent.left - anchors.top: parent.top - height: 1/4 * parent.height - width: parent.width - color: Constants.primaryColor - font.pixelSize: Constants.titleFontSize - text: "Devices available:" - verticalAlignment: Text.AlignVCenter - } - - ListView { - id: changeDeviceListView - anchors.left: parent.left - anchors.top: searchDeviceText.bottom - model: dataContainer.deviceList - width:parent.width - height:parent.height - searchDeviceText.height - - delegate: Text { - MouseArea { - anchors.fill: parent - onClicked: { - sdlBasicCommunication.onDeviceChosen({ name: name, id: devid }); - sdlBasicCommunication.onFindApplications({ name: name, id: devid }) - contentLoader.go("./views/ApplicationListView.qml") - } - } - text: name - color: Constants.primaryColor - font.pixelSize: Constants.titleFontSize - } - } - } - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent } - } - - Component.onCompleted: { - console.log("ChangeDeviceView Component.onCompleted enter"); - sdlBasicCommunication.onStartDeviceDiscovery(); - console.log("ChangeDeviceView Component.onCompleted exit"); - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/ClimateControlView.qml b/src/components/qt_hmi/qml_model_qt4/views/ClimateControlView.qml deleted file mode 100644 index 01c289b139..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/ClimateControlView.qml +++ /dev/null @@ -1,94 +0,0 @@ -/** - * @file ClimateControlView.qml - * @brief Screen view of climat menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" - -GeneralView { - Item { - id: climatMenu - anchors.fill: parent - - Item { - height: parent.height - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - Column { - id: leftItem - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 1/4*parent.width - useThisToGetButtonSize.width - - Row { - ClimateControlBtn {name: "heated_seat"} - ClimateControlBtn {name: "heated_wheel"} - } - Row { - ClimateControlBtn {name: "AC"} - ClimateControlBtn {name: "headed_dash"} - } - } - - Column { - id: centralItem - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - - ClimateControlBtn {id: useThisToGetButtonSize; name: "defrost"; state: "on"} - ClimateControlBtn {name: "face"; state: "on"} - ClimateControlBtn {name: "feet"} - } - - Row { - id: rightItem - anchors.verticalCenter: parent.verticalCenter - anchors.right: parent.right - anchors.rightMargin: 1/4*parent.width - useThisToGetButtonSize.width - - ClimateControlBtn { - anchors.verticalCenter: parent.verticalCenter - txt: "Dual" - state: "on" - } - - Column { - ClimateControlBtn { name: "heated_seat" } - ClimateControlBtn { name: "AC" } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/ContactsListView.qml b/src/components/qt_hmi/qml_model_qt4/views/ContactsListView.qml deleted file mode 100644 index a2b2be590b..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/ContactsListView.qml +++ /dev/null @@ -1,118 +0,0 @@ -/** - * @file ContactsListView.qml - * @brief Contact list screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models" -import "../models/Constants.js" as Constants - -GeneralView { - function setCurrent(firstLetter){ - for(var i = 0; i < contactsListView.count; i ++) { - if (contactsListView.model.get(i).name[0].toUpperCase() === firstLetter) { - contactsListView.positionViewAtIndex(i, ListView.Beginning) - break; - } - } - } - Component.onCompleted: setCurrent(dataContainer.contactsFirstLetter) - - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - ScrollableListView { - id: contactsListView - anchors.fill: parent - clip: true - spacing: 1/2 * Constants.fontSize - model: ContactsListModel { } - - section.property: "name" - section.criteria: ViewSection.FirstCharacter - section.delegate: Text { - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - text: section.toUpperCase() - } - - delegate: Item { - anchors.left: parent.left - width: parent.width - Constants.scrollBarWidth - height: typeText.height - - Text { - id: contactName - anchors.left: parent.left - text: name - width: Constants.contactListNameFieldSize * parent.width - color: Constants.contactTextColor - font.pixelSize: Constants.fontSize - elide: Text.ElideRight - } - Text { - id: phoneText - anchors.left: contactName.right - width: Constants.contactListPhoneFieldSize * parent.width - text: phone - color: Constants.contactTextColor - font.pixelSize: Constants.fontSize - horizontalAlignment: Text.AlignHCenter - } - Text { - id: typeText - anchors.right: parent.right - width: Constants.contactListDescriptionFieldSize * parent.width - text: type - color: Constants.contactTextColor - font.pixelSize: Constants.fontSize - horizontalAlignment: Text.AlignHCenter - } - } - } - } - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/FMPlayerView.qml b/src/components/qt_hmi/qml_model_qt4/views/FMPlayerView.qml deleted file mode 100644 index 5c3ca6a5a9..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/FMPlayerView.qml +++ /dev/null @@ -1,121 +0,0 @@ -/** - * @file FMPlayerView.qml - * @brief FM player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -GeneralView { - category: Common.DeactivateReason.AUDIO - RadioPlayer { - id: fmRadioPlayer - anchors.fill: parent - radioType: "FM" - radioName: "FM Radio" - - playerState: dataContainer.fmPlayerState - - property int hdButtonValue: 1 - - buttonHD: [ - Image { - id: hdButton - anchors.bottom: parent.bottom - anchors.left: parent.left - source: "../res/buttons/long_oval_btn.png" - property string textColor: Constants.primaryColor - - Row { - anchors.centerIn: parent - spacing: (hdButton.width - hdLogo.width - one.width - two.width - three.width - four.width) / 10 - - Image { - id: hdLogo - anchors.verticalCenter: parent.verticalCenter - source:"../res/hd_logo_on.png" - } - - Text { - id: one - anchors.verticalCenter: parent.verticalCenter - text: "1" - color: fmRadioPlayer.hdButtonValue === 1 ? "white" : hdButton.textColor - font.pixelSize: Constants.fontSize - } - - Text { - id: two - anchors.verticalCenter: parent.verticalCenter - text: "2" - color: fmRadioPlayer.hdButtonValue === 2 ? "white" : hdButton.textColor - font.pixelSize: Constants.fontSize - } - - Text { - id: three - anchors.verticalCenter: parent.verticalCenter - text: "3" - color: fmRadioPlayer.hdButtonValue === 3 ? "white" : hdButton.textColor - font.pixelSize: Constants.fontSize - } - - Text { - id: four - anchors.verticalCenter: parent.verticalCenter - text: "4" - color: fmRadioPlayer.hdButtonValue === 4 ? "white" : hdButton.textColor - font.pixelSize: Constants.fontSize - } - } - - MouseArea { - anchors.fill: parent - onPressed: { - hdLogo.source = "../res/hd_logo_off.png" - hdButton.source = "../res/buttons/long_oval_pressed_btn.png" - hdButton.textColor = Constants.secondaryColor - - } - onReleased: { - hdLogo.source = "../res/hd_logo_on.png" - hdButton.source = "../res/buttons/long_oval_btn.png" - hdButton.textColor = Constants.primaryColor - fmRadioPlayer.hdButtonValue === 4 ? fmRadioPlayer.hdButtonValue = 1 : fmRadioPlayer.hdButtonValue++ - } - } - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/GeneralView.qml b/src/components/qt_hmi/qml_model_qt4/views/GeneralView.qml deleted file mode 100644 index 40f809299d..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/GeneralView.qml +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @file GeneralView.qml - * @brief Base view class. Defines properties and behavior common for all views - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common - -Item { - /// HMI context view is related to - property int systemContext: Common.SystemContext.SYSCTXT_MAIN - /// True if view is in application context - property bool applicationContext: false - /// View category for AppDeactivated notification (reason) - property int category: Common.DeactivateReason.GENERAL -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/GridMenu.qml b/src/components/qt_hmi/qml_model_qt4/views/GridMenu.qml deleted file mode 100644 index 4cc2f4f615..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/GridMenu.qml +++ /dev/null @@ -1,86 +0,0 @@ -/** - * @file GridMenu.qml - * @brief Parent class for main menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -GeneralView { - id: main - property alias model: repeater.model - property alias delegate: repeater.delegate - property alias rows: grid.rows - property int columnsOnPage: Constants.menuColumnCount - - Flickable { - id: flicker - anchors.fill: parent - contentWidth: grid.width - flickableDirection: Flickable.HorizontalFlick - - Grid { - id: grid - anchors.centerIn: parent - rows: Constants.menuRowCount - columns: Math.ceil(model.count / rows) - flow: Grid.TopToBottom - Repeater { - id: repeater - } - } - - property int snapTo: width / parent.columnsOnPage - onMovementEnded: { - var rest = flicker.contentX % snapTo - var time = 0.25 - if (rest > flicker.snapTo / 2) { rest = rest - flicker.snapTo } - var vel = 2 * rest / time - flickDeceleration = Math.abs(vel) / time - flick(vel, 0) - flickDeceleration = 1500 - } - } - - Pager { - id: pager - space: 10 - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - anchors.topMargin: Constants.margin - - pages: Math.ceil(grid.columns / parent.columnsOnPage) - activePage: Internal.activePageChoose(flicker, pager.pages) - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/HardwareButtonsView.qml b/src/components/qt_hmi/qml_model_qt4/views/HardwareButtonsView.qml deleted file mode 100644 index 83f1ffcd01..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/HardwareButtonsView.qml +++ /dev/null @@ -1,173 +0,0 @@ -/** - * @file HardwareButtonsView.qml - * @brief Area of screen responsible for hardware buttons - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -Rectangle { - height: row.height + row.anchors.margins - anchors.left: parent.left - anchors.right: parent.right - color: Constants.panelColor - - signal buttonDown(string name) - signal buttonUp(string name) - - function pressButton(name) { - buttonDown(name) - } - - function longPressButton(name) { - console.log("long press " + name) - } - - function releaseButton(name) { - buttonUp(name) - } - - Row { - id: row - spacing: Constants.panelPadding - anchors.centerIn: parent - anchors.margins: Constants.panelPadding - - PowerSwitchButton {anchors.verticalCenter: parent.verticalCenter} - - MaskedButton { - name: "vr" - anchors.verticalCenter: parent.verticalCenter - onReleased: { - console.debug("Clicked VR button"); - if (!dataContainer.activeVR) { - vrPopUp.activate(); - } else { - vrPopUp.complete(); - } - } - } - - ArrowKeys {anchors.verticalCenter: parent.verticalCenter} - - Grid { - columns: 5 - rows: 2 - spacing: 5 - anchors.verticalCenter: parent.verticalCenter - Repeater { - model: 10 - delegate : Rectangle { - width: 40 - height: 40 - radius: 5 - gradient: Gradient { - GradientStop - { - position: 0.0; - color: "#2c2c2c" - Behavior on position { - NumberAnimation { duration: 80 } - } - } - - GradientStop - { - position: 1.0; - color: "black" - Behavior on position { - NumberAnimation { duration: 80 } - } - } - } - - Text { - text: (1 + index) % 10 - font.pixelSize: 30 - color: Constants.panelTextColor - anchors.centerIn: parent - } - - Timer { - id: timer - interval: Constants.presetButtonTimer - repeat: false - triggeredOnStart: false - } - - MouseArea { - id: mouseArea - anchors.fill: parent - property bool clickProcessed - onPressed: { - parent.gradient.stops[0].position = 1.0 - parent.gradient.stops[1].position = 0.0 - clickProcessed = false - timer.start() - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + index, Common.ButtonEventMode.BUTTONDOWN, undefined) - } - onReleased: { - parent.gradient.stops[0].position = 0.0 - parent.gradient.stops[1].position = 1.0 - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + index, Common.ButtonEventMode.BUTTONUP, undefined) - timer.stop() - if (!clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + index, Common.ButtonPressMode.SHORT, undefined) - } - } - Connections { - target: timer - onTriggered: { - if(!mouseArea.clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + index, Common.ButtonPressMode.LONG, undefined) - mouseArea.clickProcessed = true - } - } - } - } - - Component.onCompleted: { - settingsContainer.buttonCapabilities.push( - { - name: Common.ButtonName.PRESET_0 + index, - upDownAvailable: true, - shortPressAvailable: true, - longPressAvailable: true - }); - } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/IPodPlayerView.qml b/src/components/qt_hmi/qml_model_qt4/views/IPodPlayerView.qml deleted file mode 100644 index 4d9b8091d7..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/IPodPlayerView.qml +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @file IPodPlayerView.qml - * @brief IPod player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: ipodPlayer - playerName: "iPod" - anchors.fill: parent - image: playerState.albumImage - playerState: dataContainer.ipodPlayerState - - buttons: [ - OvalButton { - text: ipodPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/LineInPlayerView.qml b/src/components/qt_hmi/qml_model_qt4/views/LineInPlayerView.qml deleted file mode 100644 index eca575d6b1..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/LineInPlayerView.qml +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @file LineInPlayerView.qml - * @brief LineIn player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: lineInPlayer - playerName: "LineIn" - anchors.fill: parent - image: playerState.albumImage - playerState: dataContainer.linePlayerState - - buttons: [ - OvalButton { - text: lineInPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/MainMenuView.qml b/src/components/qt_hmi/qml_model_qt4/views/MainMenuView.qml deleted file mode 100644 index 321a67831c..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/MainMenuView.qml +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @file MainMenuView.qml - * @brief Main menu screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../models" -import "../controls" - -GridMenu { - id: menu - model: MainMenuListModel { } - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - ClickableImage { - anchors.centerIn: parent - source: icon - onClicked: { - if(qml !== "") { - contentLoader.go(qml) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/MediaClockView.qml b/src/components/qt_hmi/qml_model_qt4/views/MediaClockView.qml deleted file mode 100644 index 183798eb49..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/MediaClockView.qml +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @file MediaClockView.qml - * @brief Media clock view - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -Item { - property alias time: timeText.text - Text { - id: timeText - anchors.left: parent.left - width: 1/10 * parent.width - anchors.verticalCenter: parent.verticalCenter - horizontalAlignment: Text.AlignRight - color: "white" - text: (mediaPlayerView.playerType === "SDL") ? Internal.hmsTimeToString(dataContainer.currentApplication.mediaClock.startTime) - : "02:36" //TODO {Aleshin}: get track time for all players except SDL - font.pixelSize: 18 - } - - Row { - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - height: parent.height - width: 2/3 * parent.width - - Rectangle { - anchors.verticalCenter: parent.verticalCenter - height: 2 - width: dataContainer.currentApplication.mediaClock.progress * parent.width - color: "white" - } - - Rectangle { - anchors.verticalCenter: parent.verticalCenter - height: 2 - width: (1 - dataContainer.currentApplication.mediaClock.progress) * parent.width - color: Constants.primaryColor - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/MediaPlayer.qml b/src/components/qt_hmi/qml_model_qt4/views/MediaPlayer.qml deleted file mode 100644 index 866f5399cb..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/MediaPlayer.qml +++ /dev/null @@ -1,325 +0,0 @@ -/** - * @file MediaPlayerView.qml - * @brief Parent for BT, IPod, CD players screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -Item { - id: mediaPlayerView - - property string playerName: "" - property string playerType: "" - - signal rewind - signal forward - signal play - signal pause - - // Holds players state(song name, play/pause state, track number etc). For all players except SDL. - property PlayerState playerState; - - property alias buttons: buttonsRow.content - property alias buttonsSpacing: buttonsRow.spacing - property alias image: image.source - - Item { - // row of oval buttons - id: ovalButtonsRow - width: parent.width - height: 1/5 * parent.height - anchors.left: parent.left - anchors.top: parent.top - - PagedFlickable { - id: buttonsRow - width: parent.width - spacing: (mediaPlayerView.playerType === "SDL") ? ((width - 4 * elementWidth) / 3) - : (width - 2 * elementWidth) - anchors.verticalCenter: parent.verticalCenter - snapTo: Constants.ovalButtonWidth + spacing - elementWidth: Constants.ovalButtonWidth - } - } - - Item { - id: spacingBetweenItems - width: parent.width - height: 1/10 * parent.height - anchors.left: parent.left - anchors.top: ovalButtonsRow.bottom - - Behavior on height { - NumberAnimation { - duration : Constants.animationDuration - } - } - } - - Column { - // Picture + text information + media clock - id: mediaContent - width: parent.width - height: 2/5 * parent.height - anchors.left: parent.left - anchors.top: spacingBetweenItems.bottom - - Row { - // picture + text info - width: parent.width - height: 3/4 * parent.height - spacing: Constants.margin - - Image { - id: image - height: parent.height - width: height - } - - Column { - // text info - id: textInfo - height: parent.height - width: parent.width - image.width - parent.spacing - spacing: (height - titleText.height - 3 * text.height) / 3 - - Text { - id: titleText - anchors.left: parent.left - anchors.right: parent.right - horizontalAlignment: dataContainer.currentApplication.hmiUITextAlignment - color: Constants.primaryColor - text: (mediaPlayerView.playerType === "SDL") ? dataContainer.currentApplication.hmiUIText.mainField1 - : playerState.trackName - font.pixelSize: Constants.titleFontSize - font.bold: true - } - - Text { - id: text - anchors.left: parent.left - anchors.right: parent.right - horizontalAlignment: dataContainer.currentApplication.hmiUITextAlignment - color: Constants.primaryColor - text: (mediaPlayerView.playerType === "SDL") ? dataContainer.currentApplication.hmiUIText.mainField2 - : playerState.albumName - font.pixelSize: Constants.fontSize - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - horizontalAlignment: Text.AlignHCenter - color: Constants.primaryColor - text: (mediaPlayerView.playerType === "SDL") ? dataContainer.currentApplication.hmiUIText.mediaTrack - : playerState.trackNumber - font.pixelSize: Constants.fontSize - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: "Time to destination: " + dataContainer.navigationModel.timeToDestination - font.pixelSize: Constants.fontSize - horizontalAlignment: dataContainer.hmiUITextAlignment - visible: mediaPlayerView.playerType === "SDL" && dataContainer.navigationModel.timeToDestination - } - } - } - - MediaClockView { - width: parent.width - height: parent.height * 1/4 - } - } - - Item { - id: spacingBetweenItems2 - width: parent.width - height: 1/10 * parent.height - anchors.left: parent.left - anchors.top: mediaContent.bottom - - Behavior on height { - NumberAnimation { - duration : Constants.animationDuration - } - } - } - - Row { - // Rewind, play, pause, forward buttons - id: playPauseRewindForward - width: parent.width - height: 1/5 * parent.height - statusBar.height - anchors.left: parent.left - anchors.leftMargin: (width - playPauseButton.width - prevButton.width - nextButton.width) / 2 - anchors.top: spacingBetweenItems2.bottom - - Image { - id: prevButton - anchors.verticalCenter: parent.verticalCenter - source: "../res/buttons/player_prev_btn.png" - MouseArea { - anchors.fill: parent - onPressed: { - prevButton.source = "../res/buttons/player_prev_pressed_btn.png" - } - onReleased: { - prevButton.source = "../res/buttons/player_prev_btn.png" - } - } - } - - PlayPauseButton { - id: playPauseButton - anchors.verticalCenter: parent.verticalCenter - state: (mediaPlayerView.playerType === "SDL") ? dataContainer.currentApplication.playPauseState : playerState.playPauseState - onClicked: { - (state == 'Play') ? play() : pause(); - var newState = state === "Play" ? "Pause" : "Play"; - (mediaPlayerView.playerType === "SDL") ? dataContainer.setApplicationProperties(dataContainer.currentApplication.appId, { playPauseState: newState } ) - : playerState.playPauseState = newState - } - } - - Image { - id: nextButton - anchors.verticalCenter: parent.verticalCenter - source: "../res/buttons/player_next_btn.png" - MouseArea { - anchors.fill: parent - onPressed: { - nextButton.source = "../res/buttons/player_next_pressed_btn.png" - } - onReleased: { - nextButton.source = "../res/buttons/player_next_btn.png" - } - } - } - } - - Item { - id: presetButtons - width: parent.width - height: 1/5 * parent.height - anchors.top: playPauseRewindForward.bottom - anchors.left: parent.left - - PresetRow { - id: presetsRow - anchors.top: parent.top - anchors.left: parent.left - presets: mediaPlayerView.playerType === "SDL" ? Internal.getArrayForPresetRow() : [] - width: parent.width - property bool clickProcessed - - Timer { - id: timer - interval: Constants.presetButtonTimer - repeat: false - triggeredOnStart: false - onTriggered: { - console.log("preset button hold") - presetsRow.clickProcessed = true - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + presetsRow.selectedIndex, Common.ButtonPressMode.LONG, undefined) - } - } - - onPresetButtonPressed: { - console.log("preset button pressed") - timer.start() - clickProcessed = false - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonEventMode.BUTTONDOWN, undefined) - } - - onPresetButtonReleased: { - console.log("preset button released") - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonEventMode.BUTTONUP, undefined) - timer.stop() - if (!clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonPressMode.SHORT, undefined) - } - } - } - } - - StatusBar { - id: statusBar - anchors.left: parent.left - anchors.bottom: parent.bottom - } - - states: [ - State { - name: 'presetButtonsON' - when: (dataContainer.currentApplication.customPresets.count > 0) && (mediaPlayerView.playerType === "SDL") - PropertyChanges { - target: spacingBetweenItems - height: 1 - } - PropertyChanges { - target: spacingBetweenItems2 - height: 1 - } - PropertyChanges { - target: presetButtons - visible: true - enabled: true - } - }, - - State { - name: 'presetButtonsOFF' - when: (dataContainer.currentApplication.customPresets.count === 0) || (mediaPlayerView.playerType !== "SDL") - PropertyChanges { - target: spacingBetweenItems - height: 1/10 * mediaPlayerView.height - } - PropertyChanges { - target: spacingBetweenItems2 - height: 1/10 * mediaPlayerView.height - } - PropertyChanges { - target: presetButtons - visible: false - enabled: false - } - } - ] -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/MusicSourceView.qml b/src/components/qt_hmi/qml_model_qt4/views/MusicSourceView.qml deleted file mode 100644 index c9c30e200c..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/MusicSourceView.qml +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @file MusicSourceView.qml - * @brief Music source screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../models" -import "../controls" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - GridMenu { - id: menu - model: dataContainer.musicSourceModel - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: bottomPanel.top - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - OvalButton { - text: title - onReleased: contentLoader.go(qml, appId) - anchors.centerIn: parent - fontSize: Constants.fontSize - } - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} - - - diff --git a/src/components/qt_hmi/qml_model_qt4/views/NavigationInRouteGridView.qml b/src/components/qt_hmi/qml_model_qt4/views/NavigationInRouteGridView.qml deleted file mode 100644 index 6d5ad5027f..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/NavigationInRouteGridView.qml +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @file NavigationInRouteGridView.qml - * @brief Navigation in route screen veiw. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - - -GeneralView { - Item { - id: navInRoute - anchors.fill: parent - - Image { - // 3/4 top screen - id: map - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - source: "../res/nav/map.png" - - Image { - id: compas - anchors.bottom: parent.bottom - anchors.bottomMargin: 1/4 * compas.width - anchors.left: parent.left - anchors.leftMargin: 1/4 * compas.width - source: "../res/nav/compass.png" - } - - Column { - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: compas.horizontalCenter - spacing: 1/8 * parent.height - - // Zoom "+" button - Image { - id: zoomIn - source: "../res/buttons/zoom.png" - - Text { - id: zoomInBtn - anchors.centerIn: parent - text: "+" - color: Constants.releasedButtonTextColor - font.pixelSize: 30 - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/zoom_pressed.png" - zoomInBtn.color = Constants.pressedButtonTextColor - } - onReleased: { - parent.source = "../res/buttons/zoom.png" - zoomInBtn.color = Constants.releasedButtonTextColor - } - - onClicked: { - //Some behavior - } - } - } - - // Zoom "-" button - Image { - id: zoomOut - source: "../res/buttons/zoom.png" - - Text { - id: zoomOutBtn - anchors.centerIn: parent - text: "-" - color: "white" - font.pixelSize: 30 - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/zoom_pressed.png" - zoomOutBtn.color = Constants.pressedButtonTextColor - } - onReleased: { - parent.source = "../res/buttons/zoom.png" - zoomOutBtn.color = Constants.releasedButtonTextColor - } - - onClicked: { - //Some behavior - } - } - } - } // column - - // Options button - Image { - id: navOptions - anchors.top: parent.top - anchors.right: parent.right - source: "../res/nav/options.png" - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/nav/options_pressed.png" - } - onReleased: { - parent.source = "../res/nav/options.png" - } - onClicked: { - //Options screen - } - } - } - } //map - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - Image { - id: muteBtnImg - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 1/4 * muteBtnImg.width - source: "../res/nav/mute_off.png" - MouseArea { - anchors.fill: parent - onClicked: if (muteBtnImg.state === "off") { - muteBtnImg.state = "on" - muteBtnImg.source = "../res/nav/mute_off.png" - } - else { - muteBtnImg.source = "../res/nav/mute_on.png" - muteBtnImg.state = "off" - } - } - } - - Image { - id: turnArrow - anchors.verticalCenter: parent.verticalCenter - anchors.left: muteBtnImg.right - anchors.leftMargin: 1/20 * contentLoader.width - source: "../res/nav/turnArrow.png" - } - - Text { - id: street - anchors.verticalCenter: cancel.verticalCenter - anchors.left: turnArrow.right - anchors.leftMargin: 1/20 * contentLoader.width - text: "0.2 mi on Cherry Hill Rd." - color: "White" - font.pixelSize: 20 - } - - Text { - id: timeToDest - anchors.verticalCenter: cancel.verticalCenter - anchors.right: cancel.left - anchors.rightMargin: 1/20 * contentLoader.width - text: "2 hrs 27 min" - color: "White" - font.pixelSize: 20 - } - - Image { - id: cancel - anchors.verticalCenter: parent.verticalCenter - anchors.right: parent.right - - source: "../res/buttons/long_oval_btn.png" - - Image { - id: destIcon - anchors.verticalCenter: parent.verticalCenter - anchors.left: cancel.left - anchors.leftMargin: Constants.fontSize - source: "../res/nav/dest_icon.png" - } - - Text { - id: cancelText - anchors.centerIn: parent - text: "Cancel" - color: Constants.primaryColor - font.pixelSize: 20 - } - - MouseArea { - anchors.fill: parent - - onPressed: { - cancel.source = "../res/buttons/long_oval_pressed_btn.png" - destIcon.source = "../res/nav/dest_icon_black.png" - cancelText.color = Constants.pressedButtonTextColor - } - - onReleased: { - cancel.source = "../res/buttons/long_oval_btn.png" - destIcon.source = "../res/nav/dest_icon.png" - cancelText.color = Constants.primaryColor - } - - onClicked: { - contentLoader.go("./views/NavigationNoRouteGridView.qml") - } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/NavigationKeyboardView.qml b/src/components/qt_hmi/qml_model_qt4/views/NavigationKeyboardView.qml deleted file mode 100644 index 3ef73ee67d..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/NavigationKeyboardView.qml +++ /dev/null @@ -1,221 +0,0 @@ -/** - * @file NavigationKeyboardView.qml - * @brief Navigation keyboard screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - id: navKeyboard - anchors.fill: parent - - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - // Text line with input text - TextInput { - id: inputText - anchors.top:parent.top - anchors.left:parent.left - maximumLength: 30 - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - text: dataContainer.routeText - } - - // Keyboard - Column { - anchors.centerIn: parent - Row { - id: upperRow - property string qWERTY : "QWERTYUIOP" - anchors.horizontalCenter: parent.horizontalCenter - - Repeater { - model: 10 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: upperRow.qWERTY.charAt(index) - pixelSize: Constants.fontSize - - onClicked: { - dataContainer.routeText += upperRow.qWERTY.charAt(index) - } - } - } - } - Row { - id: middleRow - property string aSDFGH : "ASDFGHJKL" - anchors.horizontalCenter: parent.horizontalCenter - - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "123" - pixelSize: 15 - } - //-------------- - Repeater { - model: 9 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: middleRow.aSDFGH.charAt(index) - pixelSize: Constants.fontSize - - onClicked: { - dataContainer.routeText += middleRow.aSDFGH.charAt(index) - } - } - } - //-------------- - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - onIsPressedChanged: { - hoverImg.source = isPressed ? "../res/nav/delete_icon_black.png" : "../res/nav/delete_icon.png"; - } - Image { - id: hoverImg - anchors.centerIn: parent - source: "../res/nav/delete_icon.png" - } - - onClicked: { - dataContainer.routeText = dataContainer.routeText.substring(0,dataContainer.routeText.length - 1) - } - } - } - Row { - id: lowerRow - property string zXCVBN : "ZXCVBNM" - anchors.horizontalCenter: parent.horizontalCenter - - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "!@#" - pixelSize: 15 - } - //----------------- - Repeater { - model: 7 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: lowerRow.zXCVBN.charAt(index) - pixelSize: Constants.fontSize - - onClicked: { - dataContainer.routeText += lowerRow.zXCVBN.charAt(index) - } - } - } - //---------------- - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "Clear" - pixelSize: 12 - - onClicked: { - dataContainer.routeText = "" - } - } - //---------------- - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "Space" - pixelSize: 12 - - onClicked: { - dataContainer.routeText += " " - } - } - } - - } // column - - Image { - id: goBtn - anchors.right: parent.right - anchors.top: parent.top - source: "../res/buttons/short_oval_btn.png" - - Text { - id: goText - anchors.centerIn: parent - text: "Go" - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - } - - MouseArea { - anchors.fill: parent - - onPressed: { - goBtn.source = "../res/buttons/short_oval_btn_pressed.png" - goText.color = Constants.pressedButtonTextColor - } - - onReleased: { - goBtn.source = "../res/buttons/short_oval_btn.png" - goText.color = Constants.primaryColor - } - - onClicked: { - contentLoader.go("./views/NavigationInRouteGridView.qml") - } - } - } - } // 3/4 top screen - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/NavigationMenuView.qml b/src/components/qt_hmi/qml_model_qt4/views/NavigationMenuView.qml deleted file mode 100644 index 5ceffe0526..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/NavigationMenuView.qml +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @file NavigationMenuView.qml - * @brief Navigation menu screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models" -import "../controls" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - GridMenu { - id: menu - model: NavigationMenuModel {} - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: bottomPanel.top - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - OvalButton { - text: title - onReleased: contentLoader.go(qml) - anchors.centerIn: parent - fontSize: Constants.fontSize - } - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} - - diff --git a/src/components/qt_hmi/qml_model_qt4/views/NavigationNoRouteGridView.qml b/src/components/qt_hmi/qml_model_qt4/views/NavigationNoRouteGridView.qml deleted file mode 100644 index 312f076394..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/NavigationNoRouteGridView.qml +++ /dev/null @@ -1,205 +0,0 @@ -/** - * @file NavigationNoRouteGridView.qml - * @brief Navigation no route screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models/Constants.js" as Constants - -GeneralView { - Item { - id: navNoRoute - anchors.fill: parent - - Image { - // 3/4 top screen - id: map - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - source: "../res/nav/map.png" - - Image { - id: compas - anchors.bottom: parent.bottom - anchors.bottomMargin: 1/4 * compas.width - anchors.left: parent.left - anchors.leftMargin: 1/4 * compas.width - source: "../res/nav/compass.png" - } - - Column { - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: compas.horizontalCenter - spacing: 1/8 * parent.height - - // Zoom "+" button - Image { - id: zoomIn - source: "../res/buttons/zoom.png" - - Text { - id: zoomInBtn - anchors.centerIn: parent - text: "+" - color: "white" - font.pixelSize: Constants.fontSize - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/zoom_pressed.png" - zoomInBtn.color = Constants.pressedButtonTextColor - } - onReleased: { - parent.source = "../res/buttons/zoom.png" - zoomInBtn.color = Constants.releasedButtonTextColor - } - - onClicked: { - //Some behavior - } - } - } - - // Zoom "-" button - Image { - id: zoomOut - source: "../res/buttons/zoom.png" - - Text { - id: zoomOutBtn - anchors.centerIn: parent - text: "-" - color: "white" - font.pixelSize: Constants.fontSize - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/zoom_pressed.png" - zoomOutBtn.color = Constants.pressedButtonTextColor - } - onReleased: { - parent.source = "../res/buttons/zoom.png" - zoomOutBtn.color = Constants.releasedButtonTextColor - } - - onClicked: { - //Some behavior - } - } - } - } // column - - // Options button - Image { - id: navOptions - anchors.top: parent.top - anchors.right: parent.right - source: "../res/nav/options.png" - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/nav/options_pressed.png" - } - onReleased: { - parent.source = "../res/nav/options.png" - } - onClicked: { - //Options screen - } - } - } - } //map - - Item { - // 1/4 bottom screen - id: bottomPart - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - // Destination search button - Image { - id: destSearch - anchors.verticalCenter: parent.verticalCenter - anchors.right: parent.right - source: "../res/buttons/longest_oval_btn.png" - - Image { - id: destIcon - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 15 - source: "../res/nav/dest_icon.png" - } - - Text { - id: destText - anchors.verticalCenter: parent.verticalCenter - anchors.left: destIcon.right - anchors.leftMargin: 5 - text: "Destination" - color: Constants.primaryColor - font.pixelSize: 20 - } - - MouseArea { - anchors.fill: parent - - onPressed: { - destSearch.source = "../res/buttons/longest_oval_btn_pressed.png" - destIcon.source = "../res/nav/dest_icon_black.png" - destText.color = Constants.pressedButtonTextColor - } - - onReleased: { - destSearch.source = "../res/buttons/longest_oval_btn.png" - destIcon.source = "../res/nav/dest_icon.png" - destText.color = Constants.primaryColor - } - - onClicked: { - contentLoader.go("./views/NavigationMenuView.qml") - } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/PhoneKeyboardView.qml b/src/components/qt_hmi/qml_model_qt4/views/PhoneKeyboardView.qml deleted file mode 100644 index b328406d68..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/PhoneKeyboardView.qml +++ /dev/null @@ -1,171 +0,0 @@ -/** - * @file PhoneKeyboardView.qml - * @brief Phone keyboard screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models" -import "../models/Constants.js" as Constants - -GeneralView{ - Component.onCompleted: phoneKeyboard.changeColorOfActiveButtons() - - Item { - function changeColorOfActiveButtons() { - for (var i = 0; i < contactsListModel.count; i++) { - activeButtons[contactsListModel.get(i).name[0].toUpperCase()] = true - } - } - - id: phoneKeyboard - anchors.fill: parent - - property variant activeButtons: { - "A": false, "B": false, "C": false, "D": false, "E": false, - "F": false, "G": false, "H": false, "I": false, "J": false, - "K": false, "L": false, "M": false, "N": false, "O": false, - "P": false, "Q": false, "R": false, "S": false, "T": false, - "U": false, "V": false, "W": false, "X": false, "Y": false, "Z": false - } - - ContactsListModel { - id: contactsListModel - } - - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - - Column { - anchors.centerIn: parent - - Row { - id: upperRow - property string contentLoader : "ABCDEFGHI" - anchors.horizontalCenter: parent.horizontalCenter - Repeater { - model: 9 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - textColorDefault: phoneKeyboard.activeButtons[upperRow.contentLoader.charAt(index)] - ? Constants.primaryColor : Constants.inactiveButtonTextColor - text: upperRow.contentLoader.charAt(index) - pixelSize: Constants.fontSize - onIsPressedChanged: { - if (!isPressed){ - if (phoneKeyboard.activeButtons[upperRow.contentLoader.charAt(index)]) { - dataContainer.contactsFirstLetter = text - contentLoader.go("./views/ContactsListView.qml") - } - } - } - } - } - } - - Row { - id: middleRow - property string contentLoader : "JKLMNOPQR" - anchors.horizontalCenter: parent.horizontalCenter - Repeater { - model: 9 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - textColorDefault: phoneKeyboard.activeButtons[middleRow.contentLoader.charAt(index)] - ? Constants.primaryColor : Constants.inactiveButtonTextColor - text: middleRow.contentLoader.charAt(index) - pixelSize: Constants.fontSize - onIsPressedChanged: { - if (!isPressed){ - if (phoneKeyboard.activeButtons[middleRow.contentLoader.charAt(index)]) { - dataContainer.contactsFirstLetter = text - contentLoader.go("./views/ContactsListView.qml") - } - } - } - } - } - } - - Row { - id: lowerRow - property string contentLoader : "STUVWXYZ" - anchors.horizontalCenter: parent.horizontalCenter - Repeater { - model: 8 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - textColorDefault: phoneKeyboard.activeButtons[lowerRow.contentLoader.charAt(index)] - ? Constants.primaryColor : Constants.inactiveButtonTextColor - text: lowerRow.contentLoader.charAt(index) - pixelSize: Constants.fontSize - onIsPressedChanged: { - if (!isPressed){ - if (phoneKeyboard.activeButtons[lowerRow.contentLoader.charAt(index)]) { - dataContainer.contactsFirstLetter = text - contentLoader.go("./views/ContactsListView.qml") - } - } - } - } - } - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "123" - pixelSize: 20 - } - } - } - } - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent} - } - } -} - - diff --git a/src/components/qt_hmi/qml_model_qt4/views/PhoneMenuGridView.qml b/src/components/qt_hmi/qml_model_qt4/views/PhoneMenuGridView.qml deleted file mode 100644 index 7d52b1223a..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/PhoneMenuGridView.qml +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @file PhoneMenuGridView.qml - * @brief View for phone menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../models" -import "../controls" - -GridMenu { - id: menu - model: PhoneMenuModel {} - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - ClickableImage { - anchors.centerIn: parent - source: icon - onClicked: { - if(qml !== "") { - contentLoader.go(qml) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/RadioPlayer.qml b/src/components/qt_hmi/qml_model_qt4/views/RadioPlayer.qml deleted file mode 100644 index 1df65d4235..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/RadioPlayer.qml +++ /dev/null @@ -1,160 +0,0 @@ -/** - * @file RadioPlayerView.qml - * @brief Parent for AM, FM, Sirius players screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models" -import "../models/Constants.js" as Constants - -Item { - id: radioPlayerView - - property string radioType: "" - property string radioName: "" - property alias buttonHD: bot.children - - property PlayerState playerState - - Item { - // top 3/4 screen - id: upperContent - anchors.top: parent.top - anchors.left: parent.left - height: parent.height * 3/4 - width: parent.width - - Item { - // top part for buttons - id: top - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: parent.height * 1/4 - - OvalButton { - text: radioName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - } - - OvalButton { - anchors.right: parent.right - anchors.top: parent.top - text: "Tune" - fontSize: Constants.fontSize - } - } - - Item { - // mid part for information about song - id: mid - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - width: parent.width - height: parent.height / 2 - - Column { - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - - Row { - Text { - id: radioChannelNameText - color: Constants.primaryColor - text: playerState.presets[0] - font.pixelSize: 45 - } - Text { - anchors.bottom: radioChannelNameText.bottom - color: Constants.primaryColor - text: " " + radioType - font.pixelSize: 25 - } - } - - Text { - color: Constants.primaryColor - text: playerState.songName - font.pixelSize: 25 - font.bold: true - } - - Text { - color: Constants.primaryColor - text: playerState.albumName - font.pixelSize: 25 - } - } - } - - Item { - // bottom part for HD button (for FM radio) - id: bot - anchors.left: parent.left - anchors.bottom: parent. bottom - width: parent.width - height: parent.height * 1/4 - } - } - - Item { - // bottom 1/4 screen - id: lowerContent - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - // Line that divide screen in two parts - Rectangle { - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: 2 - color: Constants.primaryColor - } - - PresetRow { - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - presets: playerState.presets - width: parent.width - onSelectedIndexChanged: { - radioChannelNameText.text = presets[selectedIndex]; - } - } - } -} - - diff --git a/src/components/qt_hmi/qml_model_qt4/views/SDLNavi.qml b/src/components/qt_hmi/qml_model_qt4/views/SDLNavi.qml deleted file mode 100644 index 620b0434c6..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/SDLNavi.qml +++ /dev/null @@ -1,223 +0,0 @@ -/** - * @file SDLNavi.qml - * @brief SDL navigation screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common - -GeneralView { - applicationContext: true - - Item { - anchors.fill: parent - id: wholeWindow - - Row { - // Top items - id: topItems - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: 1/6 * parent.height - spacing: Constants.sdlNaviSpacing - - Rectangle { - anchors.top: parent.top - width: 1/5 * parent.width - height: 4/5 * parent.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - - Text { - text: dataContainer.currentApplication.hmiUIText.mainField1 - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - Rectangle { - anchors.top: parent.top - width: 3/5 * parent.width - 2 * parent.spacing - height: parent.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - - Text { - text: dataContainer.currentApplication.hmiUIText.mainField2 - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - Rectangle { - id: rightRectOfTopItems - anchors.top: parent.top - width: 1/5 * parent.width - height: 4/5 * parent.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - Text { - text: dataContainer.currentApplication.hmiUIText.mainField3 ? dataContainer.currentApplication.hmiUIText.mainField3 : "field3" - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - } - - Column { - // "+", "-" button at left - anchors.left: parent.left - anchors.verticalCenter: parent.verticalCenter - width: 1/12 * parent.width - height: 2/10 * parent.height + spacing - spacing: Constants.sdlNaviSpacing - - GradientRectangle { - width: parent.width - height: 1/10 * wholeWindow.height - text: "+" - isCustomButton: true - customButtonID: 3 - } - GradientRectangle { - width: parent.width - height: 1/10 * wholeWindow.height - text: "-" - isCustomButton: true - customButtonID: 4 - } - } - - Column { - anchors.right: parent.right - anchors.top: topItems.bottom - width: 1/6 * parent.width - height: 2/10 * parent.height + spacing - spacing: Constants.sdlNaviSpacing - - Rectangle { - width: parent.width - height: 1/10 * wholeWindow.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - Text { - text: "" - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - Rectangle { - width: parent.width - height: 1/10 * wholeWindow.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - Text { - text: dataContainer.currentApplication.hmiUIText.mainField4 ? dataContainer.currentApplication.hmiUIText.mainField4 : "mainField4" - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - } - - Row { - // bottom items - id: bottomItems - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/6 * parent.height - spacing: Constants.sdlNaviSpacing - - GradientRectangle { - anchors.bottom: parent.bottom - width: 1/3 * parent.width - height: parent.height - text: "Menu" - isCustomButton: true - customButtonID: 1 - } - Rectangle { - anchors.bottom: parent.bottom - width: 1/3 * parent.width - 2 * parent.spacing - height: parent.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - Text { - text: "mainField5" - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - GradientRectangle { - anchors.bottom: parent.bottom - width: 1/3 * parent.width - height: parent.height - text: "Custom Button" - isCustomButton: true - customButtonID: 2 - } - } - - GradientRectangle { - anchors.right: parent.right - anchors.bottom: bottomItems.top - anchors.bottomMargin: Constants.sdlNaviSpacing - width: 1/6 * parent.width - height: 1/10 * parent.height - text: "Options" - fontSize: Constants.fontSize - onReleased: { - contentLoader.go("./views/SDLPlayerOptionsListView.qml", dataContainer.currentApplication.appId) - } - - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/SDLNonMediaView.qml b/src/components/qt_hmi/qml_model_qt4/views/SDLNonMediaView.qml deleted file mode 100644 index bebfe9585d..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/SDLNonMediaView.qml +++ /dev/null @@ -1,194 +0,0 @@ -/** - * @file SDLNonMediaView.qml - * @brief SDL non media screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - - -import QtQuick 1.1 -import "../models" -import "../controls" -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal -import "../hmi_api/Common.js" as Common - -GeneralView { - applicationContext: true - - Item { - id: upperContent - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - Item { - id: topButtonRow - // top 1/4 of screen - width: parent.width - height: 1/4 * parent.height - - PagedFlickable { - anchors.verticalCenter: parent.verticalCenter - width: parent.width - elementWidth: Constants.ovalButtonWidth - spacing: (width - 4 * elementWidth) / 3 - snapTo: elementWidth + spacing - - OvalButton { - text: "Options" - onClicked: { contentLoader.go("./views/SDLPlayerOptionsListView.qml") } - } - - Repeater { - model: dataContainer.currentApplication.softButtons ? - dataContainer.currentApplication.softButtons.count : - 0 - delegate: - SoftButton { - appId: dataContainer.currentApplication.appId - button: dataContainer.currentApplication.softButtons.get(index) - } - } - } - } - - Column { - id: midContent - height: parent.height * 3/4 - width: parent.width - anchors.top: topButtonRow.bottom - anchors.left: parent.left - - Text { - id: deviceName - width: parent.width - height: 1/5 * parent.height - text: "Device: " + dataContainer.currentApplication.deviceName - verticalAlignment: Text.AlignVCenter - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - Row { - width: parent.width - height: 4/5 * parent.height - spacing: Constants.margin - - Image { - id: image - height: parent.height - width: height - source: dataContainer.currentApplication.hmiUIText.image - } - - Column { - height: parent.height - width: parent.width - image.width - parent.spacing - spacing: Constants.margin - - Text { - id: text1 - width: parent.width - verticalAlignment: Text.AlignVCenter - horizontalAlignment: dataContainer.hmiUITextAlignment - text: dataContainer.currentApplication.hmiUIText.mainField1 - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - Text { - width: parent.width - verticalAlignment: Text.AlignVCenter - horizontalAlignment: dataContainer.hmiUITextAlignment - text: dataContainer.currentApplication.hmiUIText.mainField2 - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - } - } - } - } - - Item { - // bottom 1/4 screen - id: lowerContent - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: parent.height * 1/4 - - PresetRow { - id: presetsRow - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - presets: Internal.getArrayForPresetRow() - width: parent.width - property bool clickProcessed - - Timer { - id: timer - interval: Constants.presetButtonTimer - repeat: false - triggeredOnStart: false - } - - onPresetButtonPressed: { - timer.start() - clickProcessed = false - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonEventMode.BUTTONDOWN, undefined) - } - - onPresetButtonReleased: { - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonEventMode.BUTTONUP, undefined) - timer.stop() - if (!clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonPressMode.SHORT, undefined) - } - } - - Connections { - target: timer - onTriggered: { - if(!clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonPressMode.LONG, undefined) - clickProcessed = true - } - } - } - } - } - - StatusBar { - anchors.left: parent.left - anchors.bottom: parent.bottom - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/SDLPlayerOptionsListView.qml b/src/components/qt_hmi/qml_model_qt4/views/SDLPlayerOptionsListView.qml deleted file mode 100644 index 076851b29a..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/SDLPlayerOptionsListView.qml +++ /dev/null @@ -1,120 +0,0 @@ -/** - * @file SDLPlayerOptionsListView.qml - * @brief SDL player options screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -GeneralView { - applicationContext: true - systemContext: Common.SystemContext.SYSCTXT_MENU - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - - ListView { - id: sdlPlayerOptionsListView - anchors.horizontalCenter: parent.horizontalCenter - width:parent.width - height:parent.height - - model: dataContainer.currentApplication.currentSubMenu - - delegate: Row { - spacing: Constants.iconItemListSpacing - Icon { - source: model.icon - width: Constants.iconItemListSize - height: Constants.iconItemListSize - - MouseArea { - anchors.fill: parent - enabled: model.icon.value !== undefined - - onPressed: text.press() - onReleased: text.release() - onCanceled: text.release() - onClicked: text.click() - } - } - - ClickableText { - id: text - text: name + (type === Internal.MenuItemType.MI_SUBMENU ? " >" : "") - width: sdlPlayerOptionsListView.width - x - elide: Text.ElideRight - defaultColor: type === Internal.MenuItemType.MI_PARENT ? - Constants.inactiveButtonTextColor : - Constants.primaryColor - pressedColor: type === Internal.MenuItemType.MI_PARENT ? - Constants.inactiveButtonTextColorPressed : - Constants.primaryColorPressed - font.pixelSize: Constants.titleFontSize - - function click() { - console.debug("enter") - switch (type) { - case Internal.MenuItemType.MI_NODE: - sdlUI.onCommand(model.id, dataContainer.currentApplication.appId) - contentLoader.back() - break; - case Internal.MenuItemType.MI_SUBMENU: - case Internal.MenuItemType.MI_PARENT: - dataContainer.currentApplication.currentSubMenu = subMenu - break; - } - console.debug("exit") - } - onClicked: click() - } - } - } - } - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/SDLPlayerView.qml b/src/components/qt_hmi/qml_model_qt4/views/SDLPlayerView.qml deleted file mode 100644 index 0c1bd5b7e9..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/SDLPlayerView.qml +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @file SDLPlayerView.qml - * @brief SDL player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -GeneralView { - applicationContext: true - MediaPlayer { - id: mediaPlayer - onPlay: { sdlButtons.onButtonPress(Common.ButtonName.OK, Common.ButtonPressMode.SHORT, undefined) } - onPause: { sdlButtons.onButtonPress(Common.ButtonName.OK, Common.ButtonPressMode.SHORT, undefined) } - playerName: "SDL music" - playerType: "SDL" - image: dataContainer.currentApplication.hmiUIText.image - anchors.fill: parent - - buttons: [ - OvalButton { - text: dataContainer.currentApplication.appName - onReleased: { contentLoader.go("./views/MusicSourceView.qml") } - }, - - OvalButton { - text: "SDL Menu" - onReleased: { contentLoader.go("./views/ApplicationListView.qml") } - }, - - OvalButton { - text: "Options" - onReleased: { contentLoader.go("./views/SDLPlayerOptionsListView.qml") } - }, - - Repeater { - model: dataContainer.currentApplication.softButtons ? - dataContainer.currentApplication.softButtons.count : - 0 - - delegate: SoftButton { - appId: dataContainer.currentApplication.appId - button: dataContainer.currentApplication.softButtons.get(index) - } - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/ScrollableMessageView.qml b/src/components/qt_hmi/qml_model_qt4/views/ScrollableMessageView.qml deleted file mode 100644 index f7111906de..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/ScrollableMessageView.qml +++ /dev/null @@ -1,216 +0,0 @@ -/** - * @file ScrollableMessageView.qml - * @brief Scrollable Message View . - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../models" -import "../popups" - -GeneralView { - applicationContext: true - id: scrollableMessageView - - function complete(abort){ - console.debug("enter") - timer.stop() - dataContainer.scrollableMessageModel.running = false - - dataContainer.popups-- - dataContainer.applicationContext = dataContainer.applicationSavedContext - - if(abort) { - console.debug("send error") - DBus.sendError(dataContainer.scrollableMessageModel.async, Common.Result.ABORTED) - } else { - console.debug("send ok") - DBus.sendReply(dataContainer.scrollableMessageModel.async, {}) - } - - contentLoader.back() - console.debug("exit") - } - - - Connections { - target: contentLoader - onStatusChanged: { - if (status == Component.Ready) { - console.debug("enter") - console.debug("timeout in timer", timer.interval) - dataContainer.popups++ - dataContainer.applicationSavedContext = dataContainer.applicationContext - dataContainer.scrollableMessageModel.running = true - timer.start() - console.debug("exit") - } - } - } - - Rectangle { - anchors.fill: parent - color: Constants.secondaryColor - - Timer { - id: timer - interval: dataContainer.scrollableMessageModel.timeout - onTriggered: { - complete(false) - } - } - - Item { - // top 1/6 of screen - id: top - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: dataContainer.scrollableMessageModel.softButtons.count > 0 ? parent.height * 1/6 : 1 - - OvalButton { - //this button is used only to get item size for PagedFlickable - id: fakeButton - text: "defaultBtnSize"//remove this line when default size for btn will be introduced - visible:false - } - - PagedFlickable { - id: flickRow - width: top.width - spacing: (width - fakeButton.width * 4) / 3 - snapTo: fakeButton.width + spacing - elementWidth: fakeButton.width - - - ListView { - id: softButtons - width: model.count * fakeButton.width + (model.count - 1) * flickRow.spacing - height: fakeButton.height - spacing: flickRow.spacing - - orientation: ListView.Horizontal - interactive: false - model: dataContainer.scrollableMessageModel.softButtons - - delegate: SoftButton { - appId: dataContainer.currentApplication.appId - button: model - onKeepContext: timer.restart() - onDefaultAction: scrollableMessageView.complete(true) - } - } - } - } - - Item { - id: middle - anchors.top: top.bottom - anchors.left: parent.left - anchors.bottom: bottom.top - width: parent.width - - Flickable { - id:flickable - anchors.fill: middle - flickableDirection: Flickable.VerticalFlick - contentWidth: longMessageText.width - contentHeight: longMessageText.height - clip: true - - - Text { - id: longMessageText - wrapMode: Text.Wrap - width: middle.width - text: dataContainer.scrollableMessageModel.longMessageText - color: Constants.scrollableMessageTextColor - font.pixelSize: Constants.fontSize - - } - } - Rectangle { - id: scrollbar - anchors.right: flickable.right - y: flickable.visibleArea.yPosition * flickable.height - width: Constants.scrollableMessageScrollBarWidth - height: flickable.visibleArea.heightRatio * flickable.height - visible: !(flickable.visibleArea.heightRatio > 1) - color: Constants.scrollableMessageScrollBarColor - } - - } - - Item { - // 1/4 bottom screen - id: bottom - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - BackButton { - id:backButton - anchors.centerIn: parent - onClicked: { - console.debug("enter") - complete(true) - console.debug("exit") - } - } - } - } - /** - * Test Support Section - * - */ - function getTimer(){ - return timer - } - function getSoftButtonsListView(){ - return softButtons - } - function getScrollbar(){ - return scrollbar - } - function getTextArea(){ - return middle - } - function getBackButton(){ - return backButton - } - /** - * Test Support Section End - */ -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/SimulationView.qml b/src/components/qt_hmi/qml_model_qt4/views/SimulationView.qml deleted file mode 100644 index c30d83f019..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/SimulationView.qml +++ /dev/null @@ -1,284 +0,0 @@ -/** - * @file SimulationView.qml - * @brief Area of screen responsible for simulation actions - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../views" -import "../popups" -import "../models/Constants.js" as Constants - -Rectangle { - width: controlArea.width + controlArea.anchors.margins - anchors.top: parent.top - anchors.bottom: parent.bottom - color: Constants.panelColor - - Item { - id: showArea - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - height: parent.height - (controlArea.childrenRect.height + controlArea.anchors.margins) - - ExitAllApplicationsPopup { - id: exitAllApplicationsPopup - anchors.fill: parent - visible: false - } - - VehicleInfoPopUp { - id: viPopUp - anchors.fill: parent - } - - TBTClientStatePopUp { - id: tbtClientStatePopUp - anchors.fill: parent - visible: false - } - } - - Item { - id: controlArea - anchors.bottom: parent.bottom - anchors.margins: Constants.panelPadding - anchors.horizontalCenter: parent.horizontalCenter - width: table.width - - ListModel { - id: languagesList - - Component.onCompleted: { - for (var name in Common.Language) { - if (settingsContainer.sdlLanguagesList.indexOf(Common.Language[name]) != -1) { - append({name: name.replace('_', '-')}); - } - } - } - } - - Text { - id: label - text: "Languages" - color: Constants.panelTextColor - anchors.bottom: table.top - anchors.horizontalCenter: parent.horizontalCenter - } - - Grid { - id: table - spacing: 5 - columns: 2 - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: globalProperties.top - - Text { - text: "HMI UI" - color: Constants.panelTextColor - } - - Text { - text: "HMI TTS + VR" - color: Constants.panelTextColor - } - - ComboBox { - width: table.width / table.columns - table.spacing - model: languagesList - onCurrentIndexChanged: { - dataContainer.hmiUILanguage = settingsContainer.sdlLanguagesList[currentIndex]; - sdlUI.onLanguageChange(dataContainer.hmiUILanguage); - } - z: 1000 - } - - ComboBox { - width: table.width / table.columns - table.spacing - model: languagesList - onCurrentIndexChanged: { - dataContainer.hmiTTSVRLanguage = settingsContainer.sdlLanguagesList[currentIndex]; - sdlTTS.onLanguageChange(dataContainer.hmiTTSVRLanguage); - sdlVR.onLanguageChange(dataContainer.hmiTTSVRLanguage); - } - z: 1000 - } - - Text { - text: "Application UI" - color: Constants.panelTextColor - } - - Text { - text: "Application TTS + VR" - color: Constants.panelTextColor - } - - Text { - id: uiLanguageLabel - color: Constants.panelTextColor - text: " " - Connections { - target: dataContainer - onCurrentApplicationChanged: { - for (var s in Common.Language) { - if (Common.Language[s] === dataContainer.currentApplication.hmiDisplayLanguageDesired) { - uiLanguageLabel.text = s; - } - } - } - } - } - - Text { - id: ttsLanguageLabel - color: Constants.panelTextColor - text: " " - Connections { - target: dataContainer - onCurrentApplicationChanged: { - for (var s in Common.Language) { - if (Common.Language[s] === dataContainer.currentApplication.languageTTSVR) { - ttsLanguageLabel.text = s; - } - } - } - } - } - - PushButton { - id: vehicleInfo - label: "Vehicle info" - toggleMode: true - onPressed: { - viPopUp.show(); - } - onUnpressed: { - viPopUp.hide(); - } - } - - PushButton { - id: tbtClientState - label: "TBT Client state" - toggleMode: true - onPressed: { - tbtClientStatePopUp.show(); - } - onUnpressed: { - tbtClientStatePopUp.hide(); - } - } - - PushButton { - label: "Exit application" - onClicked: { - if (dataContainer.applicationContext) { - sdlBasicCommunication.onExitApplication(dataContainer.currentApplication.appId) - } - } - } - - PushButton { - id: exitAllAppsButton - label: "Exit all apps" - toggleMode: true - onPressed: { - exitAllApplicationsPopup.show() - - } - onUnpressed: { - exitAllApplicationsPopup.hide() - } - Connections { - target: exitAllApplicationsPopup - onVisibleChanged: { - if (!exitAllApplicationsPopup.visible) { - exitAllAppsButton.state = "unpressed" - } - } - } - } - - CheckBox { - color: Constants.panelTextColor - text: "Use URL" - } - - CheckBox { - color: Constants.panelTextColor - text: "DD" - - onClicked: { - if (checked) { - dataContainer.driverDistractionState = - Common.DriverDistractionState.DD_ON; - } else { - dataContainer.driverDistractionState = - Common.DriverDistractionState.DD_OFF; - } - } - } - } - - Rectangle { - id: globalProperties - anchors.left: parent.left - anchors.right: parent.right - anchors.bottom: parent.bottom - height: listGlobalProperties.height + Constants.panelPadding - border.color: Constants.panelTextColor - border.width: 1 - color: Constants.panelColor - Column { - id: listGlobalProperties - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.panelPadding / 4 - Text { - text: "HELP_PROMPT: " + dataContainer.currentApplication.helpPrompt - color: Constants.panelTextColor - } - Text { - text: "TIMEOUT_PROMPT: " + dataContainer.currentApplication.timeoutPrompt - color: Constants.panelTextColor - } - Text { - text: "AUTOCOMPLETE_TEXT: " // TODO(ALeshin): Function didn' realized yet - color: Constants.panelTextColor - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/SiriusPlayerView.qml b/src/components/qt_hmi/qml_model_qt4/views/SiriusPlayerView.qml deleted file mode 100644 index 14dd211303..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/SiriusPlayerView.qml +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @file SiriusPlayerView.qml - * @brief Sirius player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../controls" - -GeneralView { - RadioPlayer { - id: siriusRadioPlayer - anchors.fill: parent - radioType: "" - radioName: "Sirius" - - playerState: dataContainer.siriusPlayerState - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/TurnByTurnView.qml b/src/components/qt_hmi/qml_model_qt4/views/TurnByTurnView.qml deleted file mode 100644 index 630113334e..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/TurnByTurnView.qml +++ /dev/null @@ -1,201 +0,0 @@ -/** - * @file TurnByTurnView.qml - * @brief View for TurnByTurn. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../models" - -GeneralView { - applicationContext: true - - Item { - id: turnByTurnView - anchors.fill: parent - - Item { - // top 3/4 of screen - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: parent.height * 3/4 - - Item { - // row of oval buttons - id: ovalButtonsRow - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - PagedFlickable { - id: buttonsRow - width: parent.width - spacing: (width - 4 * elementWidth) / 3 - anchors.verticalCenter: parent.verticalCenter - snapTo: Constants.ovalButtonWidth + spacing - elementWidth: Constants.ovalButtonWidth - - OvalButton { - id: turnListButton - text: "TurnList" - onClicked: { - console.log("Go to TurnListView"); - contentLoader.go("./views/TurnListView.qml"); - } - } - - Repeater { - model: dataContainer.navigationModel.softButtons ? - dataContainer.navigationModel.softButtons.count : - 0 - delegate: - SoftButton { - appId: dataContainer.navigationModel.appId - button: dataContainer.navigationModel.softButtons.get(index) - } - } - } - } - - Column { - // Picture + text information + media clock - id: mediaContent - width: parent.width - height: 3/4 * parent.height - anchors.left: parent.left - anchors.top: ovalButtonsRow.bottom - - Row { - // picture + text info - width: parent.width - height: 3/4 * parent.height - spacing: Constants.margin - - Image { - id: image - height: parent.height - width: height - source: dataContainer.navigationModel.turnIcon - } - - Column { - // text info - id: textInfo - height: parent.height - width: parent.width - image.width - parent.spacing - spacing: (height - 5 * navText1.height) / 4 - - Text { - id: navText1 - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: dataContainer.navigationModel.text1 - font.pixelSize: Constants.fontSize - visible: dataContainer.navigationModel.text1 - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: dataContainer.navigationModel.text2 - font.pixelSize: Constants.fontSize - visible: dataContainer.navigationModel.text2 - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: "Total distance: " + dataContainer.navigationModel.totalDistance - font.pixelSize: Constants.fontSize - visible: dataContainer.navigationModel.totalDistance - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: "Time to destination: " + dataContainer.navigationModel.timeToDestination - font.pixelSize: Constants.fontSize - visible: dataContainer.navigationModel.timeToDestination - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: "ETA: " + dataContainer.navigationModel.eta - font.pixelSize: Constants.fontSize - visible: dataContainer.navigationModel.eta - } - } - } - - Row { - anchors.horizontalCenter: parent.horizontalCenter - height: 1/4 * parent.height - width: 2/3 * parent.width - - Rectangle { - id: coveredDistance - anchors.verticalCenter: parent.verticalCenter - height: Constants.distanceBarHeight - width: dataContainer.navigationModel.distanceToManeuver / dataContainer.navigationModel.distanceToManeuverScale * parent.width - color: "white" - } - - Rectangle { - anchors.verticalCenter: parent.verticalCenter - height: Constants.distanceBarHeight - width: parent.width - coveredDistance.width - color: Constants.primaryColor - } - } - } - } - } - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - BackButton { anchors.centerIn: parent } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/TurnListView.qml b/src/components/qt_hmi/qml_model_qt4/views/TurnListView.qml deleted file mode 100644 index 91ff02ea02..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/TurnListView.qml +++ /dev/null @@ -1,103 +0,0 @@ -/** - * @file TurnListView.qml - * @brief View for TurnByTurn list. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common - -GeneralView { - applicationContext: true - - Item { - anchors.left: parent.left - anchors.top: parent.top - width: parent.width - height: 3/4 * parent.height - - Item { - id: sotfButtons - width: parent.width - height: 1/4 * parent.height - - PagedFlickable { - anchors.verticalCenter: parent.verticalCenter - width: parent.width - elementWidth: Constants.ovalButtonWidth - snapTo: elementWidth + spacing - spacing: (width - 4 * elementWidth) / 3 - - Repeater { - model: dataContainer.currentApplication.turnListSoftButtons ? - dataContainer.currentApplication.turnListSoftButtons.count : - 0 - delegate: - SoftButton { - appId: dataContainer.currentApplication.appId - button: dataContainer.currentApplication.turnListSoftButtons.get(index) - } - } - } - } - - ScrollableListView { - id: scrollableList - anchors.top: sotfButtons.bottom - anchors.left: parent.left - width: parent.width - height: 3/4 * parent.height - - model: dataContainer.currentApplication.turnList - - delegate: - ListItem { - width: scrollableList.width - height: Constants.iconItemListSize - text: dataContainer.currentApplication.turnList.get(index).navigationText.fieldText - fontSize: Constants.fontSize - icon: dataContainer.currentApplication.turnList.get(index).turnIcon - } - } - } - - Item { - // 1/4 bottom screen - id: back - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - BackButton { anchors.centerIn: parent } - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/UsbPlayerView.qml b/src/components/qt_hmi/qml_model_qt4/views/UsbPlayerView.qml deleted file mode 100644 index 4b17b55c10..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/UsbPlayerView.qml +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @file UsbPlayerView.qml - * @brief USB player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 1.1 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: usbPlayer - playerName: "USB" - anchors.fill: parent - playerState: dataContainer.usbPlayerState - image: playerState.albumImage - - buttons: [ - OvalButton { - text: usbPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt4/views/WarningInfo.qml b/src/components/qt_hmi/qml_model_qt4/views/WarningInfo.qml deleted file mode 100644 index e096cb80d1..0000000000 --- a/src/components/qt_hmi/qml_model_qt4/views/WarningInfo.qml +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @file WarningInfo.qml - * @brief Screen with warning information. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 1.1 -import "../controls" -import "../models/Constants.js" as Constants - -Rectangle { - id: warningInfo - anchors.fill: parent - color: Constants.secondaryColor - Text { - anchors.top: parent.top - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - - text: "WARNING!" - color: Constants.warningColor - font.pixelSize: Constants.titleFontSize - font.bold: true - style: Text.Raised - styleColor: "gray" - } - - Text { - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.margin - height: 1/2 * parent.height - width: parent.width - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - wrapMode: Text.WordWrap - - text: "This application is intended to be used as a demonstrative aid only, " - + "while the vehicle is parked. Don't use it while driving. <br /><br />" - + "Use extreme caution when using any device that takes your attention off the road. " - + "Ford recommends against the use of any hand-held device while driving and that you comply " - + "with all applicable laws. Your primary responsibility is the safe operation of the vehicle." - color: "white" - font.pixelSize: 25 - font.bold: true - } - - function showOkButton() { - okButtonAnimation.start() - } - - Item { - id: ok - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - opacity: 0 - - SequentialAnimation - { - id: okButtonAnimation - // Decrease this value while debugging - PauseAnimation { duration: Constants.warningScreenDuration } - NumberAnimation { - target: ok - duration: Constants.animationDuration - property: "opacity" - from: 0; to: 1; - } - } - - Image { - id: okButton - anchors.centerIn: parent - source: "../res/buttons/longest_oval_btn.png" - - Text { - id: text - anchors.centerIn: parent - text: "OK" - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/longest_oval_btn_pressed.png" - text.color = Constants.secondaryColor - } - onReleased: { - parent.source = "../res/buttons/longest_oval_btn.png" - text.color = Constants.primaryColor - } - onClicked: { - console.log("WarningInfo OkButton - on clicked enter"); - warningInfo.visible = false - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/CMakeLists.txt b/src/components/qt_hmi/qml_model_qt5/CMakeLists.txt deleted file mode 100644 index e6eeb9e525..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/CMakeLists.txt +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright (c) 2013, Ford Motor Company -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with the -# distribution. -# -# Neither the name of the Ford Motor Company nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -cmake_minimum_required(VERSION 2.8.11) - -set(components_dir ${CMAKE_CURRENT_SOURCE_DIR}/../..) -set(dbus_dir ${components_dir}/dbus) -set(codegen_dir ${dbus_dir}/codegen) -set(codegen ${codegen_dir}/make_qml_dbus_qml.py) -set(parser ${codegen_dir}/ford_xml_parser.py) -set(interfaces_dir ${components_dir}/interfaces) -set(api_xml ${interfaces_dir}/QT_HMI_API.xml) -set(proxy_dir ${CMAKE_CURRENT_BINARY_DIR}/hmi_api) -set(qml_dirs hmi_api controls models popups views) -set(qml_files MainWindow.qml) - -add_custom_target(qml_auto ALL - COMMAND python ${codegen} --infile ${api_xml} --version ${qt_version} --outdir ${proxy_dir} - DEPENDS ${api_xml} ${codegen} ${parser} - COMMENT "Generating files: - ${proxy_dir}/BasicCommunicationProxy.qml - ${proxy_dir}/ButtonsProxy.qml - ${proxy_dir}/NavigationProxy.qml - ${proxy_dir}/TTSProxy.qml - ${proxy_dir}/UIProxy.qml - ${proxy_dir}/VehicleInfoProxy.qml - ${proxy_dir}/VRProxy.qml - from: - ${api_xml} ..." -) - -add_custom_target(qml_copy_resources ALL - COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../res ${CMAKE_CURRENT_BINARY_DIR}/res - COMMENT "Copying resources") - -if(NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") - foreach(qml_dir ${qml_dirs}) - add_custom_target(qml_copy_${qml_dir} ALL - COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/${qml_dir} ${CMAKE_CURRENT_BINARY_DIR}/${qml_dir} - COMMENT "Copying directory ${qml_dir}") - endforeach(qml_dir) - - add_dependencies(qml_auto qml_copy_hmi_api) - - foreach(qml_file ${qml_files}) - add_custom_target(qml_copy_${qml_file} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${qml_file} ${CMAKE_CURRENT_BINARY_DIR}/${qml_file} - COMMENT "Copying file ${qml_file}") - endforeach(qml_file) -endif() - -install(DIRECTORY - ${CMAKE_CURRENT_BINARY_DIR}/controls - ${CMAKE_CURRENT_BINARY_DIR}/hmi_api - ${CMAKE_CURRENT_BINARY_DIR}/models - ${CMAKE_CURRENT_BINARY_DIR}/popups - ${CMAKE_CURRENT_BINARY_DIR}/res - ${CMAKE_CURRENT_BINARY_DIR}/views - DESTINATION bin/hmi) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/MainWindow.qml DESTINATION bin/hmi) diff --git a/src/components/qt_hmi/qml_model_qt5/MainWindow.qml b/src/components/qt_hmi/qml_model_qt5/MainWindow.qml deleted file mode 100644 index 59fed45707..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/MainWindow.qml +++ /dev/null @@ -1,462 +0,0 @@ -/** - * @file MainWindow.qml - * @brief Implementation of main window. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import QtMultimedia 5.0 -import com.ford.sdl.hmi.dbus_adapter 1.0 -import com.ford.sdl.hmi.log4cxx 1.0 -import com.ford.sdl.hmi.named_pipe_notifier 1.0 -import "./controls" -import "./views" -import "./hmi_api" as HmiApi -import "./models" -import "./popups" -import "hmi_api/Common.js" as Common -import "./models/Constants.js" as Constants -import "models/Internal.js" as Internal - -Rectangle { - width: 1280 - height: 768 - property string startQml: "./views/ApplicationListView.qml" - property int minWidth: Constants.mainScreenMinWidth - property int minHeight: Constants.mainScreenMiHeight - color: Constants.secondaryColor - - DataStorage { - id: dataContainer - - onSystemContextChanged: { - sdlUI.onSystemContext(systemContext, currentApplication.appId) - } - - // Please note that applicationContext is changed only after setting currentApplication - onApplicationContextChanged: { - if (applicationContext) { - sdlBasicCommunication.onAppActivated(currentApplication.appId) - } else { - sdlBasicCommunication.onAppDeactivated(currentApplication.appId, contentLoader.item.category) - } - } - } - - Audio { - id: beep - source: "res/initial.wav" - } - - Audio { - id: stream - - property real bufferProgress: 0.0 - } - - SettingsStorage { - id: settingsContainer - } - - Item { - id: mainScreen - anchors.top: parent. top - anchors.left: parent.left - width: (parent.width - simulationScreen.width < minWidth) ? - minWidth : parent.width - simulationScreen.width - height: (parent.height - hardwareScreen.height < minHeight) ? - minHeight : parent.height - hardwareScreen.height - clip: true - visible: false - - Item { - anchors.top: parent.top - anchors.horizontalCenter: parent.horizontalCenter - height: parent.height * 0.10 - width: parent.width - HeaderMenu {} - } - - Item { - height: parent.height * 0.90 - width: parent.width - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - - Video { - id: player - anchors.fill: parent - visible: { - var naviString = new RegExp("SDLNavi\.qml") - return naviString.test(contentLoader.source); - } - - NamedPipeNotifier { - id: notifier - onReadyRead: { - player.source = name - player.play() - } - } - - Component.onCompleted: { - notifier.start() - } - onStopped: { - notifier.start() - - } - function startStream(url) { - notifier.name = url - notifier.start() - } - } - - Loader { - id: contentLoader - height: parent.height - Constants.margin - width: parent.width - 2 * Constants.margin - asynchronous: true - anchors.bottom: parent.bottom - anchors.horizontalCenter: parent.horizontalCenter - anchors.leftMargin: Constants.margin - anchors.rightMargin: Constants.margin - anchors.bottomMargin: Constants.margin - - - source:startQml - property var viewTransitionStack : [] - - function reset() { - viewTransitionStack = [] - } - - property string currentLocation - function go(path, appId) { - console.debug("enter:", path, ", appId:", appId) - if (path) { - if (currentLocation !== path) { - viewTransitionStack.push({ uri: source.toString(), applicationContext: false }) - if (appId) { - dataContainer.setCurrentApplication(appId) - } - item.leaveScreen() - currentLocation = path - source = path - } - } - console.debug("exit") - } - - function back() { - if (viewTransitionStack.length) { - item.leaveScreen() - source = viewTransitionStack.pop().uri - } - currentLocation = "" - } - - onStatusChanged: { - if (status == Component.Ready) { - if (!dataContainer.activeAlert) { - dataContainer.applicationContext = item.applicationContext - } - else { - dataContainer.applicationSavedContext = item.applicationContext - } - if (viewTransitionStack && viewTransitionStack.length) { - viewTransitionStack[viewTransitionStack.length - 1].applicationContext = item.applicationContext - } - dataContainer.setSystemContext() - } - } - } - } - - WarningInfo { id: warningInfo } - - VRHelpPopup { - id: vrHelpPopup - popUpName: "UI.VrHelp" - anchors.centerIn: parent - visible: false - } - - InteractionPopup { - id: interactionPopup - popUpName: "UI.PerformInteraction" - anchors.centerIn: parent - visible: false - } - - SliderPopup { - id: sliderPopup - popUpName: "UI.Slider" - anchors.centerIn: parent - visible: false - } - - PerformAudioPassThruPopup { - id: performAudioPassThruPopup - popUpName: "UI.PerformAudioPassThru" - anchors.centerIn: parent - visible: false - } - - AlertWindow { - id: alertWindow - popUpName: "UI.Alert" - objectName: "AlertWindow" - anchors.fill: parent - visible: false - } - - UserActionPopUp { - id: userActionPopUp - popUpName: "ActionPopUp" - objectName: "ActionPopUp" - anchors.fill: parent - visible: false - } - - OnAppPermissionConsentPopUp { - id: onAppPermissionConsentPopUp - popUpName: "onAppPermissionConsent" - objectName: "onAppPermissionConsent" - anchors.fill: parent - visible: false - } - } - - Item { - id: simulationScreen - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.left: mainScreen.right - width: simulationPanel.width - clip: true - SimulationView { - id: simulationPanel - - VRPopUp { - id: vrPopUp - visible: false - anchors.fill: parent - } - - TTSPopUp { - id: ttsPopUp - anchors.top: parent.top - anchors.right: parent.right - visible: false - } - } - } - - Item { - id: hardwareScreen - anchors.top: mainScreen.bottom - anchors.left: parent.left - anchors.right: simulationScreen.left - height: hardwarePanel.height - clip: true - HardwareButtonsView { id: hardwarePanel } - } - - HMIAdapter { - HmiApi.ButtonsProxy { - id: sdlButtons - objectName: "Buttons" - } - HmiApi.BasicCommunicationProxy { - id: sdlBasicCommunication - objectName: "BasicCommunication" - } - HmiApi.VRProxy { - id: sdlVR - objectName: "VR" - } - HmiApi.TTSProxy { - id: sdlTTS - objectName: "TTS" - } - HmiApi.NavigationProxy { - id: sdlNavigation - objectName: "Navigation" - } - HmiApi.VehicleInfoProxy { - id: sdlVehicleInfo - objectName: "VehicleInfo" - } - HmiApi.UIProxy { - id: sdlUI - objectName: "UI" - } - - HmiApi.SDLProxy { - id: sdlSDL - objectName: "SDL" - } - } - - SDLAdapter { - id: sdlProxy - - onOnResumeAudioSource: { - - } - - onOnFileRemoved: { - - } - - onOnAppRegistered: { - console.debug("enter onAppRegistered") - var appTypeToAdd = 0 - if (application.appType !== undefined) { - for (var index in application.appType) { - if (application.appType[index] > 31) { - return { __retCode: Common.Result.GENERIC_ERROR, __message: "Apptype value > 31" } - } - appTypeToAdd |= 1 << application.appType[index] - } - } - - dataContainer.addApplication( - { - appName: application.appName, - ngnMediaScreenAppName: application.ngnMediaScreenAppName, - icon: application.icon, - deviceName: application.deviceName, - appId: application.appID, - hmiDisplayLanguageDesired: application.hmiDisplayLanguageDesired, - isMediaApplication: application.isMediaApplication, - appType: appTypeToAdd, - hmiUIText: { }, - mediaClock: { - "updateMode": Internal.MediaClockUpdateMode.MCU_COUNTUP, - "runningMode": Internal.MediaClockRunningMode.MCR_STOPPED, - "startTime": -1, - "endTime": -1, - "startTimeForProgress": -1 - } - }); - console.debug("exit onAppRegistered") - } - - onOnAppUnregistered: { - console.debug("enter onAppUnregistered") - if ((dataContainer.currentApplication.appId === appID)) { - if (dataContainer.applicationContext) { - contentLoader.go("views/ApplicationListView.qml"); - } - if (contentLoader.viewTransitionStack.filter(function(x) { return x.applicationContext })) { - contentLoader.reset(); - } - dataContainer.currentApplication.reset() - } - dataContainer.removeApplication(appID); - console.debug("exit onAppUnregistered") - } - - onPlayTone: { - beep.play() - } - - onOnSDLClose: { - - } - - onOnPutFile: { - console.log("OnPutFile: ", offset, length, fileSize, FileName, - syncFileName, fileType, persistentFile); - } - - onOnRecordStart: { - - } - - onOnAppPermissionChanged: { - - } - - - onOnSDLConsentNeeded: { - - } - - onOnStatusUpdate: { - console.log("enter onStatusUpdate") - settingsContainer.updateStatus(status); - } - } - - Component.onCompleted: { - dataContainer.hmiVRAvailable = true - dataContainer.hmiTTSAvailable = true - dataContainer.hmiNavigationAvailable = true - dataContainer.hmiVehicleInfoAvailable = true - dataContainer.hmiUIAvailable = true - - sdlBasicCommunication.onReady() - } - - /* - * Test Support Section - * - */ - function getSlider(){ - return sliderPopup - } - - function getDataStorage(){ - return dataContainer - } - - function getUIProxy(){ - return sdlUI - } - - function getMainScreen(){ - return mainScreen - } - - function getContentLoader(){ - return contentLoader - } - - function getWarningInfo(){ - return warningInfo - } - /* - * Test Support Section End - */ -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/ArrowKeys.qml b/src/components/qt_hmi/qml_model_qt5/controls/ArrowKeys.qml deleted file mode 100644 index 58cba17707..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/ArrowKeys.qml +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @file ArrowKeys.qml - * @brief Keys with arrow for cursor movement. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common - -Item { - width: buttonOk.width - height: buttonOk.height - - HardwareButton { - id: arrowUp - buttonId: Common.ButtonName.TUNEUP - name: "Up" - } - HardwareButton { - id: arrowDown - buttonId: Common.ButtonName.TUNEDOWN - name: "Down" - } - HardwareButton { - id: arrowLeft - buttonId: Common.ButtonName.SEEKLEFT - name: "Left" - } - HardwareButton { - id: arrowRight - buttonId: Common.ButtonName.SEEKRIGHT - name: "Right" - } - HardwareButton { - id: buttonOk - buttonId: Common.ButtonName.OK - name: "Ok" - longPressAvailable: false - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/BackButton.qml b/src/components/qt_hmi/qml_model_qt5/controls/BackButton.qml deleted file mode 100644 index 5d82f15592..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/BackButton.qml +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @file BackButton.qml - * @brief Button "Back" that return to previous menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -OvalButton { - text: "Back" - onClicked: { contentLoader.back() } - fontSize: Constants.fontSize - opacity: 0 - - NumberAnimation on opacity { - to: 1; - duration: Constants.animationDuration - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/CircleButton.qml b/src/components/qt_hmi/qml_model_qt5/controls/CircleButton.qml deleted file mode 100644 index f0755b3980..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/CircleButton.qml +++ /dev/null @@ -1,87 +0,0 @@ -/** - * @file CircleButton.qml - * @brief Parent class for circle button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Image { - id: circleBtn - source: imgOff - property alias text: btnText.text - property alias pixelSize: btnText.font.pixelSize - property string dest: "" - property bool isPressed: false - property string imgOff: "../res/buttons/round_btn.png" - property string imgOn: "../res/buttons/round_pressed_btn.png" - property string textColorOnPressed: Constants.secondaryColor - property string textColorDefault: Constants.primaryColor - - signal clicked() - function wasClicked() - { - clicked() - } - - Text { - anchors.centerIn: parent - id: btnText - color: textColorDefault - } - - MouseArea { - anchors.fill: parent - onPressed: { - console.log("CircleButton onPressed enter"); - source = imgOn - btnText.color = textColorOnPressed - isPressed = true - console.log("CircleButton onPressed exit"); - } - onReleased: { - console.log("CircleButton onReleased enter"); - source = imgOff - btnText.color = textColorDefault - isPressed = false - console.log("CircleButton onReleased exit"); - } - onClicked: { - console.log("CircleButton onClicked enter"); - if(dest !== ""){ - contentLoader.go(dest) - } - circleBtn.wasClicked() - console.log("CircleButton onClicked enter"); - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/ClickableImage.qml b/src/components/qt_hmi/qml_model_qt5/controls/ClickableImage.qml deleted file mode 100644 index dc1231570a..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/ClickableImage.qml +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @file ClickableImage.qml - * @brief Clickable image item - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Image { - signal pressed () - signal released () - signal canceled () - signal clicked() - - MouseArea { - anchors.fill: parent - - onPressed: { - parent.scale = Constants.pressedIconScale - parent.pressed() - } - - onReleased: { - parent.scale = 1 - parent.released() - } - - onCanceled: { - parent.scale = 1 - parent.canceled() - } - - onClicked: { - parent.clicked() - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/ClickableText.qml b/src/components/qt_hmi/qml_model_qt5/controls/ClickableText.qml deleted file mode 100644 index c56e3dc13d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/ClickableText.qml +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @file ClickableText.qml - * @brief Clickable text item - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -Text { - property string defaultColor - property string pressedColor - signal pressed () - signal released () - signal canceled () - signal clicked () - - color: defaultColor - - MouseArea { - anchors.fill: parent - - onPressed: { - press() - parent.pressed() - } - - onReleased: { - release() - parent.released() - } - - onCanceled: { - release() - parent.canceled() - } - - onClicked: { - parent.clicked() - } - } - - function press () { - color = pressedColor - } - - function release () { - color = defaultColor - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/ClimateControlBtn.qml b/src/components/qt_hmi/qml_model_qt5/controls/ClimateControlBtn.qml deleted file mode 100644 index 9211ac1baf..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/ClimateControlBtn.qml +++ /dev/null @@ -1,93 +0,0 @@ -/** - * @file ClimateControlBtn.qml - * @brief Round button, which is used at climat menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Item -{ - id: climateControlBtn - width: climateBtnImg.width - height: climateBtnImg.height - property string name: "" - property string txt: "" - state: "off" - - Image { - id: climateBtnImg - source: climateControlBtn.state === "off" ? "../res/climate/climate_round_off_btn.png" : "../res/climate/climate_round_on_btn.png" - - Image { - id: hoverImg - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - property string st: climateControlBtn.state === "off" ? "_off" : "_on" - source: climateControlBtn.name === "" ? "": "../res/climate/" + climateControlBtn.name + st + ".png" - } - - Text { - id: hoverText - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - text: climateControlBtn.txt - font.pixelSize: Constants.fontSize - color: climateControlBtn.state === "off" ? Constants.primaryColor : Constants.secondaryColor - } - - MouseArea { - anchors.fill: parent - onClicked: { - if(climateControlBtn.state === "on") { - climateControlBtn.state = "off" - climateBtnImg.source = "../res/climate/climate_round_off_btn.png" - if(climateControlBtn.txt != "") { - hoverText.color = Constants.primaryColor - } - if(climateControlBtn.name != "") { - hoverImg.source = "../res/climate/" + climateControlBtn.name + "_off.png" - } - } else { - climateControlBtn.state = "on" - climateBtnImg.source = "../res/climate/climate_round_on_btn.png" - if(climateControlBtn.txt != "") { - hoverText.color = Constants.secondaryColor - } - if(climateControlBtn.name != "") { - hoverImg.source = "../res/climate/" + climateControlBtn.name + "_on.png" - } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/GradientRectangle.qml b/src/components/qt_hmi/qml_model_qt5/controls/GradientRectangle.qml deleted file mode 100644 index 3695070dfd..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/GradientRectangle.qml +++ /dev/null @@ -1,125 +0,0 @@ -/** - * @file GradientRectangle.qml - * @brief Rectangle with gradient. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common - -Rectangle { - property string firstColor: "grey" - property string secondColor: "#2E2E2E" - property alias fontSize: text.font.pixelSize - property alias text: text.text - property int customButtonID - property bool isCustomButton: false - property bool clickProcessed - signal pressed() - signal released() - - radius: 5 - border.color: "#D3D3D3" - - Text { - id: text - anchors.fill: parent - font.pixelSize: Constants.titleFontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - elide: Text.ElideRight - } - - MouseArea { - anchors.fill: parent - - onPressed: { - firstColor = "#2E2E2E" - secondColor = "grey" - parent.pressed() - } - onReleased: { - firstColor = "grey" - secondColor = "#2E2E2E" - parent.released() - } - } - - Timer { - id: timer - interval: Constants.customButtonTimer - repeat: false - triggeredOnStart: false - } - - onPressed: { - if (isCustomButton) { - timer.start() - clickProcessed = false - sdlButtons.onButtonEvent(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonEventMode.BUTTONDOWN, customButtonID) - } - } - - onReleased: { - if (isCustomButton) { - sdlButtons.onButtonEvent(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonEventMode.BUTTONUP, customButtonID) - timer.stop() - if (!clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonPressMode.SHORT, customButtonID) - } - } - } - - Connections { - target: timer - onTriggered: { - if (isCustomButton) { - if(!clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonPressMode.LONG, customButtonID) - clickProcessed = true - } - } - } - } - - gradient: Gradient { - GradientStop { - position: 0.1 - color: firstColor - } - GradientStop { - position: 0.5 - color: secondColor - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/GridItem.qml b/src/components/qt_hmi/qml_model_qt5/controls/GridItem.qml deleted file mode 100644 index 39e1f0d7c4..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/GridItem.qml +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @file GridItem.qml - * @brief Item with animation for GridMenu - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Item { - id: item - opacity: 0 - SequentialAnimation { - id: animation - PauseAnimation {duration: index * 100 } - NumberAnimation { - target: item - duration: Constants.animationDuration - property: "opacity" - from: 0; to: 1; - } - } - Component.onCompleted: { - animation.start() - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/HardwareButton.qml b/src/components/qt_hmi/qml_model_qt5/controls/HardwareButton.qml deleted file mode 100644 index 47f034082e..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/HardwareButton.qml +++ /dev/null @@ -1,108 +0,0 @@ -/** - * @file HardwareButton.qml - * @brief Parent class for hardware button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import com.ford.sdl.hmi.hw_buttons 1.0 -import "../hmi_api/Common.js" as Common - -MaskedContainer { - property string name - property int buttonId: Common.ButtonName.CUSTOM_BUTTON - property bool upDownAvailable: true - property bool shortPressAvailable: true - property bool longPressAvailable: true - - signal hold - - Image { - source: "../res/controlButtons/" + name + "Button.png" - } - Image { - id: pressedImg - source: "../res/controlButtons/" + name + "Button_pressed.png" - visible: false - Behavior on opacity { - NumberAnimation { duration: 80 } - } - } - Timer { - id: timer - interval: 2000 - repeat: false - triggeredOnStart: false - } - property bool clickProcessed - onPressed: { - clickProcessed = false - pressedImg.visible = true - timer.start() - if (upDownAvailable) { - sdlButtons.onButtonEvent(buttonId, Common.ButtonEventMode.BUTTONDOWN, undefined) - } - } - - onReleased: { - if (upDownAvailable) { - sdlButtons.onButtonEvent(buttonId, Common.ButtonEventMode.BUTTONUP, undefined) - } - timer.stop() - if (!clickProcessed && shortPressAvailable) { - sdlButtons.onButtonPress(buttonId, Common.ButtonPressMode.SHORT, undefined) - } - pressedImg.visible = false - } - - Connections { - target: timer - onTriggered: { - if(!clickProcessed && longPressAvailable) { - sdlButtons.onButtonPress(buttonId, Common.ButtonPressMode.LONG, undefined) - clickProcessed = true - hold() - } - } - } - - Component.onCompleted: { - if (buttonId !== Common.ButtonName.CUSTOM_BUTTON) { - settingsContainer.buttonCapabilities.push( - { - name: buttonId, - upDownAvailable: upDownAvailable, - shortPressAvailable: shortPressAvailable, - longPressAvailable: longPressAvailable - }); - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/HeaderMenu.qml b/src/components/qt_hmi/qml_model_qt5/controls/HeaderMenu.qml deleted file mode 100644 index 26cfe9abe0..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/HeaderMenu.qml +++ /dev/null @@ -1,133 +0,0 @@ -/** - * @file HeaderMenu.qml - * @brief Header menu view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Item { - id: headerMenu - anchors.fill: parent - Text { - anchors.leftMargin: Constants.margin - anchors.topMargin: Constants.margin - anchors.left: parent.left - anchors.verticalCenter: parent.verticalCenter - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - text: "75°" - } - - Item { - width: menuText.width - height: parent.height - anchors.topMargin: Constants.margin - anchors.horizontalCenter: headerMenu.horizontalCenter - signal clicked () - - ClickableText { - id: menuLogo - anchors.horizontalCenter: menuText.horizontalCenter - anchors.bottom: parent.verticalCenter - text: "≡" - defaultColor: Constants.primaryColor - pressedColor: Constants.primaryColorPressed - font.pixelSize: Constants.fontSize - - onClicked: parent.clicked() - onPressed: menuText.press() - onReleased: menuText.release() - onCanceled: menuText.release() - } - - ClickableText { - id: menuText - anchors.top: parent.verticalCenter - text: "MENU"; - defaultColor: Constants.primaryColor - pressedColor: Constants.primaryColorPressed - font.pixelSize: Constants.fontSize - - onClicked: parent.clicked() - onPressed: menuLogo.press() - onReleased: menuLogo.release() - onCanceled: menuLogo.release() - } - - onClicked: { - contentLoader.go("./views/MainMenuView.qml") - } - } - - Row { - id: clock - height: childrenRect.height - anchors.right: parent.right - anchors.verticalCenter: parent.verticalCenter - anchors.rightMargin: Constants.margin - anchors.topMargin: Constants.margin - property date date: new Date() - - Timer { - running: true - repeat: true - interval: 1000 - onTriggered: { - clock.date = new Date(); - } - } - - Text { - text: Qt.formatTime(clock.date, "hh"); - color: Constants.primaryColor - font.pixelSize: Constants.fontSize; - } - - Item { - width: 10 - height: parent.height - Text { - anchors.horizontalCenter: parent.horizontalCenter - text: clock.date.getSeconds() % 2 ? ":" : "" - color: Constants.primaryColor - font.pixelSize: Constants.fontSize; - } - } - - Text { - text: Qt.formatTime(clock.date, "mm"); - color: Constants.primaryColor - font.pixelSize: Constants.fontSize; - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/Icon.qml b/src/components/qt_hmi/qml_model_qt5/controls/Icon.qml deleted file mode 100644 index 2aa7019428..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/Icon.qml +++ /dev/null @@ -1,65 +0,0 @@ -/** - * @file Navigation.qml - * @brief Icon. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common - -Item { - property var source - - Image { - anchors.fill: parent - source: url(parent.source) - - function image(turnIcon) { - if (turnIcon && turnIcon.imageType === Common.ImageType.STATIC) { - return turnIcon.value; - } else { - return ""; - } - } - - function url(turnIcon) { - if (turnIcon && turnIcon.imageType === Common.ImageType.DYNAMIC) { - return turnIcon.value; - } else { - return ""; - } - } - } - - function reset () { - source = undefined - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/ListItem.qml b/src/components/qt_hmi/qml_model_qt5/controls/ListItem.qml deleted file mode 100644 index 6373237241..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/ListItem.qml +++ /dev/null @@ -1,70 +0,0 @@ -/** - * @file Entry.qml - * @brief Entry with icon and text for list. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Rectangle { - id: main - color: Constants.transparentColor - - property alias text: label.text - property alias fontSize: label.font.pixelSize - property alias icon: image.source - - Icon { - id: image - width: Constants.iconItemListSize - height: Constants.iconItemListSize - anchors.left: parent.left - anchors.leftMargin: Constants.generalSpacing - anchors.verticalCenter: parent.verticalCenter - visible: source ? true : false - } - Text { - id: label - anchors.verticalCenter: parent.verticalCenter - height: image.height - width: parent.width - image.width - z: 50 - verticalAlignment: Text.AlignVCenter - font.pixelSize: Constants.fontSize - text: "Name Entry" - anchors.left: image.right - anchors.leftMargin: Constants.generalSpacing - anchors.verticalCenterOffset: 0 - visible: text !== "" - color: Constants.primaryColor - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/MaskedButton.qml b/src/components/qt_hmi/qml_model_qt5/controls/MaskedButton.qml deleted file mode 100644 index a7f91dd397..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/MaskedButton.qml +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @file MaskedButton.qml - * @brief Masked button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import com.ford.sdl.hmi.hw_buttons 1.0 - -MaskedContainer { - property string name - - Image { - id: icon - source: "../res/controlButtons/" + name + "Button.png" - } - - onPressed: { - state = "pressed"; - } - - onReleased: { - state = ""; - } - - states: [ - State { - name: "pressed" - PropertyChanges { - target: icon - source: "../res/controlButtons/" + name + "Button_pressed.png" - } - } - - ] -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/MultiTouchArea.qml b/src/components/qt_hmi/qml_model_qt5/controls/MultiTouchArea.qml deleted file mode 100644 index 32626d292d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/MultiTouchArea.qml +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common - -MultiPointTouchArea { - property date created - - minimumTouchPoints: 1 - maximumTouchPoints: 10 - - MouseArea { - anchors.fill: parent - - function mouseTouchEvent() { - var now = new Date() - var touchEvents = [ - { - id: 0, - ts: [now.valueOf() - created.valueOf()], - c: [{x: mouseX, y: mouseY}] - } - ] - return touchEvents - } - - onPressed: { - sdlUI.onTouchEvent(Common.TouchType.BEGIN, mouseTouchEvent()) - } - onReleased: { - sdlUI.onTouchEvent(Common.TouchType.END, mouseTouchEvent()) - } - onCanceled: { - sdlUI.onTouchEvent(Common.TouchType.END, mouseTouchEvent()) - } - onPositionChanged: { - sdlUI.onTouchEvent(Common.TouchType.MOVE, mouseTouchEvent()) - } - } - - function touchEvents() { - var now = new Date() - var touchEvents = [] - for (var i = 0; i < touchPoints.length; ++i) { - touchEvents.push( - { -// pointId is guaranteed to be unique but is not guaranteed to fit in range -// perhaps we will have to edit protocol xml - id: touchPoints[i].pointId, - ts: [now.valueOf() - created.valueOf()], - c: [{x: touchPoints[i].x, y: touchPoints[i].y}] - } - ) - } - return touchEvents - } - - onPressed: { - sdlUI.onTouchEvent(Common.TouchType.BEGIN, touchEvents()) - } - onReleased: { - sdlUI.onTouchEvent(Common.TouchType.END, touchEvents()) - } - onCanceled: { - sdlUI.onTouchEvent(Common.TouchType.END, touchEvents()) - } - onUpdated: { - sdlUI.onTouchEvent(Common.TouchType.MOVE, touchEvents()) - } - Component.onCompleted: { - created = new Date() - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/OvalButton.qml b/src/components/qt_hmi/qml_model_qt5/controls/OvalButton.qml deleted file mode 100644 index 6d68a9096b..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/OvalButton.qml +++ /dev/null @@ -1,246 +0,0 @@ -/** - * @file OvalButton.qml - * @brief Oval button with flexible width. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import QtGraphicalEffects 1.0 -import "../models/Constants.js" as Constants - -// Don't change constants. It break button -// TODO (dchmerev@luxoft.com): make this comment more clear -// todo (ykazakov): eliminate this problem and remove all such comments - -Item { - id: main - width: dynamic ? field.width + 2 * left.width : Constants.ovalButtonWidth - height: Constants.ovalButtonHeight - - signal clicked; - signal pressed; - signal released; - signal pressAndHold; - property alias text: label.text - property alias fontSize: label.font.pixelSize - property alias icon: image.source - property bool highlighted: false - property bool dynamic: false - property bool disabled: false - - function hue() { - var ret = 0; - if (disabled) { - ret = Constants.disabledButtonHue; - } else if (highlighted) { - ret = Constants.highlightedButtonHue; - } - return ret; - } - - function saturation() { - var ret = 0; - if (disabled) { - ret = Constants.disabledButtonSaturation; - } else if (highlighted) { - ret = Constants.highlightedButtonSaturation; - } - return ret; - } - - function lightness() { - var ret = 0; - if (disabled) { - ret = Constants.disabledButtonLightness; - } else if (highlighted) { - ret = Constants.highlightedButtonLightness; - } - return ret; - } - - Item { - id: buttonBorderImage - visible: false - anchors.fill: parent - Image { - id: left - width: 31 - anchors.left: parent.left - anchors.bottom: parent.bottom - anchors.top: parent.top - source: "../res/buttons/oval_btn_left.png" - } - - Image { - id: right - width: 31 - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.right: parent.right - source: "../res/buttons/oval_btn_right.png" - } - - Image { - id: top - height: 10 - anchors.right: parent.right - anchors.rightMargin: 31 - anchors.left: parent.left - anchors.leftMargin: 31 - anchors.top: parent.top - fillMode: Image.TileHorizontally - source: "../res/buttons/oval_btn_top.png" - } - - Image { - id: bottom - height: 11 - anchors.right: parent.right - anchors.rightMargin: 31 - anchors.left: parent.left - anchors.leftMargin: 31 - anchors.bottom: parent.bottom - fillMode: Image.TileHorizontally - source: "../res/buttons/oval_btn_bottom.png" - } - } - - HueSaturation { - anchors.fill: buttonBorderImage - source: buttonBorderImage - hue: main.hue() - saturation: main.saturation() - lightness: main.lightness() - } - - Rectangle { - id: background - color: Constants.transparentColor - anchors.fill: parent - anchors.rightMargin: 31 - anchors.leftMargin: 31 - anchors.bottomMargin: 10 - anchors.topMargin: 10 - visible: false - } - - HueSaturation { - anchors.fill: background - source: background - hue: main.hue() - saturation: main.saturation() - lightness: main.lightness() - } - - MouseArea { - id: mousearea - anchors.rightMargin: 15 - anchors.leftMargin: 15 - anchors.bottomMargin: 11 - anchors.topMargin: 10 - anchors.fill: parent - enabled: !parent.disabled - onPressed: { - parent.state = "pressed"; - parent.pressed(); - } - onReleased: { - parent.state = ""; - parent.released(); - } - onClicked: { - parent.clicked(); - } - onPressAndHold: { - parent.pressAndHold(); - } - onCanceled: { - parent.state = ""; - } - } - - Item { - id: field - anchors.fill: background - - Icon { - id: image - width: Constants.iconButtonSize - height: Constants.iconButtonSize - anchors.verticalCenter: parent.verticalCenter - visible: source ? true : false - } - Text { - id: label - width: image.visible ? parent.width - image.width : parent.width - color: Constants.primaryColor - anchors.centerIn: parent - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - font.pixelSize: Constants.ovalButtonFontSize - visible: false - elide: Text.ElideRight - } - HueSaturation { - anchors.fill: label - source: label - hue: main.hue() - saturation: main.saturation() - lightness: main.lightness() - visible: label.text !== "" - } - } - - states: [ - State { - name: "pressed" - PropertyChanges { - target: left - source: "../res/buttons/oval_btn_pressed_left.png" - } - - PropertyChanges { - target: right - source: "../res/buttons/oval_btn_pressed_right.png" - } - - PropertyChanges { - target: background - color: Constants.primaryColor - } - - PropertyChanges { - target: label - color: Constants.secondaryColor - } - } - ] -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/PagedFlickable.qml b/src/components/qt_hmi/qml_model_qt5/controls/PagedFlickable.qml deleted file mode 100644 index 5b150d560d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/PagedFlickable.qml +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @file PagedFlickable.qml - * @brief Animated row. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -Item -{ - id: flickablePage - height: container.height + pager.height - default property alias content: containerRow.children - property alias spacing: containerRow.spacing - property int elementWidth - property int snapTo - property int count: 0 - - Flickable { - id: container - anchors.bottom: parent.bottom - maximumFlickVelocity: 1500 - contentWidth: containerRow.width - height: containerRow.height - width: parent.width - interactive: contentWidth > width - - onMovementEnded: { - var rest = contentX % snapTo - var t = 0.25 - if (rest > parent.snapTo / 2) { - rest = rest - parent.snapTo - } - var vel = 2 * rest / t - flickDeceleration = Math.abs(vel) / t - flick(vel, 0) - flickDeceleration = 1500 - } - Row { - id: containerRow - anchors.verticalCenter: parent.verticalCenter - } - } - - Pager { - id: pager - space: 7 - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - - pages: { - if ( (container.contentWidth % container.width) >= (flickablePage.elementWidth / 2 + flickablePage.spacing)) { - return Math.ceil(container.contentWidth / container.width) - } - else { - return Math.floor(container.contentWidth / container.width) - } - } - - activePage: { - if (container.contentX <= 0) { - return 0 - } - else if ( (container.contentWidth - container.contentX) < container.width) { - return pages -1 - } - else { - if ( (container.contentX % container.width) >= (flickablePage.elementWidth / 2 + flickablePage.spacing)) { - return Math.ceil(container.contentX / container.width) - } - else if ( (container.contentX % container.width) > 0) { - return Math.floor(container.contentX / container.width) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/Pager.qml b/src/components/qt_hmi/qml_model_qt5/controls/Pager.qml deleted file mode 100644 index 53d99436ce..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/Pager.qml +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @file Pager.qml - * @brief Bubbles that indicate about page switch. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -Row { - id: pager - property int pages - property int activePage: 0 - property int space - property int itemsInRowOnScreen: 3 - - spacing: space - visible: pages !== 1 - - Repeater { - model: pages - Image { - source: index === activePage ? "../res/white_ball.png" : "../res/blue_ball.png" - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/PlayPauseButton.qml b/src/components/qt_hmi/qml_model_qt5/controls/PlayPauseButton.qml deleted file mode 100644 index bb1cb38388..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/PlayPauseButton.qml +++ /dev/null @@ -1,77 +0,0 @@ -/** - * @file PlayPauseButton.qml - * @brief Behavior of Play/Pause button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -Image { - id: playPauseButton - property string sourceOnPressed: "" - property string sourceOnReleased: "" - - signal clicked - - MouseArea { - anchors.fill: parent - onPressed: { - playPauseButton.source = playPauseButton.sourceOnPressed - } - onReleased: { - playPauseButton.source = playPauseButton.sourceOnReleased - } - onClicked: { - playPauseButton.clicked() - } - } - states: [ - State { - name: "Play" - PropertyChanges { - target: playPauseButton - source: "../res/buttons/player_play_btn.png" - sourceOnPressed: "../res/buttons/player_play_pressed_btn.png" - sourceOnReleased: "../res/buttons/player_pause_btn.png" - } - }, - - State { - name: "Pause" - PropertyChanges { - target: playPauseButton - source: "../res/buttons/player_pause_btn.png" - sourceOnPressed: "../res/buttons/player_pause_pressed_btn.png" - sourceOnReleased: "../res/buttons/player_play_btn.png" - } - } - ] -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/PowerSwitchButton.qml b/src/components/qt_hmi/qml_model_qt5/controls/PowerSwitchButton.qml deleted file mode 100644 index 95a751c39b..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/PowerSwitchButton.qml +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @file PowerSwitchBtn.qml - * @brief On/Off button. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Rectangle { - id: powerSwitchBtn - state: "Turn ON" - width: 120 - height: 80 - radius: 5 - property bool pressed; - - gradient: Gradient { - GradientStop { position: pressed ? 1.0 : 0.0; color: "#2c2c2c" } - GradientStop { position: pressed ? 0.0 : 1.0; color: "black" } - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.pressed = true - } - onReleased: { - parent.pressed = false - parent.state = parent.state === "Turn ON" ? "Turn OFF" : "Turn ON" - btnText.text = parent.state - if (parent.state === "Turn OFF") { - contentLoader.reset() - mainScreen.visible = true - warningInfo.showOkButton() - } - } - } - - Text { - id: btnText - color: "red" - text: parent.state - anchors.centerIn: parent - font.pixelSize: Constants.powerButtonFornSize - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/PresetRow.qml b/src/components/qt_hmi/qml_model_qt5/controls/PresetRow.qml deleted file mode 100644 index 32e74d71bb..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/PresetRow.qml +++ /dev/null @@ -1,106 +0,0 @@ -/** - * @file PresetRow.qml - * @brief Animated row with radio stations. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Item { - id: presetRow - height: childrenRect.height - property variant presets: [] - property int selectedIndex: 0 - signal presetSelected - signal presetButtonPressed() - signal presetButtonReleased() - signal presetButtonClicked() - signal presetButtonHold() - - Image { - id: circleButton - source: "../res/buttons/preset_pressed_btn.png" - visible: false - enabled: false - } - - PagedFlickable { - width: parent.width - spacing: (width - (circleButton.width * 4)) / 3 - snapTo: spacing + circleButton.width - elementWidth: circleButton.width - - Repeater { - model: presetRow.presets.length - delegate: - Column { - width: circleButton.width - Image { - anchors.horizontalCenter: parent.horizontalCenter - source: presetRow.selectedIndex === index ? "../res/buttons/preset_pressed_btn.png" : "../res/buttons/preset_btn.png" - MouseArea { - anchors.fill: parent - onPressed: { - presetRow.selectedIndex = index; - presetButtonPressed() - } - onReleased: { - presetRow.selectedIndex = index; - presetButtonReleased() - } - onClicked: { - presetRow.selectedIndex = index - presetButtonClicked() - } - onPressAndHold: { - presetRow.selectedIndex = index; - presetButtonHold() - } - } - Text { - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - text: index + 1 - font.pixelSize: Constants.fontSize - color: presetRow.selectedIndex === index ? Constants.secondaryColor : Constants.primaryColor - } - } - Text { - anchors.horizontalCenter: parent.horizontalCenter - text: presetRow.presets[index] - font.pixelSize: Constants.fontSize - color: "white" - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/PushButton.qml b/src/components/qt_hmi/qml_model_qt5/controls/PushButton.qml deleted file mode 100644 index f83370a207..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/PushButton.qml +++ /dev/null @@ -1,136 +0,0 @@ -/** - * @file PushButton.qml - * @brief Simple button - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -Rectangle { - id: toggleButton - width: 160 - height: 40 - radius: 2 - border.width: 2 - border.color: "#000000" - gradient: grUnpressed - - property alias label : label.text - - signal pressed() - signal unpressed() - signal clicked() - - property bool toggleMode: false - - state: "unpressed" - onStateChanged: { - if (state == "pressed") { - pressed(); - } else { - unpressed(); - } - } - - Text { - id: label - color: "white" - text: "PushButton" - font.pixelSize: 18 - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - anchors.horizontalCenter: parent.horizontalCenter - anchors.fill: parent - } - MouseArea { - id: mouseArea - - anchors.fill: parent - onPressed: { - if (toggleMode) { - if (parent.state == "unpressed") { - parent.state = "pressed" - } else { - parent.state = "unpressed" - } - } else { - parent.state = "pressed" - } - } - onReleased: { - if (!toggleMode) { - parent.state = "unpressed" - if (mouse.isClick) { - parent.clicked() - } - } - } - } - - states: [ - State { - name: "pressed" - PropertyChanges { - target: toggleButton - gradient: grPressed - } - }, - State { - name: "unpressed" - PropertyChanges { - target: toggleButton - gradient: grUnpressed - } - } - ] - - Gradient { - id: grUnpressed - - GradientStop { position: 0.0; color: "#2c2c2c" } - GradientStop { position: 1.0; color: "#0c0c0c" } - } - - Gradient { - id: grPressed - - GradientStop { position: 0.0; color: "black" } - GradientStop { position: 1.0; color: "black" } - } - - transitions: [ - Transition { - from: "unpressed" - to: "pressed" - reversible: true - } - ] -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/ScrollableListView.qml b/src/components/qt_hmi/qml_model_qt5/controls/ScrollableListView.qml deleted file mode 100644 index a63960d16d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/ScrollableListView.qml +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @file ScrollableListView.qml - * @brief ListView with scrollbar on the right - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -ListView { - clip: true - - Rectangle { - visible: parent.height < parent.contentHeight - anchors.right: parent.right - y: parent.visibleArea.yPosition * parent.height - width: Constants.scrollBarWidth - height: parent.visibleArea.heightRatio * parent.height - color: Constants.primaryColor - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/SoftButton.js b/src/components/qt_hmi/qml_model_qt5/controls/SoftButton.js deleted file mode 100644 index 227f638366..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/SoftButton.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @file SoftButton.js - * @brief Soft button view constants - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -.pragma library - -var Action = { - doOnClicked: 0, - doOnReleased: 1 -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/SoftButton.qml b/src/components/qt_hmi/qml_model_qt5/controls/SoftButton.qml deleted file mode 100644 index b1b7f71799..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/SoftButton.qml +++ /dev/null @@ -1,97 +0,0 @@ -/** - * @file SoftButton.qml - * @brief Soft button view - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common -import "SoftButton.js" as SoftButton - -OvalButton { - property var button - property int appId - visible: !!button - - signal defaultAction; - signal stealFocus; - signal keepContext; - - property int actionOrder: SoftButton.Action.doOnClicked - - highlighted: button ? button.isHighlighted : false - onPressed: { - actionOrder = SoftButton.Action.doOnClicked - sdlButtons.onButtonEvent(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonEventMode.BUTTONDOWN, button.softButtonID, appId) - } - - onReleased: { - if (actionOrder === SoftButton.Action.doOnReleased) { - switch (button.systemAction) { - case Common.SystemAction.DEFAULT_ACTION: - defaultAction(); - break; - case Common.SystemAction.STEAL_FOCUS: - stealFocus(); - break; - case Common.SystemAction.KEEP_CONTEXT: - keepContext(); - break; - } - } - - sdlButtons.onButtonEvent(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonEventMode.BUTTONUP, button.softButtonID, appId) - } - - onClicked: { - sdlButtons.onButtonPress(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonPressMode.SHORT, button.softButtonID, appId); - switch (button.systemAction) { - case Common.SystemAction.DEFAULT_ACTION: - defaultAction(); - break; - case Common.SystemAction.STEAL_FOCUS: - stealFocus(); - break; - case Common.SystemAction.KEEP_CONTEXT: - keepContext(); - break; - } - } - - onPressAndHold: { - actionOrder = SoftButton.Action.doOnReleased; // action should be triggered on release - sdlButtons.onButtonPress(Common.ButtonName.CUSTOM_BUTTON, Common.ButtonPressMode.LONG, button.softButtonID, appId); - } - - onButtonChanged: { - icon = button && button.type !== Common.SoftButtonType.SBT_TEXT ? button.image : undefined; - text = button && button.type !== Common.SoftButtonType.SBT_IMAGE ? button.text : "" - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/controls/StatusBar.qml b/src/components/qt_hmi/qml_model_qt5/controls/StatusBar.qml deleted file mode 100644 index c06ebc45e4..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/controls/StatusBar.qml +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @file StatusBar.qml - * @brief Status bar that contains text string. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Text { - text: dataContainer.currentApplication.hmiUIText.statusBar - color: Constants.primaryColor - font.pixelSize: Constants.statusBarFontSize -} diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/Async.js b/src/components/qt_hmi/qml_model_qt5/hmi_api/Async.js deleted file mode 100644 index ebc5bfa3ca..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/hmi_api/Async.js +++ /dev/null @@ -1,7 +0,0 @@ -.pragma library - -var async_uid = 1; - -function AsyncCall() { - this.__async_uid = async_uid++; -} diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/BasicCommunication.qml b/src/components/qt_hmi/qml_model_qt5/hmi_api/BasicCommunication.qml deleted file mode 100644 index ba066e628b..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/hmi_api/BasicCommunication.qml +++ /dev/null @@ -1,187 +0,0 @@ -/** - * @file BasicCommunication.qml - * @brief Implement of interface Basic Communication. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common - -Item { - function updateDeviceList (deviceList) { - var deviceListLog = ""; - deviceList.forEach(function (device) { - deviceListLog += "{name: '" + device.name + "', " + - "id: '" + device.id + "'},"; - }); - console.log("Message Received - {method: 'BasicCommunication.UpdateDeviceList', params:{ " + - "deviceList: [" + deviceListLog + "]" + - "}}") - - deviceList.forEach(function (device) { - var exist = false; - for (var i = 0; i < dataContainer.deviceList.count; ++i) { - exist = device.id === dataContainer.deviceList[i].devid; - } - if (!exist) { - dataContainer.deviceList.append({ name: device.name, - devid: device.id, - allowed: false}) - } - }); - - for (var i = 0; i < dataContainer.deviceList.count; ++i) { - deviceList.forEach(function (device) { - var exist = dataContainer.deviceList[i].id === device.id; - if (!exist) { - dataContainer.deviceList.remove(i); - } - }); - } - } - - function updateAppList (applications) { - var applicationsLog = "", - appTypeLog = ""; - if (applications) { - for (var i = 0; i < applications.length; i++) { - appTypeLog = ""; - - for (var j = 0; j < applications[i].appType.length; i++) { - appTypeLog += "'" + applications[i].appType + "', " - } - - applicationsLog += "{name: '" + applications[i].name + "', " + - "appName: '" + applications[i].appName + "', " + - "ngnMediaScreenAppName: '" + applications[i].ngnMediaScreenAppName + "', " + - "icon: '" + applications[i].icon + "', " + - "deviceName: '" + applications[i].deviceName + "', " + - "appID: " + applications[i].appID + ", " + - "hmiDisplayLanguageDesired: '" + applications[i].hmiDisplayLanguageDesired + "', " + - "isMediaApplication: " + applications[i].isMediaApplication + ", " + - "appType: [" + applications[i].deviceName + "]" + - "},"; - } - } - console.log("Message Received - {method: 'BasicCommunication.UpdateAppList', params:{ " + - "applications: [" + applicationsLog + "]" + - "}}") - - - dataContainer.applicationList.clear(); - for(var i = 0; i < applications.length; i++) { - dataContainer.applicationList.append({ - appName: applications[i].appName, - ngnMediaScreenAppName: applications[i].ngnMediaScreenAppName, - icon: applications[i].icon, - deviceName: applications[i].deviceName, - appId: applications[i].appID, - hmiDisplayLanguageDesired: applications[i].hmiDisplayLanguageDesired, - isMediaApplication: applications[i].isMediaApplication, - appType: applications[i].appType - }); - } - } - - function getResumeResult (appID) { - return dataContainer.getResumeResult(appID) - } - - function allowDeviceToConnect (device) { - console.log("Message Received - {method: 'BasicCommunication.AllowDeviceToConnect', params:{ " + - "device: {name: '" + device.name + "', " + - "id: '" + device.id + "'}," + - "}}") - return { - allow: true - } - } - - function mixingAudioSupported() { - console.log("Message Received - {method: 'BasicCommunication.MixingAudioSupported'}") - return { - attenuatedSupport: true - } - } - - function allowAllApps() { - console.log("Message Received - {method: 'BasicCommunication.AllowAllApps'}") - return { - allowed: true - } - } - - function allowApp(app, appPermissions) { - console.log("Message Received - {method: 'BasicCommunication.AllowApp'}") - return { - allowed: true - } - } - - function activateApp(appID, priority, level) { - console.log("Message Received - {method: 'BasicCommunication.ActivateApp', params:{ " + - "appID: " + appID + - "}}") - contentLoader.go("views/SDLPlayerView.qml", appID); - } - - function policyUpdate(file, timeout, retry) { - console.log("enter policyUpdate"); - settingsContainer.filePTSnapshot = file; - settingsContainer.timeoutPTExchange = timeout; - settingsContainer.retriesPTExchange = retry; - var service = 7; // service type for Ford specific policy - RequestToSDL.SDL_GetURLS(service, settingsContainer.startPTExchange); - console.log("exit policyUpdate"); - } - - function systemRequest(requestType, fileName, appID) { - console.log("enter systemRequest", requestType, fileName, appID); - - console.log(requestType, Common.RequestType.PROPRIETARY, Common.RequestType.HTTP); - - switch (requestType) { - case Common.RequestType.PROPRIETARY: { - settingsContainer.stopPTExchange(fileName); - break; - } - case Common.RequestType.HTTP: { - if (fileName === "IVSU") { - settingsContainer.updateIVSU(appID); - } else { - settingsContainer.decrypt(fileName, appID); - } - break; - } - } - console.log("exit systemRequest"); - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/Buttons.qml b/src/components/qt_hmi/qml_model_qt5/hmi_api/Buttons.qml deleted file mode 100644 index b8b3da5932..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/hmi_api/Buttons.qml +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @file Buttons.qml - * @brief Implement of interface Buttons. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -Item -{ - function getCapabilities() { - console.log("Message Received - {method: 'Buttons.GetCapabilities'}") - return { - capabilities: settingsContainer.buttonCapabilities, - presetBankCapabilities: { - onScreenPresetsAvailable: true - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/Navigation.qml b/src/components/qt_hmi/qml_model_qt5/hmi_api/Navigation.qml deleted file mode 100644 index bab54220b1..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/hmi_api/Navigation.qml +++ /dev/null @@ -1,246 +0,0 @@ -/** - * @file Navigation.qml - * @brief Navigation. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "Common.js" as Common - -Item { - function isReady () { - console.log("Message Received - {method: 'Navigation.IsReady'}") - return { - available: dataContainer.hmiNavigationAvailable - } - } - - function showConstantTBT(navigationTexts, turnIcon, nextTurnIcon, distanceToManeuver, - distanceToManeuverScale, maneuverComplete, - softButtons, appID) { - console.debug("enter") - var navigationTextsLog = "", - softButtonsLog = "", - turnIconLogs = "", - nextTurnIconLogs = ""; - if (navigationTexts) { - for (var i = 0; i < navigationTexts.length; i++) { - navigationTextsLog += "{fieldName: '" + navigationTexts[i].fieldName + "', " + - "fieldText: '" + navigationTexts[i].fieldText + "'},"; - } - } - if (softButtons) { - for (var i = 0; i < softButtons.length; i++) { - softButtonsLog += "{type: '" + softButtons[i].type + "', " + - "text: " + softButtons[i].text + "', "; - softButtons[i].image ? softButtonsLog += "image: " + "{value: '" + softButtons[i].image.value + "', imageType: " + softButtons[i].image.imageType + "}, " : softButtonsLog += ""; - softButtonsLog += "isHighlighted: " + softButtons[i].isHighlighted + "', " + - "softButtonID: " + softButtons[i].softButtonID + "', " + - "systemAction: " + softButtons[i].systemAction + - "},"; - } - } - if (turnIcon) { - turnIconLogs = "{value: '" + turnIcon.value + "', imageType: " + turnIcon.imageType + "}"; - } - if (nextTurnIcon) { - nextTurnIconLogs = "{value: '" + nextTurnIcon.value + "', imageType: " + nextTurnIcon.imageType + "}"; - } - console.log("Message Received - {method: 'Navigation.ShowConstantTBT', params:{ " + - "navigationTexts: [" + navigationTextsLog + "], " + - "turnIcon: " + turnIconLogs + ", " + - "nextTurnIcon: " + nextTurnIconLogs + ", " + - "distanceToManeuver: " + distanceToManeuver + ", " + - "distanceToManeuverScale: " + distanceToManeuverScale + ", " + - "maneuverComplete: " + maneuverComplete + ", " + - "softButtons: [" + softButtonsLog + "], " + - "appID: " + appID + - "}}") - - var app = dataContainer.getApplication(appID) - var dataToUpdate = {} - - navigationTexts.forEach(fillTexts, dataToUpdate) - if (turnIcon !== undefined) { dataToUpdate.turnIcon = turnIcon } - if (nextTurnIcon !== undefined) { dataToUpdate.nextTurnIcon = nextTurnIcon } - if (distanceToManeuver !== undefined) { - dataToUpdate.distanceToManeuver = distanceToManeuver - } else { - DBus.sendReply( {__retCode: Common.Result.INVALID_DATA, __message: "distanceToManeuver absence"} ) - } - if (distanceToManeuverScale !== undefined) { - dataToUpdate.distanceToManeuverScale = distanceToManeuverScale - } else { - DBus.sendReply( {__retCode: Common.Result.INVALID_DATA, __message: "distanceToManeuverScale absence"} ) - } - if (maneuverComplete !== undefined) { - dataToUpdate.maneuverComplete = maneuverComplete - } - if (softButtons !== undefined) { - app.navigationSoftButtons.clear() - softButtons.forEach(function(x) { app.navigationSoftButtons.append(x); }); - } - if (appID !== undefined) { - dataToUpdate.appID = appID - } else { - dBus.sendReply( {__retCode: Common.Result.INVALID_DATA, __message: "appID absence"} ) - } - - dataContainer.setApplicationProperties(appID, { navigationModel : dataToUpdate } ) - contentLoader.go("./views/TurnByTurnView.qml", appID) - } - - function alertManeuver(softButtons) { - console.debug("enter") - var softButtonsLog = ""; - - if (softButtons) { - for (var i = 0; i < softButtons.length; i++) { - softButtonsLog += "{type: '" + softButtons[i].type + "', " + - "text: " + softButtons[i].text + "', "; - softButtons[i].image ? softButtonsLog += "image: " + "{value: '" + softButtons[i].image.value + "', imageType: " + softButtons[i].image.imageType + "}, " : softButtonsLog += ""; - softButtonsLog += "isHighlighted: " + softButtons[i].isHighlighted + "', " + - "softButtonID: " + softButtons[i].softButtonID + "', " + - "systemAction: " + softButtons[i].systemAction + - "},"; - } - } - console.log("Message Received - {method: 'Navigation.AlertManeuver', params:{ " + - "softButtons: [" + softButtonsLog + "]" + - "}}") - - console.debug("exit") - return { __retCode: Common.Result.SUCCESS } - } - - function updateTurnList(turnList, softButtons, appID) { - console.debug("enter") - var turnListLog = "", - softButtonsLog = ""; - if (turnList) { - for (var i = 0; i < turnList.length; i++) { - turnList[i].navigationText ? turnListLog += "{navigationText: {fieldName: '" + turnList[i].navigationText.fieldName + "', fieldText: '" + turnList[i].navigationText.fieldText + "'}," : turnListLog += "{"; - turnList[i].turnIcon ? turnListLog += "turnIcon: " + "{value: '" + turnList[i].turnIcon.value + "', imageType: " + turnList[i].turnIcon.imageType + "}}, " : turnListLog += "},"; - } - } - if (softButtons) { - softButtonsLog += "{type: '" + softButtons[0].type + "', " + - "text: '" + softButtons[0].text + "', "; - softButtons[0].image ? softButtonsLog += "image: " + "{value: '" + softButtons[0].image.value + "', imageType: " + softButtons[0].image.imageType + "}, " : softButtonsLog += ""; - softButtonsLog += "isHighlighted: " + softButtons[0].isHighlighted + "', " + - "softButtonID: " + softButtons[0].softButtonID + "', " + - "systemAction: " + softButtons[0].systemAction + - "},"; - } - console.log("Message Received - {method: 'Navigation.UpdateTurnList', params:{ " + - "softButtons: [" + softButtonsLog + "], " + - "turnList: [" + turnListLog + "], " + - "appID: " + appID + - "}}") - if (turnList !== undefined) { - dataContainer.getApplication(appID).turnList.clear(); - turnList.forEach(fillTurnList, dataContainer.getApplication(appID).turnList); - } - if (softButtons !== undefined) { - dataContainer.getApplication(appID).turnListSoftButtons.clear(); - softButtons.forEach(fillSoftButtons, dataContainer.getApplication(appID).turnListSoftButtons); - } - dataContainer.navigationModel.appId = appID; - console.debug("exit") - } - - function fillTexts(element, index, array) { - switch (element.fieldName) { - case Common.TextFieldName.navigationText1: - this.text1 = element.fieldText; - break; - case Common.TextFieldName.navigationText2: - this.text2 = element.fieldText; - break; - case Common.TextFieldName.ETA: - this.eta = element.fieldText; - break; - case Common.TextFieldName.totalDistance: - this.totalDistance = element.fieldText; - break; - case Common.TextFieldName.timeToDestination: - this.timeToDestination = element.fieldText; - break; - } - } - - function startStream(url, appID) { - console.debug("enter") - player.startStream(url) - console.debug("exit") - } - - function stopStream(appID) { - console.debug("enter") - player.stop() - console.debug("exit") - } - - function startAudioStream(url, appID) { - console.log("Message Received - {method: 'Navigation.StartAudioStream', params:{ " + - "url: '" + url + "'" + - "appID: " + appID + - "}}") - stream.source = url; - stream.play(); - } - - function stopAudioStream(appID) { - console.log("Message Received - {method: 'Navigation.StopAudioStream', params:{ " + - "appID: " + appID + - "}}") - stream.stop(); - } - - function fillSoftButtons(element, index, array) { - this.append({ - type: element.type, - text: element.text, - image: element.image, - isHighlighted: element.isHighlighted, - buttonId: element.softButtonID, - systemAction: element.systemAction - }); - } - - function fillTurnList(element, index, array) { - this.append({ - navigationText: element.navigationText, - turnIcon: element.turnIcon - }); - console.debug(element.navigationText) - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/SDL.qml b/src/components/qt_hmi/qml_model_qt5/hmi_api/SDL.qml deleted file mode 100644 index c16e1d7750..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/hmi_api/SDL.qml +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "Common.js" as Common -import "Async.js" as Async - -Item { -} diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/TTS.qml b/src/components/qt_hmi/qml_model_qt5/hmi_api/TTS.qml deleted file mode 100644 index 7884b31097..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/hmi_api/TTS.qml +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "Common.js" as Common -import "Async.js" as Async - -Item { - function ttsChunksToString(ttsChunks){ - return ttsChunks.map(function(str) { return str.text }).join('\n') - } - - function isReady() { - console.log("Message Received - {method: 'TTS.IsReady'}") - return { - available: dataContainer.hmiTTSAvailable - } - } - - function speak(ttsChunks, appID) { - // appID unused - console.debug('enter:', ttsChunks, appID); - var ttsChunksLog = ""; - if (ttsChunks) { - for (var i = 0; i < ttsChunks.length; i++) { - ttsChunksLog += "{type: " + ttsChunks[i].type + ", " + - "text: '" + ttsChunks[i].text + "'}, "; - } - } - console.log("Message Received - {method: 'TTS.Speak', params:{ " + - "ttsChunks: [" + ttsChunksLog + "], " + - "appID: " + appID + "', " + - "}}") - if (ttsPopUp.async) { - console.log('speak send abort'); - throw Common.Result.ABORTED; - } - var message = ttsChunksToString(ttsChunks); - ttsPopUp.activate(message); - ttsPopUp.async = new Async.AsyncCall(); - console.debug('exit'); - return ttsPopUp.async; - } - - function stopSpeaking() { - console.debug("enter"); - console.log("Message Received - {method: 'TTS.StopSpeaking'}") - ttsPopUp.deactivate(); - console.debug("exit"); - } - - function getLanguage() { - console.log("Message Received - {method: 'TTS.GetLanguage'}") - return { - language: dataContainer.hmiTTSVRLanguage - } - } - - function getSupportedLanguages() { - console.log("Message Received - {method: 'TTS.GetSupportedLanguages'}") - return { - languages: settingsContainer.sdlLanguagesList - } - } - - function getCapabilities() { - console.log("Message Received - {method: 'TTS.GetCapabilities'}") - return { - speechCapabilities: [ - Common.SpeechCapabilities.SC_TEXT, - Common.SpeechCapabilities.PRE_RECORDED - ], - prerecordedSpeechCapabilities: [ - Common.PrerecordedSpeech.HELP_JINGLE, - Common.PrerecordedSpeech.INITIAL_JINGLE, - Common.PrerecordedSpeech.LISTEN_JINGLE, - Common.PrerecordedSpeech.POSITIVE_JINGLE, - Common.PrerecordedSpeech.NEGATIVE_JINGLE - ] - } - } - - function performInteraction(helpPrompt, initialPrompt, timeoutPrompt, timeout) { - console.debug("enter"); - var helpttsChunksLog = "", - initialttsChunkLog = "", - timeoutttsChunkLog = ""; - - if (helpPrompt) { - for (var i = 0; i < helpPrompt.length; i++) { - helpttsChunksLog += "{type: " + helpPrompt[i].type + ", " + - "text: '" + helpPrompt[i].text + "'}, "; - } - } - if (initialPrompt) { - for (var i = 0; i < initialPrompt.length; i++) { - initialttsChunkLog += "{type: " + initialPrompt[i].type + ", " + - "text: '" + initialPrompt[i].text + "'}, "; - } - } - if (timeoutPrompt) { - for (var i = 0; i < timeoutPrompt.length; i++) { - timeoutttsChunkLog += "{type: " + timeoutPrompt[i].type + ", " + - "text: '" + timeoutPrompt[i].text + "'}, "; - } - } - console.log("Message Received - {method: 'TTS.PerformInteraction', params:{ " + - "helpPrompt: [" + helpttsChunksLog + "], " + - "initialPrompt: [" + initialttsChunkLog + "], " + - "timeoutPrompt: [" + timeoutttsChunkLog + "], " + - "timeout: " + timeout + - "}}") - ttsPopUp.performInteraction(ttsChunksToString(helpPrompt), - ttsChunksToString(initialPrompt), - ttsChunksToString(timeoutPrompt), - timeout) - console.debug("exit"); - } - - function changeRegistration(language, appID) { - console.debug("enter:", language, appID); - console.log("Message Received - {method: 'TTS.ChangeRegistration', params:{ " + - "language: " + language + ", " + - "appID: " + appID + - "}}") - dataContainer.changeRegistrationTTSVR(language, appID); - console.debug("exit"); - } - - function setGlobalProperties(helpPrompt, timeoutPrompt, appID) { - var helpPromptLog = "", - timeoutPromptLog = ""; - if (helpPrompt) { - for (var i = 0; i < helpPrompt.length; i++) { - helpPromptLog += "{type: " + helpPrompt[i].type + ", " + - "text: '" + helpPrompt[i].text + "'}, "; - } - } - if (timeoutPrompt) { - for (var i = 0; i < timeoutPrompt.length; i++) { - timeoutPromptLog += "{type: " + timeoutPrompt[i].type + ", " + - "text: '" + timeoutPrompt[i].text + "'}, "; - } - } - console.log("Message Received - {method: 'TTS.SetGlobalProperties', params:{ " + - "appID:" + appID + ", " + - "helpPrompt: [" + helpPromptLog + "], " + - "timeoutPrompt: [" + timeoutPromptLog + "]" + - "}}") - - var newHelpPropmt = helpPrompt ? - helpPrompt.map( - function (structure) { - return structure.text - } - ).join(", ") : - dataContainer.currentApplication.helpPrompt - - var newTimeoutPrompt = timeoutPrompt ? - timeoutPrompt.map( - function (structure) { - return structure.text - } - ).join(", ") : - dataContainer.currentApplication.timeoutPrompt - - dataContainer.setApplicationProperties(dataContainer.currentApplication.appId, { - helpPrompt: newHelpPropmt, - timeoutPrompt: newTimeoutPrompt - }) - console.debug("exit") - } -} - diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml b/src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml deleted file mode 100644 index 659b7842c6..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/hmi_api/UI.qml +++ /dev/null @@ -1,730 +0,0 @@ -/** - * @file UI.qml - * @brief UI interface implementation. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "Common.js" as Common -import "Async.js" as Async -import "../models/Internal.js" as Internal - -Item { - function filter (strings, fields) { - console.debug("enter") -// substrings for each allowed field - var fieldSubstrings = {} -// this cycle concatenates allowed lines sorting them by field - for (var stringIndex = 0; stringIndex < strings.length; ++stringIndex) { - for (var fieldIndex = 0; fieldIndex < fields.length; ++fieldIndex) { - var fieldName = strings[stringIndex].fieldName - if (fieldName === fields[fieldIndex]) { - if (fieldSubstrings[fieldName] !== undefined) { - fieldSubstrings[fieldName] += "\n"; - fieldSubstrings[fieldName] += strings[stringIndex].fieldText - } - else { - fieldSubstrings[fieldName] = strings[stringIndex].fieldText - } - } - } - } - console.debug("exit") - return fieldSubstrings - } - - function alert (alertStrings, duration, softButtons, progressIndicator, alertType, appID) { - var softButtonsLog = "", - alertStringsLog = ""; - if (alertStrings) { - for (var i = 0; i < alertStrings.length; i++) { - alertStringsLog += "{fieldName: '" + alertStrings[i].fieldName + "', " + - "fieldText: '" + alertStrings[i].fieldText + "'},"; - } - } - if (softButtons) { - for (var i = 0; i < softButtons.length; i++) { - softButtonsLog += "{type: '" + softButtons[i].type + "', " + - "text: " + softButtons[i].text + "', "; - softButtons[i].image ? softButtonsLog += "image: " + "{value: '" + softButtons[i].image.value + "', imageType: " + softButtons[i].image.imageType + "}, " : softButtonsLog += ""; - softButtonsLog += "isHighlighted: " + softButtons[i].isHighlighted + "', " + - "softButtonID: " + softButtons[i].softButtonID + "', " + - "systemAction: " + softButtons[i].systemAction + - "},"; - } - } - console.log("Message Received - {method: 'UI.Alert', params:{ " + - "alertStrings: [" + alertStringsLog + "]," + - "duration: " + duration + "', " + - "softButtons: [" + softButtonsLog + "]," + - "progressIndicator: " + progressIndicator + "', " + - "appID: " + appID + "', " + - "}}") - var fieldSubstrings = alertStrings - .sort(function(a, b) { return a.fieldName - b.fieldName }) // sorting by fieldName - .map(function(val) { return val.fieldText }); // mapping to array of strings - - var tryAgainTime = alertWindow.alert(fieldSubstrings, duration, softButtons, progressIndicator, alertType, appID) - if (tryAgainTime === undefined) { - alertWindow.async = new Async.AsyncCall(); - return alertWindow.async; - } - else { - return { - "__retCode": Common.Result.REJECTED, - "tryAgainTime": tryAgainTime - } - } - } - - function show (showStrings, alignment, graphic, secondaryGraphic, softButtons, customPresets, appID) { - var softButtonsLog = "", - showStringsLog = "", - customPresetsLog = "", - graphiLog = "", - secondaryGraphicLog = ""; - if (showStrings) { - for (var i = 0; i < showStrings.length; i++) { - showStringsLog += "{fieldName: '" + showStrings[i].fieldName + "', " + - "fieldText: '" + showStrings[i].fieldText + "'},"; - } - } - if (customPresets) { - for (var i = 0; i < customPresets.length; i++) { - customPresetsLog += "'" + customPresets[i] + "', "; - } - } - if (softButtons) { - for (var i = 0; i < softButtons.length; i++) { - softButtonsLog += "{type: '" + softButtons[i].type + "', " + - "text: " + softButtons[i].text + "', "; - softButtons[i].image ? softButtonsLog += "image: " + "{value: '" + softButtons[i].image.value + "', imageType: " + softButtons[i].image.imageType + "}, " : softButtonsLog += ""; - softButtonsLog += "isHighlighted: " + softButtons[i].isHighlighted + "', " + - "softButtonID: " + softButtons[i].softButtonID + "', " + - "systemAction: " + softButtons[i].systemAction + - "},"; - } - } - if (graphic) { - graphiLog = "{value: '" + graphic.value + "', imageType: " + graphic.imageType + "}"; - } - if (secondaryGraphic) { - secondaryGraphicLog = "{value: '" + secondaryGraphic.value + "', imageType: " + secondaryGraphic.imageType + "}"; - } - - console.log("Message Received - {method: 'UI.Show', params:{ " + - "showStrings: [" + showStringsLog + "], " + - "alignment: " + alignment + "', " + - "graphic: " + graphiLog + ", " + - "secondaryGraphic: " + secondaryGraphicLog+ ", " + - "softButtons: [" + softButtonsLog + "], " + - "customPresets: [" + customPresetsLog + "], " + - "appID: " + appID + - "}}") - var app = dataContainer.getApplication(appID); - - app.softButtons.clear() - if (softButtons) { - softButtons.forEach(function(x) { app.softButtons.append(x); }); - } - - app.customPresets.clear() - if (customPresets) { - customPresets.forEach( function(x) { app.customPresets.append( {text: x} ); } ) - } - - var textAlignment - switch (alignment) { - case Common.TextAlignment.LEFT_ALIGNED: - textAlignment = Text.AlignLeft - break; - case Common.TextAlignment.RIGHT_ALIGNED: - textAlignment = Text.AlignRight - break; - case Common.TextAlignment.CENTERED: - textAlignment = Text.AlignHCenter - break; - default: - textAlignment = Text.AlignHCenter - break; - } - - // with this array we grab only the lines we need - var showFields = [ - Common.TextFieldName.mainField1, - Common.TextFieldName.mainField2, - Common.TextFieldName.mainField3, - Common.TextFieldName.mainField4, - Common.TextFieldName.statusBar, - Common.TextFieldName.mediaClock, - Common.TextFieldName.mediaTrack - ] - var fieldSubstrings = filter(showStrings, showFields) - var showData = { hmiUIText: {} } - if (fieldSubstrings[Common.TextFieldName.mainField1] !== undefined) { showData.hmiUIText.mainField1 = fieldSubstrings[Common.TextFieldName.mainField1]; } - if (fieldSubstrings[Common.TextFieldName.mainField2] !== undefined) { showData.hmiUIText.mainField2 = fieldSubstrings[Common.TextFieldName.mainField2]; } - if (fieldSubstrings[Common.TextFieldName.mainField3] !== undefined) { showData.hmiUIText.mainField3 = fieldSubstrings[Common.TextFieldName.mainField3]; } - if (fieldSubstrings[Common.TextFieldName.mainField4] !== undefined) { showData.hmiUIText.mainField4 = fieldSubstrings[Common.TextFieldName.mainField4]; } - if (fieldSubstrings[Common.TextFieldName.statusBar] !== undefined) { showData.hmiUIText.statusBar = fieldSubstrings[Common.TextFieldName.statusBar]; } - if (fieldSubstrings[Common.TextFieldName.mediaTrack] !== undefined) { showData.hmiUIText.mediaTrack = fieldSubstrings[Common.TextFieldName.mediaTrack]; } - if (graphic) { showData.hmiUIText.image = graphic.value; } - if (secondaryGraphic) { showData.hmiUIText.secondaryImage = secondaryGraphic.value; } - if (textAlignment) { showData.hmiUITextAlignment = textAlignment; } - if (fieldSubstrings[Common.TextFieldName.mediaClock]) { - showData.mediaClock = { - "updateMode": Internal.MediaClockUpdateMode.MCU_COUNTUP, - "runningMode": Internal.MediaClockRunningMode.MCR_STOPPED, - "magic": Internal.stringToHmsTime(fieldSubstrings[Common.TextFieldName.mediaClock]), - "startTime": Internal.stringToHmsTime(fieldSubstrings[Common.TextFieldName.mediaClock]), - "startTimeForProgress": -1 - } - } - - dataContainer.setApplicationProperties(appID, showData); - console.debug("exit") - } - - function addCommand (cmdID, menuParams, cmdIcon, appID) { - var cmdIconLogs = "", - menuParamsLogs = ""; - - if (cmdIcon) { - cmdIconLogs = "{value: '" + cmdIcon.value + "', imageType: " + cmdIcon.imageType + "}"; - } - if (menuParams) { - menuParamsLogs = "{parentID: " + menuParams.parentID + ", position: " + menuParams.position + "}"; - } - console.log("Message Received - {method: 'UI.AddCommand', params:{ " + - "appID: " + appID + ", " + - "cmdID: " + cmdID + ", " + - "cmdIcon: " + cmdIconLogs + ", " + - "menuParams: " + menuParamsLogs + - "}}") - dataContainer.addCommand(cmdID, menuParams, cmdIcon, appID) - } - - function deleteCommand (cmdID, appID) { - console.log("Message Received - {method: 'UI.DeleteCommand', params:{ " + - "appID: " + appID + ", " + - "cmdID: " + cmdID + - "}}") - dataContainer.deleteCommand(cmdID, appID) - } - - function addSubMenu (menuID, menuParams, appID) { - var menuParamsLogs = ""; - - if (menuParams) { - menuParamsLogs = "{parentID: " + menuParams.parentID + ", position: " + menuParams.position + "}"; - } - console.log("Message Received - {method: 'UI.AddSubMenu', params:{ " + - "appID: " + appID + ", " + - "menuID: " + menuID + ", " + - "menuParams: " + menuParamsLogs + - "}}") - dataContainer.addSubMenu(menuID, menuParams, appID) - } - - function deleteSubMenu (menuID, appID) { - console.log("Message Received - {method: 'UI.DeleteSubMenu', params:{ " + - "appID:" + appID + ", " + - "menuID: " + menuID + - "}}") - dataContainer.deleteSubMenu(menuID, appID) - } - - function performInteraction (initialText, choiceSet, vrHelpTitle, vrHelp, timeout, interactionLayout, appID) { - console.debug("enter") - var choiseLog = "", - vrHelpLog = "", - initialTextLog = ""; - if (choiceSet) { - for (var i = 0; i < choiceSet.length; i++) { - choiseLog += "{choiceID: " + choiceSet[i].choiceID + ", " + - "menuName: '" + choiceSet[i].menuName + "', " + - "image: {value: '" + choiceSet[i].image.value + "', imageType: " + choiceSet[i].image.imageType + "}, " + - "secondaryText: '" + choiceSet[i].secondaryText + "', " + - "tertiaryText: '" + choiceSet[i].tertiaryText + "', " + - "secondaryImage: {value: '" + choiceSet[i].image.value + "', imageType: " + choiceSet[i].image.imageType + "}},"; - } - } - if (vrHelp) { - for (var i = 0; i < vrHelp.length; i++) { - var vrHelpImageLog = ""; - if (vrHelp[i].image) { - vrHelpImageLog = "{value: '" + vrHelp[i].image.value + "', imageType: " + vrHelp[i].image.imageType + "}"; - } - - vrHelpLog += "{text: '" + vrHelp[i].text + "', " + - "image: " + vrHelpImageLog + ", " + - "position: " + vrHelp[i].position + - "},"; - } - } - if (initialText) { - initialTextLog = "{fieldName: " + initialText.fieldName + ", fieldText: '" + initialText.fieldText + "'}"; - } - - console.log("Message Received - {method: 'UI.PerformInteraction', params:{ " + - "appID:" + appID + ", " + - "initialText: " + initialTextLog + ", " + - "choiceSet: [" + choiseLog + "], " + - "vrHelpTitle: '" + vrHelpTitle + "', " + - "vrHelp: [" + vrHelpLog + "], " + - "timeout: " + timeout + ", " + - "interactionLayout: " + interactionLayout + - "}}") - var async = interactionPopup.performInteraction(initialText, choiceSet, vrHelpTitle, vrHelp, timeout, interactionLayout, appID) - console.debug("exit") - return async - } - - function setMediaClockTimer (startTime, endTime, updateMode, appID) { - var startTimeLog = "", - endTimeLog = ""; - if (startTime) { - startTimeLog = "hours: " + startTime.hours + ", minutes: " + startTime.minutes + ", seconds: " + startTime.seconds; - } - if (endTime) { - endTimeLog = "hours: " + endTime.hours + ", minutes: " + endTime.minutes + ", seconds: " + endTime.seconds; - } - - console.log("Message Received - {method: 'UI.SetMediaClockTimer', params:{ " + - "startTime: {" + startTimeLog + "}, " + - "endTime: {" + endTimeLog + "}, " + - "updateMode: " + updateMode + ", " + - "appID: " + appID + - "}}") - var app = dataContainer.getApplication(appID) - var newStartTime - var newEndTime - var newUpdateMode - var newRunningMode - var newStartTimeForProgress - var resultCode - var sendErrorResponce = false - - switch (updateMode) { - case Common.ClockUpdateMode.COUNTUP: - if (startTime === undefined) { - resultCode = Common.Result.INVALID_DATA - sendErrorResponce = true - break - } - newStartTime = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds) - newEndTime = endTime ? Internal.hmsTime(endTime.hours, - endTime.minutes, - endTime.seconds) - : dataContainer.currentApplication.mediaClock.upperTimeLimit - - newUpdateMode = Internal.MediaClockUpdateMode.MCU_COUNTUP - newRunningMode = Internal.MediaClockRunningMode.MCR_RUNNING - newStartTimeForProgress = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds) - resultCode = Common.Result.SUCCESS - break - - case Common.ClockUpdateMode.COUNTDOWN: - if (startTime === undefined) { - resultCode = Common.Result.INVALID_DATA - sendErrorResponce = true - break - } - newStartTime = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds) - newEndTime = endTime ? Internal.hmsTime(endTime.hours, endTime.minutes, endTime.seconds) : 0 - newUpdateMode = Internal.MediaClockUpdateMode.MCU_COUNTDOWN - newRunningMode = Internal.MediaClockRunningMode.MCR_RUNNING - newStartTimeForProgress = Internal.hmsTime(startTime.hours, startTime.minutes, startTime.seconds) - resultCode = Common.Result.SUCCESS - break - - case Common.ClockUpdateMode.PAUSE: - // Already paused or cleared - if ((app.mediaClock.runningMode === Internal.MediaClockRunningMode.MCR_STOPPED) - || (app.mediaClock.startTime === -1 && app.mediaClock.endTime === -1)) { - resultCode = Common.Result.IGNORED - sendErrorResponce = true - break - } - newStartTime = app.mediaClock.startTime - newEndTime = app.mediaClock.endTime - newRunningMode = Internal.MediaClockRunningMode.MCR_STOPPED - newUpdateMode = app.mediaClock.updateMode - newStartTimeForProgress = app.mediaClock.startTimeForProgress - resultCode = Common.Result.SUCCESS - break - - case Common.ClockUpdateMode.RESUME: - // Already resumed or cleared - if ((app.mediaClock.runningMode === Internal.MediaClockRunningMode.MCR_RUNNING) - || (app.mediaClock.startTime === app.mediaClock.endTime)) { - resultCode = Common.Result.IGNORED - sendErrorResponce = true - break - } - newStartTime = app.mediaClock.startTime - newEndTime = app.mediaClock.endTime - newRunningMode = Internal.MediaClockRunningMode.MCR_RUNNING - newStartTimeForProgress = app.mediaClock.startTimeForProgress - newUpdateMode = app.mediaClock.updateMode - resultCode = Common.Result.SUCCESS - break - - case Common.ClockUpdateMode.CLEAR: - newStartTime = -1 - newEndTime = -1 - newRunningMode = Internal.MediaClockRunningMode.MCR_STOPPED - newUpdateMode = app.mediaClock.updateMode - newStartTimeForProgress = -1 - resultCode = Common.Result.SUCCESS - break - } - - if (sendErrorResponce) { - console.debug("exit with result code: ", resultCode) - return { __retCode: resultCode } - } - - dataContainer.setApplicationProperties(appID, { - "mediaClock": { - "updateMode": newUpdateMode, - "runningMode": newRunningMode, - "startTime": newStartTime, - "endTime": newEndTime, - "startTimeForProgress": newStartTimeForProgress - } - }) - - console.debug("exit") - return { __retCode: resultCode } - } - - function setGlobalProperties (vrHelpTitle, vrHelp, menuTitle, menuIcon, keyboardProperties, appID) { - console.debug("enter") - var vrHelpLog = "", - menuIconLog = "", - keyboardPropertiesLog = ""; - if (vrHelp) { - for (var i = 0; i < vrHelp.length; i++) { - var vrHelpImageLog = ""; - if (vrHelp[i].image) { - vrHelpImageLog = "{value: '" + vrHelp[i].image.value + "', imageType: " + vrHelp[i].image.imageType + "}"; - } - vrHelpLog += "{text: '" + vrHelp[i].text + "', " + - "image: " + vrHelpImageLog + ", " + - "position: " + vrHelp[i].position + - "},"; - } - } - if (menuIcon) { - menuIconLog = "{value: '" + menuIcon.value + "', imageType: " + menuIcon.imageType + "}"; - } - if (keyboardProperties) { - keyboardPropertiesLog = "{language: '" + keyboardProperties.language + "', keyboardLayout: '" + keyboardProperties.language + - "', sendDynamicEntry: '" + keyboardProperties.sendDynamicEntry + "', keypressMode: '" + keyboardProperties.keypressMode + - "', limitedCharacterList: '" + keyboardProperties.limitedCharacterList + "', autoCompleteText: '" + keyboardProperties.autoCompleteText + "'}"; - } - - console.log("Message Received - {method: 'UI.SetGlobalProperties', params:{ " + - "appID:" + appID + ", " + - "vrHelpTitle: '" + vrHelpTitle + "', " + - "vrHelp: [" + vrHelpLog + "], " + - "menuTitle: '" + menuTitle + "', " + - "menuIcon: " + menuIconLog + ", " + - "keyboardProperties: " + keyboardPropertiesLog + - "}}") - var app = dataContainer.getApplication(appID) - var dataToUpdate = {} - - if (vrHelpTitle !== undefined) { - dataToUpdate.vrHelpTitle = vrHelpTitle - } else if ( (vrHelp !== undefined) && (vrHelp.length >= 1) ) { - return { __retCode: Common.Result.REJECTED, __message: "vrHelpTitle - undefined, vrHelpItem - provided" } - } - - if (vrHelp !== undefined) { - var checkSequentialPosition = vrHelp[0].position - for (var index = 0; index < vrHelp.length; index++) { - if (vrHelp[index].position !== checkSequentialPosition) { - return { __retCode: Common.Result.REJECTED, __message: "Nonsequential positions of VrHelpItems" } - } - checkSequentialPosition++ - } - - if (app.vrHelpItems.count !== 0) { - app.vrHelpItems.clear() - } - vrHelp.forEach( Internal.appendVrHelpItem, app.vrHelpItems ) - } else { - if (vrHelpTitle !== undefined) { - return { __retCode: Common.Result.REJECTED, __message: "vrHelpItems - undefined, vrHelpTitle - provided" } - } - } - if (menuTitle !== undefined) { - dataToUpdate.menuTitle = menuTitle - } - if (menuIcon !== undefined) { - dataToUpdate.menuIcon = menuIcon - } - dataContainer.setApplicationProperties(appID, dataToUpdate) - console.debug("exit") - } - - function isReady () { - console.log("Message Received - {method: 'UI.IsReady'}") - return { - available: dataContainer.hmiUIAvailable - } - } - - function getLanguage () { - console.log("Message Received - {method: 'UI.GetLanguage'}") - return { - language: dataContainer.hmiUILanguage - } - } - - function getSupportedLanguages () { - console.log("Message Received - {method: 'UI.GetSupportedLanguages'}") - return { - languages: settingsContainer.sdlLanguagesList - } - } - - function changeRegistration (language, appID) { - console.log("Message Received - {method: 'UI.ChangeRegistration', params:{ " + - "language: " + language + ", " + - "appID: " + appID + - "}}") - dataContainer.changeRegistrationUI(language, appID) - } - - function setAppIcon (syncFileName, appID) { - var syncFileNameLog = ""; - if (syncFileName) { - syncFileNameLog = "{value: '" + syncFileName.value + "', imageType: " + syncFileName.imageType + "}"; - } - - console.log("Message Received - {method: 'UI.SetAppIcon', params:{ " + - "syncFileName: " + syncFileNameLog + ", " + - "appID: " + appID + - "}}") - dataContainer.setApplicationProperties(appID, { icon: syncFileName.value }) - } - - function slider (numTicks, position, sliderHeader, sliderFooter, timeout, appID) { - console.log("Message Received - {method: 'UI.Slider', params:{ " + - "numTicks: " + numTicks + "', " + - "position: " + position + "', " + - "sliderHeader: '" + sliderHeader + "', " + - "sliderFooter: [" + sliderFooter + "], " + - "timeout: " + timeout + ", " + - "appID: " + appID + - "}}") - if (dataContainer.uiSlider.running) { - console.debug("aborted") - return {__retCode: Common.Result.ABORTED, sliderPosition: position} - } - - dataContainer.uiSlider.appName = dataContainer.getApplication(appID).appName - dataContainer.uiSlider.header = sliderHeader - dataContainer.uiSlider.footer = sliderFooter - dataContainer.uiSlider.numTicks = numTicks - dataContainer.uiSlider.position = position - dataContainer.uiSlider.timeout = timeout - - if (timeout !== 0) { - sliderPopup.showSlider() - sliderPopup.async = new Async.AsyncCall(); - console.debug("exit") - return sliderPopup.async; - } else { - console.debug("exit") - return { sliderPosition: position } - } - } - - function scrollableMessage (messageText, timeout, softButtons, appID) { - var softButtonsLog = "", - messageTextLog = ""; - if (softButtons) { - for (var i = 0; i < softButtons.length; i++) { - softButtonsLog += "{type: '" + softButtons[i].type + "', " + - "text: " + softButtons[i].text + "', "; - softButtons[i].image ? softButtonsLog += "image: " + "{value: '" + softButtons[i].image.value + "', imageType: " + softButtons[i].image.imageType + "}, " : softButtonsLog += ""; - softButtonsLog += "isHighlighted: " + softButtons[i].isHighlighted + "', " + - "softButtonID: " + softButtons[i].softButtonID + "', " + - "systemAction: " + softButtons[i].systemAction + - "},"; - } - } - if (messageText) { - messageTextLog = "{fieldName: " + messageText.fieldName + ", fieldText: '" + messageText.fieldText + "'}"; - } - - console.log("Message Received - {method: 'UI.ScrollableMessage', params:{ " + - "messageText: " + messageTextLog + ", " + - "timeout: " + timeout + "', " + - "softButtons: [" + softButtonsLog + "]," + - "appID: " + appID + "', " + - "}}") - // TODO{ALeshin}: Also check HMILevel, when it will be available. It should be FULL otherwise - REJECTED - if (contentLoader.item.systemContext !== Common.SystemContext.SYSCTXT_MAIN) { - return { __retCode: Common.Result.REJECTED, __message: "System Context isn't MAIN" } - } - if(dataContainer.scrollableMessageModel.running){ - //send error response if scrollable message already running - return { __retCode: Common.Result.ABORTED, __message: "ScrollableMessage already running" } - } - - dataContainer.scrollableMessageModel.longMessageText = messageText.fieldText - if (timeout === 0) { - return { __retCode: Common.Result.SUCCESS, __message: "Timeout = 0" } - } else { - dataContainer.scrollableMessageModel.timeout = timeout - } - - dataContainer.scrollableMessageModel.softButtons.clear(); - if (softButtons !== undefined) { - softButtons.forEach(fillSoftButtons, dataContainer.scrollableMessageModel.softButtons); - } - dataContainer.scrollableMessageModel.appId = appID - dataContainer.scrollableMessageModel.async = new Async.AsyncCall() - contentLoader.go("./views/ScrollableMessageView.qml") - console.debug("exit") - return dataContainer.scrollableMessageModel.async - } - - function getCapabilities() { - console.log("Message Received - {method: 'UI.GetCapabilities'}") - return { - "audioPassThruCapabilities": { - "samplingRate": Common.SamplingRate.RATE_44KHZ, - "bitsPerSample": Common.BitsPerSample.RATE_8_BIT, - "audioType": Common.AudioType.PCM - }, - "displayCapabilities": settingsContainer.displayCapabilities, - "hmiZoneCapabilities": Common.HmiZoneCapabilities.FRONT, - "softButtonCapabilities": settingsContainer.softButtonCapabilities - } - } - - function performAudioPassThru (appID, audioPassThruDisplayTexts, timeout) { - var displayTextsLog = ""; - if (audioPassThruDisplayTexts) { - for (var i = 0; i < audioPassThruDisplayTexts.length; i++) { - displayTextsLog += "{fieldName: '" + audioPassThruDisplayTexts[i].fieldName + "', " + - "fieldText: " + audioPassThruDisplayTexts[i].fieldText + "'},"; - } - } - console.log("Message Received - {method: 'UI.PerformAudioPassThru', params:{ " + - "audioPassThruDisplayTexts: [" + displayTextsLog + "], " + - "maxDuration: " + timeout + - "}}") - - if (dataContainer.uiAudioPassThru.running) { - console.debug("aborted") - throw Common.Result.ABORTED - } - - dataContainer.uiAudioPassThru.appName = dataContainer.getApplication(appID).appName - dataContainer.uiAudioPassThru.timeout = timeout - if (audioPassThruDisplayTexts.length === 2) { - dataContainer.uiAudioPassThru.firstLine = audioPassThruDisplayTexts[0].fieldText - dataContainer.uiAudioPassThru.secondLine = audioPassThruDisplayTexts[1].fieldText - } - performAudioPassThruPopup.async = new Async.AsyncCall(); - performAudioPassThruPopup.showAudioPassThru() - console.debug("exit") - return performAudioPassThruPopup.async; - } - - function endAudioPassThru () { - console.debug("enter") - console.log("Message Received - {method: 'UI.EndAudioPassThru'}") - - if (!dataContainer.uiAudioPassThru.running) { - console.debug("rejected") - throw Common.Result.REJECTED - } - DBus.sendReply({__retCode: Common.Result.SUCCESS}) - performAudioPassThruPopup.complete(Common.Result.SUCCESS) - console.debug("exit") - } - - function closePopUp (methodName) { - console.debug("enter") - console.log("Message Received - {method: 'UI.ClosePopUp', params:{ " + - "methodName: " + methodName + - "}}") - var popUpToClose - - if (dataContainer.activePopup.length === 0) { - return { __retCode: Common.Result.ABORT, __message: "No active PopUps"} - } - - if (methodName !== undefined) { - popUpToClose = methodName - } else { - popUpToClose = dataContainer.activePopup[dataContain.activePopUp.length - 1] - } - - switch (popUpToClose) { - case "UI.PerformInteraction": - interactionPopup.complete(Common.Result.SUCCESS) - break - case "UI.Slider": - sliderPopup.complete(Common.Result.SUCCESS) - break - case "UI.PerformAudioPassThru": - performAudioPassThruPopup.complete(Common.Result.SUCCESS) - break - case "UI.Alert": - alertWindow.complete(Common.Result.SUCCESS) - break - case "UI.VrHelp": - vrHelpPopup.complete(Common.Result.SUCCESS) - break - } - console.debug("exit") - } - - function fillSoftButtons(element, index, array) { - this.append({ - type: element.type, - text: element.text, - image: element.image, - isHighlighted: element.isHighlighted, - softButtonID: element.softButtonID, - systemAction: element.systemAction - }); - } - -} diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/VR.qml b/src/components/qt_hmi/qml_model_qt5/hmi_api/VR.qml deleted file mode 100644 index 8158b3271e..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/hmi_api/VR.qml +++ /dev/null @@ -1,170 +0,0 @@ -/** - * @file VR.qml - * @brief Implement of interface VR. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "Common.js" as Common -Item { - function isReady() { - console.log("Message Received - {method: 'VR.IsReady'}") - return { - available: dataContainer.hmiVRAvailable - } - } - - function addCommand(cmdID, vrCommands, type, grammarID, appID) { - var vrCommandsLog = ""; - if (vrCommands) { - for (var i = 0; i < vrCommands.length; i++) { - vrCommandsLog += "'" + vrCommands[i] + "', "; - } - } - console.log("Message Received - {method: 'VR.AddCommand', params:{ " + - "vrCommands: [" + vrCommandsLog + "], " + - "cmdID: " + cmdID + ", " + - "appID: " + appID + ", " + - "type: " + type + ", " + - "grammarID: " + grammarID + - "}}") - for (var i = 0; i < vrCommands.length; ++i) { - if (type === Common.VRCommandType.Command) { - dataContainer.vrCommands.append({ - cmdID: cmdID, - command: vrCommands[i], - appID: appID === undefined ? 0 : appID, - type: type, - grammarID: grammarID, - }); - } - else { - dataContainer.choicesVrCommands.append({ - cmdID: cmdID, - command: vrCommands[i], - appID: appID === undefined ? 0 : appID, - type: type, - grammarID: grammarID, - }); - } - } - console.log("exit") - } - - function deleteCommand(cmdID, appID) { - console.log("Message Received - {method: 'VR.DeleteCommand', params:{ " + - "appID: " + appID + ", " + - "cmdID: " + cmdID + - "}}") - for (var i = 0; i < dataContainer.vrCommands.count; ) { - if ((dataContainer.vrCommands.get(i).cmdID === cmdID) && - ((appID === undefined) || (dataContainer.vrCommands.get(i).appID === appID))) { - dataContainer.vrCommands.remove(i); - continue; - } - ++i; - } - console.log("exit") - } - - function getLanguage() { - console.log("Message Received - {method: 'VR.GetLanguage'}") - return { - language: dataContainer.hmiTTSVRLanguage - } - } - - function getSupportedLanguages() { - console.log("Message Received - {method: 'VR.GetSupportedLanguages'}") - return { - languages: settingsContainer.sdlLanguagesList - } - } - - function getCapabilities() { - console.log("Message Received - {method: 'UI.GetCapabilities'}") - return { - vrCapabilities: [ Common.VrCapabilities.VR_TEXT ] - } - } - - function changeRegistration(language, appID) { - console.debug("enter"); - console.log("Message Received - {method: 'VR.ChangeRegistration', params:{ " + - "language: " + language + ", " + - "appID: " + appID + - "}}") - dataContainer.changeRegistrationTTSVR(language, appID); - console.debug("exit"); - } - function ttsChunksToString(ttsChunks){ - return ttsChunks.map(function(str) { return str.text }).join('\n') - } - function performInteraction(helpPrompt, initialPrompt, timeoutPrompt, timeout, grammarID) { - console.debug("enter"); - var helpttsChunksLog = "", - initialttsChunkLog = "", - timeoutttsChunkLog = "", - grammarIDLog =""; - - if (helpPrompt) { - for (var i = 0; i < helpPrompt.length; i++) { - helpttsChunksLog += "{type: " + helpPrompt[i].type + ", " + - "text: '" + helpPrompt[i].text + "'}, "; - } - } - if (initialPrompt) { - for (var i = 0; i < initialPrompt.length; i++) { - initialttsChunkLog += "{type: " + initialPrompt[i].type + ", " + - "text: '" + initialPrompt[i].text + "'}, "; - } - } - if (timeoutPrompt) { - for (var i = 0; i < timeoutPrompt.length; i++) { - timeoutttsChunkLog += "{type: " + timeoutPrompt[i].type + ", " + - "text: '" + timeoutPrompt[i].text + "'}, "; - } - } - console.log("Message Received - {method: 'TTS.PerformInteraction', params:{ " + - "helpPrompt: [" + helpttsChunksLog + "], " + - "initialPrompt: [" + initialttsChunkLog + "], " + - "timeoutPrompt: [" + timeoutttsChunkLog + "], " + - "timeout: " + timeout + - "}}") - - ttsPopUp.performInteraction(ttsChunksToString(helpPrompt), - ttsChunksToString(initialPrompt), - ttsChunksToString(timeoutPrompt), - timeout) - interactionPopup.grammarID = grammarID - console.debug("exit"); - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/hmi_api/VehicleInfo.qml b/src/components/qt_hmi/qml_model_qt5/hmi_api/VehicleInfo.qml deleted file mode 100644 index e564860517..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/hmi_api/VehicleInfo.qml +++ /dev/null @@ -1,764 +0,0 @@ -/** - * @file VehicleInfo.qml - * @brief Vehicle information interface realisation. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "Common.js" as Common - -Item { - function isReady () { - console.log("Message Received - {method: 'VehicleInfo.IsReady'}") - return { - available: dataContainer.hmiVehicleInfoAvailable - } - } - - function getVehicleType() { - console.log("Message Received - {method: 'VehicleInfo.GetVehicleType'}") - return { - "vehicleType": { - "make": "Ford", - "model": "Fiesta", - "modelYear": "2013", - "trim": "SE" - } - } - } - - function getGpsData(appID) { - console.debug("enter") - console.debug("exit") - return { gps: dataContainer.vehicleInfoModel.gps } - } - - function getSpeed(appID) { - console.debug("enter") - console.debug("exit") - return { speed: dataContainer.vehicleInfoModel.speed } - } - - function getRpm(appID) { - console.debug("enter") - console.debug("exit") - return { - rpm: dataContainer.vehicleInfoModel.rpm, - __retCode: Common.Result.DATA_NOT_AVAILABLE - } - } - - function getFuelLevel(appID) { - console.debug("enter") - console.debug("exit") - return { fuelLevel: dataContainer.vehicleInfoModel.fuelLevel } - } - - function getFuelLevelState(appID) { - console.debug("enter") - console.debug("exit") - return { fuelLevel_State: dataContainer.vehicleInfoModel.fuelLevel_State } - } - - function getInstantFuelConsumption(appID) { - console.debug("enter") - console.debug("exit") - return { instantFuelConsumption: dataContainer.vehicleInfoModel.instantFuelConsumption } - } - - function getExternalTemperature(appID) { - console.debug("enter") - console.debug("exit") - return { externalTemperature: dataContainer.vehicleInfoModel.externalTemperature } - } - - function getVin(appID) { - console.debug("enter") - console.debug("exit") - return { vin: dataContainer.vehicleInfoModel.vin } - } - - function getPrndl(appID) { - console.debug("enter") - if (dataContainer.vehicleInfoModel.prndl === -1) { // Test value, to check response - console.debug("exit") - return { - prndl: dataContainer.vehicleInfoModel.prndl, - __retCode: Common.Result.DATA_NOT_AVAILABLE - } - } - console.debug("exit") - return { prndl: dataContainer.vehicleInfoModel.prndl } - } - - function getTirePressure(appID) { - console.debug("enter") - console.debug("exit") - return { tirePressure: dataContainer.vehicleInfoModel.tirePressure } - } - - function getOdometer(appID) { - console.debug("enter") - console.debug("exit") - return { - odometer: dataContainer.vehicleInfoModel.odometer, - __retCode: Common.Result.DATA_NOT_AVAILABLE - } - } - - function getBeltStatus(appID) { - console.debug("enter") - console.debug("exit") - return { beltStatus: dataContainer.vehicleInfoModel.beltStatus } - } - - function getBodyInformation(appID) { - console.debug("enter") - console.debug("exit") - return { bodyInformation: dataContainer.vehicleInfoModel.bodyInformation } - } - - function getDeviceStatus(appID) { - console.debug("enter") - console.debug("exit") - return { deviceStatus: dataContainer.vehicleInfoModel.deviceStatus } - } - - function getDriverBraking(appID) { - console.debug("enter") - console.debug("exit") - return { driverBraking: dataContainer.vehicleInfoModel.driverBraking } - } - - function getWiperStatus(appID) { - console.debug("enter") - console.debug("exit") - return { wiperStatus: dataContainer.vehicleInfoModel.wiperStatus } - } - - function getHeadLampStatus(appID) { - console.debug("enter") - console.debug("exit") - return { headLampStatus: dataContainer.vehicleInfoModel.headLampStatus } - } - - function getEngineTorque(appID) { - console.debug("enter") - console.debug("exit") - return { engineTorque: dataContainer.vehicleInfoModel.engineTorque } - } - - function getAccPedalPosition(appID) { - console.debug("enter") - console.debug("exit") - return { accPedalPosition: dataContainer.vehicleInfoModel.accPedalPosition } - } - - function getSteeringWheelAngle(appID) { - console.debug("enter") - console.debug("exit") - return { steeringWheelAngle: dataContainer.vehicleInfoModel.steeringWheelAngle } - } - - function getECallInfo(appID) { - console.debug("enter") - console.debug("exit") - return { eCallInfo: dataContainer.vehicleInfoModel.eCallInfo } - } - - function getAirbagStatus(appID) { - console.debug("enter") - console.debug("exit") - return { airbagStatus: dataContainer.vehicleInfoModel.airbagStatus } - } - - function getEmergencyEvent(appID) { - console.debug("enter") - console.debug("exit") - return { emergencyEvent: dataContainer.vehicleInfoModel.emergencyEvent } - } - - function getClusterModeStatus(appID) { - console.debug("enter") - console.debug("exit") - return { clusterModeStatus: dataContainer.vehicleInfoModel.clusterModeStatus } - } - - function getMyKey(appID) { - console.debug("enter") - console.debug("exit") - return { myKey: dataContainer.vehicleInfoModel.myKey } - } - - function getDTCs(ecuName, dtcMask, appID) { - console.log("Message Received - {method: 'VehicleInfo.GetDTCs', params:{ " + - "ecuName: " + ecuName + ", " + - "dtcMask: " + dtcMask + ", " + - "appID: " + appID + - "}}") - var ecuHeader = 2 - var dtc = [] - - for (var i = 0; i < 3; i++) { - dtc.push("line" + i) - } - return {ecuHeader: ecuHeader, dtc: dtc} - } - - function readDID(ecuName, didLocation, appID) { - console.debug("Enter") - console.log("Message Received - {method: 'VehicleInfo.ReadDID', params:{ " + - "ecuName: " + ecuName + ", " + - "didLocation: " + didLocation + ", " + - "appID: " + appID + - "}}") - //TODO{ALeshin}: refactoring of this function, when we'll have Vehicle Info module - var didResult = [] - - for (var i = 0; i < didLocation.length; i++) { - if (i < 10) { - didResult[i] = {} - didResult[i].resultCode = Common.VehicleDataResultCode.VDRC_SUCCESS - didResult[i].didLocation = didLocation[i] - didResult[i].data = '0' - } - else { - didResult[i] = {} - didResult[i].resultCode = Common.VehicleDataResultCode.VDRC_DATA_NOT_AVAILABLE - didResult[i].didLocation = didLocation[i] - didResult[i].data = '0' - } - } - console.debug("Exit") - return {didResult: didResult} - } - - function subscribeGps(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onGpsChanged.disconnect(model.sendGpsChange) - model.onGpsChanged.connect(model.sendGpsChange) - console.debug("exit") - return {gps: - { dataType: Common.VehicleDataType.VEHICLEDATA_GPS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS} } - } - function unsubscribeGps(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onGpsChanged.disconnect(model.sendGpsChange) - console.debug("exit") - return {gps: - { dataType: Common.VehicleDataType.VEHICLEDATA_GPS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS} } - - } - - function subscribeSpeed(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onSpeedChanged.disconnect(model.sendSpeedChange) - model.onSpeedChanged.connect(model.sendSpeedChange) - console.debug("exit") - return { speed: - { dataType: Common.VehicleDataType.VEHICLEDATA_SPEED, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeSpeed(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onSpeedChanged.disconnect(model.sendSpeedChange) - console.debug("exit") - return { speed: - { dataType: Common.VehicleDataType.VEHICLEDATA_SPEED, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeRpm(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onRpmChanged.disconnect(model.sendRpmChange) - model.onRpmChanged.connect(model.sendRpmChange) - console.debug("exit") - return { rpm: - { dataType: Common.VehicleDataType.VEHICLEDATA_RPM, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeRpm(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onRpmChanged.disconnect(model.sendRpmChange) - console.debug("exit") - return { rpm: - { dataType: Common.VehicleDataType.VEHICLEDATA_RPM, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeFuelLevel(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onFuelLevelChanged.disconnect(model.sendFuelLevelChange) - model.onFuelLevelChanged.connect(model.sendFuelLevelChange) - console.debug("exit") - return { fuelLevel: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELLEVEL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeFuelLevel(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onFuelLevelChanged.disconnect(model.sendFuelLevelChange) - console.debug("exit") - return { fuelLevel: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELLEVEL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeFuelLevel_State(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onFuelLevel_StateChanged.disconnect(model.sendFuelLevel_StateChange) - model.onFuelLevel_StateChanged.connect(model.sendFuelLevel_StateChange) - console.debug("exit") - return { fuelLevel_State: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELLEVEL_STATE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeFuelLevel_State(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onFuelLevel_StateChanged.disconnect(model.sendFuelLevel_StateChange) - console.debug("exit") - return { fuelLevel_State: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELLEVEL_STATE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeInstantFuelConsumption(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onInstantFuelConsumptionChanged.disconnect(model.sendInstantFuelConsumptionChange) - model.onInstantFuelConsumptionChanged.connect(model.sendInstantFuelConsumptionChange) - console.debug("exit") - return { instantFuelConsumption: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELCONSUMPTION, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeInstantFuelConsumption(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onInstantFuelConsumptionChanged.disconnect(model.sendInstantFuelConsumptionChange) - console.debug("exit") - return { instantFuelConsumption: - { dataType: Common.VehicleDataType.VEHICLEDATA_FUELCONSUMPTION, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeExternalTemperature(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onExternalTemperatureChanged.disconnect(model.sendExternalTemperatureChange) - model.onExternalTemperatureChanged.connect(model.sendExternalTemperatureChange) - console.debug("exit") - return { externalTemperature: - { dataType: Common.VehicleDataType.VEHICLEDATA_EXTERNTEMP, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeExternalTemperature(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onExternalTemperatureChanged.disconnect(model.sendExternalTemperatureChange) - console.debug("exit") - return { externalTemperature: - { dataType: Common.VehicleDataType.VEHICLEDATA_EXTERNTEMP, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribePrndl(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onPrndlChanged.disconnect(model.sendPrndlChange) - model.onPrndlChanged.connect(model.sendPrndlChange) - console.debug("exit") - return { prndl: - { dataType: Common.VehicleDataType.VEHICLEDATA_PRNDL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribePrndl(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onPrndlChanged.disconnect(model.sendPrndlChange) - console.debug("exit") - return { prndl: - { dataType: Common.VehicleDataType.VEHICLEDATA_PRNDL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeVin(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onVinChanged.disconnect(model.sendVinChange) - model.onVinChanged.connect(model.sendVinChange) - console.debug("exit") - return { vin: - { dataType: Common.VehicleDataType.VEHICLEDATA_VIN, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeVin(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onVinChanged.disconnect(model.sendVinChange) - console.debug("exit") - return { vin: - { dataType: Common.VehicleDataType.VEHICLEDATA_VIN, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeTirePressure(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onTirePressureChanged.disconnect(model.sendTirePressureChange) - model.onTirePressureChanged.connect(model.sendTirePressureChange) - console.debug("exit") - return { tirePressure: - { dataType: Common.VehicleDataType.VEHICLEDATA_TIREPRESSURE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeTirePressure(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onTirePressureChanged.disconnect(model.sendTirePressureChange) - console.debug("exit") - return { tirePressure: - { dataType: Common.VehicleDataType.VEHICLEDATA_TIREPRESSURE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeOdometer(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onOdometerChanged.disconnect(model.sendOdometerChange) - model.onOdometerChanged.connect(model.sendOdometerChange) - console.debug("exit") - return { odometer: - { dataType: Common.VehicleDataType.VEHICLEDATA_ODOMETER, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeOdometer(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onOdometerChanged.disconnect(model.sendOdometerChange) - console.debug("exit") - return { odometer: - { dataType: Common.VehicleDataType.VEHICLEDATA_ODOMETER, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeBeltStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onBeltStatusChanged.disconnect(model.sendBeltStatusChange) - model.onBeltStatusChanged.connect(model.sendBeltStatusChange) - console.debug("exit") - return { beltStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_BELTSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeBeltStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onBeltStatusChanged.disconnect(model.sendBeltStatusChange) - console.debug("exit") - return { beltStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_BELTSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeBodyInformation(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onBodyInformationChanged.disconnect(model.sendBodyInformationChange) - model.onBodyInformationChanged.connect(model.sendBodyInformationChange) - console.debug("exit") - return { bodyInformation: - { dataType: Common.VehicleDataType.VEHICLEDATA_BODYINFO, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeBodyInformation(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onBodyInformationChanged.disconnect(model.sendBodyInformationChange) - console.debug("exit") - return { bodyInformation: - { dataType: Common.VehicleDataType.VEHICLEDATA_BODYINFO, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeDeviceStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onDeviceStatusChanged.disconnect(model.sendDeviceStatusChange) - model.onDeviceStatusChanged.connect(model.sendDeviceStatusChange) - console.debug("exit") - return { deviceStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_DEVICESTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeDeviceStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onDeviceStatusChanged.disconnect(model.sendDeviceStatusChange) - console.debug("exit") - return { deviceStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_DEVICESTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeDriverBraking(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onDriverBrakingChanged.disconnect(model.sendDriverBrakingChange) - model.onDriverBrakingChanged.connect(model.sendDriverBrakingChange) - console.debug("exit") - return { driverBraking: - { dataType: Common.VehicleDataType.VEHICLEDATA_BRAKING, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeDriverBraking(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onDriverBrakingChanged.disconnect(model.sendDriverBrakingChange) - console.debug("exit") - return { driverBraking: - { dataType: Common.VehicleDataType.VEHICLEDATA_BRAKING, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeWiperStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onWiperStatusChanged.disconnect(model.sendWiperStatusChange) - model.onWiperStatusChanged.connect(model.sendWiperStatusChange) - console.debug("exit") - return { wiperStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_WIPERSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeWiperStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onWiperStatusChanged.disconnect(model.sendWiperStatusChange) - console.debug("exit") - return { wiperStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_WIPERSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeHeadLampStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onHeadLampStatusChanged.disconnect(model.sendHeadLampStatusChange) - model.onHeadLampStatusChanged.connect(model.sendHeadLampStatusChange) - console.debug("exit") - return { headLampStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_HEADLAMPSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeHeadLampStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onHeadLampStatusChanged.disconnect(model.sendHeadLampStatusChange) - console.debug("exit") - return { headLampStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_HEADLAMPSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeEngineTorque(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onEngineTorqueChanged.disconnect(model.sendEngineTorqueChange) - model.onEngineTorqueChanged.connect(model.sendEngineTorqueChange) - console.debug("exit") - return { engineTorque: - { dataType: Common.VehicleDataType.VEHICLEDATA_ENGINETORQUE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeEngineTorque(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onEngineTorqueChanged.disconnect(model.sendEngineTorqueChange) - console.debug("exit") - return { engineTorque: - { dataType: Common.VehicleDataType.VEHICLEDATA_ENGINETORQUE, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeAccPedalPosition(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onAccPedalPositionChanged.disconnect(model.sendAccPedalPositionChange) - model.onAccPedalPositionChanged.connect(model.sendAccPedalPositionChange) - console.debug("exit") - return { accPedalPosition: - { dataType: Common.VehicleDataType.VEHICLEDATA_ACCPEDAL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeAccPedalPosition(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onAccPedalPositionChanged.disconnect(model.sendAccPedalPositionChange) - console.debug("exit") - return { accPedalPosition: - { dataType: Common.VehicleDataType.VEHICLEDATA_ACCPEDAL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeSteeringWheelAngle(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onSteeringWheelAngleChanged.disconnect(model.sendSteeringWheelAngleChange) - model.onSteeringWheelAngleChanged.connect(model.sendSteeringWheelAngleChange) - console.debug("exit") - return { steeringWheelAngle: - { dataType: Common.VehicleDataType.VEHICLEDATA_STEERINGWHEEL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeSteeringWheelAngle(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onSteeringWheelAngleChanged.disconnect(model.sendSteeringWheelAngleChange) - console.debug("exit") - return { steeringWheelAngle: - { dataType: Common.VehicleDataType.VEHICLEDATA_STEERINGWHEEL, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeECallInfo(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onECallInfoChanged.disconnect(model.sendECallInfoChange) - model.onECallInfoChanged.connect(model.sendECallInfoChange) - console.debug("exit") - return { eCallInfo: - { dataType: Common.VehicleDataType.VEHICLEDATA_ECALLINFO, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeECallInfo(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onECallInfoChanged.disconnect(model.sendECallInfoChange) - console.debug("exit") - return { eCallInfo: - { dataType: Common.VehicleDataType.VEHICLEDATA_ECALLINFO, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeAirbagStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onAirbagStatusChanged.disconnect(model.sendAirbagStatusChange) - model.onAirbagStatusChanged.connect(model.sendAirbagStatusChange) - console.debug("exit") - return { airbagStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_AIRBAGSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeAirbagStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onAirbagStatusChanged.disconnect(model.sendAirbagStatusChange) - console.debug("exit") - return { airbagStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_AIRBAGSTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeEmergencyEvent(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onEmergencyEventChanged.disconnect(model.sendEmergencyEventChange) - model.onEmergencyEventChanged.connect(model.sendEmergencyEventChange) - console.debug("exit") - return { emergencyEvent: - { dataType: Common.VehicleDataType.VEHICLEDATA_EMERGENCYEVENT, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeEmergencyEvent(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onEmergencyEventChanged.disconnect(model.sendEmergencyEventChange) - console.debug("exit") - return { emergencyEvent: - { dataType: Common.VehicleDataType.VEHICLEDATA_EMERGENCYEVENT, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeClusterModeStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onClusterModeStatusChanged.disconnect(model.sendClusterModeStatusChange) - model.onClusterModeStatusChanged.connect(model.sendClusterModeStatusChange) - console.debug("exit") - return { clusterModeStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_CLUSTERMODESTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeClusterModeStatus(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onClusterModeStatusChanged.disconnect(model.sendClusterModeStatusChange) - console.debug("exit") - return { clusterModeStatus: - { dataType: Common.VehicleDataType.VEHICLEDATA_CLUSTERMODESTATUS, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - - function subscribeMyKey(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onMyKeyChanged.disconnect(model.sendMyKeyChange) - model.onMyKeyChanged.connect(model.sendMyKeyChange) - console.debug("exit") - return { myKey: - { dataType: Common.VehicleDataType.VEHICLEDATA_MYKEY, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } - function unsubscribeMyKey(appID) { - console.debug("enter") - var model = dataContainer.vehicleInfoModel; - model.onMyKeyChanged.disconnect(model.sendMyKeyChange) - console.debug("exit") - return { myKey: - { dataType: Common.VehicleDataType.VEHICLEDATA_MYKEY, - resultCode: Common.VehicleDataResultCode.VDRC_SUCCESS } } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/log4cxx.properties b/src/components/qt_hmi/qml_model_qt5/log4cxx.properties deleted file mode 100644 index 0bc5ac8fdf..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/log4cxx.properties +++ /dev/null @@ -1,41 +0,0 @@ -# Socket logger -log4j.appender.SocketHub=org.apache.log4j.net.SocketHubAppender -log4j.appender.SocketHub.port=4555 -log4j.appender.SocketHub.locationInfo=true - -# Only ERROR and FATAL messages are logged to console -log4j.appender.Console=org.apache.log4j.ConsoleAppender -log4j.appender.Console.ImmediateFlush=true -log4j.appender.Console.layout=org.apache.log4j.PatternLayout -log4j.appender.Console.layout.ConversionPattern=%-5p [%d{dd MMM yyyy HH:mm:ss,SSS}][%c] %m%n -log4j.appender.Console.Threshold=ERROR - -# Log for all DBus plugin messages -log4j.appender.DBusPluginLogFile=org.apache.log4j.FileAppender -log4j.appender.DBusPluginLogFile.File=DBusPlugin.log -log4j.appender.DBusPluginLogFile.append=false -log4j.appender.DBusPluginLogFile.DatePattern='.' yyyy-MM-dd -log4j.appender.DBusPluginLogFile.ImmediateFlush=true -log4j.appender.DBusPluginLogFile.layout=org.apache.log4j.PatternLayout -log4j.appender.DBusPluginLogFile.layout.ConversionPattern=%-5p [%d{dd MMM yyyy HH:mm:ss,SSS}][%c] %F:%L %M: %m%n - -# Log for all HMI Framework plugin -log4j.appender.HmiFrameworkPluginLogFile=org.apache.log4j.FileAppender -log4j.appender.HmiFrameworkPluginLogFile.File=HmiFrameworkPlugin.log -log4j.appender.HmiFrameworkPluginLogFile.append=false -log4j.appender.HmiFrameworkPluginLogFile.DatePattern='.' yyyy-MM-dd -log4j.appender.HmiFrameworkPluginLogFile.ImmediateFlush=true -log4j.appender.HmiFrameworkPluginLogFile.layout=org.apache.log4j.PatternLayout -log4j.appender.HmiFrameworkPluginLogFile.layout.ConversionPattern=%-5p [%d{dd MMM yyyy HH:mm:ss,SSS}][%c] %F:%L %M: %m%n - -# Log for all Qt HMI -log4j.rootLogger=ALL, Console - -# Log for DBus plugin QtHMI -log4j.logger.DBusPlugin=ALL, DBusPluginLogFile - -# Log for HMI Framework plugin -log4j.logger.HmiFrameworkPlugin=ALL, HmiFrameworkPluginLogFile - -# Log by log4cxx plugin -log4j.logger.Log4cxxPlugin=ALL, HmiFrameworkPluginLogFile diff --git a/src/components/qt_hmi/qml_model_qt5/models/ApplicationData.qml b/src/components/qt_hmi/qml_model_qt5/models/ApplicationData.qml deleted file mode 100644 index ec40819040..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/ApplicationData.qml +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @file ApplicationData.qml - * @brief Model for Application. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -QtObject { - property string mainField1 - property string mainField2 - property string mainField3 - property string mainField4 - property string statusBar - property string mediaTrack - property string image: "" - property string secondaryImage: "" - - function reset () { - console.debug("enter") - mainField1 = "" - mainField2 = "" - mainField3 = "" - mainField4 = "" - statusBar = "" - mediaTrack = "" - image = "" - secondaryImage = "" - console.debug("exit") - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/ApplicationModel.qml b/src/components/qt_hmi/qml_model_qt5/models/ApplicationModel.qml deleted file mode 100644 index 5181e04a5b..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/ApplicationModel.qml +++ /dev/null @@ -1,105 +0,0 @@ -/** - * @file ApplicationModel.qml - * @brief Own fields for each application. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" - -QtObject { - property int appId - property string appName - property string ngnMediaScreenAppName - property Icon appIcon: Icon { } - property string deviceName - property int hmiDisplayLanguageDesired - property bool isMediaApplication - property int appType - property int hmiUITextAlignment - property string vrHelpTitle - property string vrHelpTitleDefault: "VR HELP" - property string vrHelpTitlePerformInteraction - property string menuTitle - property Icon menuIcon: Icon { } - - // media player - property string playPauseState - property ApplicationData hmiUIText: ApplicationData { } - property MediaClockModel mediaClock: MediaClockModel { } - property NavigationModel navigationModel: NavigationModel { } - - property string helpPrompt - property string timeoutPrompt - property ListModel vrHelpItems: ListModel { } - property ListModel vrHelpItemsDefault: VrHelpItemsDefault { } - property ListModel vrHelpItemsPerformInteraction: ListModel { } - property ListModel options: ListModel { } - property ListModel currentSubMenu: options - property ListModel turnList - property ListModel softButtons - property ListModel turnListSoftButtons - property ListModel navigationSoftButtons - property ListModel alertManeuverSoftButtons - property ListModel customPresets - property int languageTTSVR - property var allowedFunctions: [] - // This place is for adding new properties - - function reset () { - console.debug("enter") - appId = -1 - appName = "" - ngnMediaScreenAppName = "" - appIcon.reset() - deviceName = "" - hmiDisplayLanguageDesired = -1 - isMediaApplication = false - playPauseState = "" - hmiUIText.reset() -// no need to reset mediaClock - helpPrompt = "" - timeoutPrompt = "" - options.clear() - currentSubMenu = options - turnList.clear() - softButtons.clear() - navigationSoftButtons.clear() - alertManeuverSoftButtons.clear() - turnListSoftButtons.clear() - customPresets.clear() - languageTTSVR = -1 - hmiUITextAlignment = -1 - appType = 0 - allowedFunctions = [] - console.debug("exit") - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/CarMenuModel.qml b/src/components/qt_hmi/qml_model_qt5/models/CarMenuModel.qml deleted file mode 100644 index c715ae091f..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/CarMenuModel.qml +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file CarMenuModel.qml - * @brief Car menu list of elements. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 - -ListModel -{ - ListElement { - name: "ambient" - icon: "../res/vehicle/Ambient Lighti Icon.png" - qml: "" - } - ListElement { - name: "cal" - icon: "../res/vehicle/cal.png" - qml: "" - } - ListElement { - name: "ev" - icon: "../res/vehicle/EV Icon.png" - qml: "" - } - ListElement { - name: "folders" - icon: "../res/vehicle/folders.png" - qml: "" - } - ListElement { - name: "key" - icon: "../res/vehicle/key_car.png" - qml: "" - } - ListElement { - name: "mcs" - icon: "../res/vehicle/MCS Icon.png" - qml: "" - } - ListElement { - name: "sun" - icon: "../res/vehicle/sun.png" - qml: "" - } - ListElement { - name: "sync" - icon: "../res/vehicle/SYNC Services.png" - qml: "" - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/Constants.js b/src/components/qt_hmi/qml_model_qt5/models/Constants.js deleted file mode 100644 index 0b4a3191d7..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/Constants.js +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @file Constants.js - * @brief Namespace of constants. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -.pragma library - -// Colors - -// Main color of HMI model(now it ~lightblue). Buttons, text, icons of this color. -var primaryColor = "#1d81d5" - -// Color of pressed buttons, text, icons etc. -var primaryColorPressed = "#8ec0ea" - -// Secondary color of HMI model, backgroud of this color. -var secondaryColor = "black" - -// Color of text at buttonts that are inactive (at phone keyboard, when no any contact started with current letter). -var inactiveButtonTextColor = "grey" - -// Color of text at buttonts that are inactive but nevertheless pressed (at phone keyboard, when no any contact started with current letter). -var inactiveButtonTextColorPressed = "lightgrey" - -// Color of text at contact list screen view (Name, number and number type). -var contactTextColor = "lightblue" - -// Color of text at buttons, when they are pressed. -var pressedButtonTextColor = "black" - -// Color of text at "white" buttons, for all other buttons (which most) use primaryColor. -var releasedButtonTextColor = "white" - -// Transparent background. -var transparentColor = "#00000000" - -// "Warning" word color -var warningColor = "red" - -// Color for PopUp -var popUpBorderColor = "white" - -// Color for hardware and simulation panels -var panelColor = "#003" - -// Color for text in hardware and simulation panels -var panelTextColor = "white" - -// Audio pass thru PopUp text color -var audioPassThruTextColor = "white" - -// Semi transparent color of item in SDL Navi menu -var sdlNaviTransparentItemColor = "#30C0C0C0" - -//-------------------------------------------------------------------------------------- - -// Font sizes of different elements - -// Font size for most of text in HMI model. -var fontSize = 20 - -// Font size for text inside oval buttons. -var ovalButtonFontSize = 15 - -// Title font size -var titleFontSize = 35 - -// Power on/off button font size -var powerButtonFornSize = 25 - -// Font size of status bar -var statusBarFontSize = 15 - -// Size icon for buttons -var iconButtonSize = 30 - -// Size icon for item list -var iconItemListSize = 40 - -// font size fo TTS popup -var ttsFontSize = 12 - -// Font size for list of applications -var appListFontSize = 40 - -// Size of contact list fields -var contactListNameFieldSize = 0.4 -var contactListPhoneFieldSize = 0.3 -var contactListDescriptionFieldSize = 0.3 - -//-------------------------------------------------------------------------------------- - -// Sizes of buttons, menus, screen, etc - -// Minimal width and height of screen (screen wont resize, if height and width are lower). -var mainScreenMinWidth = 800 -var mainScreenMiHeight = 600 - -// Width for long oval button -var ovalButtonWidth = 163 - -// Height for oval button -var ovalButtonHeight = 65 - -// Height item list -var itemListHeight = 60 - -// Width for TTS popup -var ttsPopUpWidth = 250 - -// Height for TTS popup -var ttsPopUpHeight = 100 - -// Width for popup view -var popupWidth = 700 - -// Width for alert window -var alertWidth = 360 - -// Height for popup view -var popupHeigth = 500 - -// Width for combobox -var defaultComboboxWidth = 150 - -// Size icon for list of applications -var appListIconSize = 100 - -// DistanceBar height -var distanceBarHeight = 1 - - -//--------------------------------------------------------------------------------------- - -// Other - -// Offset from the edges of the screen. -var margin = 20 - -// Offset from the edges of the popup -var popupMargin = 15 - -// Spacing between items in SDLNavi view -var sdlNaviSpacing = 5 - -// Spacing between contacts at contact screen view. -var contactListSpacing = 30 - -// Duration of appearance of icon/button at icon/button menus. -var animationDuration = 500 - -// Duration of appearence of "OK" button at warning screen view, when HMI starts. -var warningScreenDuration = 1000 - -// Timer to check how long preset button is pressed. -var presetButtonTimer = 800 - -// Timer to check got long custom button is pressed. -var customButtonTimer = 2000 - -// Spacing between icon and item in list -var iconItemListSpacing = 20 - -// Spacing between item on views -var generalSpacing = 10 - -// Width of scrollBar -var scrollBarWidth = 5 - -// Speak text for a given time -var ttsSpeakTime = 2000 - -// Maximal number of submenus -var maximumSubmenus = 1000 - -// Maximal number of commands in submenu or root menu -var maximumCommandsPerSubmenu = 1000 - -// padding for popup view -var popUpPadding = 20 - -// Padding for TTS popup -var ttsPopUpPadding = 10 - -// ------------------------- -var sliderBarWidth = 400 -var sliderBarHeight = 50 -var sliderBarRadius = 3 -var sliderBarBorderWidth = 1 -var sliderTextColor = "white" -var sliderBarBorderColor = "white" -var sliderBarFillColor = "white" - -// ------------------------- -var scrollableMessageTextColor = "white" -var scrollableMessageScrollBarColor = "gray" -var scrollableMessageScrollBarWidth = 10 - -// Padding for hardware and simulation panels -var panelPadding = 20 - -// Scale for pressed icon in menu -var pressedIconScale = 1.1 - -// Values of color effect for highlighted button -var highlightedButtonHue = 0.9 -var highlightedButtonSaturation = 0.0 -var highlightedButtonLightness = 0.1 - -// Values of color effect for disabled button -var disabledButtonHue = 0.0 -var disabledButtonSaturation = -1.0 -var disabledButtonLightness = 0.1 - -// Count of rows for grid menu -var menuRowCount = 2 - -// Count of columns for grid menu -var menuColumnCount = 3 - -// Position for element that came without position value (should be always at the end) -var positionOfElementWithoutPosition = 1001 diff --git a/src/components/qt_hmi/qml_model_qt5/models/ContactsListModel.qml b/src/components/qt_hmi/qml_model_qt5/models/ContactsListModel.qml deleted file mode 100644 index 7e9326e9d8..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/ContactsListModel.qml +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @file ContactsListModel.qml - * @brief List of contacts. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 - -ListModel -{ - // TODO {ALeshin}: This list model should be sorted in ABC and Upper/lower case order, - // when it will be filled dynamically. - ListElement { name: "Aaron" ; phone:"(614)555-2444";type:"Mobile"} - ListElement { name: "Adrian" ; phone:"(740)245-3434";type:"Mobile" } - ListElement { name: "Albert" ; phone:"(614)245-5584";type:"Mobile" } - ListElement { name: "Alice" ; phone:"(313)878-3566";type:"Office"} - ListElement { name: "Alec" ; phone:"(917)608-2418";type:"Mobile"} - ListElement { name: "Alexander" ; phone:"(614)608-2400";type:"Home"} - ListElement { name: "Alexander Vasil'evich Michail Leontiy" ; phone:"(614)608-2400";type:"Mobile"} - ListElement { name: "Amber" ; phone:"(614)608-2111";type:"Mobile"} - ListElement { name: "Amy" ; phone:"(440)245-3434";type:"Mobile" } - ListElement { name: "Andy" ; phone:"(313)245-3434";type:"Mobile" } - ListElement { name: "Antje" ; phone:"(567)245-3434";type:"Home" } - ListElement { name: "buddy" ; phone:"(614)813-6610";type:"Mobile" } - ListElement { name: "Barry" ; phone:"(313)555-2211";type:"Mobile" } - ListElement { name: "Bea" ; phone:"(614)455-3434";type:"Mobile" } - ListElement { name: "Ben" ; phone:"(614)882-1843";type:"Office" } - ListElement { name: "Blake" ; phone:"(330)149-7778";type:"Mobile" } - ListElement { name: "Bob Mould" ; phone:"(313)245-3434";type:"Mobile" } - ListElement { name: "Brian" ; phone:"(614)332-7499";type:"Mobile" } - ListElement { name: "Calvin" ; phone:"(614)442-9974";type:"Mobile" } - ListElement { name: "Carl" ; phone:"(567)773-3434";type:"Home" } - ListElement { name: "Cat Power" ; phone:"(313)608-3434";type:"Home"} - ListElement { name: "Cathy" ; phone:"(313)444-456";type:"Home"} - ListElement { name: "Chris" ; phone:"(734)997-6514";type:"Home" } - ListElement { name: "Cloud Nothings"; phone:"(444)608-543";type:"Mobile"} - ListElement { name: "Cody" ; phone:"(567)365-8413";type:"Home" } - ListElement { name: "Curtis" ; phone:"(614)245-1547";type:"Office" } - ListElement { name: "Dakota" ; phone:"(567)555-4444";type:"Home" } - ListElement { name: "Dale" ; phone:"(567)723-1974";type:"Mobile" } - ListElement { name: "Dallas"; phone:"(614)556-879";type:"Home"} - ListElement { name: "Damian" ; phone:"(614)245-3434";type:"Office" } - ListElement { name: "Daniel"; phone:"(614)556-879";type:"Home"} - ListElement { name: "Darina"; phone:"(313)895-888";type:"Mobile"} - ListElement { name: "Dee "; phone:"(313)432-3434";type:"Home"} -// ListElement { name: "Edward" ; phone:"(917)608-975";type:"Office"} - ListElement { name: "Ferdinand" ; phone:"(917)879-795";type:"Mobile"} - ListElement { name: "gomez" ; phone:"(313)455-543";type:"Mobile"} - ListElement { name: "Harry Potter"; phone:"(313)888-432";type:"Home"} - ListElement { name: "Ivan"; phone:"(313)996-225";type:"Home"} -// ListElement { name: "James" ; phone:"(917)608-3434";type:"Mobile"} - ListElement { name: "Karen"; phone:"(313)998-332";type:"Home"} - ListElement { name: "Luis Torres"; phone:"(313)779-111";type:"Home"} - ListElement { name: "Mary"; phone:"(313)234-098";type:"Mobile"} - ListElement { name: "Neil"; phone:"(313)444-112";type:"Mobile"} - ListElement { name: "Oswald"; phone:"(313)456-921";type:"Mobile"} - ListElement { name: "Oscar"; phone:"(313)332-778";type:"Home"} - ListElement { name: "~1123"; phone:"(313)1332";type:"Home"} - ListElement { name: "Patrice"; phone:"(313)789-111";type:"Mobile"} - ListElement { name: "Queen Elizabeth"; phone:"(313)897-666";type:"Mobile"} - ListElement { name: "Rose"; phone:"(313)111-211";type:"Mobile"} - ListElement { name: "Susell"; phone:"(313)345-122";type:"Home"} - ListElement { name: "Thomas"; phone:"(917)608-342";type:"Mobile"} - ListElement { name: "Titus Andronicus" ; phone:"(917)608-321";type:"Office"} - ListElement { name: "Toretto" ; phone:"(917)608-3434";type:"Home"} - ListElement { name: "Uhl" ; phone:"(313)444-654";type:"Office"} - ListElement { name: "willi" ; phone:"(313)224-5712";type:"Office"} - ListElement { name: "Wanda" ; phone:"(313)666-6969";type:"Office"} - ListElement { name: "wanda" ; phone:"(313)666-6969";type:"Office"} - ListElement { name: "Zara" ; phone:"(313)231-009";type:"Mobile"} -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/DataStorage.qml b/src/components/qt_hmi/qml_model_qt5/models/DataStorage.qml deleted file mode 100644 index e3785bdf19..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/DataStorage.qml +++ /dev/null @@ -1,660 +0,0 @@ -/** - * @file DataStorage.qml - * @brief Container for data. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common -import "Internal.js" as Internal -import "Constants.js" as Constants - -QtObject { - property string contactsFirstLetter // first letter of contact's name that need to find at contact list - property ApplicationModel currentApplication: ApplicationModel { } - property SliderModel uiSlider: SliderModel { } - property PerformAudioPassThruModel uiAudioPassThru: PerformAudioPassThruModel { } - property ScrollableMessageModel scrollableMessageModel: ScrollableMessageModel { } - - function getApplication(appId) { - console.log("enter"); - for(var i = 0; i < applicationList.count; i++) { - if(applicationList.get(i).appId === appId) { - console.log("Application found", applicationList.get(i)); - return applicationList.get(i); - } - } - console.log("exit"); - } - - function getStashedApplication(appId) { - console.log("enter getStashedApplication function"); - for(var i = 0; i < stashedApplicationsList.count; i++) { - if(stashedApplicationsList.get(i).appId === appId) { - console.log("Application found", stashedApplicationsList.get(i)); - return stashedApplicationsList.get(i); - } - } - console.log("exit getStashedApplication: application was not found"); - } - - onApplicationListChanged: { - console.log("onApplicationListChanged()"); - setCurrentApplication(appId); - } - - function setCurrentApplication(appId) { - console.log("Enter setCurrentApplication function"); - var oldApplicationContext = applicationContext; - if (currentApplication.appId !== appId) { - applicationContext = false; - } - - for(var i = 0; i < applicationList.count; i++) { - if(applicationList.get(i).appId === appId) { - currentApplication.appId = appId - var application = applicationList.get(i) - - currentApplication.appName = application.appName - currentApplication.appType = application.appType - currentApplication.appIcon.source = application.icon - currentApplication.playPauseState = application.playPauseState - currentApplication.options = application.options - currentApplication.softButtons = application.softButtons - currentApplication.navigationSoftButtons = application.navigationSoftButtons - currentApplication.alertManeuverSoftButtons = application.alertManeuverSoftButtons - currentApplication.customPresets = application.customPresets - - if (application.navigationModel.text1 !== undefined) { - currentApplication.navigationModel.text1 = application.navigationModel.text1 - } - if (application.navigationModel.text2 !== undefined) { - currentApplication.navigationModel.text2 = application.navigationModel.text2 - } - if (application.navigationModel.totalDistance !== undefined) { - currentApplication.navigationModel.totalDistance = application.navigationModel.totalDistance - } - if (application.navigationModel.eta !== undefined) { - currentApplication.navigationModel.eta = application.navigationModel.eta - } - if (application.navigationModel.timeToDestination !== undefined) { - currentApplication.navigationModel.timeToDestination = application.navigationModel.timeToDestination - } - if (application.navigationModel.turnIcon !== undefined) { - currentApplication.navigationModel.turnIcon = application.navigationModel.turnIcon - } - if (application.navigationModel.nextTurnIcon !== undefined) { - currentApplication.navigationModel.nextTurnIcon = application.navigationModel.nextTurnIcon - } - if (application.navigationModel.distanceToManeuver !== undefined) { - currentApplication.navigationModel.distanceToManeuver = application.navigationModel.distanceToManeuver - } - if (application.navigationModel.distanceToManeuverScale !== undefined) { - currentApplication.navigationModel.distanceToManeuverScale = application.navigationModel.distanceToManeuverScale - } - if (application.navigationModel.maneuverComplete !== undefined) { - currentApplication.navigationModel.maneuverComplete = application.navigationModel.maneuverComplete - } - if (application.navigationModel.appID !== undefined) { - currentApplication.navigationModel.appID = application.navigationModel.appID - } - if (application.hmiUIText.mainField1 !== undefined) { - currentApplication.hmiUIText.mainField1 = application.hmiUIText.mainField1 - } - if (application.hmiUIText.mainField2 !== undefined) { - currentApplication.hmiUIText.mainField2 = application.hmiUIText.mainField2 - } - if (application.hmiUIText.mainField3 !== undefined) { - currentApplication.hmiUIText.mainField3 = application.hmiUIText.mainField3 - } - if (application.hmiUIText.mainField4 !== undefined) { - currentApplication.hmiUIText.mainField4 = application.hmiUIText.mainField4 - } - if (application.hmiUIText.statusBar !== undefined) { - currentApplication.hmiUIText.statusBar = application.hmiUIText.statusBar - } - if (application.hmiUIText.mediaTrack !== undefined) { - currentApplication.hmiUIText.mediaTrack = application.hmiUIText.mediaTrack - } - if (application.hmiUIText.image !== undefined) { - currentApplication.hmiUIText.image = application.hmiUIText.image - } - if (application.hmiUIText.secondaryImage!== undefined) { - currentApplication.hmiUIText.secondaryImage= application.hmiUIText.secondaryImage - } - if (application.hmiUITextAlignment !== undefined) { - currentApplication.hmiUITextAlignment = application.hmiUITextAlignment - } - if (application.helpPrompt !== undefined) { - currentApplication.helpPrompt = application.helpPrompt - } - if (application.timeoutPrompt !== undefined) { - currentApplication.timeoutPrompt = application.timeoutPrompt - } - if (application.mediaClock.startTime !== undefined) { - currentApplication.mediaClock.startTime = application.mediaClock.startTime - } - if (application.mediaClock.endTime !== undefined) { - currentApplication.mediaClock.endTime = application.mediaClock.endTime - } - // Check fields with mandatory = false - - if (application.menuIcon !== undefined) { - currentApplication.menuIcon.source = application.menuIcon - } - currentApplication.vrHelpTitle = application.vrHelpTitle - currentApplication.vrHelpTitleDefault = application.vrHelpTitleDefault - currentApplication.vrHelpTitlePerformInteraction = application.vrHelpTitlePerformInteraction - currentApplication.menuTitle = application.menuTitle - currentApplication.vrHelpItems = application.vrHelpItems - currentApplication.vrHelpItemsPerformInteraction = application.vrHelpItemsPerformInteraction - currentApplication.deviceName = application.deviceName - currentApplication.isMediaApplication = application.isMediaApplication - currentApplication.turnList = application.turnList - currentApplication.turnListSoftButtons = application.turnListSoftButtons - currentApplication.mediaClock.updateMode = application.mediaClock.updateMode - currentApplication.mediaClock.runningMode = application.mediaClock.runningMode - if (application.mediaClock.startTimeForProgress !== undefined) { - currentApplication.mediaClock.startTimeForProgress = application.mediaClock.startTimeForProgress - } - currentApplication.languageTTSVR = application.languageTTSVR - currentApplication.hmiDisplayLanguageDesired = application.hmiDisplayLanguageDesired - currentApplication.allowedFunctions = application.allowedFunctions - // This place is for adding new properties - } - } - applicationContext = oldApplicationContext; - currentApplicationChanged() - console.log("Exit setCurrentApplication function") - } - - function addApplication(app) { - console.log("enter") - applicationList.append({ - appName: app.appName, - ngnMediaScreenAppName: app.ngnMediaScreenAppName, - icon: app.icon, - menuIcon: { - value: "", - imageType: 1 - }, - deviceName: app.deviceName, - appId: app.appId, - hmiDisplayLanguageDesired: app.hmiDisplayLanguageDesired, - isMediaApplication: app.isMediaApplication, - appType: app.appType, - helpPrompt: "", - timeoutPrompt: "", - customPresets: app.customPresets ? app.customPresets : [], - playPauseState: 'Pause', - hmiUIText: app.hmiUIText, - hmiUITextAlignment: app.hmiUITextAlignment, - options: [], - turnList: [], - turnListSoftButtons: [], - mediaClock: app.mediaClock, - languageTTSVR: Common.Language.EN_US, - softButtons: [], - vrHelpTitle: "", - vrHelpTitlePerformInteraction: "", - vrHelpTitleDefault: "VR HELP", - menuTitle: "", - keyboardProperties: [], - vrHelpItems: [], - vrHelpItemsPerformInteraction: [], - vrHelpItemsDefault: { - text: "VrHelpItems - defaultText1", - image: "", - position: 1 - }, - navigationSoftButtons: [], - alertManeuverSoftButtons: [], - navigationModel: { - appID: -1, - text1: "", - text2: "", - totalDistance: "", - eta: "", - timeToDestination: "", - turnIcon: { - value: "", - imageType: -1 - }, - nextTurnIcon: { - value: "", - imageType: -1 - }, - distanceToManeuver: 0, - distanceToManeuverScale: 0, - maneuverComplete: false - }, - allowedFunctions: [] - // This place is for adding new properties - }) - if (app.isMediaApplication) { - musicSourceModel.insert(0, { - "title": app.appName, - "qml": "views/SDLPlayerView.qml", - "appId": app.appId - }) - } - - console.log("exit") - } - - function setApplicationProperties(appId, props) { - console.log("Enter setApplicationProperties function"); - - var app = getApplication(appId) - for (var p in props) { - console.debug(p) - if (props[p] !== undefined) { - app[p] = props[p] - } - } - if (currentApplication.appId === appId) { - setCurrentApplication(appId); // copy new values to current application - } - console.log("Exit setApplicationProperties function"); - } - - function removeApplication(appId) { - console.log("enter removeApplication"); - for (var j = 0; j < musicSourceModel.count; ++j) { - if (musicSourceModel.get(j).appId === appId) { - musicSourceModel.remove(j); - break; - } - } - for (var i = 0; i < applicationList.count; i++) { - if (applicationList.get(i).appId === appId) { - applicationList.remove(i); - break; - } - } - console.log("exit removeApplication"); - } - - function stashApplication(appId) { - console.log("stashApplication enter"); - stashedApplicationsList.append(getApplication(appId)) - console.log("stashApplication exit"); - } - - function getResumeResult (appID) { - - if (getStashedApplication(appId) && getApplication(appID)) { - var stashedApp = getStashedApplication(appId), - app = getApplication(appID); - if (stashedApp.options.count == app.options.count) { - for (var optionIndex = 0; optionIndex < stashedApp.options.count; ++optionIndex) { - if (app.options.get(optionIndex).type === Internal.MenuItemType.MI_SUBMENU) { - //comparison subMenu compare - - if ( !((app.options.get(optionIndex).id === stashedApp.options.get(optionIndex).id) && - (app.options.get(optionIndex).name === stashedApp.options.get(optionIndex).name) && - (app.options.get(optionIndex).position === stashedApp.options.get(optionIndex).position) && - (app.options.get(optionIndex).icon === stashedApp.options.get(optionIndex).icon))) { - return { - result: false - } - } - - var stashedAppSubMenu = stashedApp.options.get(optionIndex).subMenu, - appSubMenuArray = app.options.get(optionIndex).subMenu; - - if (stashedAppSubMenu.length != appSubMenuArray.length) { - return { - result: false - } - } - - for (var subMenuIndex = 0; subMenuIndex < stashedAppSubMenu.length; subMenuIndex++) { - if ( !((appSubMenuArray[subMenuIndex].id === stashedAppSubMenu[subMenuIndex].id) && - (appSubMenuArray[subMenuIndex].name === stashedAppSubMenu[subMenuIndex].name) && - (appSubMenuArray[subMenuIndex].position === stashedAppSubMenu[subMenuIndex].position) && - (appSubMenuArray[subMenuIndex].icon === stashedAppSubMenu[subMenuIndex].icon) - )) { - return { - result: false - } - } - } - } else { - //comparison Command compare - if ( !((app.options.get(optionIndex).id === stashedApp.options.get(optionIndex).id) && - (app.options.get(optionIndex).name === stashedApp.options.get(optionIndex).name) && - (app.options.get(optionIndex).position === stashedApp.options.get(optionIndex).position) && - (app.options.get(optionIndex).icon === stashedApp.options.get(optionIndex).icon) - )) { - return { - result: false - } - } - } - } - // if all commands and subMenus were same - // rerturn SUCCESS result - return { - result: true - } - } - } - - return { - result: false - } - } - - property int systemContext - property int hmiContext - property bool applicationContext: false - property bool applicationSavedContext - property string routeText: "" - property PlayerState cdPlayerState: PlayerState { - playPauseState: 'Pause' - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - } - property PlayerState ipodPlayerState: PlayerState { - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - playPauseState: 'Pause' - } - property PlayerState usbPlayerState: PlayerState { - playPauseState: 'Pause' - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - } - property PlayerState linePlayerState: PlayerState { - playPauseState: 'Pause' - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - } - property PlayerState btPlayerState: PlayerState { - playPauseState: 'Pause' - albumImage: "../res/album_art.png" - trackNumber: "13/16" - trackName: "The Dog Days Are Over" - albumName: "Florence and the Machine" - } - property PlayerState amPlayerState: PlayerState { - songName: "So Far Around The Bend" - albumName: "The National" - presets: [ "1130", "950", "760", "1270", "1400", "2100", "940", "1001" ] - } - property PlayerState fmPlayerState: PlayerState { - songName: "So Far Around The Bend" - albumName: "The National" - presets: ["96.3", "107.9", "104.3", "101.9", "105.3", "100.5", "107.9", "103.4"] - } - property PlayerState siriusPlayerState: PlayerState { - songName: "So Far Around The Bend" - albumName: "The National" - presets: [ "Lithium", "Spectrum", "ESPN", "Alt Nation", "Lithium", "Spectrum", "ESPN", "Alt Nation" ] - } - - property bool hmiVRAvailable: false - property bool hmiTTSAvailable: false - property bool hmiNavigationAvailable: false - property bool hmiVehicleInfoAvailable: false - property bool hmiUIAvailable: false - - property int hmiUILanguage: Common.Language.EN_US - property int hmiTTSVRLanguage: Common.Language.EN_US - - property ListModel deviceList: ListModel { } - property ListModel applicationList: ListModel { } - property ListModel stashedApplicationsList: ListModel { } - property ListModel vrCommands: ListModel { } - property ListModel choicesVrCommands: ListModel { } - - function reset () { - console.log("dataContainer reset enter"); - routeText = "" - console.log("dataContainer reset exit"); - } - - function changeRegistrationUI (language, appID) { - console.log("dataContainer changeRegistrarionUI enter"); - setApplicationProperties(appID, { hmiDisplayLanguageDesired: language }); - console.log("dataContainer changeRegistrarionUI exit"); - } - - function changeRegistrationTTSVR(language, appID) { - console.log("dataContainer changeRegistrationTTSVR enter"); - setApplicationProperties(appID, { languageTTSVR: language }); - console.log("dataContainer changeRegistrationTTSVR exit"); - } - - function addCommand (cmdID, menuParams, cmdIcon, appID) { - console.debug("enter: " + - cmdID + - ", " + - (menuParams ? - "{" + menuParams.parentID + ", " + menuParams.position + ", " + menuParams.menuName + "}" : menuParams) + - ", " + - (cmdIcon ? - "{" + cmdIcon.value + ", " + cmdIcon.imageType + "}" : cmdIcon) + - ", " + - appID - ) - var commandToAddPosition - var app = getApplication(appID) - var currentMenu = app.options - var maximumCommands = Constants.maximumCommandsPerSubmenu - var index = 0 - - if ((menuParams) && (menuParams.parentID)) { // Work with sub menu - var parentNotFound = true - for (var optionIndex = 0; optionIndex < app.options.count; ++optionIndex) { - if ((app.options.get(optionIndex).type === Internal.MenuItemType.MI_SUBMENU) && (app.options.get(optionIndex).id === menuParams.parentID)) { - currentMenu = app.options.get(optionIndex).subMenu - parentNotFound = false - maximumCommands += 1 - } - } - if (parentNotFound) { - console.log("UI::addCommand(): parentID " + menuParams.parentID + " not found") - } - } - - if (currentMenu.count < maximumCommands) { - if (menuParams && (menuParams.position !== undefined)) { - commandToAddPosition = menuParams.position - } else { - commandToAddPosition = Constants.positionOfElementWithoutPosition - } - for (var i = 0; i < currentMenu.count; i++) { - if (commandToAddPosition >= currentMenu.get(i).position) { - index = i + 1 - } else { - break - } - } - currentMenu.insert( index, - { id: cmdID, - name: menuParams.menuName, - type: Internal.MenuItemType.MI_NODE, - position: commandToAddPosition, - icon: cmdIcon ? cmdIcon : {}, - subMenu: [] - }) - } else { - console.log("addCommand(): too many commands in menu: ", menuParams.parentID, " rejecting") - throw Common.Result.REJECTED - } - console.debug("exit") - } - - function deleteCommand (cmdID, appID) { - console.debug("enter: " + cmdID + ", " + appID) - for (var optionIndex = 0; optionIndex < getApplication(appID).options.count; ++optionIndex) { - var option = getApplication(appID).options.get(optionIndex) - if (option.type === Internal.MenuItemType.MI_NODE) { - if (option.id === cmdID) { - getApplication(appID).options.remove(optionIndex) - break - } - } - if (option.type === Internal.MenuItemType.MI_SUBMENU) { - var subMenu = option.subMenu - var idMatchFound = false - for (var subOptionIndex = 0; subOptionIndex < subMenu.count; ++subOptionIndex) { - if (subMenu.get(subOptionIndex).id === cmdID) { - idMatchFound = true - if (subMenu !== currentApplication.currentSubMenu) { - subMenu.remove(subOptionIndex) - } - else { - console.log("UI::deleteCommand(): cannot remove item from current submenu") - throw Common.Result.IN_USE - } - break - } - } - if (idMatchFound) { - break - } - } - } - console.debug("exit") - } - - function addSubMenu (menuID, menuParams, appID) { - console.debug("enter: " + menuID + ", {" + menuParams.parentID + ", " + menuParams.position + ", " + menuParams.menuName + "}, " + appID) - var app = getApplication(appID) - var index = 0 - var count = app.options.count - var subMenuToAddPosition - - if (count < Constants.maximumSubmenus) { - if (menuParams.position !== undefined) { - subMenuToAddPosition = menuParams.position - } else { - subMenuToAddPosition = Constants.positionOfElementWithoutPosition - } - for (var i = 0; i < count; i++) { - if (subMenuToAddPosition >= app.options.get(i).position) { - index = i + 1 - } else { - break - } - } - app.options.insert(index, { - "id": menuID, - "name": menuParams.menuName, - "position": subMenuToAddPosition, - "type": Internal.MenuItemType.MI_SUBMENU, - "icon": undefined, - "subMenu": [{ - "id": -1, - "name": menuParams.menuName, - "position": -1, - "type": Internal.MenuItemType.MI_PARENT, - "icon": { - "imageType": Common.ImageType.DYNAMIC, - "value": "../res/nav/turnArrow.png" - }, - "subMenu": getApplication(appID).options - }] - }) - } - else { - console.log("addSubMenu(): too many submenus, rejecting") - throw Common.Result.REJECTED - } - console.debug("exit") - } - - function deleteSubMenu (menuID, appID) { - console.debug("enter: " + menuID + ", " + appID) - for (var optionIndex = 0; optionIndex < getApplication(appID).options.count; ++optionIndex) { - var option = getApplication(appID).options.get(optionIndex) - if ((option.type === Internal.MenuItemType.MI_SUBMENU) && (option.id === menuID)) { - if (option.subMenu !== currentApplication.currentSubMenu) { - getApplication(appID).options.remove(optionIndex) - } - else { - console.log("UI::deleteSubMenu(): cannot remove current submenu") - throw Common.Result.IN_USE - } - break - } - } - console.debug("exit") - } - property VehicleInfoModel vehicleInfoModel: VehicleInfoModel { } - property bool activeVR: false - property int driverDistractionState: Common.DriverDistractionState.DD_OFF - onDriverDistractionStateChanged: { - sdlUI.onDriverDistraction(driverDistractionState); - } - property bool activeTTS: false - property var activePopup: [] // Stack of names of active pop ups - property int popups: 0 - - property bool activeAlert: false - - onActiveVRChanged: setSystemContext() - onActiveAlertChanged: setSystemContext() - onPopupsChanged: setSystemContext() - - function setSystemContext () { - console.debug("enter") - if (popups > 0) { - systemContext = Common.SystemContext.SYSCTXT_HMI_OBSCURED - } - else if (activeAlert) { - systemContext = Common.SystemContext.SYSCTXT_ALERT - } - else if (activeVR) { - systemContext = Common.SystemContext.SYSCTXT_VRSESSION - } - else if (contentLoader.item !== null) { - systemContext = contentLoader.item.systemContext - } - console.debug("exit") - } - property MusicSourceModel musicSourceModel: MusicSourceModel { - } - - property SettingsSourceModel settingsSourceModel: SettingsSourceModel { - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/Internal.js b/src/components/qt_hmi/qml_model_qt5/models/Internal.js deleted file mode 100644 index 53d7640136..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/Internal.js +++ /dev/null @@ -1,176 +0,0 @@ -/** - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -.pragma library -.import "../hmi_api/Common.js" as Common - -var MenuItemType = { - MI_NODE: 0, - MI_SUBMENU: 1, - MI_PARENT: 2 -} - -function activePageChoose(flickElement, pages) { - if (flickElement.contentX <= 0) { - return 0 - } - else if ( (flickElement.contentWidth - flickElement.contentX) < flickElement.width) { - return pages -1 - } - else { - if ( (flickElement.contentX % flickElement.width) >= (1/6 * flickElement.width)) { - return Math.ceil(flickElement.contentX / flickElement.width) - } - else if ( (flickElement.contentX % flickElement.width) > 0) { - return Math.floor(flickElement.contentX / flickElement.width) - } - } -} - -var MediaClockUpdateMode = { - MCU_COUNTUP: 0, - MCU_COUNTDOWN: 1, -} - -var MediaClockRunningMode = { - MCR_RUNNING: 0, - MCR_STOPPED: 1 -} - -function chooseAppStartScreen(appType, isMediaApplication) { - if (checkBit(appType, Common.AppHMIType.NAVIGATION)) { - return "./views/SDLNavi.qml" - } else if (isMediaApplication) { - return "./views/SDLPlayerView.qml" - } else { - return "./views/SDLNonMediaView.qml" - } -} - -function appendVrHelpItem (arrayElement, index, array) { - this.append({ - text: arrayElement.text, - image: arrayElement.image ? arrayElement.image : "", - position: arrayElement.position - }) -} - -function checkBit(value, bitPosition) { - return (value & (1 << bitPosition)) -} - -function getArrayForPresetRow(app) { - var array = [] - for (var i = 0; i < app.customPresets.count; i++) { - array.push(app.customPresets.get(i).text) - } - return array -} - -function pad (string, length, lead) { - if (!lead) { - lead = '0' - } - var paddedString = "" + string - while (paddedString.length < length) { - paddedString = lead + paddedString - } - return paddedString -} - -function hmsTime (hours, minutes, seconds) { - return 60 * (60 * hours + minutes) + seconds -} - -function hmsTimeToString (hmsTime) { - if (hmsTime === -1) { - return "0:00:00" - } - - var _time = hmsTime - var seconds = _time % 60 - _time -= seconds - _time /= 60 - var minutes = _time % 60 - _time -= minutes - _time /= 60 - var hours = _time - var string = "" - string += hours - string += ":" - string += pad(minutes, 2) - string += ":" - string += pad(seconds, 2) - return string -} - -function stringToHmsTime (hmsString) { - console.debug("enter: \"" + hmsString + "\"") - var substrings = hmsString.split(":") - var seconds = substrings.length > 0 ? parseInt(substrings.pop()) : 0 - if (seconds >= 60) { - console.log("incorrect field \"seconds\": " + seconds) - console.debug("exit") - return 0 - } - var minutes = substrings.length > 0 ? parseInt(substrings.pop()) : 0 - if (minutes >= 60) { - console.log("incorrect field \"minutes\": " + minutes) - console.debug("exit") - return 0 - } - var hours = substrings.length > 0 ? parseInt(substrings.pop()) : 0 - console.debug("exit") - return hmsTime(hours, minutes, seconds) -} - -function mediaClockUpdateModeToString (mediaClockUpdateMode) { - switch (mediaClockUpdateMode) { - case MediaClockUpdateMode.MCU_COUNTUP: - return "Internal.MediaClockUpdateMode.MCU_COUNTUP" - case MediaClockUpdateMode.MCU_COUNTDOWN: - return "Internal.MediaClockUpdateMode.MCU_COUNTDOWN" - default: - return "" - } -} - -function mediaClockRunningModeToString (mediaClockRunningMode) { - switch (mediaClockRunningMode) { - case MediaClockRunningMode.MCR_RUNNING: - return "Internal.MediaClockRunningMode.MCR_RUNNING" - case MediaClockRunningMode.MCR_STOPPED: - return "Internal.MediaClockRunningMode.MCR_STOPPED" - default: - return "" - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/MainMenuListModel.qml b/src/components/qt_hmi/qml_model_qt5/models/MainMenuListModel.qml deleted file mode 100644 index a2f659c393..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/MainMenuListModel.qml +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @file MainMenuListModel.qml - * @brief Main menu list of elements. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 - -ListModel -{ - ListElement { - name: "Climate" - icon: "../res/snow.png" - qml: "./views/ClimateControlView.qml" - } - - ListElement { - name: "Navigation" - icon: "../res/arrow.png" - qml: "./views/NavigationNoRouteGridView.qml" - } - - ListElement { - name: "Media" - icon: "../res/notes.png" - qml: "./views/MusicSourceView.qml" - } - - ListElement { - name: "Settings" - icon: "../res/gear.png" - qml: "./views/SettingsSourceView.qml" - } - - ListElement { - name: "Apps" - icon: "../res/apps.png" - qml: "./views/ApplicationListView.qml" - } - - ListElement { - name: "Phone" - icon: "../res/phone/phone.png" - qml: "./views/PhoneMenuGridView.qml" - } - - ListElement { - name: "Car" - icon: "../res/car.png" - qml: "./views/CarMenuGridView.qml" - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/MediaClockModel.qml b/src/components/qt_hmi/qml_model_qt5/models/MediaClockModel.qml deleted file mode 100644 index 3712ca4c31..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/MediaClockModel.qml +++ /dev/null @@ -1,117 +0,0 @@ -/** - * @file MediaClockModel.qml - * @brief Media clock model - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "Internal.js" as Internal - -QtObject { - property int updateMode - property int runningMode - property int startTime - property int endTime - property int upperTimeLimit: 60 * 60 * 60 - 1 - property int startTimeForProgress - property real progress - - property Timer timer: Timer { - id: timer - interval: 1000 - repeat: true - onTriggered: onTimer() - } - onRunningModeChanged: { - if (runningMode === Internal.MediaClockRunningMode.MCR_STOPPED) { - timer.stop() - } else { - timer.start() - } - } - - onStartTimeChanged: { - onProgress() - } - - onEndTimeChanged: { - onProgress() - } - - onStartTimeForProgressChanged: { - onProgress() - } - - function onTimer () { - switch (updateMode) { - case Internal.MediaClockUpdateMode.MCU_COUNTUP: - console.debug("count up") - if (startTime < endTime) { - startTime++ - } else { - timer.stop() - runningMode = Internal.MediaClockRunningMode.MCR_STOPPED - console.debug("count Up timer stopped") - } - break - case Internal.MediaClockUpdateMode.MCU_COUNTDOWN: - console.debug("count down") - if (startTime > endTime) { - startTime-- - } else { - timer.stop() - runningMode = Internal.MediaClockRunningMode.MCR_STOPPED - console.debug("count Down timer stopped") - } - break - } - dataContainer.setApplicationProperties(dataContainer.currentApplication.appId, { - "mediaClock": {startTime: startTime, - endTime: endTime, - updateMode: updateMode, - runningMode: runningMode, - startTimeForProgress: startTimeForProgress - } - }) - } - - function onProgress () { - if (startTime === -1) { - progress = 0 - } - else if (endTime != -1 && endTime === startTimeForProgress) { - progress = 1 - } - else { - progress = (startTime - startTimeForProgress) / (endTime - startTimeForProgress) - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/MusicSourceModel.qml b/src/components/qt_hmi/qml_model_qt5/models/MusicSourceModel.qml deleted file mode 100644 index 7497d987d4..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/MusicSourceModel.qml +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file MusicSourceModel.qml - * @brief Music source menu list of elements. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 - -ListModel -{ - ListElement { - title: "FM" - qml: "./views/FMPlayerView.qml" - appId: 0 - } - ListElement { - title: "AM" - qml: "./views/AMPlayerView.qml" - appId: 0 - } - ListElement { - title: "BT Audio" - qml: "./views/BTPlayerView.qml" - appId: 0 - } - ListElement { - title: "Sirius" - qml: "./views/SiriusPlayerView.qml" - appId: 0 - } - ListElement { - title: "CD" - qml: "./views/CDPlayerView.qml" - appId: 0 - } - ListElement { - title: "iPod" - qml: "./views/IPodPlayerView.qml" - appId: 0 - } - ListElement { - title: "USB" - qml: "./views/UsbPlayerView.qml" - appId: 0 - } - ListElement { - title: "LineIn" - qml: "./views/LineInPlayerView.qml" - appId: 0 - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/NavigationMenuModel.qml b/src/components/qt_hmi/qml_model_qt5/models/NavigationMenuModel.qml deleted file mode 100644 index 6e434495a6..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/NavigationMenuModel.qml +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @file NavigationMenuModel.qml - * @brief Model for navigation menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -ListModel -{ - ListElement { - title: "Home" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Keyboard" - icon: "../res/buttons/long_oval_btn.png" - qml: "./views/NavigationKeyboardView.qml" - } - ListElement { - title: "Favorites" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Work" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Recent" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "POI" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Scout" - icon: "../res/buttons/long_oval_btn.png" - } - ListElement { - title: "Waze" - icon: "../res/buttons/long_oval_btn.png" - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/NavigationModel.qml b/src/components/qt_hmi/qml_model_qt5/models/NavigationModel.qml deleted file mode 100644 index 0abbe6b309..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/NavigationModel.qml +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @file NavigationModel.qml - * @brief Model for Navigation. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -QtObject { - property string text1: "" - property string text2: "" - property string totalDistance: "" - property string eta: "" - property string timeToDestination: "" - property var turnIcon - property var nextTurnIcon - - property real distanceToManeuver: 0 - property real distanceToManeuverScale: 0 - property bool maneuverComplete: false - property int appID: -1 -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/PerformAudioPassThruModel.qml b/src/components/qt_hmi/qml_model_qt5/models/PerformAudioPassThruModel.qml deleted file mode 100644 index 0952b7d8ad..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/PerformAudioPassThruModel.qml +++ /dev/null @@ -1,43 +0,0 @@ -/** - * @file PerformAudioPassThruModel.qml - * @brief Data model audio pass thru. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -QtObject { - property string appName: "" - property string firstLine: "" - property string secondLine: "" - property int timeout: 0 - property bool running: false -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/PhoneMenuModel.qml b/src/components/qt_hmi/qml_model_qt5/models/PhoneMenuModel.qml deleted file mode 100644 index 519f48a809..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/PhoneMenuModel.qml +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @file PhoneMenuModel.qml - * @brief Phone menu list of elements. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 - -ListModel -{ - ListElement { - name: "phone" - icon: "../res/phone/phone.png" - qml: "" - } - ListElement { - name: "contacts" - icon: "../res/phone/contacts.png" - qml: "./views/PhoneKeyboardView.qml" - } - ListElement { - name: "messages" - icon: "../res/phone/messages.png" - qml: "" - } - ListElement { - name: "DND" - icon: "../res/phone/dnd_off.png" - qml: "" - } - ListElement { - name: "texts" - icon: "../res/phone/texts.png" - qml: "" - } - ListElement { - name: "recent" - icon: "../res/phone/recent.png" - qml: "" - } - ListElement { - name: "keyboard" - icon: "../res/phone/keypad.png" - qml: "" - } - ListElement { - name: "more" - icon: "../res/phone/more.png" - qml: "" - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/PlayerState.qml b/src/components/qt_hmi/qml_model_qt5/models/PlayerState.qml deleted file mode 100644 index 9707f35193..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/PlayerState.qml +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @file PlayerState.qml - * @brief List of parameters for each player. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 - -// Player state for all players except SDL media player -Item { - // Media players - property string playPauseState - property string albumImage - property string trackNumber - property int songPosition - property string trackName - - // Radio Players - property var presets: [] - - // Both players - property string songName - property string albumName -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/ScrollableMessageModel.qml b/src/components/qt_hmi/qml_model_qt5/models/ScrollableMessageModel.qml deleted file mode 100644 index 9f45a5d06d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/ScrollableMessageModel.qml +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @file ScrollableMessageModel.qml - * @brief Model for Scrollable Message. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common - -QtObject { - property string longMessageText: "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" + - "ffsdjjjjjjjjj jjjjjjjjjjjjjjjjjj jjjjjjjjjjjjjjjjjjj jjjjiiiiiiiiiiiii iiiiiiiiiiii iiiiiiiii iiiiiiiiiiiii iiiiiiiiiiiiioooooo ooooooooo oooooooooooooooo ooooooooooooo ooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooo ooooooohhhhhhhhhh hhhhhhhhhhhhh hhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh hhhhhhhhhhhhhh hhhhhhhhhhhhhhhhhh hhhhh" - property ListModel softButtons: ListModel {} - property int appId: -1 - property int timeout: 0 - property var async - property bool running: false - property int result: -1 -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/SettingsSourceModel.qml b/src/components/qt_hmi/qml_model_qt5/models/SettingsSourceModel.qml deleted file mode 100644 index fed6d499d9..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/SettingsSourceModel.qml +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @file SettingsSourceModel.qml - * @brief Settings source menu list of elements. - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 - -ListModel -{ - ListElement { - title: "Allow SDL Functionality" - qml: "./views/SDLFunctionalityView.qml" - appId: 0 - action: "" - } - ListElement { - title: "Update SDL" - qml: "" - appId: 0 - action: "update_sdl" - } - ListElement { - title: "Policy table update status" - qml: "" - appId: 0 - action: "get_status_update" - } - ListElement { - title: "Send request GetURLS" - qml: "" - appId: 0 - action: "get_urls" - } - ListElement { - title: "Statistics info settings" - qml: "./views/StatisticsInfoView.qml" - appId: 0 - action: "" - } - ListElement { - title: "App permissions" - qml: "./views/PolicyAppListView.qml" - appId: 0 - action: "" - } - ListElement { - title: "Device state change" - qml: "./views/DeviceStateChangedView.qml" - appId: 0 - action: "" - } - ListElement { - title: "System Error" - qml: "./views/SystemErrorView.qml" - appId: 0 - action: "" - } - ListElement { - title: "System Request" - qml: "./views/SystemRequestView.qml" - appId: 0 - action: "" - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/SettingsStorage.qml b/src/components/qt_hmi/qml_model_qt5/models/SettingsStorage.qml deleted file mode 100644 index a102b4ee27..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/SettingsStorage.qml +++ /dev/null @@ -1,401 +0,0 @@ -/** - * @file SettingsStorage.qml - * @brief Storage for keeping settings. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common -import "../models/Internal.js" as Internal - -Item -{ - property var sdlLanguagesList: [ - Common.Language.EN_US, - Common.Language.ES_MX, - Common.Language.FR_CA, - Common.Language.DE_DE, - Common.Language.ES_ES, - Common.Language.EN_GB, - Common.Language.RU_RU, - Common.Language.TR_TR, - Common.Language.PL_PL, - Common.Language.FR_FR, - Common.Language.IT_IT, - Common.Language.SV_SE, - Common.Language.PT_PT, - Common.Language.NL_NL, - Common.Language.ZH_TW, - Common.Language.JA_JP, - Common.Language.AR_SA, - Common.Language.KO_KR, - Common.Language.PT_BR, - Common.Language.CS_CZ, - Common.Language.DA_DK, - Common.Language.NO_NO - ] - - property var displayCapabilities: { - "displayType": Common.DisplayType.GEN2_8_DMA, - "textFields": [ - Common.TextFieldName.mainField1, - Common.TextFieldName.mainField2, - Common.TextFieldName.mainField3, - Common.TextFieldName.mainField4, - Common.TextFieldName.statusBar, - Common.TextFieldName.mediaClock, - Common.TextFieldName.mediaTrack, - Common.TextFieldName.alertText1, - Common.TextFieldName.alertText2, - Common.TextFieldName.alertText3, - Common.TextFieldName.scrollableMessageBody, - Common.TextFieldName.initialInteractionText, - Common.TextFieldName.navigationText1, - Common.TextFieldName.navigationText2, - Common.TextFieldName.ETA, - Common.TextFieldName.totalDistance, - Common.TextFieldName.navigationText, - Common.TextFieldName.audioPassThruDisplayText1, - Common.TextFieldName.audioPassThruDisplayText2, - Common.TextFieldName.sliderHeader, - Common.TextFieldName.sliderFooter, - Common.TextFieldName.notificationText - ], - "mediaClockFormats": [ - Common.MediaClockFormat.CLOCK1, - Common.MediaClockFormat.CLOCK2, - Common.MediaClockFormat.CLOCK3, - Common.MediaClockFormat.CLOCKTEXT1, - Common.MediaClockFormat.CLOCKTEXT2, - Common.MediaClockFormat.CLOCKTEXT3, - Common.MediaClockFormat.CLOCKTEXT4 - ], - "graphicSupported": true, - "imageCapabilities": [ Common.ImageType.DYNAMIC ], - "templatesAvailable": [ "" ], - "screenParams": { - "resolution": { - "resolutionWidth": 800, - "resolutionHeight": 480 - }, - "touchEventAvailable": { - "pressAvailable": true, - "multiTouchAvailable": true, - "doublePressAvailable": true - } - }, - "numCustomPresetsAvailable": 6 - } - - property var softButtonCapabilities: { - "shortPressAvailable": true, - "longPressAvailable": true, - "upDownAvailable": true, - "imageSupported": true - } - - property var buttonCapabilities: [] - - readonly property string fileIVSU: "hmi/res/IVSU/PROPRIETARY_REQUEST" - - property string filePTSnapshot: "" - - property int timeoutPTExchange: 500 - - property var retriesPTExchange: [] - - property var urlsPTExchange: [] - - property int currentRetry: 0 - - property int currentUrl: 0 - - property string appIdIVSU: "" - - property var urlsIVSU: [] - - function updateStatus(result) { - console.debug("Result update SDL:", result); - var text = {} - text[Common.UpdateResult.UP_TO_DATE] = "UP_TO_DATE"; - text[Common.UpdateResult.UPDATING] = "UPDATING"; - text[Common.UpdateResult.UPDATE_NEEDED] = "UPDATE_NEEDED"; - ttsPopUp.activate(text[result]) - } - - function startPTExchange(urls) { - console.log("enter startPTExchange"); - urlsPTExchange = urls; - currentRetry = 0; - currentUrl = 0; - tryUpdatePolicy(); - console.log("exit startPTExchange"); - } - - function startIVSU(urls) { - urlsIVSU = urls; - sendSystemRequest(Common.RequestType.PROPRIETARY, urlsIVSU[0].url, - fileIVSU, appIdIVSU); - } - - function getUrl() { - console.log("enter getUrl"); - if (currentUrl >= 0 && currentUrl < urlsPTExchange.length) { - var url = urlsPTExchange[currentUrl]; - currentUrl = (currentUrl + 1) / urlsPTExchange.length; - console.log("exit getUrl"); - return url; - } else { - console.log("exit getUrl (empty)"); - return {url: ""} - } - } - - function getInterval() { - if (currentRetry >= 0 && currentRetry < retriesPTExchange.length) { - var interval = (timeoutPTExchange + retriesPTExchange[currentRetry]) * 1000; - currentRetry++; - return interval; - } else { - return 0; - } - } - - function sendSystemRequest(type, url, fileName, applicationId) { - console.log("enter sendSystemRequest"); - var offset = 1000; - var length = 10000; - var appId = applicationId ? applicationId : "default"; - var file = fileName ? fileName : fileIVSU; - - sdlBasicCommunication.onSystemRequest(type, url, Common.FileType.JSON, - offset, length, timeoutPTExchange, - file, appId); - console.log("enter sendSystemRequest"); - } - - function tryUpdatePolicy() { - console.log("enter tryUpdatePolicy"); - if (urlsPTExchange.length) { - var url = getUrl(); - sendSystemRequest(Common.RequestType.PROPRIETARY, url.url, filePTSnapshot, url.policyAppId); - } else { - sendSystemRequest(Common.RequestType.PROPRIETARY); - } - - retriesTimer.interval = getInterval(); - if (retriesTimer.interval > 0) { - console.log("start retry strategy"); - retriesTimer.start(); - } - console.log("exit tryUpdatePolicy"); - } - - function systemRequest(type) { - if (urlsPTExchange.length) { - sendSystemRequest(type, urlsPTExchange[0].url, null, urlsPTExchange[0].policyAppId); - } else { - sendSystemRequest(type); - } - } - - function stopPTExchange(fileName) { - console.log("enter stopPTExchange"); - retriesTimer.stop(); - sdlSDL.onReceivedPolicyUpdate(fileName); - console.log("exit stopPTExchange"); - } - - Timer { - id: retriesTimer - interval: timeoutPTExchange; running: false; repeat: false - onTriggered: sendSystemRequest() - } - - function activateApp (appId) { - - console.debug("SDL.ActivateApp Request enter", appId); - - RequestToSDL.SDL_ActivateApp(appId, function(isSDLAllowed, device, isPermissionsConsentNeeded, isAppPermissionsRevoked, appRevokedPermissions, isAppRevoked, priority){ - settingsContainer.activateApp_Response(appId, isSDLAllowed, device, isPermissionsConsentNeeded, isAppPermissionsRevoked, appRevokedPermissions, isAppRevoked, priority) - }) - - console.debug("SDL.ActivateApp Request exit"); - } - - function activateApp_Response (appId, isSDLAllowed, device, isPermissionsConsentNeeded, isAppPermissionsRevoked, appRevokedPermissions, isAppRevoked, priority) { - - console.debug("activateApp_Response enter", appId, isSDLAllowed, device, isPermissionsConsentNeeded, isAppPermissionsRevoked, appRevokedPermissions, isAppRevoked, priority); - - if (!isSDLAllowed) { - - userActionPopUp.activate("Allow SDL Functionality request", - "Would you like to allow SDL functionality for device '" + device.name + "'?", - function(result){ - allowSDLFunctionality(result, device) - }, - true - ) - } - - if (isPermissionsConsentNeeded) { - RequestToSDL.SDL_GetListOfPermissions(appId, function(allowedFunctions){ - settingsContainer.getListOfPermissions_Response(appId, allowedFunctions) - }) - } - - if (isAppPermissionsRevoked) { - - appPermissionsRevoked(appId, appRevokedPermissions, "AppPermissionsRevoked") - } - - if (isAppRevoked) { - - RequestToSDL.SDL_GetUserFriendlyMessage(["AppUnsupported"], dataContainer.hmiUILanguage, function(messages){ - settingsContainer.getUserFriendlyMessageAppPermissionsRevoked("AppUnsupported", messages) - }); - } else if (isSDLAllowed && !isPermissionsConsentNeeded) { - - dataContainer.setCurrentApplication(appId) - contentLoader.go( - Internal.chooseAppStartScreen( - dataContainer.currentApplication.appType, - dataContainer.currentApplication.isMediaApplication - ), - appId - ) - } - } - - function allowSDLFunctionality (result, device) { - console.log("allowSDLFunctionality enter", result, device); - - sdlSDL.onAllowSDLFunctionality(device, result, Common.ConsentSource.GUI) - - console.log("allowSDLFunctionality exit"); - } - - function getListOfPermissions_Response (appId, allowedFunctions) { - console.log("getListOfPermissions_Response enter"); - - var app = dataContainer.getApplication(appId); - var messageCodes = []; - - app.allowedFunctions = allowedFunctions; - - allowedFunctions.forEach(function (x) { - messageCodes.push(x.name); - }); - - RequestToSDL.SDL_GetUserFriendlyMessage(messageCodes, dataContainer.hmiUILanguage, function(messages){ - settingsContainer.onAppPermissionConsent_Notification(appId, messages) - }); - - console.log("getListOfPermissions_Response exit"); - } - - function appPermissionsRevoked (appId, permissions, title) { - - var messageCodes = []; - - permissions.forEach(function (x) { - messageCodes.push(x.name); - }); - - messageCodes.push("AppPermissionsRevoked"); - - RequestToSDL.SDL_GetUserFriendlyMessage(messageCodes, dataContainer.hmiUILanguage, function(messages){ - settingsContainer.getUserFriendlyMessageAppPermissionsRevoked(title, messages) - }); - } - - function getUserFriendlyMessageAppPermissionsRevoked (title, messages) { - var tts = "", - text = ""; - - messages.forEach(function (x) { - if (x.tts) { - tts += x.tts; - } - if (x.textBody) { - text += x.textBody; - } - }); - - if (tts) { - ttsPopUp.activate(tts) - } - - userActionPopUp.activate(title, text, null, false) - - } - - function onAppPermissionConsent_Notification (appId, messages) { - console.log("onAppPermissionConsent_Notification enter"); - - onAppPermissionConsentPopUp.permissionItems.clear() - - var tts = ""; - - for (var i = 0; i < messages.length; i++) { - onAppPermissionConsentPopUp.permissionItems.append({ - "messageCode": messages[i].messageCode, - "label": messages[i].label, - "textBody": messages[i].textBody, - "allowed": false, - "id": messages[i].id - }); - - if (messages[i].tts) { - tts += x.tts; - } - } - - if (tts) { - ttsPopUp.activate(tts) - } - - onAppPermissionConsentPopUp.activate(appId) - - console.log("onAppPermissionConsent_Notification enter"); - } - - function decrypt(file, appId) { - sendSystemRequest(Common.RequestType.FILE_RESUME, urlsIVSU[0].url, file, - appId); - } - - function updateIVSU(appId) { - appIdIVSU = appId; - var service = 4; // service type for IVSU - RequestToSDL.SDL_GetURLS(service, startIVSU); - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/SliderModel.qml b/src/components/qt_hmi/qml_model_qt5/models/SliderModel.qml deleted file mode 100644 index 359eb5d59c..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/SliderModel.qml +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @file SliderModel.qml - * @brief Data model for slider. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -QtObject { - property string appName: "" - property string header: "" - property var footer: [] - property int numTicks: 0 - property int position: 0 - property int timeout: 0 - property bool running: false -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/VehicleInfoModel.qml b/src/components/qt_hmi/qml_model_qt5/models/VehicleInfoModel.qml deleted file mode 100644 index 997ce1ee0a..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/VehicleInfoModel.qml +++ /dev/null @@ -1,234 +0,0 @@ -/** - * @file VehicleInfoModel.qml - * @brief Data model for vehicle info. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common - -QtObject { - id: vehicleInfo - property real speed: 80.1 - property int rpm: 5000 - property real fuelLevel: 0.2 - property int fuelLevel_State: Common.ComponentVolumeStatus.CVS_LOW - property real instantFuelConsumption: 2.2 - property int driverBraking: Common.VehicleDataEventStatus.VDES_NO_EVENT - property int wiperStatus: Common.WiperStatus.OFF - property real engineTorque: 2.5 - property real accPedalPosition: 0.5 - property real steeringWheelAngle: 1.2 - property real externalTemperature: 40.0 - property string vin: '52-452-52-752' - property int odometer: 2 - property int prndl: Common.PRNDL.FIFTH - - property var headLampStatus: { - "lowBeamsOn": false, - "highBeamsOn": false, - "ambientLightSensorStatus": Common.AmbientLightStatus.TWILIGHT_1 - } - property var deviceStatus: { - 'voiceRecOn': false, - 'btIconOn': false, - 'callActive': false, - 'phoneRoaming': false, - 'textMsgAvailable': false, - 'battLevelStatus': Common.DeviceLevelStatus.ZERO_LEVEL_BARS, - 'stereoAudioOutputMuted': false, - 'monoAudioOutputMuted': false, - 'signalLevelStatus': Common.DeviceLevelStatus.ZERO_LEVEL_BARS, - 'primaryAudioSource': Common.PrimaryAudioSource.NO_SOURCE_SELECTED, - 'eCallEventActive': false - } - property var bodyInformation: { - 'parkBrakeActive': false, - 'ignitionStableStatus': Common.IgnitionStableStatus.IGNITION_SWITCH_NOT_STABLE, - 'ignitionStatus': Common.IgnitionStatus.IS_UNKNOWN - } - property var beltStatus: { - 'driverBeltDeployed': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'passengerBeltDeployed': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'passengerBuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'driverBuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'leftRow2BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'passengerChildDetected': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'rightRow2BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'middleRow2BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'middleRow3BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'leftRow3BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'rightRow3BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'leftRearInflatableBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'rightRearInflatableBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'middleRow1BeltDeployed': Common.VehicleDataEventStatus.VDES_NO_EVENT, - 'middleRow1BuckleBelted': Common.VehicleDataEventStatus.VDES_NO_EVENT, - } - property var tirePressure: { - 'pressureTelltale': Common.WarningLightStatus.WLS_ON, - 'leftFront': { status: Common.ComponentVolumeStatus.CVS_NORMAL}, - 'rightFront': { status: Common.ComponentVolumeStatus.CVS_UNKNOWN }, - 'leftRear': { status: Common.ComponentVolumeStatus.CVS_NORMAL }, - 'rightRear': { status: Common.ComponentVolumeStatus.CVS_UNKNOWN }, - 'innerLeftRear': { status: Common.ComponentVolumeStatus.CVS_UNKNOWN }, - 'innerRightRear': { status: Common.ComponentVolumeStatus.CVS_UNKNOWN } - } - property var gps: { - 'longitudeDegrees': 42.3293, - 'latitudeDegrees': -83.0464, - 'utcYear': 2013, - 'utcMonth': 2, - 'utcDay': 14, - 'utcHours': 13, - 'utcMinutes': 16, - 'utcSeconds': 54, - 'compassDirection': Common.CompassDirection.SOUTHWEST, - 'pdop': 4, - 'hdop': 5, - 'vdop': 6, - 'actual': false, - 'satellites': 8, - 'dimension': Common.Dimension.Dimension_2D, - 'altitude': 7, - 'heading': 173, - 'speed': 2 - } - property var ecuDIDData: { - 'data1': 'ECU 1 Test Data', - 'data2': 'ECU 2 Test Data' - } - property var eCallInfo: { - "eCallNotificationStatus" : Common.VehicleDataNotificationStatus.VDNS_NORMAL, - "auxECallNotificationStatus" : Common.VehicleDataNotificationStatus.VDNS_ACTIVE, - "eCallConfirmationStatus" : Common.ECallConfirmationStatus.ECCS_NORMAL - } - property var airbagStatus: { - "driverAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NO_EVENT, - "driverSideAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NO, - "driverCurtainAirbagDeployed" : Common.VehicleDataEventStatus.VDES_YES, - "passengerAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NOT_SUPPORTED, - "passengerCurtainAirbagDeployed" : Common.VehicleDataEventStatus.VDES_FAULT, - "driverKneeAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NO, - "passengerSideAirbagDeployed" : Common.VehicleDataEventStatus.VDES_YES, - "passengerKneeAirbagDeployed" : Common.VehicleDataEventStatus.VDES_NOT_SUPPORTED - } - property var emergencyEvent: { - "emergencyEventType" : Common.EmergencyEventType.EET_NO_EVENT, - "fuelCutoffStatus" : Common.EmergencyEventType.EET_FRONTAL, - "rolloverEvent" : Common.EmergencyEventType.EET_SIDE, - "maximumChangeVelocity" : Common.EmergencyEventType.EET_REAR, - "multipleEvents" : Common.EmergencyEventType.EET_ROLLOVER - } - property var clusterModeStatus: { - "powerModeActive" : true, - "powerModeQualificationStatus" : Common.PowerModeQualificationStatus.POWER_MODE_UNDEFINED, - "carModeStatus" : Common.CarModeStatus.CMS_NORMAL, - "powerModeStatus" : Common.PowerModeStatus.KEY_OUT - } - property var myKey: { - "e911Override": Common.VehicleDataStatus.VDS_NO_DATA_EXISTS - } - - - function sendGpsChange(){ - sdlVehicleInfo.onGps(vehicleInfo.gps) - } - function sendSpeedChange(){ - sdlVehicleInfo.onSpeed(vehicleInfo.speed) - } - function sendRpmChange(){ - sdlVehicleInfo.onRpm(vehicleInfo.rpm) - } - function sendFuelLevelChange(){ - sdlVehicleInfo.onFuelLevel(vehicleInfo.fuelLevel) - } - function sendFuelLevel_StateChange(){ - sdlVehicleInfo.onFuelLevel_State(vehicleInfo.fuelLevel_State) - } - function sendInstantFuelConsumptionChange(){ - sdlVehicleInfo.onInstantFuelConsumption(vehicleInfo.instantFuelConsumption) - } - function sendExternalTemperatureChange(){ - sdlVehicleInfo.onExternalTemperature(vehicleInfo.externalTemperature) - } - function sendPrndlChange() { - if (dataContainer.vehicleInfoModel.prndl !== -1) - {sdlVehicleInfo.onPrndl(vehicleInfo.prndl)} - } - function sendTirePressureChange(){ - sdlVehicleInfo.onTirePressure(vehicleInfo.tirePressure) - } - function sendOdometerChange(){ - sdlVehicleInfo.onOdometer(vehicleInfo.odometer) - } - function sendBeltStatusChange(){ - sdlVehicleInfo.onBeltStatus(vehicleInfo.beltStatus) - } - function sendBodyInformationChange(){ - sdlVehicleInfo.onBodyInformation(vehicleInfo.bodyInformation) - } - function sendDeviceStatusChange(){ - sdlVehicleInfo.onDeviceStatus(vehicleInfo.deviceStatus) - } - function sendDriverBrakingChange(){ - sdlVehicleInfo.onDriverBraking(vehicleInfo.driverBraking) - } - function sendWiperStatusChange(){ - sdlVehicleInfo.onWiperStatus(vehicleInfo.wiperStatus) - } - function sendHeadLampStatusChange(){ - sdlVehicleInfo.onHeadLampStatus(vehicleInfo.headLampStatus) - } - function sendEngineTorqueChange(){ - sdlVehicleInfo.onEngineTorque(vehicleInfo.engineTorque) - } - function sendAccPedalPositionChange(){ - sdlVehicleInfo.onAccPedalPosition(vehicleInfo.accPedalPosition) - } - function sendSteeringWheelAngleChange(){ - sdlVehicleInfo.onSteeringWheelAngle(vehicleInfo.steeringWheelAngle) - } - function sendECallInfoChange(){ - sdlVehicleInfo.onECallInfo(vehicleInfo.eCallInfo) - } - function sendAirbagStatusChange(){ - sdlVehicleInfo.onAirbagStatus(vehicleInfo.airbagStatus) - } - function sendEmergencyEventChange(){ - sdlVehicleInfo.onEmergencyEvent(vehicleInfo.emergencyEvent) - } - function sendClusterModeStatusChange(){ - sdlVehicleInfo.onClusterModeStatus(vehicleInfo.clusterModeStatus) - } - function sendMyKeyChange(){ - sdlVehicleInfo.onMyKey(vehicleInfo.myKey) - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/models/VrHelpItemsDefault.qml b/src/components/qt_hmi/qml_model_qt5/models/VrHelpItemsDefault.qml deleted file mode 100644 index 3dc6ad563d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/VrHelpItemsDefault.qml +++ /dev/null @@ -1,66 +0,0 @@ -/** - * @file VrHelpItemsDefault.qml - * @brief Default voice recognition help items. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 - -ListModel { - id: vrHelpItemsDefault - - Component.onCompleted: { - vrHelpItemsDefault.append({ - text: "Default VR Help Text1", - image: { - value: "", - imageType: 1 - }, - position: 1 - }); - vrHelpItemsDefault.append({ - text: "Default VR Help Text2", - image: { - value: "", - imageType: 1 - }, - position: 2 - }); - vrHelpItemsDefault.append({ - text: "Default VR Help Text3", - image: { - value: "", - imageType: 1 - }, - position: 3 - }); - } -} - diff --git a/src/components/qt_hmi/qml_model_qt5/popups/AlertWindow.qml b/src/components/qt_hmi/qml_model_qt5/popups/AlertWindow.qml deleted file mode 100644 index 2d0c4119b1..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/AlertWindow.qml +++ /dev/null @@ -1,290 +0,0 @@ -/** - * @file AlertWindow.qml - * @brief Alert popup window - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -Rectangle { - id: alertWindow - property date lastAlertTime - property var softButtons - property int appId - property string popUpName // TODO{ALESHIN}: No requerments for closePopUp, if alert couldn't be closed by closePopUp request - delete everywhere - - color: "transparent" - - property var async - - Rectangle { - id: rectangle - - anchors.centerIn: parent - color: "black" - border.color: "white" - - width: alertContent.width + 60 - height: alertContent.height + 60 - - property alias alertString: alert.text - property alias appNameString: appName.text - property int duration - - Column { - id: alertContent - anchors.centerIn: parent - spacing: 20 - - Text { - id: appName - anchors.horizontalCenter: parent.horizontalCenter - color: "white" - font.pointSize: 16 - } - - Row { - width: Constants.alertWidth - spacing: 20 - - Image { - id: alertLogo - source: "../res/warning.png" - } - - Text { - id: alert - width: parent.width - alertLogo.width - parent.spacing - clip: true - color: "white" - font.pointSize: 16 - } - } - - Rectangle { - id: progressIndicator - color: "white" - height: 10 - } - - Column { - Item { - width: Constants.alertWidth - height: alertButton1.visible ? alertButton1.height : 0 - - SoftButton { - id: alertButton1 - appId: alertWindow.appId - button: softButtons && softButtons.length > 0 ? softButtons[0] : undefined - anchors.left: parent.left - anchors.right: alertButton2.visible ? alertButton2.left : parent.right - width: Constants.alertWidth / 2 - onPressed: { alertWindow.keep = true; } - onReleased: { alertWindow.keep = false; } - onKeepContext: { - alertWindow.restart(); - sdlUI.onResetTimeout(appId, "UI.Alert") - } - onDefaultAction: { alertWindow.complete(Common.Result.SUCCESS); } - onStealFocus: { - alertWindow.complete(Common.Result.SUCCESS); - contentLoader.go( Internal.chooseAppStartScreen(dataContainer.currentApplication.appType, - dataContainer.currentApplication.isMediaApplication), appId ) - } - } - SoftButton { - id: alertButton2 - appId: alertWindow.appId - button: softButtons && softButtons.length > 1 ? softButtons[1] : undefined - anchors.right: parent.right - width: Constants.alertWidth / 2 - onPressed: { alertWindow.keep = true; } - onReleased: { alertWindow.keep = false; } - onKeepContext: { - alertWindow.restart(); - sdlUI.onResetTimeout(appId, "UI.Alert") - } - onDefaultAction: { alertWindow.complete(Common.Result.SUCCESS); } - onStealFocus: { - alertWindow.complete(Common.Result.SUCCESS); - contentLoader.go( Internal.chooseAppStartScreen(dataContainer.currentApplication.appType, - dataContainer.currentApplication.isMediaApplication), appId ) - } - } - } - Item { - width: Constants.alertWidth - height: alertButton3.visible ? childrenRect.height : 0 - SoftButton { - id: alertButton3 - appId: alertWindow.appId - button: softButtons && softButtons.length > 2 ? softButtons[2] : undefined - anchors.left: parent.left - anchors.right: alertButton4.visible ? alertButton4.left : parent.right - width: Constants.alertWidth / 2 - onPressed: { alertWindow.keep = true; } - onReleased: { alertWindow.keep = false; } - onKeepContext: { - alertWindow.restart(); - sdlUI.onResetTimeout(appId, "UI.Alert") - } - onDefaultAction: { alertWindow.complete(Common.Result.SUCCESS); } - onStealFocus: { - alertWindow.complete(Common.Result.SUCCESS); - contentLoader.go( Internal.chooseAppStartScreen(dataContainer.currentApplication.appType, - dataContainer.currentApplication.isMediaApplication), appId ) - } - } - SoftButton { - id: alertButton4 - appId: alertWindow.appId - button: softButtons && softButtons.length > 3 ? softButtons[3] : undefined - anchors.right: parent.right - width: Constants.alertWidth / 2 - onPressed: { alertWindow.keep = true; } - onReleased: { alertWindow.keep = false; } - onKeepContext: { - alertWindow.restart(); - sdlUI.onResetTimeout(appId, "UI.Alert") - } - onDefaultAction: { alertWindow.complete(Common.Result.SUCCESS); } - onStealFocus: { - alertWindow.complete(Common.Result.SUCCESS); - contentLoader.go( Internal.chooseAppStartScreen(dataContainer.currentApplication.appType, - dataContainer.currentApplication.isMediaApplication), appId ) - } - } - } - } - } - - SequentialAnimation { - id: animation - PropertyAction { target: progressIndicator; property: "width"; value: alertContent.width } - PropertyAnimation { - id: shrinkProgressAnimation - target: progressIndicator - property: "width" - to: 0 - duration: rectangle.duration - } - } - } - - Timer { - id: timer - onTriggered: { - complete(Common.Result.SUCCESS) - } - } - - function alert (alertStrings, duration, sButtons, showIndicator, alertType, applicationId) { - if (timer.running) { // we have alert already - var currentTime = new Date() - var timeFromLastAlert = currentTime - lastAlertTime - var timeLeft = timer.interval - timeFromLastAlert - var discreteInMilliseconds = 1000 // wish to round left time to integer seconds - var timeLeftRounded = discreteInMilliseconds * Math.ceil(timeLeft / discreteInMilliseconds) - return timeLeftRounded - } - else { - lastAlertTime = new Date(); - appId = applicationId - rectangle.appNameString = dataContainer.getApplication(appId).appName; - softButtons = sButtons; - rectangle.alertString = alertStrings.join('\n'); - timer.interval = duration; - rectangle.duration = duration; - timer.start(); - show(); - - progressIndicator.visible = !!showIndicator - progressIndicator.width = alertContent.width - console.log("ProgressIndicator.width:", progressIndicator.width) - animation.start() - } - } - - function show () { - dataContainer.activeAlert = true - dataContainer.applicationSavedContext = dataContainer.applicationContext - visible = true - } - - function complete (reason, data) { - if (!keep) { - hide() - switch (reason) { - case Common.Result.SUCCESS: - DBus.sendReply(async, { __retCode: Common.Result.SUCCESS, __message: "UI.Alert" }) - break - // For other cases - } - } - timer.stop() - } - - function hide() { - console.debug(popUpName, "HIDE") - dataContainer.activeAlert = false - dataContainer.applicationContext = dataContainer.applicationSavedContext - visible = false - } - - function restart() { - animation.restart(); - timer.restart(); - } - - property bool keep: false - - onKeepChanged: { - if (visible && !keep && !timer.running) { - hide() - } - } - - onVisibleChanged: { - if (visible) { - dataContainer.activePopup.push(popUpName) - } else { - for (var i in dataContainer.activePopup) { - if (dataContainer.activePopup[i] === popUpName) { - dataContainer.activePopup.splice(i, 1) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/ContextPopup.qml b/src/components/qt_hmi/qml_model_qt5/popups/ContextPopup.qml deleted file mode 100644 index 92e9d7442b..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/ContextPopup.qml +++ /dev/null @@ -1,56 +0,0 @@ -/** - * @file ContextPopup.qml - * @brief Popup view with system context. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 - -PopUp { - function show() { - console.debug("enter") - if (!visible) { // must not increment counter if show() called for visible popup - visible = true; - dataContainer.popups++ - } - console.debug("exit") - } - - function hide() { - console.debug("enter") - console.debug(popUpName, "HIDE") - if (visible) { // must not decrement counter if hide() called for invisible popup - visible = false; - dataContainer.popups-- - } - console.debug("exit") - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/ExitAllApplicationsPopup.qml b/src/components/qt_hmi/qml_model_qt5/popups/ExitAllApplicationsPopup.qml deleted file mode 100644 index bf88366eae..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/ExitAllApplicationsPopup.qml +++ /dev/null @@ -1,82 +0,0 @@ -/** - * @file ExitAllApplicationsPopup.qml - * @brief Popup "Exit all applications" - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import QtQuick.Controls 1.0 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../controls" - -PopUp { - function complete(reason){ - hide() - } - - Item { - ListModel { - id: reasonExit - - Component.onCompleted: { - for (var name in Common.ApplicationsCloseReason) { - append({name: name}); - } - } - } - } - - Column - { - anchors.centerIn: parent - Row { - Text { - text: "Select reason: " - color: "white" - } - - ComboBox { - id: reasonComboBox - model: reasonExit - } - z: 1000 - } - OvalButton { - text: "Exit" - anchors.horizontalCenter: parent.horizontalCenter - onClicked: { - sdlBasicCommunication.onExitAllApplications(Common.ApplicationsCloseReason[reasonComboBox.currentText]) - hide() - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/InteractionPopup.qml b/src/components/qt_hmi/qml_model_qt5/popups/InteractionPopup.qml deleted file mode 100644 index a6fc4d7107..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/InteractionPopup.qml +++ /dev/null @@ -1,175 +0,0 @@ -/** - * @file InteractionPopup.qml - * @brief Interaction popup view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../hmi_api/Async.js" as Async -import "../models/Internal.js" as Internal - -ContextPopup { - id: piPopUp - property ListModel choiceSet: ListModel { } - property int timeout - property int appID - property int interactionLayout - property var async - property var grammarID - property bool performInteractionIsActiveNow - - Text { - id: initialText - anchors.top: parent.top - anchors.topMargin: Constants.popupMargin - anchors.left: parent.left - anchors.leftMargin: Constants.popupMargin - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - ListView { - anchors.top: initialText.bottom - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.popupMargin - model: choiceSet - delegate: OvalButton { - width: parent.width - text: menuName - icon: image - onClicked: { - complete(Common.Result.SUCCESS, {"choiceID": model.choiceID}) - } - } - } - - Item { - Timer { - id: timer - onTriggered: { - complete(Common.Result.TIMED_OUT) - } - } - } - - function performInteraction(initialTextArg, choiceSet, vrHelpTitle, vrHelp, timeout, interactionLayout, appID) { - console.debug("enter") - var app = dataContainer.getApplication(appID) - var dataToUpdate = {} - - performInteractionIsActiveNow = true - if (initialTextArg !== undefined){ - initialText.text = initialTextArg.fieldText - } - this.timeout = timeout - this.appID = appID - - this.choiceSet.clear() - if (choiceSet !== undefined) { - choiceSet.forEach( function(arrayElement) { - piPopUp.choiceSet.append({ - choiceID: arrayElement.choiceID, - menuName: arrayElement.menuName ? arrayElement.menuName : "", - image: arrayElement.image ? arrayElement.image : "", - secondaryText: arrayElement.secondaryText ? arrayElement.secondaryText : "", - tertiaryText: arrayElement.tertiaryText ? arrayElement.tertiaryText: "", - secondaryImage: arrayElement.secondaryImage ? arrayElement.secondaryImage : "" - }) - }) - } - if (vrHelpTitle !== undefined) { - dataToUpdate.vrHelpTitlePerformInteraction = vrHelpTitle - } - - app.vrHelpItemsPerformInteraction.clear() - - if (vrHelp !== undefined) { - vrHelp.forEach( Internal.appendVrHelpItem, app.vrHelpItemsPerformInteraction ) - } - if (interactionLayout !== undefined) { - this.interactionLayout = interactionLayout - } - dataContainer.setApplicationProperties(appID, dataToUpdate) - async = new Async.AsyncCall() - if (piPopUp.choiceSet.count !== 0) { - activate() - }else if (grammarID) { - vrActivate() - } - console.debug("exit") - return async - } - - function activate () { - console.debug("enter") - timer.interval = timeout - timer.start() - if (grammarID) { - vrPopUp.sortModelforPerformInteraction() - } - show() - console.debug("exit") - } - function vrActivate () { - console.debug("enter") - timer.interval = timeout - timer.start() - vrPopUp.sortModelforPerformInteraction() - vrPopUp.show() - vrHelpPopup.show() - console.debug("exit") - } - - function complete (reason, data) { - console.debug("enter") - switch (reason) { - case Common.Result.SUCCESS: - DBus.sendReply(async, data) - break - case Common.Result.ABORTED: - DBus.sendReply(async, { __retCode: Common.Result.ABORTED }) - break - case Common.Result.TIMED_OUT: - DBus.sendReply(async, { __retCode: Common.Result.TIMED_OUT }) - break - } - timer.stop() - grammarID = "" - hide() - performInteractionIsActiveNow = false - console.debug("exit") - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/OnAppPermissionConsentPopUp.qml b/src/components/qt_hmi/qml_model_qt5/popups/OnAppPermissionConsentPopUp.qml deleted file mode 100644 index 2c4fe8bd3d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/OnAppPermissionConsentPopUp.qml +++ /dev/null @@ -1,153 +0,0 @@ -/** - * @file OnAppPermissionConsent.qml - * @brief Settings source screen view. - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import QtQuick.Controls 1.0 -import QtQuick.Controls.Styles 1.0 -import "../models" -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -PopUp { - - width: Constants.popupWidth - 200 - height: Constants.popupHeigth - 200 - - property int appID - property ListModel permissionItems: ListModel{} - - function activate(appId) { - console.debug("onAppPermissionConsentPopUp activate enter"); - appID = appId - show() - console.debug("onAppPermissionConsentPopUp activate exit"); - } - - function getFunctionalID(messageCode) { - - console.debug(appID); - - var app = dataContainer.getApplication(appID); - - for (var i = 0; i < app.allowedFunctions.length; i++) { - if (messageCode == app.allowedFunctions[i].name) { - - return app.allowedFunctions[i].id; - } - } - } - - function deactivate() { - console.debug("onAppPermissionConsentPopUp deactivate enter"); - hide() - - var consentedFunctions = []; - - for (var i = 0; i < permissionItems.count; i++) { - consentedFunctions.push({ - "name": permissionItems.get(i).messageCode, - "id": getFunctionalID(permissionItems.get(i).messageCode), - "allowed": permissionItems.get(i).allowed - }) - - console.debug("consentedFunctions.push", consentedFunctions[i].name,consentedFunctions[i].id,consentedFunctions[i].allowed); - } - - sdlSDL.onAppPermissionConsent(appID, consentedFunctions, Common.ConsentSource.GUI); - console.debug("onAppPermissionConsentPopUp deactivate exit"); - } - - Column { - anchors.fill: parent - - Component { - id: listDelegate - - Item { - height: 70 - width: parent.width - - CheckBox { - id: checkBox - height: 20 - - style: CheckBoxStyle { - label: Text { - color: Constants.panelTextColor - text: permissionItems.get(index).label - } - } - onClicked: { - permissionItems.setProperty(index, "allowed", !allowed) - } - } - - Text { - id: label - color: Constants.primaryColor - font.pixelSize: 0 - text: textBody - wrapMode: TextEdit.Wrap - width: parent.width - anchors.top: checkBox.bottom - } - } - } - - ScrollableListView { - id: onAppPermissonList - anchors.fill: parent; - anchors.margins: 5 - anchors.bottomMargin: 100 - model: permissionItems - delegate: listDelegate - } - - Item { - id: bottomPanel - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 100 - width: parent.width - - OvalButton { - anchors.centerIn: parent - text: "Done" - onClicked: { - deactivate() - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/PerformAudioPassThruPopup.qml b/src/components/qt_hmi/qml_model_qt5/popups/PerformAudioPassThruPopup.qml deleted file mode 100644 index 2cb0212a34..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/PerformAudioPassThruPopup.qml +++ /dev/null @@ -1,150 +0,0 @@ -/** - * @file PerformAudioPassThruPopup.qml - * @brief Popup for audio pass thru - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import QtQuick.Controls 1.0 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../controls" - -ContextPopup { - property var async - - function showAudioPassThru(){ - console.debug("entered") - dataContainer.uiAudioPassThru.running = true - show() - if (dataContainer.uiAudioPassThru.timeout) { - timer.start() - } - console.debug("exited") - } - - function complete(reason){ - console.debug("enter", reason) - timer.stop() - dataContainer.uiAudioPassThru.timeout = 0 - dataContainer.uiAudioPassThru.running = false - switch (reason) { - case Common.Result.ABORTED: - console.debug("exit with abort") - DBus.sendError(async, Common.Result.ABORTED) - break; - case Common.Result.SUCCESS: - console.debug("exit with success") - DBus.sendReply(async, {}) - break; - case Common.Result.RETRY: - console.debug("exit with retry") - DBus.sendError(async, Common.Result.RETRY) - break; - } - hide() - } - - - Column { - spacing: Constants.generalSpacing - anchors.centerIn: parent - Timer { - id: timer - interval: dataContainer.uiAudioPassThru.timeout - onTriggered: { - complete(Common.Result.SUCCESS) - } - } - - Text { - id: appNameText - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiAudioPassThru.appName - color: Constants.primaryColor - font.pixelSize: Constants.fontSize * 2 - } - - Row { - spacing: Constants.generalSpacing - Image { - source: "../res/controlButtons/vrImage.png" - } - - Column { - Text { - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiAudioPassThru.firstLine - color: Constants.audioPassThruTextColor - font.pixelSize: Constants.fontSize - } - Text { - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiAudioPassThru.secondLine - color: Constants.audioPassThruTextColor - font.pixelSize: Constants.fontSize - } - } - } - - - Row { - anchors.horizontalCenter: parent.horizontalCenter - spacing: Constants.generalSpacing - - OvalButton { - text: "Retry" - fontSize: Constants.fontSize - onClicked: { - complete(Common.Result.RETRY) - } - } - - OvalButton { - text: "Done" - fontSize: Constants.fontSize - onClicked: { - complete(Common.Result.SUCCESS) - } - } - } - - OvalButton { - text: "Close" - anchors.horizontalCenter: parent.horizontalCenter - onClicked: { - console.debug("enter") - complete(Common.Result.ABORTED) - console.debug("exit") - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/PopUp.qml b/src/components/qt_hmi/qml_model_qt5/popups/PopUp.qml deleted file mode 100644 index 544852638d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/PopUp.qml +++ /dev/null @@ -1,94 +0,0 @@ -/** - * @file PopUp.qml - * @brief General popup view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -Item { - default property alias content: content.children - property int padding: Constants.popUpPadding - property string popUpName - - visible: false - - width: Constants.popupWidth - height: Constants.popupHeigth - - MouseArea { anchors.fill: parent } - - Rectangle { - width: parent.width - padding / 2 - height: parent.height - padding / 2 - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - color: Constants.secondaryColor - border.width: 1 - border.color: Constants.popUpBorderColor - radius: padding - Rectangle { - id: content - width: parent.width - padding - height: parent.height - padding - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - color: Constants.transparentColor - } - } - - onVisibleChanged: { - if (popUpName) { - if (visible) { - dataContainer.activePopup.push(popUpName) - } else { - for (var i in dataContainer.activePopup) { - if (dataContainer.activePopup[i] === popUpName) { - dataContainer.activePopup.splice(i, 1) - } - } - } - } - } - - function show() { - console.debug("enter"); - visible = true; - console.debug("exit"); - } - - function hide() { - console.debug("enter"); - visible = false; - console.debug("exit"); - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/SliderPopup.qml b/src/components/qt_hmi/qml_model_qt5/popups/SliderPopup.qml deleted file mode 100644 index 38f866797d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/SliderPopup.qml +++ /dev/null @@ -1,217 +0,0 @@ -/** - * @file ExitAllApplicationsPopup.qml - * @brief Popup "Exit all applications" - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import QtQuick.Controls 1.0 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../controls" - -ContextPopup { - property var async - property int position: 1 - /** - * Test Support Section - */ - property int resultCode: -1 - signal onReady - /** - * Test Support Section End - */ - - function showSlider(){ - console.debug("enter") - - dataContainer.uiSlider.running = true - dataContainer.applicationSavedContext = dataContainer.applicationContext - if(dataContainer.uiSlider.footer === undefined || - dataContainer.uiSlider.footer.length === 0 || - dataContainer.uiSlider.position === 0 ) { - footerText.text = "" - } else { - footerText.text = dataContainer.uiSlider.footer.length === 1 ? dataContainer.uiSlider.footer[0] : dataContainer.uiSlider.footer[dataContainer.uiSlider.position - 1] - } - position = dataContainer.uiSlider.position - show() - timer.start() - onReady() - console.debug("exit") - } - - function complete(reason){ - console.debug("enter reason = ", reason) - timer.stop() - dataContainer.applicationContext = dataContainer.applicationSavedContext - dataContainer.uiSlider.running = false - switch(reason) { - case Common.Result.ABORTED: - console.debug("aborted position is", position) - resultCode = Common.Result.ABORTED - DBus.sendReply(async, {__retCode: resultCode, sliderPosition: position}) - break - case Common.Result.SUCCESS: - console.debug("send position", position) - resultCode = Common.Result.SUCCESS - dataContainer.uiSlider.position = position - DBus.sendReply(async, {sliderPosition:position}) - break - default: - break - } - hide() - position = 1 - console.debug("exit") - } - - - Column - { - spacing: Constants.generalSpacing - anchors.centerIn: parent - Timer { - id: timer - interval: dataContainer.uiSlider.timeout - onTriggered: { - console.debug("triggered") - complete(Common.Result.SUCCESS) - } - } - - Text { - id: appNameText - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiSlider.appName - color: Constants.primaryColor - font.pixelSize: Constants.fontSize * 2 - } - - Text { - id: headerText - width: borderRectangle.width - elide: Text.ElideRight - anchors.horizontalCenter: parent.horizontalCenter - text: dataContainer.uiSlider.header - color: Constants.sliderTextColor - font.pixelSize: Constants.fontSize * 2 - } - - Rectangle { - id: borderRectangle - width: Constants.sliderBarWidth - height: Constants.sliderBarHeight - anchors.horizontalCenter: parent.horizontalCenter - border.color: Constants.sliderBarBorderColor - border.width: Constants.sliderBarBorderWidth - radius: Constants.sliderBarRadius - color: "black" - - Rectangle { - id: rectangle - color: Constants.sliderBarFillColor - height: parent.height - border.color: parent.border.color - border.width: parent.border.width - radius: parent.radius - - onVisibleChanged: { - var tickWidth = borderRectangle.width / dataContainer.uiSlider.numTicks - rectangle.width = dataContainer.uiSlider.position * tickWidth - } - } - - MouseArea{ - id: mouseArea - anchors.fill: parent - onClicked: { - onPositionChanged(mouse) - } - - onPositionChanged: { - if(mouseX <= 0){ - rectangle.width = borderRectangle.width / dataContainer.uiSlider.numTicks - position = 1 - } - - if(mouseX > borderRectangle.width) { - rectangle.width = borderRectangle.width - position = dataContainer.uiSlider.numTicks - } - - if(mouseX > 0 && mouseX < borderRectangle.width) { - var tickWidth = borderRectangle.width / dataContainer.uiSlider.numTicks - position = Math.ceil(mouseX / tickWidth) - rectangle.width = position * tickWidth - } - - if(dataContainer.uiSlider.footer.length > 1){ - footerText.text = dataContainer.uiSlider.footer[position - 1] - } - } - } - } - - Text { - id:footerText - width: borderRectangle.width - elide: Text.ElideRight - anchors.horizontalCenter: parent.horizontalCenter - text: "" - color: Constants.sliderTextColor - font.pixelSize: Constants.fontSize * 2 - } - - OvalButton { - text: "Close" - anchors.horizontalCenter: parent.horizontalCenter - onClicked: { - console.debug("enter") - complete(Common.Result.ABORTED) - console.debug("exit") - } - } - } - - function getTimer() { - return timer - } - function getBackButton() { - return backButton - } - function getFooterText() { - return footerText - } - function getBorderRectangle() { - return borderRectangle - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/TBTClientStatePopUp.qml b/src/components/qt_hmi/qml_model_qt5/popups/TBTClientStatePopUp.qml deleted file mode 100644 index 5cd49bdd51..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/TBTClientStatePopUp.qml +++ /dev/null @@ -1,71 +0,0 @@ -/** - * @file TBTClientStatePopUp.qml - * @brief Popup view for TBT interface (list of states). - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import QtQuick.Controls 1.0 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -PopUp { - Item { - ListModel { - id: tbtState - - Component.onCompleted: { - for (var name in Common.TBTState) { - append({name: name}); - } - } - } - } - Text { - text: "TBT Client State" - verticalAlignment: Text.AlignVCenter - anchors.right: parent.right - anchors.left: parent.left - anchors.top: parent.top - color: Constants.primaryColor - } - ComboBox { - id: comboBox - anchors.left: parent.left - anchors.right: parent.right - anchors.verticalCenter: parent.verticalCenter - model: tbtState - onCurrentTextChanged: { - console.log("Send signal onTBTClientState:", currentText); - sdlNavigation.onTBTClientState(Common.TBTState[currentText]); - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml b/src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml deleted file mode 100644 index d16015ec56..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/TTSPopUp.qml +++ /dev/null @@ -1,110 +0,0 @@ -/** - * @file TTSPopUp.qml - * @brief Popup view for TTS - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import QtQuick.Controls 1.0 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -PopUp { - height: Constants.ttsPopUpHeight - width: Constants.ttsPopUpWidth - padding: Constants.ttsPopUpPadding - property var async - property string helpPromptstr - - ScrollView { - anchors.fill: parent - Text { - id: text - anchors.fill: parent - color: Constants.popUpBorderColor - font.pixelSize: Constants.ttsFontSize - text:"" - } - } - - resources: [ - Timer { - id: timer - interval: Constants.ttsSpeakTime - onTriggered: deactivate() - }, - - Timer { - id: ttsPerformInteractionTimer - interval: Constants.ttsSpeakTime - onTriggered: - if(interactionPopup.performInteractionIsActiveNow) - activate(message) - property var message: undefined - } - ] - - function performInteraction(helpPrompt, initialPrompt, timeoutPrompt, timeout) { - console.debug("Activate TTS popup:", "message"); - helpPromptstr = helpPrompt - activate(initialPrompt); - if (timeout * 2 - Constants.ttsSpeakTime > 0) { - ttsPerformInteractionTimer.message = timeoutPrompt; - ttsPerformInteractionTimer.interval = timeout - Constants.ttsSpeakTime; - ttsPerformInteractionTimer.restart() - } - } - - function activate(message) { - console.debug("Activate TTS popup:", message); - dataContainer.activeTTS = true; - sdlTTS.started(); - console.debug("TTS started"); - text.text = message; - show(); - timer.restart(); - console.debug("Exit"); - } - - function deactivate() { - console.debug("Deactivate TTS popup"); - dataContainer.activeTTS = false; - sdlTTS.stopped(); - console.debug("TTS stopped"); - text.text = ''; - timer.stop(); - hide(); - DBus.sendReply(async, {}); - async = null; - console.debug("Exit"); - } -} - diff --git a/src/components/qt_hmi/qml_model_qt5/popups/UserActionPopUp.qml b/src/components/qt_hmi/qml_model_qt5/popups/UserActionPopUp.qml deleted file mode 100644 index d49c212297..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/UserActionPopUp.qml +++ /dev/null @@ -1,175 +0,0 @@ -/** - * @file PopUp.qml - * @brief General popup view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants -import "../controls" - -Item { - default property alias content: content.children - property var callbackFunc: null - property int padding: Constants.popUpPadding - property string popUpName - - visible: false - - width: Constants.popupWidth - height: Constants.popupHeigth - - MouseArea { anchors.fill: parent } - - Rectangle { - width: parent.width / 2 - height: parent.height / 2 - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - color: Constants.secondaryColor - border.width: 1 - border.color: Constants.popUpBorderColor - radius: padding - Rectangle { - id: content - width: parent.width - padding - height: parent.height - padding - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: parent.horizontalCenter - color: Constants.transparentColor - } - - Text { - id: title - text: "adsadad" - anchors.top: parent.top - anchors.topMargin: 5 - anchors.horizontalCenter: parent.horizontalCenter - horizontalAlignment: Text.AlignHCenter - width: parent.width - padding - height: 20 - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - wrapMode: TextEdit.Wrap - } - - Text { - id: message - text: "adsadad" - anchors.top: parent.top - anchors.topMargin: 30 - anchors.horizontalCenter: parent.horizontalCenter - horizontalAlignment: Text.AlignHCenter - width: parent.width - padding - height: 100 - font.pixelSize: 0 - color: Constants.primaryColor - wrapMode: TextEdit.Wrap - } - - OvalButton { - id: okButton - text: "Ok" - fontSize: Constants.fontSize - property bool result: true - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.leftMargin: 15 - width: parent.width / 2 - 20 - onClicked: { - deactivate(result) - } - visible: false - } - - OvalButton { - id: cancelButton - text: "Cancel" - fontSize: Constants.fontSize - property bool result: false - anchors.bottom: parent.bottom - anchors.right: parent.right - anchors.rightMargin: 15 - width: parent.width / 2 - 20 - onClicked: { - deactivate(result) - } - visible: false - } - - OvalButton { - id: closeButton - text: "Close" - fontSize: Constants.fontSize - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.leftMargin: 15 - width: parent.width - 20 - onClicked: { - deactivate() - } - visible: false - } - - } - - function activate(titleText, textBoxText, callback, buttons) { - console.log("userActionPopUp activate enter"); - title.text = titleText; - message.text = textBoxText; - - if (buttons) { - callbackFunc = callback; - okButton.visible = true - cancelButton.visible = true - } else { - closeButton.visible = true - } - - visible = true; - console.debug("userActionPopUp activate exit"); - } - - function deactivate(result) { - console.log("userActionPopUp deactivate enter"); - visible = false; - title.text = ""; - message.text = ""; - if (callbackFunc) { - callbackFunc(result); - callbackFunc = null; - } - okButton.visible = false - cancelButton.visible = false - closeButton.visible = false - console.debug("userActionPopUp deactivate exit"); - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/VRHelpPopup.qml b/src/components/qt_hmi/qml_model_qt5/popups/VRHelpPopup.qml deleted file mode 100644 index c699f0f51d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/VRHelpPopup.qml +++ /dev/null @@ -1,113 +0,0 @@ -/** - * @file VRHelpPopup.qml - * @brief Popup view for VR help - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common - -PopUp { - property alias title: title.text - Text { - id: title - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.popupMargin - text: { - // not in application - if (!dataContainer.applicationContext) { - return dataContainer.currentApplication.vrHelpTitleDefault - // in application - } else { - if (interactionPopup.performInteractionIsActiveNow) { - return dataContainer.currentApplication.vrHelpTitlePerformInteraction - } else if (dataContainer.currentApplication.vrHelpTitle) { - return dataContainer.currentApplication.vrHelpTitle - } else { - return dataContainer.currentApplication.vrHelpTitleDefault - } - } - } - font.pixelSize: Constants.titleFontSize - color: Constants.primaryColor - } - - ScrollableListView { - anchors.top: title.bottom - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.popupMargin - - model: { - // not in application - if (!dataContainer.applicationContext) { - return dataContainer.currentApplication.vrHelpItemsDefault - // in application - } else { - if (interactionPopup.performInteractionIsActiveNow) { - return dataContainer.currentApplication.vrHelpItemsPerformInteraction - } else if (dataContainer.currentApplication.vrHelpItems.count > 0) { - return dataContainer.currentApplication.vrHelpItems - } else { - return dataContainer.currentApplication.vrHelpItemsDefault - } - } - } - - delegate: - Row { - spacing: Constants.iconItemListSpacing - Icon { - source: model.image - anchors.verticalCenter: parent.verticalCenter - width: Constants.iconItemListSize - height: Constants.iconItemListSize - } - - Text { - id: text - anchors.verticalCenter: parent.verticalCenter - text: model.text - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - } - } - } - - function complete(reason, data) { - hide() - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/VRPopUp.qml b/src/components/qt_hmi/qml_model_qt5/popups/VRPopUp.qml deleted file mode 100644 index ed33e5ca8d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/VRPopUp.qml +++ /dev/null @@ -1,158 +0,0 @@ -/** - * @file VRPopUp.qml - * @brief Popup view for VR interface (list commands). - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../views" -import "../controls" - -PopUp { - Text { - id: title - anchors.left: parent.left - anchors.top: parent.top - height: voice.height - width: parent.width - voice.width - text: "Speak the command" - verticalAlignment: Text.AlignVCenter - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - Image { - id: voice - anchors.top: parent.top - anchors.right: parent.right - source: "../res/controlButtons/vrImage.png" - } - OvalButton{ - id:helpButton - anchors.rightMargin: Constants.popupMargin - anchors.leftMargin: Constants.popupMargin - anchors.top: voice.bottom - anchors.left: parent.left - anchors.right: parent.right - text: "Help" - onClicked:{ - if (interactionPopup.performInteractionIsActiveNow) - ttsPopUp.activate(ttsPopUp.helpPromptstr) - if (dataContainer.activeVR) { - vrPopUp.complete(); - vrHelpPopup.hide() - } - } - } - - ScrollableListView { - anchors.bottomMargin: Constants.popupMargin - anchors.rightMargin: Constants.popupMargin - anchors.leftMargin: Constants.popupMargin - anchors.top: helpButton.bottom - anchors.right: parent.right - anchors.bottom: parent.bottom - anchors.left: parent.left - - model: if (interactionPopup.grammarID) { - dataContainer.choicesVrCommands - } - else { - dataContainer.vrCommands - } - - delegate: OvalButton { - width: parent.width - text: command - visible: visibleButtons(grammarID,type) - onClicked: { - if (interactionPopup.performInteractionIsActiveNow && type === Common.VRCommandType.Choice) - interactionPopup.complete(Common.Result.SUCCESS, {"choiceID": cmdID}) - sdlVR.onCommand(cmdID, appID === 0 ? undefined : appID); - if (dataContainer.activeVR) { - vrPopUp.complete(); - vrHelpPopup.hide() - } - } - } - } - - function activate() { - dataContainer.activeVR = true; - sdlVR.started(); - show(); - } - - function complete(reason) { - dataContainer.activeVR = false; - sdlVR.stopped(); - hide(); - } - - function sortModelforPerformInteraction() { - var n, - i, - j; - for (n = 0; n < dataContainer.choicesVrCommands.count; n++) { - for (i = n + 1; i < dataContainer.choicesVrCommands.count; i++) { - if (dataContainer.choicesVrCommands.get(n).type === Common.VRCommandType.Command && - dataContainer.choicesVrCommands.get(i).type === Common.VRCommandType.Choice) { - dataContainer.choicesVrCommands.move(i, n, 1); - n = 0; - } - } - } - for (j = interactionPopup.grammarID.length; j > 0; j--) { - for (n = 0; n < dataContainer.choicesVrCommands.count && - dataContainer.choicesVrCommands.get(n).type === Common.VRCommandType.Choice; n++) { - for (i = n + 1; i < dataContainer.choicesVrCommands.count && - dataContainer.choicesVrCommands.get(i).type === Common.VRCommandType.Choice; i++) { - if (dataContainer.choicesVrCommands.get(n).grammarID !== interactionPopup.grammarID[j-1] - && dataContainer.choicesVrCommands.get(i).grammarID === interactionPopup.grammarID[j-1]) { - dataContainer.choicesVrCommands.move(i, n, 1); - n = 0; - } - } - } - } - } - - function visibleButtons(grammarID, type) { - if (interactionPopup.grammarID) { - return interactionPopup.grammarID.indexOf(grammarID) !== -1 - } - else { - return type === Common.VRCommandType.Command - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/popups/VehicleInfoPopUp.qml b/src/components/qt_hmi/qml_model_qt5/popups/VehicleInfoPopUp.qml deleted file mode 100644 index a97f346719..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/popups/VehicleInfoPopUp.qml +++ /dev/null @@ -1,112 +0,0 @@ -/** - * @file VIPopUp.qml - * @brief Pop up window with information about vehicle. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common -import "../controls" -import QtQuick.Controls 1.0 - -PopUp { - //TODO{ALeshin}: Redraw this window as ListView or Column, when we'll get requirements - Column { - anchors.fill: parent - Text { - id: viText - width: parent.width - height: 1/5 * parent.height - text: "Vehicle Information" - font.pixelSize: Constants.fontSize - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - color: Constants.primaryColor - } - - Row { - height: 1/5 * parent.height - width: parent.width - - Text { - width: 1/4 * parent.width - height: 1/5 * parent.height - anchors.verticalCenter: parent.verticalCenter - text: "PRNDL: " - font.pixelSize: Constants.fontSize - verticalAlignment: Text.AlignVCenter - color: Constants.primaryColor - } - - ComboBox { - anchors.verticalCenter: parent.verticalCenter - id: comboBox - model: prndlList - - onCurrentIndexChanged: { - console.debug("PRNDL:", currentIndex) - dataContainer.vehicleInfoModel.prndl = model.get(currentIndex).id - } - - textRole: "name" - ListModel { - id: prndlList - Component.onCompleted: { - append({ id: -1, name: "<NO DATA (prndl)>" }) - for (var name in Common.PRNDL) { - append({ id: Common.PRNDL[name], name: name }); - } - } - } - } - z: 1000 - } - - Text { - width: parent.width - height: 1/5 * parent.height - text: "ECU 1: " + dataContainer.vehicleInfoModel.ecuDIDData.data1 - font.pixelSize: Constants.fontSize - verticalAlignment: Text.AlignVCenter - color: Constants.primaryColor - } - - Text { - width: parent.width - height: 1/5 * parent.height - text: "ECU 2: " + dataContainer.vehicleInfoModel.ecuDIDData.data2 - font.pixelSize: Constants.fontSize - verticalAlignment: Text.AlignVCenter - color: Constants.primaryColor - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/qml_model.qmlproject b/src/components/qt_hmi/qml_model_qt5/qml_model.qmlproject deleted file mode 100644 index ea820e8019..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/qml_model.qmlproject +++ /dev/null @@ -1,20 +0,0 @@ -/* File generated by Qt Creator, version 2.7.0 */ - -import QmlProject 1.1 - -Project { - mainFile: "MainWindow.qml" - - /* Include .qml, .js, and image files from current directory and subdirectories */ - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "../res" - } - /* List of plugin directories passed to QML runtime */ - importPaths: [ "." ] -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/AMPlayerView.qml b/src/components/qt_hmi/qml_model_qt5/views/AMPlayerView.qml deleted file mode 100644 index ad0c9d1907..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/AMPlayerView.qml +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @file AMPlayerView.qml - * @brief AM player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common - -GeneralView { - category: Common.DeactivateReason.AUDIO - RadioPlayer { - id: amRadioPlayer - anchors.fill: parent - radioType: "AM" - radioName: "AM Radio" - - playerState: dataContainer.amPlayerState - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/ApplicationListView.qml b/src/components/qt_hmi/qml_model_qt5/views/ApplicationListView.qml deleted file mode 100644 index 38c5ab067e..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/ApplicationListView.qml +++ /dev/null @@ -1,126 +0,0 @@ -/** - * @file ApplicationListView.qml - * @brief Application list view - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -GeneralView { - Column { - anchors.fill: parent - Item { - // top 1/4 of screen - width: parent.width - height: 1/4 * parent.height - - PagedFlickable { - anchors.verticalCenter: parent.verticalCenter - width: parent.width - elementWidth: Constants.ovalButtonWidth - snapTo: elementWidth + spacing - spacing: (width - 4 * elementWidth) / 3 - - OvalButton { - text: "Find New Apps" - } - - OvalButton { - text: "Change device" - onReleased: contentLoader.go("./views/ChangeDeviceView.qml") - } - - OvalButton { - text: "911 Assist" - } - - OvalButton { - text: "Vehicle Health Report" - } - - OvalButton { - text: "Install applications/Up" - } - } - } - - Item { - height: parent.height / 2 - width: parent.width - - ScrollableListView { - id: applicationListView - anchors.fill: parent - model: dataContainer.applicationList - - delegate: Item { - width: parent.width - height: Math.max(applicationName.height, appIcon.height) - Image { - id: appIcon - source: icon - height: Constants.appListIconSize - width: height - } - ClickableText { - id: applicationName - text: appName - defaultColor: Constants.primaryColor - pressedColor: Constants.primaryColorPressed - font.pixelSize: Constants.appListFontSize - anchors.verticalCenter: parent.verticalCenter - anchors.left: appIcon.right - anchors.leftMargin: Constants.margin - onClicked: { - settingsContainer.activateApp(appId) -// dataContainer.setCurrentApplication(appId) -// contentLoader.go( Internal.chooseAppStartScreen(dataContainer.currentApplication.appType, -// dataContainer.currentApplication.isMediaApplication), appId ) - } - } - } - } - } - - Item { - // bottom 1/4 of screen - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/BTPlayerView.qml b/src/components/qt_hmi/qml_model_qt5/views/BTPlayerView.qml deleted file mode 100644 index a1d8c43a39..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/BTPlayerView.qml +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @file BTPlayerView.qml - * @brief FM player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: btPlayer - playerName: "BT Audio" - anchors.fill: parent - - playerState: dataContainer.btPlayerState - image: playerState.albumImage - - buttons: [ - OvalButton { - text: btPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/CDPlayerView.qml b/src/components/qt_hmi/qml_model_qt5/views/CDPlayerView.qml deleted file mode 100644 index 8cf1c3f728..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/CDPlayerView.qml +++ /dev/null @@ -1,63 +0,0 @@ -/** - * @file CDPlayerView.qml - * @brief CD player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: cdPlayer - playerName: "CD" - anchors.fill: parent - image: playerState.albumImage - playerState: dataContainer.cdPlayerState - - buttons: [ - OvalButton { - text: cdPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/CarMenuGridView.qml b/src/components/qt_hmi/qml_model_qt5/views/CarMenuGridView.qml deleted file mode 100644 index e61bac1d08..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/CarMenuGridView.qml +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @file CarMenuGridView.qml - * @brief Car menu screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" - -GridMenu { - id: menu - model: CarMenuModel { } - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - ClickableImage { - anchors.centerIn: parent - source: icon - onClicked: { - if(qml !== "") { - contentLoader.go(qml) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/ChangeDeviceView.qml b/src/components/qt_hmi/qml_model_qt5/views/ChangeDeviceView.qml deleted file mode 100644 index 84a751efec..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/ChangeDeviceView.qml +++ /dev/null @@ -1,102 +0,0 @@ -/** - * @file ChangeDeviceView.qml - * @brief Screen view with list of available devices. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - Text { - id: searchDeviceText - anchors.left: parent.left - anchors.top: parent.top - height: 1/4 * parent.height - width: parent.width - color: Constants.primaryColor - font.pixelSize: Constants.titleFontSize - text: "Devices available:" - verticalAlignment: Text.AlignVCenter - } - - ListView { - id: changeDeviceListView - anchors.left: parent.left - anchors.top: searchDeviceText.bottom - model: dataContainer.deviceList - width:parent.width - height:parent.height - searchDeviceText.height - - delegate: Text { - MouseArea { - anchors.fill: parent - onClicked: { - sdlBasicCommunication.onDeviceChosen({ name: name, id: devid }); - sdlBasicCommunication.onFindApplications({ name: name, id: devid }) - contentLoader.go("./views/ApplicationListView.qml") - } - } - text: name - color: Constants.primaryColor - font.pixelSize: Constants.titleFontSize - } - } - } - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent } - } - - Component.onCompleted: { - console.log("ChangeDeviceView Component.onCompleted enter"); - sdlBasicCommunication.onStartDeviceDiscovery(); - console.log("ChangeDeviceView Component.onCompleted exit"); - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/ClimateControlView.qml b/src/components/qt_hmi/qml_model_qt5/views/ClimateControlView.qml deleted file mode 100644 index 41b0c32efa..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/ClimateControlView.qml +++ /dev/null @@ -1,94 +0,0 @@ -/** - * @file ClimateControlView.qml - * @brief Screen view of climat menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" - -GeneralView { - Item { - id: climatMenu - anchors.fill: parent - - Item { - height: parent.height - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - Column { - id: leftItem - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 1/4*parent.width - useThisToGetButtonSize.width - - Row { - ClimateControlBtn {name: "heated_seat"} - ClimateControlBtn {name: "heated_wheel"} - } - Row { - ClimateControlBtn {name: "AC"} - ClimateControlBtn {name: "headed_dash"} - } - } - - Column { - id: centralItem - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - - ClimateControlBtn {id: useThisToGetButtonSize; name: "defrost"; state: "on"} - ClimateControlBtn {name: "face"; state: "on"} - ClimateControlBtn {name: "feet"} - } - - Row { - id: rightItem - anchors.verticalCenter: parent.verticalCenter - anchors.right: parent.right - anchors.rightMargin: 1/4*parent.width - useThisToGetButtonSize.width - - ClimateControlBtn { - anchors.verticalCenter: parent.verticalCenter - txt: "Dual" - state: "on" - } - - Column { - ClimateControlBtn { name: "heated_seat" } - ClimateControlBtn { name: "AC" } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/ContactsListView.qml b/src/components/qt_hmi/qml_model_qt5/views/ContactsListView.qml deleted file mode 100644 index 90f817036d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/ContactsListView.qml +++ /dev/null @@ -1,118 +0,0 @@ -/** - * @file ContactsListView.qml - * @brief Contact list screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models" -import "../models/Constants.js" as Constants - -GeneralView { - function setCurrent(firstLetter){ - for(var i = 0; i < contactsListView.count; i ++) { - if (contactsListView.model.get(i).name[0].toUpperCase() === firstLetter) { - contactsListView.positionViewAtIndex(i, ListView.Beginning) - break; - } - } - } - Component.onCompleted: setCurrent(dataContainer.contactsFirstLetter) - - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - ScrollableListView { - id: contactsListView - anchors.fill: parent - clip: true - spacing: 1/2 * Constants.fontSize - model: ContactsListModel { } - - section.property: "name" - section.criteria: ViewSection.FirstCharacter - section.delegate: Text { - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - text: section.toUpperCase() - } - - delegate: Item { - anchors.left: parent.left - width: parent.width - Constants.scrollBarWidth - height: typeText.height - - Text { - id: contactName - anchors.left: parent.left - text: name - width: Constants.contactListNameFieldSize * parent.width - color: Constants.contactTextColor - font.pixelSize: Constants.fontSize - elide: Text.ElideRight - } - Text { - id: phoneText - anchors.left: contactName.right - width: Constants.contactListPhoneFieldSize * parent.width - text: phone - color: Constants.contactTextColor - font.pixelSize: Constants.fontSize - horizontalAlignment: Text.AlignHCenter - } - Text { - id: typeText - anchors.right: parent.right - width: Constants.contactListDescriptionFieldSize * parent.width - text: type - color: Constants.contactTextColor - font.pixelSize: Constants.fontSize - horizontalAlignment: Text.AlignHCenter - } - } - } - } - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/DeviceStateChangedView.qml b/src/components/qt_hmi/qml_model_qt5/views/DeviceStateChangedView.qml deleted file mode 100644 index 5a0b5b7754..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/DeviceStateChangedView.qml +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - Text { - id: title - text: "Choose devices to be Unpaired:" - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - height: Constants.fontSize + Constants.panelPadding - } - - ScrollableListView { - id: menu - model: dataContainer.deviceList - anchors.left: parent.left - anchors.right: parent.right - anchors.top: title.bottom - anchors.bottom: bottomPanel.top - delegate: OvalButton { - text: name - onClicked: { - sdlSDL.onDeviceStateChanged(Common.DeviceState.UNPAIRED, - "", {id: devid, name: name}); - } - anchors.left: parent.left - anchors.right: parent.right - fontSize: Constants.fontSize - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/FMPlayerView.qml b/src/components/qt_hmi/qml_model_qt5/views/FMPlayerView.qml deleted file mode 100644 index ae117ccd05..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/FMPlayerView.qml +++ /dev/null @@ -1,121 +0,0 @@ -/** - * @file FMPlayerView.qml - * @brief FM player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -GeneralView { - category: Common.DeactivateReason.AUDIO - RadioPlayer { - id: fmRadioPlayer - anchors.fill: parent - radioType: "FM" - radioName: "FM Radio" - - playerState: dataContainer.fmPlayerState - - property int hdButtonValue: 1 - - buttonHD: [ - Image { - id: hdButton - anchors.bottom: parent.bottom - anchors.left: parent.left - source: "../res/buttons/long_oval_btn.png" - property string textColor: Constants.primaryColor - - Row { - anchors.centerIn: parent - spacing: (hdButton.width - hdLogo.width - one.width - two.width - three.width - four.width) / 10 - - Image { - id: hdLogo - anchors.verticalCenter: parent.verticalCenter - source:"../res/hd_logo_on.png" - } - - Text { - id: one - anchors.verticalCenter: parent.verticalCenter - text: "1" - color: fmRadioPlayer.hdButtonValue === 1 ? "white" : hdButton.textColor - font.pixelSize: Constants.fontSize - } - - Text { - id: two - anchors.verticalCenter: parent.verticalCenter - text: "2" - color: fmRadioPlayer.hdButtonValue === 2 ? "white" : hdButton.textColor - font.pixelSize: Constants.fontSize - } - - Text { - id: three - anchors.verticalCenter: parent.verticalCenter - text: "3" - color: fmRadioPlayer.hdButtonValue === 3 ? "white" : hdButton.textColor - font.pixelSize: Constants.fontSize - } - - Text { - id: four - anchors.verticalCenter: parent.verticalCenter - text: "4" - color: fmRadioPlayer.hdButtonValue === 4 ? "white" : hdButton.textColor - font.pixelSize: Constants.fontSize - } - } - - MouseArea { - anchors.fill: parent - onPressed: { - hdLogo.source = "../res/hd_logo_off.png" - hdButton.source = "../res/buttons/long_oval_pressed_btn.png" - hdButton.textColor = Constants.secondaryColor - - } - onReleased: { - hdLogo.source = "../res/hd_logo_on.png" - hdButton.source = "../res/buttons/long_oval_btn.png" - hdButton.textColor = Constants.primaryColor - fmRadioPlayer.hdButtonValue === 4 ? fmRadioPlayer.hdButtonValue = 1 : fmRadioPlayer.hdButtonValue++ - } - } - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/GeneralView.qml b/src/components/qt_hmi/qml_model_qt5/views/GeneralView.qml deleted file mode 100644 index ca6eb12e8f..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/GeneralView.qml +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @file GeneralView.qml - * @brief Base view class. Defines properties and behavior common for all views - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common - -Item { - /// HMI context view is related to - property int systemContext: Common.SystemContext.SYSCTXT_MAIN - /// True if view is in application context - property bool applicationContext: false - /// View category for AppDeactivated notification (reason) - property int category: Common.DeactivateReason.GENERAL - - signal enterScreen - signal leaveScreen -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/GridMenu.qml b/src/components/qt_hmi/qml_model_qt5/views/GridMenu.qml deleted file mode 100644 index f935b030c4..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/GridMenu.qml +++ /dev/null @@ -1,86 +0,0 @@ -/** - * @file GridMenu.qml - * @brief Parent class for main menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -GeneralView { - id: main - property alias model: repeater.model - property alias delegate: repeater.delegate - property alias rows: grid.rows - property int columnsOnPage: Constants.menuColumnCount - - Flickable { - id: flicker - anchors.fill: parent - contentWidth: grid.width - flickableDirection: Flickable.HorizontalFlick - - Grid { - id: grid - anchors.centerIn: parent - rows: Constants.menuRowCount - columns: Math.ceil(model.count / rows) - flow: Grid.TopToBottom - Repeater { - id: repeater - } - } - - property int snapTo: width / parent.columnsOnPage - onMovementEnded: { - var rest = flicker.contentX % snapTo - var time = 0.25 - if (rest > flicker.snapTo / 2) { rest = rest - flicker.snapTo } - var vel = 2 * rest / time - flickDeceleration = Math.abs(vel) / time - flick(vel, 0) - flickDeceleration = 1500 - } - } - - Pager { - id: pager - space: 10 - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: parent.top - anchors.topMargin: Constants.margin - - pages: Math.ceil(grid.columns / parent.columnsOnPage) - activePage: Internal.activePageChoose(flicker, pager.pages) - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/HardwareButtonsView.qml b/src/components/qt_hmi/qml_model_qt5/views/HardwareButtonsView.qml deleted file mode 100644 index 1a162f2caa..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/HardwareButtonsView.qml +++ /dev/null @@ -1,175 +0,0 @@ -/** - * @file HardwareButtonsView.qml - * @brief Area of screen responsible for hardware buttons - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -Rectangle { - height: row.height + row.anchors.margins - anchors.left: parent.left - anchors.right: parent.right - color: Constants.panelColor - - signal buttonDown(string name) - signal buttonUp(string name) - - function pressButton(name) { - buttonDown(name) - } - - function longPressButton(name) { - console.log("long press " + name) - } - - function releaseButton(name) { - buttonUp(name) - } - - Row { - id: row - spacing: Constants.panelPadding - anchors.centerIn: parent - anchors.margins: Constants.panelPadding - - PowerSwitchButton {anchors.verticalCenter: parent.verticalCenter} - - MaskedButton { - name: "vr" - anchors.verticalCenter: parent.verticalCenter - onReleased: { - console.debug("Clicked VR button"); - if (!dataContainer.activeVR) { - vrPopUp.activate(); - vrHelpPopup.show(); - } else { - vrPopUp.complete(); - vrHelpPopup.hide() - } - } - } - - ArrowKeys {anchors.verticalCenter: parent.verticalCenter} - - Grid { - columns: 5 - rows: 2 - spacing: 5 - anchors.verticalCenter: parent.verticalCenter - Repeater { - model: 10 - delegate : Rectangle { - width: 40 - height: 40 - radius: 5 - gradient: Gradient { - GradientStop - { - position: 0.0; - color: "#2c2c2c" - Behavior on position { - NumberAnimation { duration: 80 } - } - } - - GradientStop - { - position: 1.0; - color: "black" - Behavior on position { - NumberAnimation { duration: 80 } - } - } - } - - Text { - text: (1 + index) % 10 - font.pixelSize: 30 - color: Constants.panelTextColor - anchors.centerIn: parent - } - - Timer { - id: timer - interval: Constants.presetButtonTimer - repeat: false - triggeredOnStart: false - } - - MouseArea { - id: mouseArea - anchors.fill: parent - property bool clickProcessed - onPressed: { - parent.gradient.stops[0].position = 1.0 - parent.gradient.stops[1].position = 0.0 - clickProcessed = false - timer.start() - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + index, Common.ButtonEventMode.BUTTONDOWN, undefined) - } - onReleased: { - parent.gradient.stops[0].position = 0.0 - parent.gradient.stops[1].position = 1.0 - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + index, Common.ButtonEventMode.BUTTONUP, undefined) - timer.stop() - if (!clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + index, Common.ButtonPressMode.SHORT, undefined) - } - } - Connections { - target: timer - onTriggered: { - if(!mouseArea.clickProcessed) { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + index, Common.ButtonPressMode.LONG, undefined) - mouseArea.clickProcessed = true - } - } - } - } - - Component.onCompleted: { - settingsContainer.buttonCapabilities.push( - { - name: Common.ButtonName.PRESET_0 + index, - upDownAvailable: true, - shortPressAvailable: true, - longPressAvailable: true - }); - } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/IPodPlayerView.qml b/src/components/qt_hmi/qml_model_qt5/views/IPodPlayerView.qml deleted file mode 100644 index 65a667702b..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/IPodPlayerView.qml +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @file IPodPlayerView.qml - * @brief IPod player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: ipodPlayer - playerName: "iPod" - anchors.fill: parent - image: playerState.albumImage - playerState: dataContainer.ipodPlayerState - - buttons: [ - OvalButton { - text: ipodPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/LineInPlayerView.qml b/src/components/qt_hmi/qml_model_qt5/views/LineInPlayerView.qml deleted file mode 100644 index 70f3e04772..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/LineInPlayerView.qml +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @file LineInPlayerView.qml - * @brief LineIn player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: lineInPlayer - playerName: "LineIn" - anchors.fill: parent - image: playerState.albumImage - playerState: dataContainer.linePlayerState - - buttons: [ - OvalButton { - text: lineInPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/MainMenuView.qml b/src/components/qt_hmi/qml_model_qt5/views/MainMenuView.qml deleted file mode 100644 index 7ed435b137..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/MainMenuView.qml +++ /dev/null @@ -1,54 +0,0 @@ -/** - * @file MainMenuView.qml - * @brief Main menu screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" - -GridMenu { - id: menu - model: MainMenuListModel { } - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - ClickableImage { - anchors.centerIn: parent - source: icon - onClicked: { - if(qml !== "") { - contentLoader.go(qml) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/MediaClockView.qml b/src/components/qt_hmi/qml_model_qt5/views/MediaClockView.qml deleted file mode 100644 index 5178d979cf..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/MediaClockView.qml +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @file MediaClockView.qml - * @brief Media clock view - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -Item { - property alias time: timeText.text - Text { - id: timeText - anchors.left: parent.left - width: 1/10 * parent.width - anchors.verticalCenter: parent.verticalCenter - horizontalAlignment: Text.AlignRight - color: "white" - text: (mediaPlayerView.playerType === "SDL") ? Internal.hmsTimeToString(dataContainer.currentApplication.mediaClock.startTime) - : "02:36" //TODO {Aleshin}: get track time for all players except SDL - font.pixelSize: 18 - } - - Row { - anchors.horizontalCenter: parent.horizontalCenter - anchors.verticalCenter: parent.verticalCenter - height: parent.height - width: 2/3 * parent.width - - Rectangle { - anchors.verticalCenter: parent.verticalCenter - height: 2 - width: dataContainer.currentApplication.mediaClock.progress * parent.width - color: "white" - } - - Rectangle { - anchors.verticalCenter: parent.verticalCenter - height: 2 - width: (1 - dataContainer.currentApplication.mediaClock.progress) * parent.width - color: Constants.primaryColor - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/MediaPlayer.qml b/src/components/qt_hmi/qml_model_qt5/views/MediaPlayer.qml deleted file mode 100644 index ed4eda014e..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/MediaPlayer.qml +++ /dev/null @@ -1,302 +0,0 @@ -/** - * @file MediaPlayerView.qml - * @brief Parent for BT, IPod, CD players screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -Item { - id: mediaPlayerView - - property string playerName: "" - property string playerType: "" - - signal rewind - signal forward - signal play - signal pause - - // Holds players state(song name, play/pause state, track number etc). For all players except SDL. - property PlayerState playerState; - - property alias buttons: buttonsRow.content - property alias buttonsSpacing: buttonsRow.spacing - property alias image: image.source - - Item { - // row of oval buttons - id: ovalButtonsRow - width: parent.width - height: 1/5 * parent.height - anchors.left: parent.left - anchors.top: parent.top - - PagedFlickable { - id: buttonsRow - width: parent.width - spacing: (mediaPlayerView.playerType === "SDL") ? ((width - 4 * elementWidth) / 3) - : (width - 2 * elementWidth) - anchors.verticalCenter: parent.verticalCenter - snapTo: Constants.ovalButtonWidth + spacing - elementWidth: Constants.ovalButtonWidth - } - } - - Item { - id: spacingBetweenItems - width: parent.width - height: 1/10 * parent.height - anchors.left: parent.left - anchors.top: ovalButtonsRow.bottom - - Behavior on height { - NumberAnimation { - duration : Constants.animationDuration - } - } - } - - Column { - // Picture + text information + media clock - id: mediaContent - width: parent.width - height: 2/5 * parent.height - anchors.left: parent.left - anchors.top: spacingBetweenItems.bottom - - Row { - // picture + text info - width: parent.width - height: 3/4 * parent.height - spacing: Constants.margin - - Image { - id: image - height: parent.height - width: height - } - - Column { - // text info - id: textInfo - height: parent.height - width: parent.width - image.width - parent.spacing - spacing: (height - titleText.height - 3 * text.height) / 3 - - Text { - id: titleText - anchors.left: parent.left - anchors.right: parent.right - horizontalAlignment: dataContainer.currentApplication.hmiUITextAlignment - color: Constants.primaryColor - text: (mediaPlayerView.playerType === "SDL") ? dataContainer.currentApplication.hmiUIText.mainField1 - : playerState.trackName - font.pixelSize: Constants.titleFontSize - font.bold: true - } - - Text { - id: text - anchors.left: parent.left - anchors.right: parent.right - horizontalAlignment: dataContainer.currentApplication.hmiUITextAlignment - color: Constants.primaryColor - text: (mediaPlayerView.playerType === "SDL") ? dataContainer.currentApplication.hmiUIText.mainField2 - : playerState.albumName - font.pixelSize: Constants.fontSize - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - horizontalAlignment: Text.AlignHCenter - color: Constants.primaryColor - text: (mediaPlayerView.playerType === "SDL") ? dataContainer.currentApplication.hmiUIText.mediaTrack - : playerState.trackNumber - font.pixelSize: Constants.fontSize - } - } - } - - MediaClockView { - width: parent.width - height: parent.height * 1/4 - } - } - - Item { - id: spacingBetweenItems2 - width: parent.width - height: 1/10 * parent.height - anchors.left: parent.left - anchors.top: mediaContent.bottom - - Behavior on height { - NumberAnimation { - duration : Constants.animationDuration - } - } - } - - Row { - // Rewind, play, pause, forward buttons - id: playPauseRewindForward - width: parent.width - height: 1/5 * parent.height - statusBar.height - anchors.left: parent.left - anchors.leftMargin: (width - playPauseButton.width - prevButton.width - nextButton.width) / 2 - anchors.top: spacingBetweenItems2.bottom - - Image { - id: prevButton - anchors.verticalCenter: parent.verticalCenter - source: "../res/buttons/player_prev_btn.png" - MouseArea { - anchors.fill: parent - onPressed: { - prevButton.source = "../res/buttons/player_prev_pressed_btn.png" - } - onReleased: { - prevButton.source = "../res/buttons/player_prev_btn.png" - } - } - } - - PlayPauseButton { - id: playPauseButton - anchors.verticalCenter: parent.verticalCenter - state: (mediaPlayerView.playerType === "SDL") ? dataContainer.currentApplication.playPauseState : playerState.playPauseState - onClicked: { - (state == 'Play') ? play() : pause(); - var newState = state === "Play" ? "Pause" : "Play"; - (mediaPlayerView.playerType === "SDL") ? dataContainer.setApplicationProperties(dataContainer.currentApplication.appId, { playPauseState: newState } ) - : playerState.playPauseState = newState - } - } - - Image { - id: nextButton - anchors.verticalCenter: parent.verticalCenter - source: "../res/buttons/player_next_btn.png" - MouseArea { - anchors.fill: parent - onPressed: { - nextButton.source = "../res/buttons/player_next_pressed_btn.png" - } - onReleased: { - nextButton.source = "../res/buttons/player_next_btn.png" - } - } - } - } - - Item { - id: presetButtons - width: parent.width - height: 1/5 * parent.height - anchors.top: playPauseRewindForward.bottom - anchors.left: parent.left - - PresetRow { - id: presetsRow - anchors.top: parent.top - anchors.left: parent.left - presets: mediaPlayerView.playerType === "SDL" ? Internal.getArrayForPresetRow(dataContainer.currentApplication) : [] - width: parent.width - - onPresetButtonPressed: { - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonEventMode.BUTTONDOWN, undefined) - } - - onPresetButtonReleased: { - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonEventMode.BUTTONUP, undefined) - } - - onPresetButtonClicked: { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonPressMode.SHORT, undefined) - } - - onPresetButtonHold: { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonPressMode.LONG, undefined) - } - } - } - - StatusBar { - id: statusBar - anchors.left: parent.left - anchors.bottom: parent.bottom - } - - states: [ - State { - name: 'presetButtonsON' - when: (dataContainer.currentApplication.customPresets.count > 0) && (mediaPlayerView.playerType === "SDL") - PropertyChanges { - target: spacingBetweenItems - height: 1 - } - PropertyChanges { - target: spacingBetweenItems2 - height: 1 - } - PropertyChanges { - target: presetButtons - visible: true - enabled: true - } - }, - - State { - name: 'presetButtonsOFF' - when: (dataContainer.currentApplication.customPresets.count === 0) || (mediaPlayerView.playerType !== "SDL") - PropertyChanges { - target: spacingBetweenItems - height: 1/10 * mediaPlayerView.height - } - PropertyChanges { - target: spacingBetweenItems2 - height: 1/10 * mediaPlayerView.height - } - PropertyChanges { - target: presetButtons - visible: false - enabled: false - } - } - ] -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/MusicSourceView.qml b/src/components/qt_hmi/qml_model_qt5/views/MusicSourceView.qml deleted file mode 100644 index 08f1d76b60..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/MusicSourceView.qml +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @file MusicSourceView.qml - * @brief Music source screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - GridMenu { - id: menu - model: dataContainer.musicSourceModel - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: bottomPanel.top - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - OvalButton { - text: title - onReleased: contentLoader.go(qml, appId) - anchors.centerIn: parent - fontSize: Constants.fontSize - } - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} - - - diff --git a/src/components/qt_hmi/qml_model_qt5/views/NavigationInRouteGridView.qml b/src/components/qt_hmi/qml_model_qt5/views/NavigationInRouteGridView.qml deleted file mode 100644 index 99f1877a51..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/NavigationInRouteGridView.qml +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @file NavigationInRouteGridView.qml - * @brief Navigation in route screen veiw. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - - -GeneralView { - Item { - id: navInRoute - anchors.fill: parent - - Image { - // 3/4 top screen - id: map - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - source: "../res/nav/map.png" - - Image { - id: compas - anchors.bottom: parent.bottom - anchors.bottomMargin: 1/4 * compas.width - anchors.left: parent.left - anchors.leftMargin: 1/4 * compas.width - source: "../res/nav/compass.png" - } - - Column { - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: compas.horizontalCenter - spacing: 1/8 * parent.height - - // Zoom "+" button - Image { - id: zoomIn - source: "../res/buttons/zoom.png" - - Text { - id: zoomInBtn - anchors.centerIn: parent - text: "+" - color: Constants.releasedButtonTextColor - font.pixelSize: 30 - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/zoom_pressed.png" - zoomInBtn.color = Constants.pressedButtonTextColor - } - onReleased: { - parent.source = "../res/buttons/zoom.png" - zoomInBtn.color = Constants.releasedButtonTextColor - } - - onClicked: { - //Some behavior - } - } - } - - // Zoom "-" button - Image { - id: zoomOut - source: "../res/buttons/zoom.png" - - Text { - id: zoomOutBtn - anchors.centerIn: parent - text: "-" - color: "white" - font.pixelSize: 30 - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/zoom_pressed.png" - zoomOutBtn.color = Constants.pressedButtonTextColor - } - onReleased: { - parent.source = "../res/buttons/zoom.png" - zoomOutBtn.color = Constants.releasedButtonTextColor - } - - onClicked: { - //Some behavior - } - } - } - } // column - - // Options button - Image { - id: navOptions - anchors.top: parent.top - anchors.right: parent.right - source: "../res/nav/options.png" - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/nav/options_pressed.png" - } - onReleased: { - parent.source = "../res/nav/options.png" - } - onClicked: { - //Options screen - } - } - } - } //map - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - Image { - id: muteBtnImg - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 1/4 * muteBtnImg.width - source: "../res/nav/mute_off.png" - MouseArea { - anchors.fill: parent - onClicked: if (muteBtnImg.state === "off") { - muteBtnImg.state = "on" - muteBtnImg.source = "../res/nav/mute_off.png" - } - else { - muteBtnImg.source = "../res/nav/mute_on.png" - muteBtnImg.state = "off" - } - } - } - - Image { - id: turnArrow - anchors.verticalCenter: parent.verticalCenter - anchors.left: muteBtnImg.right - anchors.leftMargin: 1/20 * contentLoader.width - source: "../res/nav/turnArrow.png" - } - - Text { - id: street - anchors.verticalCenter: cancel.verticalCenter - anchors.left: turnArrow.right - anchors.leftMargin: 1/20 * contentLoader.width - text: "0.2 mi on Cherry Hill Rd." - color: "White" - font.pixelSize: 20 - } - - Text { - id: timeToDest - anchors.verticalCenter: cancel.verticalCenter - anchors.right: cancel.left - anchors.rightMargin: 1/20 * contentLoader.width - text: "2 hrs 27 min" - color: "White" - font.pixelSize: 20 - } - - Image { - id: cancel - anchors.verticalCenter: parent.verticalCenter - anchors.right: parent.right - - source: "../res/buttons/long_oval_btn.png" - - Image { - id: destIcon - anchors.verticalCenter: parent.verticalCenter - anchors.left: cancel.left - anchors.leftMargin: Constants.fontSize - source: "../res/nav/dest_icon.png" - } - - Text { - id: cancelText - anchors.centerIn: parent - text: "Cancel" - color: Constants.primaryColor - font.pixelSize: 20 - } - - MouseArea { - anchors.fill: parent - - onPressed: { - cancel.source = "../res/buttons/long_oval_pressed_btn.png" - destIcon.source = "../res/nav/dest_icon_black.png" - cancelText.color = Constants.pressedButtonTextColor - } - - onReleased: { - cancel.source = "../res/buttons/long_oval_btn.png" - destIcon.source = "../res/nav/dest_icon.png" - cancelText.color = Constants.primaryColor - } - - onClicked: { - contentLoader.go("./views/NavigationNoRouteGridView.qml") - } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/NavigationKeyboardView.qml b/src/components/qt_hmi/qml_model_qt5/views/NavigationKeyboardView.qml deleted file mode 100644 index f5d19e7626..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/NavigationKeyboardView.qml +++ /dev/null @@ -1,221 +0,0 @@ -/** - * @file NavigationKeyboardView.qml - * @brief Navigation keyboard screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - id: navKeyboard - anchors.fill: parent - - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - // Text line with input text - TextInput { - id: inputText - anchors.top:parent.top - anchors.left:parent.left - maximumLength: 30 - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - text: dataContainer.routeText - } - - // Keyboard - Column { - anchors.centerIn: parent - Row { - id: upperRow - property string qWERTY : "QWERTYUIOP" - anchors.horizontalCenter: parent.horizontalCenter - - Repeater { - model: 10 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: upperRow.qWERTY.charAt(index) - pixelSize: Constants.fontSize - - onClicked: { - dataContainer.routeText += upperRow.qWERTY.charAt(index) - } - } - } - } - Row { - id: middleRow - property string aSDFGH : "ASDFGHJKL" - anchors.horizontalCenter: parent.horizontalCenter - - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "123" - pixelSize: 15 - } - //-------------- - Repeater { - model: 9 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: middleRow.aSDFGH.charAt(index) - pixelSize: Constants.fontSize - - onClicked: { - dataContainer.routeText += middleRow.aSDFGH.charAt(index) - } - } - } - //-------------- - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - onIsPressedChanged: { - hoverImg.source = isPressed ? "../res/nav/delete_icon_black.png" : "../res/nav/delete_icon.png"; - } - Image { - id: hoverImg - anchors.centerIn: parent - source: "../res/nav/delete_icon.png" - } - - onClicked: { - dataContainer.routeText = dataContainer.routeText.substring(0,dataContainer.routeText.length - 1) - } - } - } - Row { - id: lowerRow - property string zXCVBN : "ZXCVBNM" - anchors.horizontalCenter: parent.horizontalCenter - - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "!@#" - pixelSize: 15 - } - //----------------- - Repeater { - model: 7 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: lowerRow.zXCVBN.charAt(index) - pixelSize: Constants.fontSize - - onClicked: { - dataContainer.routeText += lowerRow.zXCVBN.charAt(index) - } - } - } - //---------------- - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "Clear" - pixelSize: 12 - - onClicked: { - dataContainer.routeText = "" - } - } - //---------------- - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "Space" - pixelSize: 12 - - onClicked: { - dataContainer.routeText += " " - } - } - } - - } // column - - Image { - id: goBtn - anchors.right: parent.right - anchors.top: parent.top - source: "../res/buttons/short_oval_btn.png" - - Text { - id: goText - anchors.centerIn: parent - text: "Go" - color: Constants.primaryColor - font.pixelSize: Constants.fontSize - } - - MouseArea { - anchors.fill: parent - - onPressed: { - goBtn.source = "../res/buttons/short_oval_btn_pressed.png" - goText.color = Constants.pressedButtonTextColor - } - - onReleased: { - goBtn.source = "../res/buttons/short_oval_btn.png" - goText.color = Constants.primaryColor - } - - onClicked: { - contentLoader.go("./views/NavigationInRouteGridView.qml") - } - } - } - } // 3/4 top screen - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/NavigationMenuView.qml b/src/components/qt_hmi/qml_model_qt5/views/NavigationMenuView.qml deleted file mode 100644 index 8b8b7ef261..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/NavigationMenuView.qml +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @file NavigationMenuView.qml - * @brief Navigation menu screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models" -import "../controls" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - GridMenu { - id: menu - model: NavigationMenuModel {} - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: bottomPanel.top - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - OvalButton { - text: title - onReleased: contentLoader.go(qml) - anchors.centerIn: parent - fontSize: Constants.fontSize - } - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} - - diff --git a/src/components/qt_hmi/qml_model_qt5/views/NavigationNoRouteGridView.qml b/src/components/qt_hmi/qml_model_qt5/views/NavigationNoRouteGridView.qml deleted file mode 100644 index d4fbb9f4ef..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/NavigationNoRouteGridView.qml +++ /dev/null @@ -1,205 +0,0 @@ -/** - * @file NavigationNoRouteGridView.qml - * @brief Navigation no route screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models/Constants.js" as Constants - -GeneralView { - Item { - id: navNoRoute - anchors.fill: parent - - Image { - // 3/4 top screen - id: map - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - source: "../res/nav/map.png" - - Image { - id: compas - anchors.bottom: parent.bottom - anchors.bottomMargin: 1/4 * compas.width - anchors.left: parent.left - anchors.leftMargin: 1/4 * compas.width - source: "../res/nav/compass.png" - } - - Column { - anchors.verticalCenter: parent.verticalCenter - anchors.horizontalCenter: compas.horizontalCenter - spacing: 1/8 * parent.height - - // Zoom "+" button - Image { - id: zoomIn - source: "../res/buttons/zoom.png" - - Text { - id: zoomInBtn - anchors.centerIn: parent - text: "+" - color: "white" - font.pixelSize: Constants.fontSize - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/zoom_pressed.png" - zoomInBtn.color = Constants.pressedButtonTextColor - } - onReleased: { - parent.source = "../res/buttons/zoom.png" - zoomInBtn.color = Constants.releasedButtonTextColor - } - - onClicked: { - //Some behavior - } - } - } - - // Zoom "-" button - Image { - id: zoomOut - source: "../res/buttons/zoom.png" - - Text { - id: zoomOutBtn - anchors.centerIn: parent - text: "-" - color: "white" - font.pixelSize: Constants.fontSize - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/zoom_pressed.png" - zoomOutBtn.color = Constants.pressedButtonTextColor - } - onReleased: { - parent.source = "../res/buttons/zoom.png" - zoomOutBtn.color = Constants.releasedButtonTextColor - } - - onClicked: { - //Some behavior - } - } - } - } // column - - // Options button - Image { - id: navOptions - anchors.top: parent.top - anchors.right: parent.right - source: "../res/nav/options.png" - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/nav/options_pressed.png" - } - onReleased: { - parent.source = "../res/nav/options.png" - } - onClicked: { - //Options screen - } - } - } - } //map - - Item { - // 1/4 bottom screen - id: bottomPart - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - // Destination search button - Image { - id: destSearch - anchors.verticalCenter: parent.verticalCenter - anchors.right: parent.right - source: "../res/buttons/longest_oval_btn.png" - - Image { - id: destIcon - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.leftMargin: 15 - source: "../res/nav/dest_icon.png" - } - - Text { - id: destText - anchors.verticalCenter: parent.verticalCenter - anchors.left: destIcon.right - anchors.leftMargin: 5 - text: "Destination" - color: Constants.primaryColor - font.pixelSize: 20 - } - - MouseArea { - anchors.fill: parent - - onPressed: { - destSearch.source = "../res/buttons/longest_oval_btn_pressed.png" - destIcon.source = "../res/nav/dest_icon_black.png" - destText.color = Constants.pressedButtonTextColor - } - - onReleased: { - destSearch.source = "../res/buttons/longest_oval_btn.png" - destIcon.source = "../res/nav/dest_icon.png" - destText.color = Constants.primaryColor - } - - onClicked: { - contentLoader.go("./views/NavigationMenuView.qml") - } - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/PhoneKeyboardView.qml b/src/components/qt_hmi/qml_model_qt5/views/PhoneKeyboardView.qml deleted file mode 100644 index 4b217cf9f5..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/PhoneKeyboardView.qml +++ /dev/null @@ -1,171 +0,0 @@ -/** - * @file PhoneKeyboardView.qml - * @brief Phone keyboard screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models" -import "../models/Constants.js" as Constants - -GeneralView{ - Component.onCompleted: phoneKeyboard.changeColorOfActiveButtons() - - Item { - function changeColorOfActiveButtons() { - for (var i = 0; i < contactsListModel.count; i++) { - activeButtons[contactsListModel.get(i).name[0].toUpperCase()] = true - } - } - - id: phoneKeyboard - anchors.fill: parent - - property var activeButtons: { - "A": false, "B": false, "C": false, "D": false, "E": false, - "F": false, "G": false, "H": false, "I": false, "J": false, - "K": false, "L": false, "M": false, "N": false, "O": false, - "P": false, "Q": false, "R": false, "S": false, "T": false, - "U": false, "V": false, "W": false, "X": false, "Y": false, "Z": false - } - - ContactsListModel { - id: contactsListModel - } - - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - - Column { - anchors.centerIn: parent - - Row { - id: upperRow - property string contentLoader : "ABCDEFGHI" - anchors.horizontalCenter: parent.horizontalCenter - Repeater { - model: 9 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - textColorDefault: phoneKeyboard.activeButtons[upperRow.contentLoader.charAt(index)] - ? Constants.primaryColor : Constants.inactiveButtonTextColor - text: upperRow.contentLoader.charAt(index) - pixelSize: Constants.fontSize - onIsPressedChanged: { - if (!isPressed){ - if (phoneKeyboard.activeButtons[upperRow.contentLoader.charAt(index)]) { - dataContainer.contactsFirstLetter = text - contentLoader.go("./views/ContactsListView.qml") - } - } - } - } - } - } - - Row { - id: middleRow - property string contentLoader : "JKLMNOPQR" - anchors.horizontalCenter: parent.horizontalCenter - Repeater { - model: 9 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - textColorDefault: phoneKeyboard.activeButtons[middleRow.contentLoader.charAt(index)] - ? Constants.primaryColor : Constants.inactiveButtonTextColor - text: middleRow.contentLoader.charAt(index) - pixelSize: Constants.fontSize - onIsPressedChanged: { - if (!isPressed){ - if (phoneKeyboard.activeButtons[middleRow.contentLoader.charAt(index)]) { - dataContainer.contactsFirstLetter = text - contentLoader.go("./views/ContactsListView.qml") - } - } - } - } - } - } - - Row { - id: lowerRow - property string contentLoader : "STUVWXYZ" - anchors.horizontalCenter: parent.horizontalCenter - Repeater { - model: 8 - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - textColorDefault: phoneKeyboard.activeButtons[lowerRow.contentLoader.charAt(index)] - ? Constants.primaryColor : Constants.inactiveButtonTextColor - text: lowerRow.contentLoader.charAt(index) - pixelSize: Constants.fontSize - onIsPressedChanged: { - if (!isPressed){ - if (phoneKeyboard.activeButtons[lowerRow.contentLoader.charAt(index)]) { - dataContainer.contactsFirstLetter = text - contentLoader.go("./views/ContactsListView.qml") - } - } - } - } - } - CircleButton { - imgOff: "../res/buttons/preset_btn.png" - imgOn: "../res/buttons/preset_pressed_btn.png" - text: "123" - pixelSize: 20 - } - } - } - } - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent} - } - } -} - - diff --git a/src/components/qt_hmi/qml_model_qt5/views/PhoneMenuGridView.qml b/src/components/qt_hmi/qml_model_qt5/views/PhoneMenuGridView.qml deleted file mode 100644 index 5cfdc5a309..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/PhoneMenuGridView.qml +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @file PhoneMenuGridView.qml - * @brief View for phone menu. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../models" -import "../controls" - -GridMenu { - id: menu - model: PhoneMenuModel {} - delegate: GridItem { - width: menu.width / menu.columnsOnPage - height: menu.height / menu.rows - ClickableImage { - anchors.centerIn: parent - source: icon - onClicked: { - if(qml !== "") { - contentLoader.go(qml) - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/PolicyAppListView.qml b/src/components/qt_hmi/qml_model_qt5/views/PolicyAppListView.qml deleted file mode 100644 index 83a223a18a..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/PolicyAppListView.qml +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @file SettingsSourceView.qml - * @brief Settings source screen view. - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - Text { - id: title - text: "Permissions (choose application):" - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - height: Constants.fontSize + Constants.panelPadding - } - ScrollableListView { - id: applicationList - anchors.top: title.bottom - anchors.left: parent.left - anchors.right: parent.right - anchors.bottom: parent.bottom - model: dataContainer.applicationList - - delegate: Item { - width: parent.width - height: Math.max(applicationName.height, appIcon.height) - Image { - id: appIcon - source: icon - height: Constants.appListIconSize - width: height - } - ClickableText { - id: applicationName - text: appName - defaultColor: Constants.primaryColor - pressedColor: Constants.primaryColorPressed - font.pixelSize: Constants.appListFontSize - anchors.verticalCenter: parent.verticalCenter - anchors.left: appIcon.right - anchors.leftMargin: Constants.margin - onClicked: { - RequestToSDL.SDL_GetListOfPermissions(appId, function(params){ - settingsContainer.getListOfPermissions_Response(appId, params) - }); - } - } - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/RadioPlayer.qml b/src/components/qt_hmi/qml_model_qt5/views/RadioPlayer.qml deleted file mode 100644 index f673327c68..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/RadioPlayer.qml +++ /dev/null @@ -1,160 +0,0 @@ -/** - * @file RadioPlayerView.qml - * @brief Parent for AM, FM, Sirius players screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models" -import "../models/Constants.js" as Constants - -Item { - id: radioPlayerView - - property string radioType: "" - property string radioName: "" - property alias buttonHD: bot.children - - property PlayerState playerState - - Item { - // top 3/4 screen - id: upperContent - anchors.top: parent.top - anchors.left: parent.left - height: parent.height * 3/4 - width: parent.width - - Item { - // top part for buttons - id: top - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: parent.height * 1/4 - - OvalButton { - text: radioName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - } - - OvalButton { - anchors.right: parent.right - anchors.top: parent.top - text: "Tune" - fontSize: Constants.fontSize - } - } - - Item { - // mid part for information about song - id: mid - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - width: parent.width - height: parent.height / 2 - - Column { - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - - Row { - Text { - id: radioChannelNameText - color: Constants.primaryColor - text: playerState.presets[0] - font.pixelSize: 45 - } - Text { - anchors.bottom: radioChannelNameText.bottom - color: Constants.primaryColor - text: " " + radioType - font.pixelSize: 25 - } - } - - Text { - color: Constants.primaryColor - text: playerState.songName - font.pixelSize: 25 - font.bold: true - } - - Text { - color: Constants.primaryColor - text: playerState.albumName - font.pixelSize: 25 - } - } - } - - Item { - // bottom part for HD button (for FM radio) - id: bot - anchors.left: parent.left - anchors.bottom: parent. bottom - width: parent.width - height: parent.height * 1/4 - } - } - - Item { - // bottom 1/4 screen - id: lowerContent - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - // Line that divide screen in two parts - Rectangle { - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: 2 - color: Constants.primaryColor - } - - PresetRow { - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - presets: playerState.presets - width: parent.width - onSelectedIndexChanged: { - radioChannelNameText.text = presets[selectedIndex]; - } - } - } -} - - diff --git a/src/components/qt_hmi/qml_model_qt5/views/SDLFunctionalityView.qml b/src/components/qt_hmi/qml_model_qt5/views/SDLFunctionalityView.qml deleted file mode 100644 index 8ac6e6d9b8..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SDLFunctionalityView.qml +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" -import "../models/Constants.js" as Constants - -GeneralView { - Item { - id: deviceList - property bool allowed: false - - function setAllowed(allowed) { - console.debug("Set allowed", allowed, deviceList.allowed); - deviceList.allowed = allowed; - for (var i = 0; i < dataContainer.deviceList.count; ++i) { - menu.model.get(i).allowed = allowed; - } - } - - anchors.fill: parent - Text { - id: title - text: "Choose devices to be allowed for SDL functionality:" - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - height: Constants.fontSize + Constants.panelPadding - } - - OvalButton { - id: allDevice - text: "All devices Not Allowed" - onClicked: { - if (parent.allowed) { - parent.setAllowed(false); - text = "All devices Not Allowed"; - } else { - parent.setAllowed(true); - text = "All devices Allowed"; - } - settingsContainer.allowSDLFunctionality(parent.allowed, undefined); - } - anchors.top: title.bottom - anchors.left: parent.left - anchors.right: parent.right - fontSize: Constants.fontSize - } - - ScrollableListView { - id: menu - model: dataContainer.deviceList - anchors.left: parent.left - anchors.right: parent.right - anchors.top: allDevice.bottom - anchors.bottom: bottomPanel.top - delegate: OvalButton { - text: (allowed) ? name + " - Allowed" : - name + " - Not allowed" - onClicked: { - var item = menu.model.get(index); - allDevice.text = "All devices manual Configuration"; - item.allowed = !item.allowed; - settingsContainer.allowSDLFunctionality(item.allowed, - {id: item.devid, - name: item.name}); - deviceList.allowed = null; - } - anchors.left: parent.left - anchors.right: parent.right - fontSize: Constants.fontSize - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/SDLNavi.qml b/src/components/qt_hmi/qml_model_qt5/views/SDLNavi.qml deleted file mode 100644 index ef98ffb10d..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SDLNavi.qml +++ /dev/null @@ -1,223 +0,0 @@ -/** - * @file SDLNavi.qml - * @brief SDL navigation screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import QtMultimedia 5.0 -import "../controls" -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common - -GeneralView { - applicationContext: true - - MultiTouchArea { - anchors.fill: parent - id: wholeWindow - - Row { - // Top items - id: topItems - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: 1/6 * parent.height - spacing: Constants.sdlNaviSpacing - - Rectangle { - anchors.top: parent.top - width: 1/5 * parent.width - height: 4/5 * parent.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - - Text { - text: dataContainer.currentApplication.hmiUIText.mainField1 - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - Rectangle { - anchors.top: parent.top - width: 3/5 * parent.width - 2 * parent.spacing - height: parent.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - - Text { - text: dataContainer.currentApplication.hmiUIText.mainField2 - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - Rectangle { - id: rightRectOfTopItems - anchors.top: parent.top - width: 1/5 * parent.width - height: 4/5 * parent.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - Text { - text: dataContainer.currentApplication.hmiUIText.mainField3 ? dataContainer.currentApplication.hmiUIText.mainField3 : "field3" - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - } - - Column { - // "+", "-" button at left - anchors.left: parent.left - anchors.verticalCenter: parent.verticalCenter - width: 1/12 * parent.width - height: 2/10 * parent.height + spacing - spacing: Constants.sdlNaviSpacing - - GradientRectangle { - width: parent.width - height: 1/10 * wholeWindow.height - text: "+" - isCustomButton: true - customButtonID: 3 - } - GradientRectangle { - width: parent.width - height: 1/10 * wholeWindow.height - text: "-" - isCustomButton: true - customButtonID: 4 - } - } - - Column { - anchors.right: parent.right - anchors.top: topItems.bottom - width: 1/6 * parent.width - height: 2/10 * parent.height + spacing - spacing: Constants.sdlNaviSpacing - - Rectangle { - width: parent.width - height: 1/10 * wholeWindow.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - Text { - text: "" - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - Rectangle { - width: parent.width - height: 1/10 * wholeWindow.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - Text { - text: dataContainer.currentApplication.hmiUIText.mainField4 ? dataContainer.currentApplication.hmiUIText.mainField4 : "mainField4" - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - } - - Row { - // bottom items - id: bottomItems - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/6 * parent.height - spacing: Constants.sdlNaviSpacing - - GradientRectangle { - anchors.bottom: parent.bottom - width: 1/3 * parent.width - height: parent.height - text: "Menu" - isCustomButton: true - customButtonID: 1 - } - Rectangle { - anchors.bottom: parent.bottom - width: 1/3 * parent.width - 2 * parent.spacing - height: parent.height - color: Constants.sdlNaviTransparentItemColor - radius: 5 - Text { - text: "mainField5" - anchors.fill: parent - font.pixelSize: Constants.fontSize - color: "white" - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - } - } - GradientRectangle { - anchors.bottom: parent.bottom - width: 1/3 * parent.width - height: parent.height - text: "Custom Button" - isCustomButton: true - customButtonID: 2 - } - } - - GradientRectangle { - anchors.right: parent.right - anchors.bottom: bottomItems.top - anchors.bottomMargin: Constants.sdlNaviSpacing - width: 1/6 * parent.width - height: 1/10 * parent.height - text: "Options" - fontSize: Constants.fontSize - onReleased: { - contentLoader.go("./views/SDLPlayerOptionsListView.qml", dataContainer.currentApplication.appId) - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/SDLNonMediaView.qml b/src/components/qt_hmi/qml_model_qt5/views/SDLNonMediaView.qml deleted file mode 100644 index 231ab03135..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SDLNonMediaView.qml +++ /dev/null @@ -1,179 +0,0 @@ -/** - * @file SDLNonMediaView.qml - * @brief SDL non media screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - - -import QtQuick 2.0 -import "../models" -import "../controls" -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal -import "../hmi_api/Common.js" as Common - -GeneralView { - applicationContext: true - - Item { - id: upperContent - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - - Item { - id: topButtonRow - // top 1/4 of screen - width: parent.width - height: 1/4 * parent.height - - PagedFlickable { - anchors.verticalCenter: parent.verticalCenter - width: parent.width - elementWidth: Constants.ovalButtonWidth - spacing: (width - 4 * elementWidth) / 3 - snapTo: elementWidth + spacing - - OvalButton { - text: "Options" - onClicked: { contentLoader.go("./views/SDLPlayerOptionsListView.qml") } - } - - Repeater { - model: dataContainer.currentApplication.softButtons ? - dataContainer.currentApplication.softButtons.count : - 0 - delegate: - SoftButton { - appId: dataContainer.currentApplication.appId - button: dataContainer.currentApplication.softButtons.get(index) - } - } - } - } - - Column { - id: midContent - height: parent.height * 3/4 - width: parent.width - anchors.top: topButtonRow.bottom - anchors.left: parent.left - - Text { - id: deviceName - width: parent.width - height: 1/5 * parent.height - text: "Device: " + dataContainer.currentApplication.deviceName - verticalAlignment: Text.AlignVCenter - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - Row { - width: parent.width - height: 4/5 * parent.height - spacing: Constants.margin - - Image { - id: image - height: parent.height - width: height - source: dataContainer.currentApplication.hmiUIText.image - } - - Column { - height: parent.height - width: parent.width - image.width - parent.spacing - spacing: Constants.margin - - Text { - id: text1 - width: parent.width - verticalAlignment: Text.AlignVCenter - horizontalAlignment: dataContainer.currentApplication.hmiUITextAlignment - text: dataContainer.currentApplication.hmiUIText.mainField1 - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - Text { - width: parent.width - verticalAlignment: Text.AlignVCenter - horizontalAlignment: dataContainer.currentApplication.hmiUITextAlignment - text: dataContainer.currentApplication.hmiUIText.mainField2 - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - } - } - } - } - - Item { - // bottom 1/4 screen - id: lowerContent - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: parent.height * 1/4 - - PresetRow { - id: presetsRow - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - presets: Internal.getArrayForPresetRow(dataContainer.currentApplication) - width: parent.width - property bool clickProcessed - - onPresetButtonPressed: { - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonEventMode.BUTTONDOWN, undefined) - } - - onPresetButtonReleased: { - sdlButtons.onButtonEvent(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonEventMode.BUTTONUP, undefined) - } - - onPresetButtonClicked: { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonPressMode.SHORT, undefined) - } - - onPresetButtonHold: { - sdlButtons.onButtonPress(Common.ButtonName.PRESET_0 + selectedIndex, Common.ButtonPressMode.LONG, undefined) - } - } - } - - StatusBar { - anchors.left: parent.left - anchors.bottom: parent.bottom - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/SDLPlayerOptionsListView.qml b/src/components/qt_hmi/qml_model_qt5/views/SDLPlayerOptionsListView.qml deleted file mode 100644 index e249a5eb76..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SDLPlayerOptionsListView.qml +++ /dev/null @@ -1,121 +0,0 @@ -/** - * @file SDLPlayerOptionsListView.qml - * @brief SDL player options screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../models/Internal.js" as Internal - -GeneralView { - applicationContext: true - systemContext: Common.SystemContext.SYSCTXT_MENU - Item { - // 3/4 top screen - height: parent.height * 3/4 - width: parent.width - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - - ListView { - id: sdlPlayerOptionsListView - anchors.horizontalCenter: parent.horizontalCenter - width:parent.width - height:parent.height - - model: dataContainer.currentApplication.currentSubMenu - - delegate: Row { - spacing: Constants.iconItemListSpacing - Icon { - source: model.icon - width: Constants.iconItemListSize - height: Constants.iconItemListSize - - MouseArea { - anchors.fill: parent - enabled: model.icon.value !== undefined - - onPressed: text.press() - onReleased: text.release() - onCanceled: text.release() - onClicked: text.click() - } - } - - ClickableText { - id: text - text: name + (type === Internal.MenuItemType.MI_SUBMENU ? " >" : "") - width: sdlPlayerOptionsListView.width - x - elide: Text.ElideRight - defaultColor: type === Internal.MenuItemType.MI_PARENT ? - Constants.inactiveButtonTextColor : - Constants.primaryColor - pressedColor: type === Internal.MenuItemType.MI_PARENT ? - Constants.inactiveButtonTextColorPressed : - Constants.primaryColorPressed - font.pixelSize: Constants.titleFontSize - - function click() { - console.debug("enter") - switch (type) { - case Internal.MenuItemType.MI_NODE: - sdlUI.onCommand(model.id, dataContainer.currentApplication.appId) - contentLoader.back() - dataContainer.currentApplication.currentSubMenu = dataContainer.currentApplication.options - break; - case Internal.MenuItemType.MI_SUBMENU: - case Internal.MenuItemType.MI_PARENT: - dataContainer.currentApplication.currentSubMenu = subMenu - break; - } - console.debug("exit") - } - onClicked: click() - } - } - } - } - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - BackButton { anchors.centerIn: parent } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/SDLPlayerView.qml b/src/components/qt_hmi/qml_model_qt5/views/SDLPlayerView.qml deleted file mode 100644 index 4fff5aa826..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SDLPlayerView.qml +++ /dev/null @@ -1,79 +0,0 @@ -/** - * @file SDLPlayerView.qml - * @brief SDL player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -GeneralView { - applicationContext: true - MediaPlayer { - id: mediaPlayer - onPlay: { sdlButtons.onButtonPress(Common.ButtonName.OK, Common.ButtonPressMode.SHORT, undefined) } - onPause: { sdlButtons.onButtonPress(Common.ButtonName.OK, Common.ButtonPressMode.SHORT, undefined) } - playerName: "SDL music" - playerType: "SDL" - image: dataContainer.currentApplication.hmiUIText.image - anchors.fill: parent - - buttons: [ - OvalButton { - text: dataContainer.currentApplication.appName - onReleased: { contentLoader.go("./views/MusicSourceView.qml") } - }, - - OvalButton { - text: "SDL Menu" - onReleased: { contentLoader.go("./views/ApplicationListView.qml") } - }, - - OvalButton { - text: "Options" - onReleased: { contentLoader.go("./views/SDLPlayerOptionsListView.qml") } - }, - - Repeater { - model: dataContainer.currentApplication.softButtons ? - dataContainer.currentApplication.softButtons.count : - 0 - - delegate: SoftButton { - appId: dataContainer.currentApplication.appId - button: dataContainer.currentApplication.softButtons.get(index) - } - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/ScrollableMessageView.qml b/src/components/qt_hmi/qml_model_qt5/views/ScrollableMessageView.qml deleted file mode 100644 index 0dcb7a3b32..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/ScrollableMessageView.qml +++ /dev/null @@ -1,181 +0,0 @@ -/** - * @file ScrollableMessageView.qml - * @brief Scrollable Message View. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../hmi_api/Async.js" as Async -import "../models/Constants.js" as Constants -import "../models" -import "../popups" - -GeneralView { - applicationContext: true - systemContext: Common.SystemContext.SYSCTXT_HMI_OBSCURED - onLeaveScreen: { - timer.stop() - dataContainer.scrollableMessageModel.running = false - DBus.sendReply(dataContainer.scrollableMessageModel.async, { __retCode: dataContainer.scrollableMessageModel.result }) - } - Component.onCompleted: { - dataContainer.scrollableMessageModel.result = Common.Result.ABORTED - dataContainer.scrollableMessageModel.running = true - timer.start() - } - - Timer { - id: timer - interval: dataContainer.scrollableMessageModel.timeout - onTriggered: { - dataContainer.scrollableMessageModel.result = Common.Result.SUCCESS - contentLoader.back() - } - } - - Rectangle { - anchors.fill: parent - color: Constants.secondaryColor - - Item { - // top 1/5 of screen - id: top - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: dataContainer.scrollableMessageModel.softButtons.count > 0 ? parent.height * 1/5 : 1 - - PagedFlickable { - id: flickRow - width: top.width - spacing: (width - elementWidth * 4) / 3 - snapTo: Constants.ovalButtonWidth + spacing - elementWidth: Constants.ovalButtonWidth - Repeater { - model: dataContainer.scrollableMessageModel.softButtons ? - dataContainer.scrollableMessageModel.softButtons.count : - 0 - delegate: - SoftButton { - appId: dataContainer.scrollableMessageModel.appId - button: dataContainer.scrollableMessageModel.softButtons.get(index) - onKeepContext: { timer.restart() } - onDefaultAction: { - dataContainer.scrollableMessageModel.result = Common.Result.ABORTED - contentLoader.back() - } - onStealFocus: { - dataContainer.scrollableMessageModel.result = Common.Result.SUCCESS - contentLoader.back() - } - } - } - } - } - - Item { - id: middle - anchors.top: top.bottom - anchors.left: parent.left - anchors.bottom: bottom.top - width: parent.width - clip: true - - Flickable { - id:flickable - anchors.fill: middle - flickableDirection: Flickable.VerticalFlick - contentWidth: longMessageText.width - contentHeight: longMessageText.height - clip: true - - Text { - id: longMessageText - wrapMode: Text.Wrap - width: middle.width - text: dataContainer.scrollableMessageModel.longMessageText - color: Constants.scrollableMessageTextColor - font.pixelSize: Constants.fontSize - } - } - Rectangle { - id: scrollbar - anchors.right: flickable.right - y: flickable.visibleArea.yPosition * flickable.height - width: Constants.scrollableMessageScrollBarWidth - height: flickable.visibleArea.heightRatio * flickable.height - visible: !(flickable.visibleArea.heightRatio > 1) - color: Constants.scrollableMessageScrollBarColor - } - } - Item { - // 1/5 bottom screen - id: bottom - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/5 * parent.height - OvalButton { - anchors.centerIn: parent - text: "Close" - onClicked: { - dataContainer.scrollableMessageModel.result = Common.Result.ABORTED - contentLoader.back() - } - } - } - } - /** - * Test Support Section - * - */ - function getTimer(){ - return timer - } - function getSoftButtonsListView(){ - return softButtons - } - function getScrollbar(){ - return scrollbar - } - function getTextArea(){ - return middle - } - function getBackButton(){ - return backButton - } - - /** - * Test Support Section End - */ -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/SettingsSourceView.qml b/src/components/qt_hmi/qml_model_qt5/views/SettingsSourceView.qml deleted file mode 100644 index fa0bfbc821..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SettingsSourceView.qml +++ /dev/null @@ -1,88 +0,0 @@ -/** - * @file SettingsSourceView.qml - * @brief Settings source screen view. - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" -import "../models/Constants.js" as Constants - -GeneralView { - signal itemActivated(string item) - - onItemActivated: { - switch (item) { - case "update_sdl": RequestToSDL.SDL_UpdateSDL(settingsContainer.updateStatus); break; - case "get_status_update": RequestToSDL.SDL_GetStatusUpdate(settingsContainer.updateStatus); break; - case "get_urls": RequestToSDL.SDL_GetURLS(0, settingsContainer.startPTExchange); break; - } - } - - Item { - anchors.fill: parent - ScrollableListView { - id: menu - model: dataContainer.settingsSourceModel - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - anchors.bottom: bottomPanel.top - delegate: OvalButton { - text: title - onReleased: { - if (qml) { - contentLoader.go(qml, appId); - } else { - itemActivated(action); - } - } - anchors.left: parent.left - anchors.right: parent.right - fontSize: Constants.fontSize - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} - - - diff --git a/src/components/qt_hmi/qml_model_qt5/views/SimulationView.qml b/src/components/qt_hmi/qml_model_qt5/views/SimulationView.qml deleted file mode 100644 index b79cddf8cf..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SimulationView.qml +++ /dev/null @@ -1,293 +0,0 @@ -/** - * @file SimulationView.qml - * @brief Area of screen responsible for simulation actions - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import QtQuick.Controls 1.0 -import QtQuick.Controls.Styles 1.0 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../views" -import "../popups" -import "../models/Constants.js" as Constants - -Rectangle { - width: controlArea.width + controlArea.anchors.margins - anchors.top: parent.top - anchors.bottom: parent.bottom - color: Constants.panelColor - - Item { - id: showArea - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - height: parent.height - (controlArea.childrenRect.height + controlArea.anchors.margins) - - ExitAllApplicationsPopup { - id: exitAllApplicationsPopup - anchors.fill: parent - visible: false - } - - VehicleInfoPopUp { - id: viPopUp - anchors.fill: parent - } - - TBTClientStatePopUp { - id: tbtClientStatePopUp - anchors.fill: parent - visible: false - } - } - - Item { - id: controlArea - anchors.bottom: parent.bottom - anchors.margins: Constants.panelPadding - anchors.horizontalCenter: parent.horizontalCenter - width: table.width - - ListModel { - id: languagesList - - Component.onCompleted: { - for (var name in Common.Language) { - if (settingsContainer.sdlLanguagesList.indexOf(Common.Language[name]) != -1) { - append({name: name.replace('_', '-')}); - } - } - } - } - - Text { - id: label - text: "Languages" - color: Constants.panelTextColor - anchors.bottom: table.top - anchors.horizontalCenter: parent.horizontalCenter - } - - Grid { - id: table - spacing: 5 - columns: 2 - anchors.horizontalCenter: parent.horizontalCenter - anchors.bottom: globalProperties.top - - Text { - text: "HMI UI" - color: Constants.panelTextColor - } - - Text { - text: "HMI TTS + VR" - color: Constants.panelTextColor - } - - ComboBox { - width: table.width / table.columns - table.spacing - model: languagesList - onCurrentIndexChanged: { - dataContainer.hmiUILanguage = settingsContainer.sdlLanguagesList[currentIndex]; - sdlUI.onLanguageChange(dataContainer.hmiUILanguage); - } - z: 1000 - } - - ComboBox { - width: table.width / table.columns - table.spacing - model: languagesList - onCurrentIndexChanged: { - dataContainer.hmiTTSVRLanguage = settingsContainer.sdlLanguagesList[currentIndex]; - sdlTTS.onLanguageChange(dataContainer.hmiTTSVRLanguage); - sdlVR.onLanguageChange(dataContainer.hmiTTSVRLanguage); - } - z: 1000 - } - - Text { - text: "Application UI" - color: Constants.panelTextColor - } - - Text { - text: "Application TTS + VR" - color: Constants.panelTextColor - } - - Text { - id: uiLanguageLabel - color: Constants.panelTextColor - text: " " - Connections { - target: dataContainer - onCurrentApplicationChanged: { - for (var s in Common.Language) { - if (Common.Language[s] === dataContainer.currentApplication.hmiDisplayLanguageDesired) { - uiLanguageLabel.text = s; - } - } - } - } - } - - Text { - id: ttsLanguageLabel - color: Constants.panelTextColor - text: " " - Connections { - target: dataContainer - onCurrentApplicationChanged: { - for (var s in Common.Language) { - if (Common.Language[s] === dataContainer.currentApplication.languageTTSVR) { - ttsLanguageLabel.text = s; - } - } - } - } - } - - PushButton { - id: vehicleInfo - label: "Vehicle info" - toggleMode: true - onPressed: { - viPopUp.show(); - } - onUnpressed: { - viPopUp.hide(); - } - } - - PushButton { - id: tbtClientState - label: "TBT Client state" - toggleMode: true - onPressed: { - tbtClientStatePopUp.show(); - } - onUnpressed: { - tbtClientStatePopUp.hide(); - } - } - - PushButton { - label: "Exit application" - onClicked: { - if (dataContainer.applicationContext) { - sdlBasicCommunication.onExitApplication(dataContainer.currentApplication.appId) - } - } - } - - PushButton { - id: exitAllAppsButton - label: "Exit all apps" - toggleMode: true - onPressed: { - exitAllApplicationsPopup.show() - - } - onUnpressed: { - exitAllApplicationsPopup.hide() - } - Connections { - target: exitAllApplicationsPopup - onVisibleChanged: { - if (!exitAllApplicationsPopup.visible) { - exitAllAppsButton.state = "unpressed" - } - } - } - } - - CheckBox { - style: CheckBoxStyle { - label: Text { - color: Constants.panelTextColor - text: "Use URL" - } - } - } - - CheckBox { - style: CheckBoxStyle { - label: Text { - color: Constants.panelTextColor - text: "DD" - } - } - onClicked: { - if (checked) { - dataContainer.driverDistractionState = - Common.DriverDistractionState.DD_ON; - } else { - dataContainer.driverDistractionState = - Common.DriverDistractionState.DD_OFF; - } - } - } - } - - Rectangle { - id: globalProperties - anchors.left: parent.left - anchors.right: parent.right - anchors.bottom: parent.bottom - height: listGlobalProperties.height + Constants.panelPadding - border.color: Constants.panelTextColor - border.width: 1 - color: Constants.panelColor - Column { - id: listGlobalProperties - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.panelPadding / 4 - Text { - text: "HELP_PROMPT: " + dataContainer.currentApplication.helpPrompt - color: Constants.panelTextColor - } - Text { - text: "TIMEOUT_PROMPT: " + dataContainer.currentApplication.timeoutPrompt - color: Constants.panelTextColor - } - Text { - text: "AUTOCOMPLETE_TEXT: " // TODO(ALeshin): Function didn' realized yet - color: Constants.panelTextColor - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/SiriusPlayerView.qml b/src/components/qt_hmi/qml_model_qt5/views/SiriusPlayerView.qml deleted file mode 100644 index e5d2149542..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SiriusPlayerView.qml +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @file SiriusPlayerView.qml - * @brief Sirius player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../controls" - -GeneralView { - RadioPlayer { - id: siriusRadioPlayer - anchors.fill: parent - radioType: "" - radioName: "Sirius" - - playerState: dataContainer.siriusPlayerState - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/StatisticsInfoView.qml b/src/components/qt_hmi/qml_model_qt5/views/StatisticsInfoView.qml deleted file mode 100644 index 75f76249d5..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/StatisticsInfoView.qml +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - Text { - id: title - text: "Statistics Info:" - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - height: Constants.fontSize + Constants.panelPadding - } - - ScrollableListView { - id: menu - model: statisticsTypeList - anchors.left: parent.left - anchors.right: parent.right - anchors.top: title.bottom - anchors.bottom: bottomPanel.top - delegate: OvalButton { - text: name - onClicked: sdlSDL.addStatisticsInfo(Common.StatisticsType[name]); - anchors.left: parent.left - anchors.right: parent.right - fontSize: Constants.fontSize - } - } - - ListModel { - id: statisticsTypeList - - Component.onCompleted: { - for (var name in Common.StatisticsType) { - append({name: name}); - } - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/SystemErrorView.qml b/src/components/qt_hmi/qml_model_qt5/views/SystemErrorView.qml deleted file mode 100644 index 058282ae00..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SystemErrorView.qml +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - Text { - id: title - text: "System Error:" - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - height: Constants.fontSize + Constants.panelPadding - } - - ScrollableListView { - id: menu - model: systemErrorList - anchors.left: parent.left - anchors.right: parent.right - anchors.top: title.bottom - anchors.bottom: bottomPanel.top - delegate: OvalButton { - text: name - onClicked: sdlSDL.onSystemError(Common.SystemError[name]); - anchors.left: parent.left - anchors.right: parent.right - fontSize: Constants.fontSize - } - } - - ListModel { - id: systemErrorList - - Component.onCompleted: { - for (var name in Common.SystemError) { - append({name: name}); - } - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/SystemRequestView.qml b/src/components/qt_hmi/qml_model_qt5/views/SystemRequestView.qml deleted file mode 100644 index 32a3987e74..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/SystemRequestView.qml +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../models" -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants - -GeneralView { - Item { - anchors.fill: parent - Text { - id: title - text: "System Request:" - anchors.top: parent.top - anchors.left: parent.left - anchors.right: parent.right - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - height: Constants.fontSize + Constants.panelPadding - } - - ScrollableListView { - id: menu - model: requestTypeList - anchors.left: parent.left - anchors.right: parent.right - anchors.top: title.bottom - anchors.bottom: bottomPanel.top - delegate: OvalButton { - text: name - onClicked: settingsContainer.systemRequest(Common.RequestType[name]); - anchors.left: parent.left - anchors.right: parent.right - fontSize: Constants.fontSize - } - } - - ListModel { - id: requestTypeList - - Component.onCompleted: { - for (var name in Common.RequestType) { - append({name: name}); - } - } - } - - Item { - id: bottomPanel - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - - BackButton { anchors.centerIn: parent } - } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/TurnByTurnView.qml b/src/components/qt_hmi/qml_model_qt5/views/TurnByTurnView.qml deleted file mode 100644 index a69a86a40a..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/TurnByTurnView.qml +++ /dev/null @@ -1,202 +0,0 @@ -/** - * @file TurnByTurnView.qml - * @brief View for TurnByTurn. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../models" - -GeneralView { - applicationContext: true - - Item { - id: turnByTurnView - anchors.fill: parent - - Item { - // top 3/4 of screen - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: parent.height * 3/4 - - Item { - // row of oval buttons - id: ovalButtonsRow - anchors.top: parent.top - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - - PagedFlickable { - id: buttonsRow - width: parent.width - spacing: (width - 4 * elementWidth) / 3 - anchors.verticalCenter: parent.verticalCenter - snapTo: Constants.ovalButtonWidth + spacing - elementWidth: Constants.ovalButtonWidth - - OvalButton { - id: turnListButton - text: "TurnList" - onClicked: { - console.log("Go to TurnListView"); - contentLoader.go("./views/TurnListView.qml"); - } - } - - Repeater { - model: dataContainer.currentApplication.navigationSoftButtons ? - dataContainer.currentApplication.navigationSoftButtons.count : - 0 - delegate: - SoftButton { - appId: dataContainer.currentApplication.appId - button: dataContainer.currentApplication.navigationSoftButtons.get(index) - } - } - } - } - - Column { - // Picture + text information + media clock - id: mediaContent - width: parent.width - height: 3/4 * parent.height - anchors.left: parent.left - anchors.top: ovalButtonsRow.bottom - - Row { - // picture + text info - width: parent.width - height: 3/4 * parent.height - spacing: Constants.margin - - Icon { - id: image - height: parent.height - width: height - source: dataContainer.currentApplication.navigationModel.turnIcon - } - - Column { - // text info - id: textInfo - height: parent.height - width: parent.width - image.width - parent.spacing - spacing: (height - 5 * navText1.height) / 4 - - Text { - id: navText1 - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: dataContainer.currentApplication.navigationModel.text1 - font.pixelSize: Constants.fontSize - visible: dataContainer.currentApplication.navigationModel.text1 - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: dataContainer.currentApplication.navigationModel.text2 - font.pixelSize: Constants.fontSize - visible: dataContainer.currentApplication.navigationModel.text2 - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: "Total distance: " + dataContainer.currentApplication.navigationModel.totalDistance - font.pixelSize: Constants.fontSize - visible: dataContainer.currentApplication.navigationModel.totalDistance - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: "Time to destination: " + dataContainer.currentApplication.navigationModel.timeToDestination - font.pixelSize: Constants.fontSize - visible: dataContainer.currentApplication.navigationModel.timeToDestination - } - - Text { - anchors.left: parent.left - anchors.right: parent.right - color: Constants.primaryColor - text: "ETA: " + dataContainer.currentApplication.navigationModel.eta - font.pixelSize: Constants.fontSize - visible: dataContainer.currentApplication.navigationModel.eta - } - } - } - - Row { - anchors.horizontalCenter: parent.horizontalCenter - height: 1/4 * parent.height - width: 2/3 * parent.width - - Rectangle { - id: coveredDistance - anchors.verticalCenter: parent.verticalCenter - height: Constants.distanceBarHeight - width: dataContainer.currentApplication.navigationModel.distanceToManeuver / - dataContainer.currentApplication.navigationModel.distanceToManeuverScale * parent.width - color: "white" - } - - Rectangle { - anchors.verticalCenter: parent.verticalCenter - height: Constants.distanceBarHeight - width: parent.width - coveredDistance.width - color: Constants.primaryColor - } - } - } - } - } - - Item { - // 1/4 bottom screen - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - BackButton { anchors.centerIn: parent } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/TurnListView.qml b/src/components/qt_hmi/qml_model_qt5/views/TurnListView.qml deleted file mode 100644 index bdd0b3d6cf..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/TurnListView.qml +++ /dev/null @@ -1,103 +0,0 @@ -/** - * @file TurnListView.qml - * @brief View for TurnByTurn list. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models/Constants.js" as Constants -import "../hmi_api/Common.js" as Common - -GeneralView { - applicationContext: true - - Item { - anchors.left: parent.left - anchors.top: parent.top - width: parent.width - height: 3/4 * parent.height - - Item { - id: sotfButtons - width: parent.width - height: 1/4 * parent.height - - PagedFlickable { - anchors.verticalCenter: parent.verticalCenter - width: parent.width - elementWidth: Constants.ovalButtonWidth - snapTo: elementWidth + spacing - spacing: (width - 4 * elementWidth) / 3 - - Repeater { - model: dataContainer.currentApplication.turnListSoftButtons ? - dataContainer.currentApplication.turnListSoftButtons.count : - 0 - delegate: - SoftButton { - appId: dataContainer.currentApplication.appId - button: dataContainer.currentApplication.turnListSoftButtons.get(index) - } - } - } - } - - ScrollableListView { - id: scrollableList - anchors.top: sotfButtons.bottom - anchors.left: parent.left - width: parent.width - height: 3/4 * parent.height - - model: dataContainer.currentApplication.turnList - - delegate: - ListItem { - width: scrollableList.width - height: Constants.iconItemListSize - text: dataContainer.currentApplication.turnList.get(index).navigationText.fieldText - fontSize: Constants.fontSize - icon: dataContainer.currentApplication.turnList.get(index).turnIcon - } - } - } - - Item { - // 1/4 bottom screen - id: back - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - BackButton { anchors.centerIn: parent } - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/UsbPlayerView.qml b/src/components/qt_hmi/qml_model_qt5/views/UsbPlayerView.qml deleted file mode 100644 index f8a2d39806..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/UsbPlayerView.qml +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @file UsbPlayerView.qml - * @brief USB player screen view. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -import QtQuick 2.0 -import "../hmi_api/Common.js" as Common -import "../models/Constants.js" as Constants -import "../controls" - -GeneralView { - category: Common.DeactivateReason.AUDIO - MediaPlayer { - id: usbPlayer - playerName: "USB" - anchors.fill: parent - playerState: dataContainer.usbPlayerState - image: playerState.albumImage - - buttons: [ - OvalButton { - text: usbPlayer.playerName - onReleased: contentLoader.go("./views/MusicSourceView.qml") - fontSize: Constants.fontSize - }, - - OvalButton { - text: "Browse" - fontSize: Constants.fontSize - } - ] - } -} diff --git a/src/components/qt_hmi/qml_model_qt5/views/WarningInfo.qml b/src/components/qt_hmi/qml_model_qt5/views/WarningInfo.qml deleted file mode 100644 index 6228b63c79..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/views/WarningInfo.qml +++ /dev/null @@ -1,135 +0,0 @@ -/** - * @file WarningInfo.qml - * @brief Screen with warning information. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtQuick 2.0 -import "../controls" -import "../models/Constants.js" as Constants - -Rectangle { - id: warningInfo - anchors.fill: parent - color: Constants.secondaryColor - Text { - anchors.top: parent.top - anchors.left: parent.left - height: 1/4 * parent.height - width: parent.width - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - - text: "WARNING!" - color: Constants.warningColor - font.pixelSize: Constants.titleFontSize - font.bold: true - style: Text.Raised - styleColor: "gray" - } - - Text { - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - anchors.right: parent.right - anchors.margins: Constants.margin - height: 1/2 * parent.height - width: parent.width - verticalAlignment: Text.AlignVCenter - horizontalAlignment: Text.AlignHCenter - wrapMode: Text.WordWrap - - text: "This application is intended to be used as a demonstrative aid only, " - + "while the vehicle is parked. Don't use it while driving. <br /><br />" - + "Use extreme caution when using any device that takes your attention off the road. " - + "Ford recommends against the use of any hand-held device while driving and that you comply " - + "with all applicable laws. Your primary responsibility is the safe operation of the vehicle." - color: "white" - font.pixelSize: 25 - font.bold: true - } - - function showOkButton() { - okButtonAnimation.start() - } - - Item { - id: ok - anchors.bottom: parent.bottom - anchors.left: parent.left - width: parent.width - height: 1/4 * parent.height - opacity: 0 - - SequentialAnimation - { - id: okButtonAnimation - // Decrease this value while debugging - PauseAnimation { duration: Constants.warningScreenDuration } - NumberAnimation { - target: ok - duration: Constants.animationDuration - property: "opacity" - from: 0; to: 1; - } - } - - Image { - id: okButton - anchors.centerIn: parent - source: "../res/buttons/longest_oval_btn.png" - - Text { - id: text - anchors.centerIn: parent - text: "OK" - font.pixelSize: Constants.fontSize - color: Constants.primaryColor - } - - MouseArea { - anchors.fill: parent - onPressed: { - parent.source = "../res/buttons/longest_oval_btn_pressed.png" - text.color = Constants.secondaryColor - } - onReleased: { - parent.source = "../res/buttons/longest_oval_btn.png" - text.color = Constants.primaryColor - } - onClicked: { - console.log("WarningInfo OkButton - on clicked enter"); - warningInfo.visible = false - } - } - } - } -} diff --git a/src/components/qt_hmi/qml_plugins/CMakeLists.txt b/src/components/qt_hmi/qml_plugins/CMakeLists.txt deleted file mode 100644 index 6ff595315c..0000000000 --- a/src/components/qt_hmi/qml_plugins/CMakeLists.txt +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright (c) 2013, Ford Motor Company -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with the -# distribution. -# -# Neither the name of the Ford Motor Company nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -# --- DBus plugin -add_subdirectory(./dbus_adapter) - -# --- Hmi Framework plugin -add_subdirectory(./hw_buttons) - -# --- Log4cxx plugin -add_subdirectory(./log4cxx) - -# --- NamedPipeNotifier plugin -add_subdirectory(./named_pipe_notifier) diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/CMakeLists.txt b/src/components/qt_hmi/qml_plugins/dbus_adapter/CMakeLists.txt deleted file mode 100644 index 53d1144356..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/CMakeLists.txt +++ /dev/null @@ -1,164 +0,0 @@ -# Copyright (c) 2013, Ford Motor Company -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with the -# distribution. -# -# Neither the name of the Ford Motor Company nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -cmake_minimum_required(VERSION 2.8.11) - -set(components_dir ${CMAKE_CURRENT_SOURCE_DIR}/../../..) -set(dbus_dir ${components_dir}/dbus) -set(codegen_dir ${dbus_dir}/codegen) -set(codegen ${codegen_dir}/make_qml_dbus_cpp.py) -set(codegen_request_to_sdl ${codegen_dir}/make_request_to_sdl.py) -set(codegen_hmi_requests ${codegen_dir}/make_hmi_requests.py) -set(codegen_notification_qml ${codegen_dir}/make_notifications_qml.py) -set(parser ${codegen_dir}/ford_xml_parser.py) -set(interfaces_dir ${components_dir}/interfaces) -set(api_xml ${interfaces_dir}/QT_HMI_API.xml) -add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/qml_dbus.cc ${CMAKE_CURRENT_BINARY_DIR}/qml_dbus.h - COMMAND python ${codegen} --infile ${api_xml} --version ${qt_version} --outdir ${CMAKE_CURRENT_BINARY_DIR} - DEPENDS ${api_xml} ${codegen} ${parser} - COMMENT "Generating files: - ${CMAKE_CURRENT_BINARY_DIR}/qml_dbus.cc - ${CMAKE_CURRENT_BINARY_DIR}/qml_dbus.h - from: - ${api_xml} ..." -) -add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/request_to_sdl.cc ${CMAKE_CURRENT_BINARY_DIR}/request_to_sdl.h - COMMAND python ${codegen_request_to_sdl} --infile ${api_xml} --version ${qt_version} --outdir ${CMAKE_CURRENT_BINARY_DIR} - DEPENDS ${api_xml} ${codegen_request_to_sdl} ${parser} - COMMENT "Generating files: - ${CMAKE_CURRENT_BINARY_DIR}/request_to_sdl.cc - ${CMAKE_CURRENT_BINARY_DIR}/request_to_sdl.h - from: - ${api_xml} ..." -) -add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hmi_requests.cc ${CMAKE_CURRENT_BINARY_DIR}/hmi_requests.h - COMMAND python ${codegen_hmi_requests} --infile ${api_xml} --version ${qt_version} --outdir ${CMAKE_CURRENT_BINARY_DIR} - DEPENDS ${api_xml} ${codegen_hmi_requests} ${parser} - COMMENT "Generating files: - ${CMAKE_CURRENT_BINARY_DIR}/hmi_requests.cc - ${CMAKE_CURRENT_BINARY_DIR}/hmi_requests.h - from: - ${api_xml} ..." -) -add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/sdl_proxy.cc ${CMAKE_CURRENT_BINARY_DIR}/sdl_proxy.h - COMMAND python ${codegen_notification_qml} --infile ${api_xml} --version ${qt_version} --outdir ${CMAKE_CURRENT_BINARY_DIR} - DEPENDS ${api_xml} ${codegen_notification_qml} ${parser} - COMMENT "Generating files: - ${CMAKE_CURRENT_BINARY_DIR}/sdl_proxy.cc - ${CMAKE_CURRENT_BINARY_DIR}/sdl_proxy.h - from: - ${api_xml} ..." -) - -set(target DbusAdapter) -set(destination com/ford/sdl/hmi/dbus_adapter) -set(install_destination bin/hmi/plugins/${destination}) -set(library_name ${CMAKE_SHARED_LIBRARY_PREFIX}${target}${CMAKE_SHARED_LIBRARY_SUFFIX}) - -set(CMAKE_AUTOMOC ON) -set(SOURCES - dbus_plugin.cc - ${CMAKE_CURRENT_BINARY_DIR}/qml_dbus.cc - moc_qml_dbus.cpp - sdl_proxy.cc - moc_sdl_proxy.cpp - hmi_proxy.cc - stream_qvariant.cc - moc_qml_dbus.cpp - dbus_controller.cc - request_to_sdl.cc - moc_request_to_sdl.cpp - hmi_requests.cc - moc_hmi_requests.cpp -) -include_directories( - ${LOG4CXX_INCLUDE_DIRECTORY} - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_BINARY_DIR}/src/components - ${CMAKE_SOURCE_DIR}/src/components/utils/include/ -) - -add_library(${target} SHARED ${SOURCES}) - -if (${qt_version} MATCHES "4.8.5") - qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/hmi_requests.h moc_hmi_requests.cpp) - qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/request_to_sdl.h moc_request_to_sdl.cpp) - qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/qml_dbus.h moc_qml_dbus.cpp) - qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/sdl_proxy.h moc_sdl_proxy.cpp) - qt4_use_modules(${target} Core DBus Declarative) - set(model_dir ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt4/) - set(copy_destination ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt4/${destination}) -elseif (${qt_version} MATCHES "5.1.0") - qt5_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/hmi_requests.h moc_hmi_requests.cpp) - qt5_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/request_to_sdl.h moc_request_to_sdl.cpp) - qt5_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/qml_dbus.h moc_qml_dbus.cpp) - qt5_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/sdl_proxy.h moc_sdl_proxy.cpp) - qt5_use_modules(${target} Core DBus Qml) - set(model_dir ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt5/) - set(copy_destination ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt5/${destination}) -endif () - -target_link_libraries(${target} log4cxx -L${LOG4CXX_LIBS_DIRECTORY}) -target_link_libraries(${target} Utils) - -add_custom_target(copy_library_${target} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/${library_name} - ${copy_destination} - DEPENDS ${target} - COMMENT "Copying library ${library_name}") -file(COPY qmldir DESTINATION ${copy_destination}) - -install(TARGETS ${target} - DESTINATION ${install_destination} - PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE - GROUP_READ GROUP_EXECUTE - WORLD_READ WORLD_EXECUTE -) -install(FILES qmldir DESTINATION ${install_destination}) - -if (CMAKE_SYSTEM_NAME STREQUAL "Linux") - add_custom_target(qmltypes_${target} ALL - COMMAND ${qmlplugindump_binary} -nonrelocatable com.ford.sdl.hmi.dbus_adapter 1.0 ${model_dir} > ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes 2>/dev/null || true - DEPENDS copy_library_${target} - ) - add_custom_target(copy_qmltypes_${target} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes - ${copy_destination} - DEPENDS qmltypes_${target} - ) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes DESTINATION ${install_destination}) -endif () diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_controller.cc b/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_controller.cc deleted file mode 100644 index 60f07783a9..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_controller.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * \file dbus_controller.cpp - * \brief DbusController class. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "dbus_controller.h" -#include "interfaces/QT_HMI_API.h" -#include <QtDBus/QDBusConnection> - -DBusController::DBusController(QObject* parent) - : QObject(parent), message(NULL) {} - -void DBusController::addMessage(const QDBusMessage& message, - fillRoutine fill, - int async_uid) { - delayedReply reply; - reply.message = message; - reply.fill = fill; - replies_[async_uid] = reply; -} - -void DBusController::sendReply(QVariant asyncObject, QVariant data) { - int uid = asyncObject.toMap()["__async_uid"].toInt(); - std::map<int, delayedReply>::iterator it = replies_.find(uid); - if (it != replies_.end()) { - QDBusMessage msg = it->second.message.createReply(); - if (!it->second.fill(msg, data.toMap())) { - QDBusConnection::sessionBus().send(it->second.message.createErrorReply( - QDBusError::InternalError, - QString::number(hmi_apis::Common_Result::INVALID_DATA))); - } else { - QDBusConnection::sessionBus().send(msg); - } - replies_.erase(it); - } -} - -void DBusController::sendReply(QVariant data) { - if (!message) - return; - QDBusMessage msg = message->createReply(); - if (!fill(msg, data.toMap())) { - QDBusConnection::sessionBus().send(message->createErrorReply( - QDBusError::InternalError, - QString::number(hmi_apis::Common_Result::INVALID_DATA))); - } else { - QDBusConnection::sessionBus().send(msg); - } -} - -void DBusController::sendError(QVariant asyncObject, - QVariant code, - QVariant message) { - int uid = asyncObject.toMap()["__async_uid"].toInt(); - std::map<int, delayedReply>::iterator it = replies_.find(uid); - if (it != replies_.end()) { - QDBusMessage msg = it->second.message.createErrorReply(code.toString(), - message.toString()); - QDBusConnection::sessionBus().send(msg); - replies_.erase(it); - } -} - -void DBusController::sendError(QVariant asyncObject, QVariant code) { - sendError(asyncObject, code, QVariant("")); -} diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_controller.h b/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_controller.h deleted file mode 100644 index 937bab5f90..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_controller.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * \file dbus_controller.h - * \brief DbusController class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_DBUS_CONTROLLER_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_DBUS_CONTROLLER_H_ - -#include <QtDBus/QDBusMessage> -#include <QtCore/QObject> -#include <map> - -typedef bool (*fillRoutine)(QDBusMessage&, const QVariantMap&); - -class DBusController : public QObject { - struct delayedReply { - QDBusMessage message; - fillRoutine fill; - }; - Q_OBJECT - - public: - explicit DBusController(QObject* parent = 0); - void addMessage(const QDBusMessage& message, fillRoutine fill, int async_uid); - Q_INVOKABLE void sendReply(QVariant asyncObject, QVariant data); - Q_INVOKABLE void sendReply(QVariant data); - Q_INVOKABLE void sendError(QVariant asyncObject, QVariant code); - Q_INVOKABLE void sendError(QVariant asyncObject, - QVariant code, - QVariant message); - const QDBusMessage* message; - fillRoutine fill; - - private: - std::map<int, delayedReply> replies_; -}; - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_DBUS_CONTROLLER_H_ diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_plugin.cc b/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_plugin.cc deleted file mode 100644 index 5cc4dadb1e..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_plugin.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * \file dbus_plugin.cpp - * \brief DbusPlugin class source file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "dbus_plugin.h" - -#include "hmi_proxy.h" -#include "sdl_proxy.h" -#include "optional_argument.h" -#include "qml_dbus.h" -#include "dbus_controller.h" -#include "request_to_sdl.h" - -#include <log4cxx/logger.h> -#include <log4cxx/propertyconfigurator.h> - -#include <QtCore/QString> -#include <QtDBus/QDBusConnection> - -#if QT_4 -#include <QtDeclarative/QDeclarativeContext> -#include <QtDeclarative/QDeclarativeListReference> -#include <QtDeclarative/QDeclarativeEngine> -#elif QT_5 -#include <QtQml/QQmlContext> -#include <QtQml/QQmlListReference> -#include <QtQml/QQmlEngine> -#endif // QT_VERSION -log4cxx::LoggerPtr logger_ = - log4cxx::LoggerPtr(log4cxx::Logger::getLogger("DBusPlugin")); - -void DbusPlugin::registerTypes(const char* uri) { - log4cxx::PropertyConfigurator::configure("log4cxx.properties"); - - // @uri sdl.core.api - qmlRegisterType<HmiProxy>(uri, 1, 0, "HMIAdapter"); - qmlRegisterType<SdlProxy>(uri, 1, 0, "SDLAdapter"); - - RegisterDbusMetatypes(); - qDBusRegisterMetaType<OptionalArgument<int> >(); - qDBusRegisterMetaType<OptionalArgument<QList<int> > >(); - qDBusRegisterMetaType<OptionalArgument<QString> >(); - qDBusRegisterMetaType<OptionalArgument<QStringList> >(); - qDBusRegisterMetaType<OptionalArgument<bool> >(); - qDBusRegisterMetaType<OptionalArgument<QList<bool> > >(); - qDBusRegisterMetaType<OptionalArgument<double> >(); - qDBusRegisterMetaType<OptionalArgument<QList<double> > >(); - - HmiProxy::api_adaptors_.Init(this); - - QDBusConnection::sessionBus().registerObject("/", this); - QDBusConnection::sessionBus().registerService("com.ford.sdl.hmi"); - - dbusController_ = new DBusController(); - requestToSDL_ = new RequestToSDL(); - - HmiProxy::api_adaptors_.SetDBusController(dbusController_); -} - -void DbusPlugin::initializeEngine(Engine* engine, const char* uri) { - engine->rootContext()->setContextProperty("DBus", dbusController_); - engine->rootContext()->setContextProperty("RequestToSDL", requestToSDL_); -} - -#if QT_4 -Q_EXPORT_PLUGIN2(DbusAdapter, DbusPlugin) -#endif // QT_4 diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_plugin.h b/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_plugin.h deleted file mode 100644 index 2b5bba6235..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/dbus_plugin.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * \file dbus_plugin.h - * \brief DbusPlugin class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_DBUS_PLUGIN_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_DBUS_PLUGIN_H_ - -#include "qt_version.h" - -#if QT_4 -#include <QtDeclarative/QDeclarativeExtensionPlugin> -typedef QDeclarativeExtensionPlugin ExtensionPlugin; -typedef QDeclarativeEngine Engine; -#elif QT_5 -#include <QtQml/QQmlExtensionPlugin> -typedef QQmlExtensionPlugin ExtensionPlugin; -typedef QQmlEngine Engine; -#endif // QT_VERSION -#include <QtDBus/QDBusContext> - -class DBusController; -class RequestToSDL; - -class DbusPlugin : public ExtensionPlugin, public QDBusContext { - Q_OBJECT - -#if QT_5 - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") -#endif // QT_5 - - DBusController* dbusController_; - RequestToSDL* requestToSDL_; - - public: - void registerTypes(const char* uri); - void initializeEngine(Engine* engine, const char* uri); -}; - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_DBUS_PLUGIN_H_ diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/hmi_proxy.cc b/src/components/qt_hmi/qml_plugins/dbus_adapter/hmi_proxy.cc deleted file mode 100644 index e196e5c5de..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/hmi_proxy.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * \file hmiproxy.cpp - * \brief HmiProxy class source file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "hmi_proxy.h" -#include <QtDBus/QDBusConnection> - -ApiAdaptors HmiProxy::api_adaptors_; - -HmiProxy::HmiProxy(Item* parent) : Item(parent) {} - -void HmiProxy::componentComplete() { - Item::componentComplete(); - api_adaptors_.SetApi(this); -} diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/hmi_proxy.h b/src/components/qt_hmi/qml_plugins/dbus_adapter/hmi_proxy.h deleted file mode 100644 index d7277d017b..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/hmi_proxy.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * \file hmiproxy.h - * \brief HmiProxy class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_HMI_PROXY_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_HMI_PROXY_H_ - -#include "qt_version.h" -#include "qml_dbus.h" - -#if QT_4 -#include <QtDeclarative/QDeclarativeItem> -typedef QDeclarativeItem Item; -#elif QT_5 -#include <QtQuick/QQuickItem> -typedef QQuickItem Item; -#endif // QT_VERSION - -class HmiProxy : public Item { - Q_OBJECT - Q_DISABLE_COPY(HmiProxy) - - public: - explicit HmiProxy(Item* parent = 0); - static ApiAdaptors api_adaptors_; - - protected: - virtual void componentComplete(); -}; - -QML_DECLARE_TYPE(HmiProxy) - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_HMI_PROXY_H_ diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/metatype.h b/src/components/qt_hmi/qml_plugins/dbus_adapter/metatype.h deleted file mode 100644 index b127cea1a8..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/metatype.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_METATYPE_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_METATYPE_H_ - -#include <QMetaType> - -template <typename T> -QMetaType::Type metatype(); - -template <> -inline QMetaType::Type metatype<int>() { - return QMetaType::Int; -} - -template <> -inline QMetaType::Type metatype<QString>() { - return QMetaType::QString; -} - -template <> -inline QMetaType::Type metatype<bool>() { - return QMetaType::Bool; -} - -template <> -inline QMetaType::Type metatype<double>() { - return QMetaType::Double; -} - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_METATYPE_H_ diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/optional_argument.h b/src/components/qt_hmi/qml_plugins/dbus_adapter/optional_argument.h deleted file mode 100644 index ea6f68bb31..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/optional_argument.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * \file optional_argument.h - * \brief OptionalArgument struct header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_OPTIONAL_ARGUMENT_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_OPTIONAL_ARGUMENT_H_ - -#include "qt_version.h" -#include <QtDBus/QDBusArgument> - -template <class T> -struct OptionalArgument { - T val; - bool presence; - explicit OptionalArgument(const T& value) : val(value), presence(true) {} - OptionalArgument() : presence(false) {} -}; - -template <class T> -inline QDBusArgument& operator<<(QDBusArgument& arg, - const OptionalArgument<T>& o) { - arg.beginStructure(); - arg << o.presence << o.val; - arg.endStructure(); - return arg; -} - -template <class T> -inline const QDBusArgument& operator>>(const QDBusArgument& arg, - OptionalArgument<T>& o) { - arg.beginStructure(); - arg >> o.presence >> o.val; - arg.endStructure(); - return arg; -} - -template <class T> -inline bool VariantToValue(const QVariant& variant, OptionalArgument<T>& o) { - if (variant.isNull()) { - o.presence = false; - return true; - } - o.presence = true; - return VariantToValue(variant, o.val); -} - -#if QT_4 -Q_DECLARE_METATYPE(QList<int>) -#endif // QT_4 - -Q_DECLARE_METATYPE(OptionalArgument<int>) -Q_DECLARE_METATYPE(OptionalArgument<QString>) -Q_DECLARE_METATYPE(OptionalArgument<bool>) -Q_DECLARE_METATYPE(OptionalArgument<double>) - -Q_DECLARE_METATYPE(OptionalArgument<QList<int> >) -Q_DECLARE_METATYPE(OptionalArgument<QStringList>) -Q_DECLARE_METATYPE(OptionalArgument<QList<bool> >) -Q_DECLARE_METATYPE(OptionalArgument<QList<double> >) -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_OPTIONAL_ARGUMENT_H_ diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/qml_dbus_common.h b/src/components/qt_hmi/qml_plugins/dbus_adapter/qml_dbus_common.h deleted file mode 100644 index fa9692f9d9..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/qml_dbus_common.h +++ /dev/null @@ -1,259 +0,0 @@ -/* - * \file qml_dbus_common.h - * \brief Contain utilities for DBus plugin. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_QML_DBUS_COMMON_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_QML_DBUS_COMMON_H_ - -#include <QtDBus/QDBusContext> -#include "optional_argument.h" -#include "stream_qvariant.h" -#include "metatype.h" - -enum ErrorCode { - Success = 0, - UnsupportedRequest, - UnsupportedResource, - Disallowed, - Rejected, - Aborted, - Ignored, - Retry, - InUse, - DataNotAvailable, - TimedOut, - InvalidData, - CharLimitExceeded, - InvalidId, - DuplicateName, - ApplicationNotRegistered, - WrongLanguage, - OutOfMemory, - TooManyPendingRequests, - NoAppsRegistered, - NoDevicesConnected, - Warnings, - GenericError, - UserDisallowed -}; - -inline void RaiseDbusError(QObject* adaptor, int code, const QString& message) { - QDBusContext* context = dynamic_cast<QDBusContext*>(adaptor->parent()); - if (context) { - context->sendErrorReply(QString::number(static_cast<int>(code)), message); - } -} - -inline void RaiseDbusError(QObject* adaptor, int code) { - RaiseDbusError(adaptor, code, ""); -} - -template <typename T> -inline void PutArgToMap(QVariantMap& map, const char* name, const T& v) { - map.insert(name, QVariant::fromValue(v)); -} - -inline bool GetArgFromMap(const QVariantMap& map, const char* name, int& v) { - QVariantMap::const_iterator it = map.find(name); - if (map.end() == it) - return false; - if (it->type() != QVariant::Int) - return false; - v = it->toInt(); - return true; -} - -inline bool GetArgFromMap(const QVariantMap& map, - const char* name, - QString& v) { - QVariantMap::const_iterator it = map.find(name); - if (map.end() == it) - return false; - if (it->type() != QVariant::String) - return false; - v = it->toString(); - return true; -} - -inline bool GetArgFromMap(const QVariantMap& map, const char* name, bool& v) { - QVariantMap::const_iterator it = map.find(name); - if (map.end() == it) - return false; - if (it->type() != QVariant::Bool) - return false; - v = it->toBool(); - return true; -} - -inline bool isNumber(QVariant v) { - QVariant::Type t = v.type(); - return (t == QVariant::Double) || (t == QVariant::Int) || - (t == QVariant::UInt) || (t == QVariant::LongLong) || - (t == QVariant::ULongLong); -} - -inline bool GetArgFromMap(const QVariantMap& map, const char* name, double& v) { - QVariantMap::const_iterator it = map.find(name); - if (map.end() == it) - return false; - if (!isNumber(*it)) - return false; - v = it->toDouble(); - return true; -} - -inline bool VariantToValue(const QVariant& variant, int& v) { - if (variant.type() != QVariant::Int) - return false; - v = variant.toInt(); - return true; -} - -inline bool VariantToValue(const QVariant& variant, QString& v) { - if (variant.type() != QVariant::String) - return false; - v = variant.toString(); - return true; -} - -inline bool VariantToValue(const QVariant& variant, bool& v) { - if (variant.type() != QVariant::Bool) - return false; - v = variant.toBool(); - return true; -} - -inline bool VariantToValue(const QVariant& variant, double& v) { - if (variant.type() != QVariant::Double) - return false; - v = variant.toDouble(); - return true; -} - -inline bool VariantToValue(const QVariant& variant, QStringList& v) { - if (variant.type() != QVariant::List) - return false; - QList<QVariant> list = variant.toList(); - for (QList<QVariant>::const_iterator i = list.begin(); i != list.end(); ++i) { - if (i->type() != QVariant::String) - return false; - v.append(i->toString()); - } - return true; -} - -template <typename T> -bool VariantToValue(const QVariant& variant, QList<T>& v) { - if (variant.type() != QVariant::List) - return false; - QList<T> spare; - QList<QVariant> list = variant.toList(); - for (QList<QVariant>::const_iterator i = list.begin(); i != list.end(); ++i) { - QVariant::Type type = i->type(); - // Although this function is declared as returning QVariant::Type(obsolete), - // the return value should be interpreted as QMetaType::Type. - // (http://qt-project.org/doc/qt-5.0/qtcore/qvariant.html#type) - QMetaType::Type type_casted = static_cast<QMetaType::Type>(type); - if (type_casted != metatype<T>()) { - return false; - } - spare.append(i->value<T>()); - } - v.swap(spare); - return true; -} - -template <typename T> -inline QVariant ValueToVariant(const T& v) { - return QVariant::fromValue(v); -} - -template <typename T> -inline QVariant ValueToVariant(const QList<T>& v) { - QList<QVariant> list; - for (typename QList<T>::const_iterator i = v.begin(); i != v.end(); ++i) - list.append(ValueToVariant(*i)); - return QVariant::fromValue(list); -} - -template <typename T> -inline void PutArgToMap(QVariantMap& map, const char* name, const QList<T>& v) { - QList<QVariant> list; - for (typename QList<T>::const_iterator i = v.begin(); i != v.end(); ++i) - list.append(ValueToVariant(*i)); - map.insert(name, QVariant::fromValue(list)); -} - -template <typename T> -inline bool GetArgFromMap(const QVariantMap& map, - const char* name, - QList<T>& v) { - QVariantMap::const_iterator it = map.find(name); - if (map.end() == it) - return false; - const QVariant& variant = *it; - if (variant.type() != QVariant::List) - return false; - QList<QVariant> list = variant.toList(); - for (QList<QVariant>::const_iterator i = list.begin(); i != list.end(); ++i) { - T t; - bool ok = VariantToValue(*i, t); - if (!ok) - return false; - v.append(t); - } - return true; -} - -template <typename T> -inline void PutArgToMap(QVariantMap& map, - const char* name, - const OptionalArgument<T>& v) { - if (v.presence) - map.insert(name, ValueToVariant(v.val)); -} - -template <typename T> -inline bool GetArgFromMap(const QVariantMap& map, - const char* name, - OptionalArgument<T>& v) { - QVariantMap::const_iterator it = map.find(name); - if (map.end() == it || !it->isValid()) { - v.presence = false; - return true; - } - v.presence = true; - return GetArgFromMap(map, name, v.val); -} - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_QML_DBUS_COMMON_H_ diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/qmldir b/src/components/qt_hmi/qml_plugins/dbus_adapter/qmldir deleted file mode 100644 index 5f426d357d..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/qmldir +++ /dev/null @@ -1,3 +0,0 @@ -module com.ford.sdl.hmi.dbus_adapter -plugin DbusAdapter - diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/qt_version.h b/src/components/qt_hmi/qml_plugins/dbus_adapter/qt_version.h deleted file mode 100644 index c41eea7403..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/qt_version.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * @file qt_version.h - * @brief Defines for check Qt version. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_QT_VERSION_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_QT_VERSION_H_ - -#include <qglobal.h> - -#define QT_4 \ - ((QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)) && \ - (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))) - -#define QT_5 \ - ((QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) && \ - (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))) - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_QT_VERSION_H_ diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/stream_qvariant.cc b/src/components/qt_hmi/qml_plugins/dbus_adapter/stream_qvariant.cc deleted file mode 100644 index ec049b9533..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/stream_qvariant.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "stream_qvariant.h" - -std::basic_ostream<char>& operator<<(std::basic_ostream<char>& os, - const QVariant& value) { - switch (value.type()) { - case QVariant::Map: { - os << "{ "; - QVariantMap structure = value.toMap(); - QMapIterator<QString, QVariant> i(structure); - while (i.hasNext()) { - i.next(); - os << i.key() << ":" << i.value(); - if (i.hasNext()) { - os << ", "; - } - } - os << " }"; - } break; - case QVariant::List: { - os << "[ "; - QVariantList array = value.toList(); - QListIterator<QVariant> i(array); - while (i.hasNext()) { - os << i.next(); - if (i.hasNext()) { - os << ", "; - } - } - os << " ]"; - } break; - default: - os << value.toString().toLatin1().data(); - } - - return os; -} diff --git a/src/components/qt_hmi/qml_plugins/dbus_adapter/stream_qvariant.h b/src/components/qt_hmi/qml_plugins/dbus_adapter/stream_qvariant.h deleted file mode 100644 index 0d0e279b87..0000000000 --- a/src/components/qt_hmi/qml_plugins/dbus_adapter/stream_qvariant.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_STREAM_QVARIANT_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_STREAM_QVARIANT_H_ - -#include <QtCore/QVariant> -#include <sstream> - -std::basic_ostream<char>& operator<<(std::basic_ostream<char>& os, - const QVariant& value); - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_DBUS_ADAPTER_STREAM_QVARIANT_H_ diff --git a/src/components/qt_hmi/qml_plugins/hw_buttons/CMakeLists.txt b/src/components/qt_hmi/qml_plugins/hw_buttons/CMakeLists.txt deleted file mode 100644 index 56a64b48b3..0000000000 --- a/src/components/qt_hmi/qml_plugins/hw_buttons/CMakeLists.txt +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (c) 2013, Ford Motor Company -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with the -# distribution. -# -# Neither the name of the Ford Motor Company nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -cmake_minimum_required(VERSION 2.8.11) - -set(target HWButtons) -set(destination com/ford/sdl/hmi/hw_buttons) -set(install_destination bin/hmi/plugins/${destination}) -set(library_name ${CMAKE_SHARED_LIBRARY_PREFIX}${target}${CMAKE_SHARED_LIBRARY_SUFFIX}) - -set(CMAKE_AUTOMOC ON) -set(SOURCES - attributed_mouse_event.cc - hmi_hwbuttons.cc - masked_container.cc -) - -add_library(${target} SHARED ${SOURCES}) - -if (${qt_version} MATCHES "4.8.5") - qt4_use_modules(${target} Core Gui Declarative) - set(model_dir ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt4/) - set(copy_destination ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt4/${destination}) -elseif (${qt_version} MATCHES "5.1.0") - qt5_use_modules(${target} Core Qml Quick) - set(model_dir ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt5/) - set(copy_destination ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt5/${destination}) -endif () - -add_custom_target(copy_library_${target} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/${library_name} - ${copy_destination} - DEPENDS ${target} - COMMENT "Copying library ${library_name}") -file(COPY qmldir DESTINATION ${copy_destination}) - -install(TARGETS ${target} - DESTINATION ${install_destination} - PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE - GROUP_READ GROUP_EXECUTE - WORLD_READ WORLD_EXECUTE -) -install(FILES qmldir DESTINATION ${install_destination}) - -if (CMAKE_SYSTEM_NAME STREQUAL "Linux") - add_custom_target(qmltypes_${target} ALL - COMMAND ${qmlplugindump_binary} -nonrelocatable com.ford.sdl.hmi.hw_buttons 1.0 ${model_dir} > ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes 2>/dev/null - DEPENDS copy_library_${target} - ) - add_custom_target(copy_qmltypes_${target} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes - ${copy_destination} - DEPENDS qmltypes_${target} - ) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes DESTINATION ${install_destination}) -endif () diff --git a/src/components/qt_hmi/qml_plugins/hw_buttons/attributed_mouse_event.cc b/src/components/qt_hmi/qml_plugins/hw_buttons/attributed_mouse_event.cc deleted file mode 100644 index 899fc5b615..0000000000 --- a/src/components/qt_hmi/qml_plugins/hw_buttons/attributed_mouse_event.cc +++ /dev/null @@ -1,39 +0,0 @@ -/* - * \file attributed_mouse_event.cpp - * \brief AttributedMouseEvent class source file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "attributed_mouse_event.h" - -Item* AttributedMouseEvent::item() const { - return item_; -} diff --git a/src/components/qt_hmi/qml_plugins/hw_buttons/attributed_mouse_event.h b/src/components/qt_hmi/qml_plugins/hw_buttons/attributed_mouse_event.h deleted file mode 100644 index 0486397058..0000000000 --- a/src/components/qt_hmi/qml_plugins/hw_buttons/attributed_mouse_event.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * \file attributed_mouse_event.h - * \brief AttributedMouseEvent class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_ATTRIBUTED_MOUSE_EVENT_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_ATTRIBUTED_MOUSE_EVENT_H_ - -#include "qt_version.h" - -#include <QtCore/QObject> -#if QT_4 -#include <QtDeclarative/QDeclarativeItem> -typedef QDeclarativeItem Item; -#elif QT_5 -#include <QtQuick/QQuickItem> -typedef QQuickItem Item; -#endif // QT_VERSION - -class AttributedMouseEvent : public QObject { - Q_OBJECT - Q_PROPERTY(Item* item READ item) - - public: - explicit AttributedMouseEvent(Item* item) : item_(item) {} - - Item* item() const; - - private: - Item* item_; - Q_DISABLE_COPY(AttributedMouseEvent) -}; - -QML_DECLARE_TYPE(AttributedMouseEvent) - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_ATTRIBUTED_MOUSE_EVENT_H_ diff --git a/src/components/qt_hmi/qml_plugins/hw_buttons/hmi_hwbuttons.cc b/src/components/qt_hmi/qml_plugins/hw_buttons/hmi_hwbuttons.cc deleted file mode 100644 index 62a090a509..0000000000 --- a/src/components/qt_hmi/qml_plugins/hw_buttons/hmi_hwbuttons.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * \file hmi_hwbuttons.cpp - * \brief HmiHWButtons class source file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "hmi_hwbuttons.h" - -#if QT_4 -#include <QtDeclarative/qdeclarative.h> -#include <QtGui/QGraphicsColorizeEffect> -#elif QT_5 -#include <QtQml> -#endif // QT_VERSION - -#include "masked_container.h" -#include "attributed_mouse_event.h" - -void HmiHWButtons::registerTypes(const char* uri) { - // @uri com.ford.hmi_framework - qmlRegisterType<MaskedContainer>(uri, 1, 0, "MaskedContainer"); - qmlRegisterType<AttributedMouseEvent>(); -#if QT_4 - qmlRegisterType<QGraphicsColorizeEffect>(uri, 1, 0, "Colorize"); -#endif // QT_4 -} - -#if QT_4 -Q_EXPORT_PLUGIN2(HWButtons, HmiHWButtons) -#endif // QT_4 diff --git a/src/components/qt_hmi/qml_plugins/hw_buttons/hmi_hwbuttons.h b/src/components/qt_hmi/qml_plugins/hw_buttons/hmi_hwbuttons.h deleted file mode 100644 index 0cf71807c4..0000000000 --- a/src/components/qt_hmi/qml_plugins/hw_buttons/hmi_hwbuttons.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * \file hmi_hwbuttons.h - * \brief HmiHWButtons class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_HMI_HWBUTTONS_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_HMI_HWBUTTONS_H_ - -#include "qt_version.h" - -#if QT_4 -#include <QtDeclarative/QDeclarativeExtensionPlugin> -typedef QDeclarativeExtensionPlugin ExtensionPlugin; -#elif QT_5 -#include <QtQml/QQmlExtensionPlugin> -typedef QQmlExtensionPlugin ExtensionPlugin; -#endif // QT_VERSION - -class HmiHWButtons : public ExtensionPlugin { - Q_OBJECT -#if QT_5 - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") -#endif // QT_5 - - public: - void registerTypes(const char* uri); -}; - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_HMI_HWBUTTONS_H_ diff --git a/src/components/qt_hmi/qml_plugins/hw_buttons/masked_container.cc b/src/components/qt_hmi/qml_plugins/hw_buttons/masked_container.cc deleted file mode 100644 index f80e80907e..0000000000 --- a/src/components/qt_hmi/qml_plugins/hw_buttons/masked_container.cc +++ /dev/null @@ -1,153 +0,0 @@ -/* - * \file masked_container.cpp - * \brief MaskedContainer class source file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "masked_container.h" - -#if QT_4 -#include <QtCore/QPointF> -#include <QtGui/QGraphicsSceneMouseEvent> -#define IMAGE "QDeclarativeImage" -#elif QT_5 -#include <QtGui/QImage> -#include <QtCore/QEvent> -#define IMAGE "QQuickImage" -#endif // QT_VERSION - -MaskedContainer::MaskedContainer(Item* parent) : Item(parent), mask_(NULL) { - setAcceptedMouseButtons(Qt::LeftButton); -} - -void MaskedContainer::componentComplete() { - Item::componentComplete(); - - for (QObjectList::ConstIterator it = children().begin(); - it != children().end(); - ++it) { - Item* item = qobject_cast<Item*>(*it); - if (item && item->inherits(IMAGE) && item->isVisible()) { - images_.push_back(item); - } - } - - int height = this->height(); - int width = this->width(); - - for (size_t i = 0; i < images_.size(); ++i) { - Item* item = images_[i]; - int itemWidth = item->width(); - int itemHeight = item->height(); - int itemX = item->x(); - int itemY = item->y(); - if (height < itemHeight + itemY) - height = itemHeight + itemY; - if (width < itemWidth + itemX) - width = itemWidth + itemX; - } - - setHeight(height); - setWidth(width); - - mask_ = new int[height * width]; - std::fill(mask_, mask_ + height * width, -1); - - for (size_t i = 0; i < images_.size(); ++i) { - Item* item = images_[i]; - int itemWidth = item->width(); - int itemHeight = item->height(); - int itemX = item->x(); - int itemY = item->y(); - - QUrl url = item->property("source").toUrl(); - QImage img(url.path()); - const QRgb* bits = reinterpret_cast<const QRgb*>(img.constBits()); - for (int x = 0; x < itemWidth; ++x) { - for (int y = 0; y < itemHeight; ++y) { - if (qAlpha(bits[y * itemWidth + x]) > 128) { - mask_[(itemY + y) * width + (x + itemX)] = i; - } - } - } - } -} - -void MaskedContainer::mousePressEvent(MouseEvent* mouse) { -#if QT_4 - qreal x = mouse->pos().x(); - qreal y = mouse->pos().y(); -#elif QT_5 - int x = mouse->x(); - int y = mouse->y(); -#endif // QT_VERSION - - if (width() * y + x > width() * height()) { - mouse->ignore(); - } else { - int idx = mask_[indexOfMask(x, y)]; - if (idx >= 0) { - AttributedMouseEvent ev(images_[idx]); - emit pressed(&ev); - grabMouse(); - mouse->accept(); - } else { - mouse->ignore(); - } - } -} - -void MaskedContainer::mouseReleaseEvent(MouseEvent* mouse) { -#if QT_4 - qreal x = mouse->pos().x(); - qreal y = mouse->pos().y(); -#elif QT_5 - int x = mouse->x(); - int y = mouse->y(); -#endif // QT_VERSION - - if (width() * y + x > width() * height()) { - return; - } else { - int idx = mask_[indexOfMask(x, y)]; - if (idx >= 0) { - AttributedMouseEvent ev(images_[idx]); - emit released(&ev); - } else { - emit released(NULL); - } - } - ungrabMouse(); -} - -MaskedContainer::~MaskedContainer() { - delete[] mask_; -} diff --git a/src/components/qt_hmi/qml_plugins/hw_buttons/masked_container.h b/src/components/qt_hmi/qml_plugins/hw_buttons/masked_container.h deleted file mode 100644 index ae5303a693..0000000000 --- a/src/components/qt_hmi/qml_plugins/hw_buttons/masked_container.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * \file masked_container.h - * \brief MaskedContainer class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_MASKED_CONTAINER_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_MASKED_CONTAINER_H_ - -#include <vector> -#include <QtCore/QString> - -#include "qt_version.h" - -#if QT_4 -#include <QtDeclarative/QDeclarativeItem> -typedef QDeclarativeItem Item; -typedef QGraphicsSceneMouseEvent MouseEvent; -#elif QT_5 -#include <QtQuick/QQuickItem> -typedef QQuickItem Item; -typedef QMouseEvent MouseEvent; -#endif - -#include "attributed_mouse_event.h" - -class MaskedContainer : public Item { - Q_OBJECT - Q_DISABLE_COPY(MaskedContainer) - - public: - explicit MaskedContainer(Item* parent = 0); - ~MaskedContainer(); - -signals: - void pressed(AttributedMouseEvent* attr); - void released(AttributedMouseEvent* attr); - - protected: - virtual void componentComplete(); - virtual void mousePressEvent(MouseEvent* event); - virtual void mouseReleaseEvent(MouseEvent* event); - - private: - std::vector<Item*> images_; - int* mask_; - -#if QT_4 - int indexOfMask(qreal x, qreal y) const { - return static_cast<int>(y * width() + x); - } -#elif QT_5 - int indexOfMask(int x, int y) const { - return y * static_cast<int>(width()) + x; - } -#endif // QT_VERSION -}; - -QML_DECLARE_TYPE(MaskedContainer) - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_MASKED_CONTAINER_H_ diff --git a/src/components/qt_hmi/qml_plugins/hw_buttons/qmldir b/src/components/qt_hmi/qml_plugins/hw_buttons/qmldir deleted file mode 100644 index a4bae8144b..0000000000 --- a/src/components/qt_hmi/qml_plugins/hw_buttons/qmldir +++ /dev/null @@ -1,3 +0,0 @@ -module com.ford.sdl.hmi.hw_buttons -plugin HWButtons - diff --git a/src/components/qt_hmi/qml_plugins/hw_buttons/qt_version.h b/src/components/qt_hmi/qml_plugins/hw_buttons/qt_version.h deleted file mode 100644 index a700a87919..0000000000 --- a/src/components/qt_hmi/qml_plugins/hw_buttons/qt_version.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * @file qt_version.h - * @brief Defines for check Qt version. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_QT_VERSION_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_QT_VERSION_H_ - -#include <qglobal.h> - -#define QT_4 \ - ((QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)) && \ - (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))) - -#define QT_5 \ - ((QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) && \ - (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))) - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_HW_BUTTONS_QT_VERSION_H_ diff --git a/src/components/qt_hmi/qml_plugins/log4cxx/CMakeLists.txt b/src/components/qt_hmi/qml_plugins/log4cxx/CMakeLists.txt deleted file mode 100644 index 1a5baadaa9..0000000000 --- a/src/components/qt_hmi/qml_plugins/log4cxx/CMakeLists.txt +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright (c) 2013, Ford Motor Company -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with the -# distribution. -# -# Neither the name of the Ford Motor Company nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -cmake_minimum_required(VERSION 2.8.11) - -set(target QmlLog4cxx) -set(destination com/ford/sdl/hmi/log4cxx) -set(install_destination bin/hmi/plugins/${destination}) -set(library_name ${CMAKE_SHARED_LIBRARY_PREFIX}${target}${CMAKE_SHARED_LIBRARY_SUFFIX}) -include_directories( - ${LOG4CXX_INCLUDE_DIRECTORY} -) - -set(CMAKE_AUTOMOC ON) -set(SOURCES log4cxx_plugin.cc) - -add_library(${target} SHARED ${SOURCES}) - -if (${qt_version} MATCHES "4.8.5") - qt4_use_modules(${target} Core Declarative) - set(model_dir ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt4/) - set(copy_destination ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt4/${destination}) -elseif (${qt_version} MATCHES "5.1.0") - qt5_use_modules(${target} Core Qml) - set(model_dir ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt5/) - set(copy_destination ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt5/${destination}) -endif () - -target_link_libraries(${target} log4cxx -L${LOG4CXX_LIBS_DIRECTORY}) - -add_custom_target(copy_library_${target} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/${library_name} - ${copy_destination} - DEPENDS ${target} - COMMENT "Copying library ${library_name}") -file(COPY qmldir DESTINATION ${copy_destination}) - -install(TARGETS ${target} - DESTINATION ${install_destination} - PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE - GROUP_READ GROUP_EXECUTE - WORLD_READ WORLD_EXECUTE -) -install(FILES qmldir DESTINATION ${install_destination}) - -if (CMAKE_SYSTEM_NAME STREQUAL "Linux") - add_custom_target(qmltypes_${target} ALL - COMMAND LD_LIBRARY_PATH=${3RD_PARTY_INSTALL_PREFIX_ARCH}/lib ${qmlplugindump_binary} -nonrelocatable com.ford.sdl.hmi.log4cxx 1.0 ${model_dir} > ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes 2>/dev/null - DEPENDS copy_library_${target} - ) - add_custom_target(copy_qmltypes_${target} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes - ${copy_destination} - DEPENDS qmltypes_${target} - ) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes DESTINATION ${install_destination}) -endif () diff --git a/src/components/qt_hmi/qml_plugins/log4cxx/log4cxx_plugin.cc b/src/components/qt_hmi/qml_plugins/log4cxx/log4cxx_plugin.cc deleted file mode 100644 index 8b7efe23d7..0000000000 --- a/src/components/qt_hmi/qml_plugins/log4cxx/log4cxx_plugin.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * @file log4cxx_plugin.cpp - * @brief Log4cxxPlugin class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "log4cxx_plugin.h" - -#include <log4cxx/log4cxx.h> -#include <log4cxx/propertyconfigurator.h> - -log4cxx::LoggerPtr logger_ = - log4cxx::LoggerPtr(log4cxx::Logger::getLogger("Log4cxxPlugin")); - -#if QT_4 -void smartLogger(QtMsgType type, const char* msg) { - log4cxx::spi::LocationInfo location("", "", -1); - - switch (type) { - case QtDebugMsg: - (*logger_).debug(msg, location); - break; - case QtWarningMsg: - (*logger_).warn(msg, location); - break; - case QtCriticalMsg: - (*logger_).error(msg, location); - break; - case QtFatalMsg: - (*logger_).fatal(msg, location); - break; - default: - (*logger_).info(msg, location); - break; - } -} -#elif QT_5 -void smartLogger(QtMsgType type, - const QMessageLogContext& context, - const QString& msg) { - log4cxx::spi::LocationInfo location( - context.file, context.function ? context.function : "", context.line); - switch (type) { - case QtDebugMsg: - (*logger_).debug(msg.toStdString(), location); - break; - case QtWarningMsg: - (*logger_).warn(msg.toStdString(), location); - break; - case QtCriticalMsg: - (*logger_).error(msg.toStdString(), location); - break; - case QtFatalMsg: - (*logger_).fatal(msg.toStdString(), location); - break; - default: - (*logger_).info(msg.toStdString(), location); - break; - } -} -#endif // QT_VERSION - -void Log4cxxPlugin::registerTypes(const char* uri) { - log4cxx::PropertyConfigurator::configure("log4cxx.properties"); - -#if QT_4 - qInstallMsgHandler(smartLogger); -#elif QT_5 - qInstallMessageHandler(smartLogger); -#endif // QT_VERSION - - // @uri com.ford.sdl.hmi.log4cxx - qmlRegisterType<Logger>(uri, 1, 0, "Logger"); - // Use standart console API Javascript - // See Debugging QML Applications in Qt documentation -} - -#if QT_4 -Q_EXPORT_PLUGIN2(QmlLog4cxx, Log4cxxPlugin) -#endif // QT_4 diff --git a/src/components/qt_hmi/qml_plugins/log4cxx/log4cxx_plugin.h b/src/components/qt_hmi/qml_plugins/log4cxx/log4cxx_plugin.h deleted file mode 100644 index e8d1ff3347..0000000000 --- a/src/components/qt_hmi/qml_plugins/log4cxx/log4cxx_plugin.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * @file log4cxx_plugin.h - * @brief Log4cxxPlugin class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_LOG4CXX_LOG4CXX_PLUGIN_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_LOG4CXX_LOG4CXX_PLUGIN_H_ - -#include <qglobal.h> - -#define QT_4 \ - ((QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)) && \ - (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))) - -#define QT_5 \ - ((QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) && \ - (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))) - -#if QT_4 -#include <QtDeclarative/qdeclarative.h> -#include <QtDeclarative/QDeclarativeExtensionPlugin> -typedef QDeclarativeExtensionPlugin ExtensionPlugin; -#elif QT_5 -#include <QtQml/qqml.h> -#include <QtQml/QQmlExtensionPlugin> -typedef QQmlExtensionPlugin ExtensionPlugin; -#endif // QT_VERSION - -class Logger : public QObject { - Q_OBJECT - Q_DISABLE_COPY(Logger) - - public: - explicit Logger(QObject* parent = 0) : QObject(parent) {} -}; - -class Log4cxxPlugin : public ExtensionPlugin { - Q_OBJECT -#if QT_5 - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") -#endif // QT_5 - - public: - void registerTypes(const char* uri); -}; - -QML_DECLARE_TYPE(Logger) - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_LOG4CXX_LOG4CXX_PLUGIN_H_ diff --git a/src/components/qt_hmi/qml_plugins/log4cxx/qmldir b/src/components/qt_hmi/qml_plugins/log4cxx/qmldir deleted file mode 100644 index ddd7bc99a5..0000000000 --- a/src/components/qt_hmi/qml_plugins/log4cxx/qmldir +++ /dev/null @@ -1,3 +0,0 @@ -module com.ford.sdl.hmi.log4cxx -plugin QmlLog4cxx - diff --git a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/CMakeLists.txt b/src/components/qt_hmi/qml_plugins/named_pipe_notifier/CMakeLists.txt deleted file mode 100644 index e777e95263..0000000000 --- a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/CMakeLists.txt +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright (c) 2013, Ford Motor Company -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with the -# distribution. -# -# Neither the name of the Ford Motor Company nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - -cmake_minimum_required(VERSION 2.8.11) - -set(target NamedPipeNotifier) -set(destination com/ford/sdl/hmi/named_pipe_notifier) -set(install_destination bin/hmi/plugins/${destination}) -set(library_name ${CMAKE_SHARED_LIBRARY_PREFIX}${target}${CMAKE_SHARED_LIBRARY_SUFFIX}) - -set(CMAKE_AUTOMOC ON) -set(SOURCES - named_pipe_notifier.cc - named_pipe_notifier_plugin.cc -) - -add_library(${target} SHARED ${SOURCES}) - -if (${qt_version} MATCHES "4.8.5") - qt4_use_modules(${target} Core Declarative) - set(model_dir ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt4/) - set(copy_destination ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt4/${destination}) -elseif (${qt_version} MATCHES "5.1.0") - qt5_use_modules(${target} Core Qml) - set(model_dir ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt5/) - set(copy_destination ${CMAKE_CURRENT_BINARY_DIR}/../../qml_model_qt5/${destination}) -endif () - -add_custom_target(copy_library_${target} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/${library_name} - ${copy_destination} - DEPENDS ${target} - COMMENT "Copying library ${library_name}") -file(COPY qmldir DESTINATION ${copy_destination}) - -install(TARGETS ${target} - DESTINATION ${install_destination} - PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE - GROUP_READ GROUP_EXECUTE - WORLD_READ WORLD_EXECUTE -) -install(FILES qmldir DESTINATION ${install_destination}) - -if (CMAKE_SYSTEM_NAME STREQUAL "Linux") - add_custom_target(qmltypes_${target} ALL - COMMAND ${qmlplugindump_binary} -nonrelocatable com.ford.sdl.hmi.named_pipe_notifier 1.0 ${model_dir} > ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes 2>/dev/null - DEPENDS copy_library_${target} - ) - add_custom_target(copy_qmltypes_${target} ALL - COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes - ${copy_destination} - DEPENDS qmltypes_${target} - ) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes DESTINATION ${install_destination}) -endif () diff --git a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.cc b/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.cc deleted file mode 100644 index 46b057dcca..0000000000 --- a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * @file named_pipe_notifier.cc - * @brief NamedPipeNotifier class implementation file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include <fcntl.h> -#include <sys/select.h> -#include <sys/stat.h> -#include <errno.h> - -#include "named_pipe_notifier.h" - -void NamedPipeNotifier::run() { - int fd = ::open(name_.toLocal8Bit().constData(), O_RDONLY); - if (-1 == fd) { // if open() fails - if ((errno != ENOENT) // we can only manage lack of pipe - || - (-1 == ::mkfifo(name_.toLocal8Bit().constData(), 0666)) || - (-1 == (fd = ::open(name_.toLocal8Bit().constData(), O_RDONLY)))) { - emit openFailed(); - return; - } - } - ::fd_set readfds; - FD_ZERO(&readfds); - FD_SET(fd, &readfds); - // this select() is supposed to block till pipe is empty - if (::select(fd + 1, &readfds, 0, 0, 0) > 0) { - emit readyRead(); - } -} diff --git a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.h b/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.h deleted file mode 100644 index cdca06466f..0000000000 --- a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * \file named_pipe_notifier.h - * \brief NamedPipeNotifier class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_NAMED_PIPE_NOTIFIER_NAMED_PIPE_NOTIFIER_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_NAMED_PIPE_NOTIFIER_NAMED_PIPE_NOTIFIER_H_ - -#include <QThread> - -class NamedPipeNotifier : public QThread { - Q_OBJECT - Q_PROPERTY(QString name READ name WRITE set_name NOTIFY nameChanged) - QString name_; - - public: - explicit NamedPipeNotifier(QObject* parent = 0) : QThread(parent) {} - - const QString& name() const { - return name_; - } - void set_name(const QString& name) { - if (name_ != name) { - name_ = name; - emit nameChanged(); - } - } - - protected: - virtual void run(); - -signals: - void nameChanged(); - void readyRead(); - void openFailed(); -}; - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_NAMED_PIPE_NOTIFIER_NAMED_PIPE_NOTIFIER_H_ diff --git a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier_plugin.cc b/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier_plugin.cc deleted file mode 100644 index dacb11ad93..0000000000 --- a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier_plugin.cc +++ /dev/null @@ -1,52 +0,0 @@ -/* - * \file named_pipe_notifier_plugin.cc - * \brief NamedPipeNotifierPlugin class implementation file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "named_pipe_notifier_plugin.h" - -#if QT_4 -#include <QtDeclarative/qdeclarative.h> -#elif QT_5 -#include <QtQml/qqml.h> -#endif // QT_VERSION - -#include "named_pipe_notifier.h" - -void NamedPipeNotifierPlugin::registerTypes(const char* uri) { - // @uri com.ford.sdl.hmi.named_pipe_notifier - qmlRegisterType<NamedPipeNotifier>(uri, 1, 0, "NamedPipeNotifier"); -} - -#if QT_4 -Q_EXPORT_PLUGIN2(NamedPipeNotifier, NamedPipeNotifierPlugin) -#endif // QT_4 diff --git a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier_plugin.h b/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier_plugin.h deleted file mode 100644 index 426df483a2..0000000000 --- a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/named_pipe_notifier_plugin.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * \file named_pipe_notifier_plugin.h - * \brief NamedPipeNotifierPlugin class header file. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_NAMED_PIPE_NOTIFIER_NAMED_PIPE_NOTIFIER_PLUGIN_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_NAMED_PIPE_NOTIFIER_NAMED_PIPE_NOTIFIER_PLUGIN_H_ - -#include "qt_version.h" - -#if QT_4 -#include <QtDeclarative/QDeclarativeExtensionPlugin> -typedef QDeclarativeExtensionPlugin ExtensionPlugin; -#elif QT_5 -#include <QtQml/QQmlExtensionPlugin> -typedef QQmlExtensionPlugin ExtensionPlugin; -#endif // QT_5 - -class NamedPipeNotifierPlugin : public ExtensionPlugin { - Q_OBJECT - -#if QT_5 - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") -#endif // QT_5 - - public: - void registerTypes(const char* uri); -}; - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_NAMED_PIPE_NOTIFIER_NAMED_PIPE_NOTIFIER_PLUGIN_H_ diff --git a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/qmldir b/src/components/qt_hmi/qml_plugins/named_pipe_notifier/qmldir deleted file mode 100644 index 86ede716ee..0000000000 --- a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/qmldir +++ /dev/null @@ -1,2 +0,0 @@ -module com.ford.sdl.hmi.named_pipe_notifier -plugin NamedPipeNotifier diff --git a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/qt_version.h b/src/components/qt_hmi/qml_plugins/named_pipe_notifier/qt_version.h deleted file mode 100644 index 0e2456d732..0000000000 --- a/src/components/qt_hmi/qml_plugins/named_pipe_notifier/qt_version.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * @file qt_version.h - * @brief Defines for check Qt version. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef SRC_COMPONENTS_QT_HMI_QML_PLUGINS_NAMED_PIPE_NOTIFIER_QT_VERSION_H_ -#define SRC_COMPONENTS_QT_HMI_QML_PLUGINS_NAMED_PIPE_NOTIFIER_QT_VERSION_H_ - -#include <qglobal.h> - -#define QT_4 \ - ((QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)) && \ - (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))) - -#define QT_5 \ - ((QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) && \ - (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))) - -#endif // SRC_COMPONENTS_QT_HMI_QML_PLUGINS_NAMED_PIPE_NOTIFIER_QT_VERSION_H_ diff --git a/src/components/qt_hmi/res/IVSU/PROPRIETARY_REQUEST b/src/components/qt_hmi/res/IVSU/PROPRIETARY_REQUEST deleted file mode 100644 index ab0a27b552..0000000000 --- a/src/components/qt_hmi/res/IVSU/PROPRIETARY_REQUEST +++ /dev/null @@ -1,2 +0,0 @@ -4Ezay^ק<yi'*';(*'-N)z:nx:Rǂi^^笴ǭO9$ySgږ爞ZDžYhږǜzۭקoj[nruZL -w>^7k͆ diff --git a/src/components/qt_hmi/res/SPT.png b/src/components/qt_hmi/res/SPT.png Binary files differdeleted file mode 100644 index efe0b43dc2..0000000000 --- a/src/components/qt_hmi/res/SPT.png +++ /dev/null diff --git a/src/components/qt_hmi/res/album_art.png b/src/components/qt_hmi/res/album_art.png Binary files differdeleted file mode 100644 index 9000680276..0000000000 --- a/src/components/qt_hmi/res/album_art.png +++ /dev/null diff --git a/src/components/qt_hmi/res/app_911_assist.png b/src/components/qt_hmi/res/app_911_assist.png Binary files differdeleted file mode 100644 index dc7d3c6630..0000000000 --- a/src/components/qt_hmi/res/app_911_assist.png +++ /dev/null diff --git a/src/components/qt_hmi/res/app_vehicle_info.png b/src/components/qt_hmi/res/app_vehicle_info.png Binary files differdeleted file mode 100644 index 1542c787db..0000000000 --- a/src/components/qt_hmi/res/app_vehicle_info.png +++ /dev/null diff --git a/src/components/qt_hmi/res/apps.png b/src/components/qt_hmi/res/apps.png Binary files differdeleted file mode 100644 index 48d8284b2a..0000000000 --- a/src/components/qt_hmi/res/apps.png +++ /dev/null diff --git a/src/components/qt_hmi/res/arrow.png b/src/components/qt_hmi/res/arrow.png Binary files differdeleted file mode 100644 index 4c215b2bf7..0000000000 --- a/src/components/qt_hmi/res/arrow.png +++ /dev/null diff --git a/src/components/qt_hmi/res/blue_ball.png b/src/components/qt_hmi/res/blue_ball.png Binary files differdeleted file mode 100644 index d4db3f96ae..0000000000 --- a/src/components/qt_hmi/res/blue_ball.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/long_oval_btn.png b/src/components/qt_hmi/res/buttons/long_oval_btn.png Binary files differdeleted file mode 100644 index 375195bec3..0000000000 --- a/src/components/qt_hmi/res/buttons/long_oval_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/long_oval_pressed_btn.png b/src/components/qt_hmi/res/buttons/long_oval_pressed_btn.png Binary files differdeleted file mode 100644 index bd4ba813d5..0000000000 --- a/src/components/qt_hmi/res/buttons/long_oval_pressed_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/longest_oval_btn.png b/src/components/qt_hmi/res/buttons/longest_oval_btn.png Binary files differdeleted file mode 100644 index 6ed0293aab..0000000000 --- a/src/components/qt_hmi/res/buttons/longest_oval_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/longest_oval_btn_pressed.png b/src/components/qt_hmi/res/buttons/longest_oval_btn_pressed.png Binary files differdeleted file mode 100644 index 73ee397da6..0000000000 --- a/src/components/qt_hmi/res/buttons/longest_oval_btn_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/oval_btn_bottom.png b/src/components/qt_hmi/res/buttons/oval_btn_bottom.png Binary files differdeleted file mode 100644 index 4964b4787a..0000000000 --- a/src/components/qt_hmi/res/buttons/oval_btn_bottom.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/oval_btn_left.png b/src/components/qt_hmi/res/buttons/oval_btn_left.png Binary files differdeleted file mode 100644 index 4818162a19..0000000000 --- a/src/components/qt_hmi/res/buttons/oval_btn_left.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/oval_btn_pressed_left.png b/src/components/qt_hmi/res/buttons/oval_btn_pressed_left.png Binary files differdeleted file mode 100644 index 29c47e189f..0000000000 --- a/src/components/qt_hmi/res/buttons/oval_btn_pressed_left.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/oval_btn_pressed_right.png b/src/components/qt_hmi/res/buttons/oval_btn_pressed_right.png Binary files differdeleted file mode 100644 index c7d7d53ab6..0000000000 --- a/src/components/qt_hmi/res/buttons/oval_btn_pressed_right.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/oval_btn_right.png b/src/components/qt_hmi/res/buttons/oval_btn_right.png Binary files differdeleted file mode 100644 index d566ac8ca5..0000000000 --- a/src/components/qt_hmi/res/buttons/oval_btn_right.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/oval_btn_top.png b/src/components/qt_hmi/res/buttons/oval_btn_top.png Binary files differdeleted file mode 100644 index 787e0990e2..0000000000 --- a/src/components/qt_hmi/res/buttons/oval_btn_top.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/player_next_btn.png b/src/components/qt_hmi/res/buttons/player_next_btn.png Binary files differdeleted file mode 100644 index c432068d4a..0000000000 --- a/src/components/qt_hmi/res/buttons/player_next_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/player_next_pressed_btn.png b/src/components/qt_hmi/res/buttons/player_next_pressed_btn.png Binary files differdeleted file mode 100644 index aab3df8914..0000000000 --- a/src/components/qt_hmi/res/buttons/player_next_pressed_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/player_pause_btn.png b/src/components/qt_hmi/res/buttons/player_pause_btn.png Binary files differdeleted file mode 100644 index a9443feb8b..0000000000 --- a/src/components/qt_hmi/res/buttons/player_pause_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/player_pause_pressed_btn.png b/src/components/qt_hmi/res/buttons/player_pause_pressed_btn.png Binary files differdeleted file mode 100644 index 9c409c8f17..0000000000 --- a/src/components/qt_hmi/res/buttons/player_pause_pressed_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/player_play_btn.png b/src/components/qt_hmi/res/buttons/player_play_btn.png Binary files differdeleted file mode 100644 index f185e94461..0000000000 --- a/src/components/qt_hmi/res/buttons/player_play_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/player_play_pressed_btn.png b/src/components/qt_hmi/res/buttons/player_play_pressed_btn.png Binary files differdeleted file mode 100644 index ecbb4f2ef0..0000000000 --- a/src/components/qt_hmi/res/buttons/player_play_pressed_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/player_prev_btn.png b/src/components/qt_hmi/res/buttons/player_prev_btn.png Binary files differdeleted file mode 100644 index acc2a71de3..0000000000 --- a/src/components/qt_hmi/res/buttons/player_prev_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/player_prev_pressed_btn.png b/src/components/qt_hmi/res/buttons/player_prev_pressed_btn.png Binary files differdeleted file mode 100644 index c6eefc09c9..0000000000 --- a/src/components/qt_hmi/res/buttons/player_prev_pressed_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/preset_btn.png b/src/components/qt_hmi/res/buttons/preset_btn.png Binary files differdeleted file mode 100644 index 58c296a4e4..0000000000 --- a/src/components/qt_hmi/res/buttons/preset_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/preset_pressed_btn.png b/src/components/qt_hmi/res/buttons/preset_pressed_btn.png Binary files differdeleted file mode 100644 index fd7606fbd6..0000000000 --- a/src/components/qt_hmi/res/buttons/preset_pressed_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/round_btn.png b/src/components/qt_hmi/res/buttons/round_btn.png Binary files differdeleted file mode 100644 index 3add8dd21c..0000000000 --- a/src/components/qt_hmi/res/buttons/round_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/round_pressed_btn.png b/src/components/qt_hmi/res/buttons/round_pressed_btn.png Binary files differdeleted file mode 100644 index b0f8863423..0000000000 --- a/src/components/qt_hmi/res/buttons/round_pressed_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/short_oval_btn.png b/src/components/qt_hmi/res/buttons/short_oval_btn.png Binary files differdeleted file mode 100644 index 99f5e90c3d..0000000000 --- a/src/components/qt_hmi/res/buttons/short_oval_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/short_oval_btn_pressed.png b/src/components/qt_hmi/res/buttons/short_oval_btn_pressed.png Binary files differdeleted file mode 100644 index 6b8bc61d80..0000000000 --- a/src/components/qt_hmi/res/buttons/short_oval_btn_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/zoom.png b/src/components/qt_hmi/res/buttons/zoom.png Binary files differdeleted file mode 100644 index 0df4d25109..0000000000 --- a/src/components/qt_hmi/res/buttons/zoom.png +++ /dev/null diff --git a/src/components/qt_hmi/res/buttons/zoom_pressed.png b/src/components/qt_hmi/res/buttons/zoom_pressed.png Binary files differdeleted file mode 100644 index c67d2c7c55..0000000000 --- a/src/components/qt_hmi/res/buttons/zoom_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/car.png b/src/components/qt_hmi/res/car.png Binary files differdeleted file mode 100644 index 18a21656d0..0000000000 --- a/src/components/qt_hmi/res/car.png +++ /dev/null diff --git a/src/components/qt_hmi/res/change_devices.png b/src/components/qt_hmi/res/change_devices.png Binary files differdeleted file mode 100644 index 24a43a0d32..0000000000 --- a/src/components/qt_hmi/res/change_devices.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/AC_off.png b/src/components/qt_hmi/res/climate/AC_off.png Binary files differdeleted file mode 100644 index 8554ddfb4c..0000000000 --- a/src/components/qt_hmi/res/climate/AC_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/AC_on.png b/src/components/qt_hmi/res/climate/AC_on.png Binary files differdeleted file mode 100644 index c549010d6b..0000000000 --- a/src/components/qt_hmi/res/climate/AC_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/climate_round_off_btn.png b/src/components/qt_hmi/res/climate/climate_round_off_btn.png Binary files differdeleted file mode 100644 index 411f003938..0000000000 --- a/src/components/qt_hmi/res/climate/climate_round_off_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/climate_round_on_btn.png b/src/components/qt_hmi/res/climate/climate_round_on_btn.png Binary files differdeleted file mode 100644 index 691f6e3bf8..0000000000 --- a/src/components/qt_hmi/res/climate/climate_round_on_btn.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/defrost_off.png b/src/components/qt_hmi/res/climate/defrost_off.png Binary files differdeleted file mode 100644 index 22e384dbc0..0000000000 --- a/src/components/qt_hmi/res/climate/defrost_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/defrost_on.png b/src/components/qt_hmi/res/climate/defrost_on.png Binary files differdeleted file mode 100644 index 9b0fc7aa43..0000000000 --- a/src/components/qt_hmi/res/climate/defrost_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/face_off.png b/src/components/qt_hmi/res/climate/face_off.png Binary files differdeleted file mode 100644 index 72448d6aaf..0000000000 --- a/src/components/qt_hmi/res/climate/face_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/face_on.png b/src/components/qt_hmi/res/climate/face_on.png Binary files differdeleted file mode 100644 index 4ed6089800..0000000000 --- a/src/components/qt_hmi/res/climate/face_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/feet_off.png b/src/components/qt_hmi/res/climate/feet_off.png Binary files differdeleted file mode 100644 index bac7bc9cfb..0000000000 --- a/src/components/qt_hmi/res/climate/feet_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/feet_on.png b/src/components/qt_hmi/res/climate/feet_on.png Binary files differdeleted file mode 100644 index 6d7a3b7a14..0000000000 --- a/src/components/qt_hmi/res/climate/feet_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/headed_dash_off.png b/src/components/qt_hmi/res/climate/headed_dash_off.png Binary files differdeleted file mode 100644 index cf5168b559..0000000000 --- a/src/components/qt_hmi/res/climate/headed_dash_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/headed_dash_on.png b/src/components/qt_hmi/res/climate/headed_dash_on.png Binary files differdeleted file mode 100644 index c46b690f7f..0000000000 --- a/src/components/qt_hmi/res/climate/headed_dash_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/heated_seat_off.png b/src/components/qt_hmi/res/climate/heated_seat_off.png Binary files differdeleted file mode 100644 index 11a32048c9..0000000000 --- a/src/components/qt_hmi/res/climate/heated_seat_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/heated_seat_on.png b/src/components/qt_hmi/res/climate/heated_seat_on.png Binary files differdeleted file mode 100644 index 8211eb79e5..0000000000 --- a/src/components/qt_hmi/res/climate/heated_seat_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/heated_wheel_off.png b/src/components/qt_hmi/res/climate/heated_wheel_off.png Binary files differdeleted file mode 100644 index 5956f5a3dc..0000000000 --- a/src/components/qt_hmi/res/climate/heated_wheel_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/climate/heated_wheel_on.png b/src/components/qt_hmi/res/climate/heated_wheel_on.png Binary files differdeleted file mode 100644 index af3c2598da..0000000000 --- a/src/components/qt_hmi/res/climate/heated_wheel_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/DownButton.png b/src/components/qt_hmi/res/controlButtons/DownButton.png Binary files differdeleted file mode 100644 index fd44c5438c..0000000000 --- a/src/components/qt_hmi/res/controlButtons/DownButton.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/DownButton_pressed.png b/src/components/qt_hmi/res/controlButtons/DownButton_pressed.png Binary files differdeleted file mode 100644 index 013672bbf9..0000000000 --- a/src/components/qt_hmi/res/controlButtons/DownButton_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/LeftButton.png b/src/components/qt_hmi/res/controlButtons/LeftButton.png Binary files differdeleted file mode 100644 index e65dd5ce04..0000000000 --- a/src/components/qt_hmi/res/controlButtons/LeftButton.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/LeftButton_pressed.png b/src/components/qt_hmi/res/controlButtons/LeftButton_pressed.png Binary files differdeleted file mode 100644 index 8df2e136ef..0000000000 --- a/src/components/qt_hmi/res/controlButtons/LeftButton_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/OkButton.png b/src/components/qt_hmi/res/controlButtons/OkButton.png Binary files differdeleted file mode 100644 index 9e82fe298b..0000000000 --- a/src/components/qt_hmi/res/controlButtons/OkButton.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/OkButton_pressed.png b/src/components/qt_hmi/res/controlButtons/OkButton_pressed.png Binary files differdeleted file mode 100644 index 478d9ef7e5..0000000000 --- a/src/components/qt_hmi/res/controlButtons/OkButton_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/RightButton.png b/src/components/qt_hmi/res/controlButtons/RightButton.png Binary files differdeleted file mode 100644 index 24e0f50a88..0000000000 --- a/src/components/qt_hmi/res/controlButtons/RightButton.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/RightButton_pressed.png b/src/components/qt_hmi/res/controlButtons/RightButton_pressed.png Binary files differdeleted file mode 100644 index 9e70d8d729..0000000000 --- a/src/components/qt_hmi/res/controlButtons/RightButton_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/UpButton.png b/src/components/qt_hmi/res/controlButtons/UpButton.png Binary files differdeleted file mode 100644 index 3547a7fc70..0000000000 --- a/src/components/qt_hmi/res/controlButtons/UpButton.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/UpButton_pressed.png b/src/components/qt_hmi/res/controlButtons/UpButton_pressed.png Binary files differdeleted file mode 100644 index 2cbcfbe679..0000000000 --- a/src/components/qt_hmi/res/controlButtons/UpButton_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/backGroundControllButtons.png b/src/components/qt_hmi/res/controlButtons/backGroundControllButtons.png Binary files differdeleted file mode 100644 index 041d49e7e9..0000000000 --- a/src/components/qt_hmi/res/controlButtons/backGroundControllButtons.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/vrButton.png b/src/components/qt_hmi/res/controlButtons/vrButton.png Binary files differdeleted file mode 100644 index af09282dff..0000000000 --- a/src/components/qt_hmi/res/controlButtons/vrButton.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/vrButton_pressed.png b/src/components/qt_hmi/res/controlButtons/vrButton_pressed.png Binary files differdeleted file mode 100644 index 9206e42a95..0000000000 --- a/src/components/qt_hmi/res/controlButtons/vrButton_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/controlButtons/vrImage.png b/src/components/qt_hmi/res/controlButtons/vrImage.png Binary files differdeleted file mode 100644 index 2f6bac2d9f..0000000000 --- a/src/components/qt_hmi/res/controlButtons/vrImage.png +++ /dev/null diff --git a/src/components/qt_hmi/res/find_apps.png b/src/components/qt_hmi/res/find_apps.png Binary files differdeleted file mode 100644 index 55a9a28676..0000000000 --- a/src/components/qt_hmi/res/find_apps.png +++ /dev/null diff --git a/src/components/qt_hmi/res/gear.png b/src/components/qt_hmi/res/gear.png Binary files differdeleted file mode 100644 index b1eeba091c..0000000000 --- a/src/components/qt_hmi/res/gear.png +++ /dev/null diff --git a/src/components/qt_hmi/res/hd_logo_off.png b/src/components/qt_hmi/res/hd_logo_off.png Binary files differdeleted file mode 100644 index 80c9d58b46..0000000000 --- a/src/components/qt_hmi/res/hd_logo_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/hd_logo_on.png b/src/components/qt_hmi/res/hd_logo_on.png Binary files differdeleted file mode 100644 index dfc3d4ccf1..0000000000 --- a/src/components/qt_hmi/res/hd_logo_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/initial.wav b/src/components/qt_hmi/res/initial.wav Binary files differdeleted file mode 100644 index 61a549fbc6..0000000000 --- a/src/components/qt_hmi/res/initial.wav +++ /dev/null diff --git a/src/components/qt_hmi/res/install_apps.png b/src/components/qt_hmi/res/install_apps.png Binary files differdeleted file mode 100644 index dc33c0965c..0000000000 --- a/src/components/qt_hmi/res/install_apps.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/compass.png b/src/components/qt_hmi/res/nav/compass.png Binary files differdeleted file mode 100644 index 15c73ee878..0000000000 --- a/src/components/qt_hmi/res/nav/compass.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/current_street.png b/src/components/qt_hmi/res/nav/current_street.png Binary files differdeleted file mode 100644 index e289c054ff..0000000000 --- a/src/components/qt_hmi/res/nav/current_street.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/delete_icon.png b/src/components/qt_hmi/res/nav/delete_icon.png Binary files differdeleted file mode 100644 index 826b5faacf..0000000000 --- a/src/components/qt_hmi/res/nav/delete_icon.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/delete_icon_black.png b/src/components/qt_hmi/res/nav/delete_icon_black.png Binary files differdeleted file mode 100644 index 56e35c759b..0000000000 --- a/src/components/qt_hmi/res/nav/delete_icon_black.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/dest_icon.png b/src/components/qt_hmi/res/nav/dest_icon.png Binary files differdeleted file mode 100644 index dadcfe25cf..0000000000 --- a/src/components/qt_hmi/res/nav/dest_icon.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/dest_icon_black.png b/src/components/qt_hmi/res/nav/dest_icon_black.png Binary files differdeleted file mode 100644 index 75c99bc4aa..0000000000 --- a/src/components/qt_hmi/res/nav/dest_icon_black.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/map.png b/src/components/qt_hmi/res/nav/map.png Binary files differdeleted file mode 100644 index 328bca44cf..0000000000 --- a/src/components/qt_hmi/res/nav/map.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/mute_off.png b/src/components/qt_hmi/res/nav/mute_off.png Binary files differdeleted file mode 100644 index f7306d96ae..0000000000 --- a/src/components/qt_hmi/res/nav/mute_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/mute_on.png b/src/components/qt_hmi/res/nav/mute_on.png Binary files differdeleted file mode 100644 index de2a2bb5bc..0000000000 --- a/src/components/qt_hmi/res/nav/mute_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/options.png b/src/components/qt_hmi/res/nav/options.png Binary files differdeleted file mode 100644 index 46887f1061..0000000000 --- a/src/components/qt_hmi/res/nav/options.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/options_in_active.png b/src/components/qt_hmi/res/nav/options_in_active.png Binary files differdeleted file mode 100644 index 601b242bbe..0000000000 --- a/src/components/qt_hmi/res/nav/options_in_active.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/options_pressed.png b/src/components/qt_hmi/res/nav/options_pressed.png Binary files differdeleted file mode 100644 index 42c352a7e8..0000000000 --- a/src/components/qt_hmi/res/nav/options_pressed.png +++ /dev/null diff --git a/src/components/qt_hmi/res/nav/turnArrow.png b/src/components/qt_hmi/res/nav/turnArrow.png Binary files differdeleted file mode 100644 index f37731f5af..0000000000 --- a/src/components/qt_hmi/res/nav/turnArrow.png +++ /dev/null diff --git a/src/components/qt_hmi/res/notes.png b/src/components/qt_hmi/res/notes.png Binary files differdeleted file mode 100644 index 8b4a92fffc..0000000000 --- a/src/components/qt_hmi/res/notes.png +++ /dev/null diff --git a/src/components/qt_hmi/res/phone/contacts.png b/src/components/qt_hmi/res/phone/contacts.png Binary files differdeleted file mode 100644 index a16d518ba8..0000000000 --- a/src/components/qt_hmi/res/phone/contacts.png +++ /dev/null diff --git a/src/components/qt_hmi/res/phone/dnd_off.png b/src/components/qt_hmi/res/phone/dnd_off.png Binary files differdeleted file mode 100644 index 04bb2476c1..0000000000 --- a/src/components/qt_hmi/res/phone/dnd_off.png +++ /dev/null diff --git a/src/components/qt_hmi/res/phone/dnd_on.png b/src/components/qt_hmi/res/phone/dnd_on.png Binary files differdeleted file mode 100644 index 56b9fe7065..0000000000 --- a/src/components/qt_hmi/res/phone/dnd_on.png +++ /dev/null diff --git a/src/components/qt_hmi/res/phone/keypad.png b/src/components/qt_hmi/res/phone/keypad.png Binary files differdeleted file mode 100644 index 1792c8fac8..0000000000 --- a/src/components/qt_hmi/res/phone/keypad.png +++ /dev/null diff --git a/src/components/qt_hmi/res/phone/messages.png b/src/components/qt_hmi/res/phone/messages.png Binary files differdeleted file mode 100644 index b5cbb8e8af..0000000000 --- a/src/components/qt_hmi/res/phone/messages.png +++ /dev/null diff --git a/src/components/qt_hmi/res/phone/more.png b/src/components/qt_hmi/res/phone/more.png Binary files differdeleted file mode 100644 index 908ebf654e..0000000000 --- a/src/components/qt_hmi/res/phone/more.png +++ /dev/null diff --git a/src/components/qt_hmi/res/phone/phone.png b/src/components/qt_hmi/res/phone/phone.png Binary files differdeleted file mode 100644 index 346f36cc33..0000000000 --- a/src/components/qt_hmi/res/phone/phone.png +++ /dev/null diff --git a/src/components/qt_hmi/res/phone/recent.png b/src/components/qt_hmi/res/phone/recent.png Binary files differdeleted file mode 100644 index db54c2f16e..0000000000 --- a/src/components/qt_hmi/res/phone/recent.png +++ /dev/null diff --git a/src/components/qt_hmi/res/phone/texts.png b/src/components/qt_hmi/res/phone/texts.png Binary files differdeleted file mode 100644 index 31c024b1df..0000000000 --- a/src/components/qt_hmi/res/phone/texts.png +++ /dev/null diff --git a/src/components/qt_hmi/res/snow.png b/src/components/qt_hmi/res/snow.png Binary files differdeleted file mode 100644 index 54756bb2f6..0000000000 --- a/src/components/qt_hmi/res/snow.png +++ /dev/null diff --git a/src/components/qt_hmi/res/vehicle/cal.png b/src/components/qt_hmi/res/vehicle/cal.png Binary files differdeleted file mode 100644 index 94d5d44b5a..0000000000 --- a/src/components/qt_hmi/res/vehicle/cal.png +++ /dev/null diff --git a/src/components/qt_hmi/res/vehicle/folders.png b/src/components/qt_hmi/res/vehicle/folders.png Binary files differdeleted file mode 100644 index c5985043df..0000000000 --- a/src/components/qt_hmi/res/vehicle/folders.png +++ /dev/null diff --git a/src/components/qt_hmi/res/vehicle/key_car.png b/src/components/qt_hmi/res/vehicle/key_car.png Binary files differdeleted file mode 100644 index a8e5d9d66c..0000000000 --- a/src/components/qt_hmi/res/vehicle/key_car.png +++ /dev/null diff --git a/src/components/qt_hmi/res/vehicle/sun.png b/src/components/qt_hmi/res/vehicle/sun.png Binary files differdeleted file mode 100644 index 6424d9d210..0000000000 --- a/src/components/qt_hmi/res/vehicle/sun.png +++ /dev/null diff --git a/src/components/qt_hmi/res/warning.png b/src/components/qt_hmi/res/warning.png Binary files differdeleted file mode 100644 index c91cd31d34..0000000000 --- a/src/components/qt_hmi/res/warning.png +++ /dev/null diff --git a/src/components/qt_hmi/res/white_ball.png b/src/components/qt_hmi/res/white_ball.png Binary files differdeleted file mode 100644 index 952714ebe6..0000000000 --- a/src/components/qt_hmi/res/white_ball.png +++ /dev/null diff --git a/src/components/qt_hmi/test/CMakeLists.txt b/src/components/qt_hmi/test/CMakeLists.txt deleted file mode 100644 index 91ec2cd20c..0000000000 --- a/src/components/qt_hmi/test/CMakeLists.txt +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright (c) 2014, Ford Motor Company -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# Redistributions of source code must retain the above copyright notice, this -# list of conditions and the following disclaimer. -# -# Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with the -# distribution. -# -# Neither the name of the Ford Motor Company nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - - -cmake_minimum_required(VERSION 2.8.11) - -set(QT_HMI_TESTS_LIST - ${COMPONENTS_DIR}/qt_hmi/test/src/tst_AddCommand.qml - ${COMPONENTS_DIR}/qt_hmi/test/src/tst_AddSubMenu.qml - ${COMPONENTS_DIR}/qt_hmi/test/src/tst_DeleteCommand.qml - ${COMPONENTS_DIR}/qt_hmi/test/src/tst_ScrollableMessage.qml - ${COMPONENTS_DIR}/qt_hmi/test/src/tst_SetMediaClockTimer.qml - ${COMPONENTS_DIR}/qt_hmi/test/src/tst_Show.qml - ${COMPONENTS_DIR}/qt_hmi/test/src/tst_Slider.qml - ${COMPONENTS_DIR}/qt_hmi/test/readme.txt -) - -include_directories( - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_SOURCE_DIR} -) - -set(CONFIG - warn_on - qmltestcase -) - -set(SOURCES - qt_hmi_test.cc -) - -set(target qt_hmi_test) - -create_test("qt_hmi_test" "${SOURCES}" "") -qt5_use_modules(${target} Core Qml Quick QuickTest) - -foreach( file_i ${QT_HMI_TESTS_LIST}) - file(COPY ${file_i} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) -endforeach( file_i ) - diff --git a/src/components/qt_hmi/test/qt_hmi_test.cc b/src/components/qt_hmi/test/qt_hmi_test.cc deleted file mode 100644 index 0241549ca5..0000000000 --- a/src/components/qt_hmi/test/qt_hmi_test.cc +++ /dev/null @@ -1,33 +0,0 @@ -/* - Copyright (c) 2014, Ford Motor Company - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following - disclaimer in the documentation and/or other materials provided with the - distribution. - - Neither the name of the Ford Motor Company nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -#include <QtQuickTest/quicktest.h> -QUICK_TEST_MAIN(QtHMI) diff --git a/src/components/qt_hmi/test/readme.txt b/src/components/qt_hmi/test/readme.txt deleted file mode 100644 index e169a4eb87..0000000000 --- a/src/components/qt_hmi/test/readme.txt +++ /dev/null @@ -1,14 +0,0 @@ -A few comments on test writting for QML Unit Testing - -- set TestCase inside Item - this allows to send Mouse and keyboard events to controls -- content of QML is reachable directly from tests. It is necessary to add getters into - source QML file to handle internal items -- test execution order is alfabetical. If you need manage this order use numbers in test function names -- all functions that starts with "test_" prefix is treated as test case -- all files that starts with "tst_" prefix will be executed as test set -- for async testing use timer -- each system's entity that changes during RPC must be tested -- test incoming arguments is not necessary as it will be verified by Qt abstraction layer -- run test with following command: - "./qt_hmi_test -import ../git push qml_model_qt5/" - diff --git a/src/components/qt_hmi/test/src/tst_AddCommand.qml b/src/components/qt_hmi/test/src/tst_AddCommand.qml deleted file mode 100644 index e71fb66b11..0000000000 --- a/src/components/qt_hmi/test/src/tst_AddCommand.qml +++ /dev/null @@ -1,320 +0,0 @@ -/** - * @file tst_AddSubMenu.qml - * @brief Test Case for OptionsView. - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtTest 1.0 -import QtQuick 2.0 -import QtMultimedia 5.0 -import com.ford.sdl.hmi.dbus_adapter 1.0 -import com.ford.sdl.hmi.hw_buttons 1.0 -import com.ford.sdl.hmi.log4cxx 1.0 -import "../qml_model_qt5/controls" -import "../qml_model_qt5/views" -import "../qml_model_qt5/hmi_api" as HmiApi -import "../qml_model_qt5/models" -import "../qml_model_qt5/popups" -import "../qml_model_qt5/hmi_api/Common.js" as Common -import "../qml_model_qt5/models/Constants.js" as Constants -import "../qml_model_qt5/models/Internal.js" as Internal - -Item { - width : mainWindowLoader.width - height: mainWindowLoader.height - - Loader { - id: mainWindowLoader - asynchronous : false - } - - TestCase { - name: "AddCommand" - when: windowShown - property var dataContainer - property var sdlUIProxy - property var contentLoader - property var messageModel - - function createView(appID) { - mainWindowLoader.source = "../qml_model_qt5/MainWindow.qml" - var mainWindowObject = mainWindowLoader.item - sdlUIProxy = mainWindowObject.getUIProxy() - dataContainer = mainWindowObject.getDataStorage() - dataContainer.addApplication({appName:"TestAppName", appId:appID}) - } - - function destroyView() { - mainWindowLoader.source = "" - } - - /* - * Test Cases - */ - - function test_01_addCommand_Command_Positive() { - console.debug("enter") - - var initData = { - cmdID: 1, - cmdIcon: { - value: "123.jpg", - imageType: "DYNAMIC" - }, - menuParams: { - position: 500, - menuName: "Command positive" - }, - appID: 1 - } - - createView(initData.appID) - sdlUIProxy.addCommand(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(0).id, initData.cmdID, "Command id") - compare(app.options.get(0).position, initData.menuParams.position, "Command position") - compare(app.options.get(0).name, initData.menuParams.menuName, "Command name") - compare(app.options.get(0).icon.value, initData.cmdIcon.value, "Image path") - - destroyView() - console.debug("exit") - } - - function test_02_addCommand_Without_Position() { - console.debug("enter") - var initData = { - appID: 1, - Commands: [] - } - initData.Commands.push({ - cmdID:1, - comIcon: { - value: "123.jpg", - imageType: "DYNAMIC" - }, - menuParams: { - menuName: "Command 1" - }, - appID: 1 - }) - initData.Commands.push({ - cmdID:2, - cmdIcon: { - value: "345.jpg", - imageType: "DYNAMIC" - }, - menuParams: { - position: 500, - menuName: "Command 1" - }, - appID: 1 - }) - createView(initData.appID) - sdlUIProxy.addCommand(initData.Commands[0]) - sdlUIProxy.addCommand(initData.Commands[1]) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(1).id, initData.Commands[0].cmdID, "Command id") - compare(app.options.get(1).name, initData.Commands[0].menuParams.menuName, "Command name") - compare(app.options.get(0).id, initData.Commands[1].cmdID, "Command id") - compare(app.options.get(0).name, initData.Commands[1].menuParams.menuName, "Command name") - - destroyView() - console.debug("exit") - } - - function test_03_1010_addCommands() { - console.debug("enter") - var initData = { - appID: 1, - Commands: [] - } - - for (var i = 0; i < 1010; i++) { - initData.Commands.push({ - cmdID: i, - cmdIcon: { - value: "", - imageType: "" - }, - menuParams: { - position: i, - menuName: "Command " + i - }, - appID: 1 - }) - } - - createView(initData.appID) - for (var i = 0; i < initData.Commands.length; i++) { - sdlUIProxy.addCommand(initData.Commands[i]) - } - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.count, 1000, "Command count") - - for (var i = 0; i < 1000; i++) { - compare(app.options.get(i).id, initData.Commands[i].cmdID, "Command id") - compare(app.options.get(i).position, initData.Commands[i].menuParams.position, "Command position") - compare(app.options.get(i).name, initData.Commands[i].menuParams.menuName, "Command name") - } - - destroyView() - console.debug("exit") - } - - function test_04_Command_Upper_Bound() { - console.debug("enter") - var initData = { - cmdID: 2000000000, - cmdIcon: { - value: "00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890aAaaaaaaaaaaaaaa", - imageType: "" - }, - menuParams: { - position: 100000, - menuName: "00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890aAaaaaaaaaaaaaaa" - }, - appID: 1 - } - - createView(initData.appID) - sdlUIProxy.addCommand(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(0).id, initData.cmdID, "Command id") - compare(app.options.get(0).position, initData.menuParams.position, "Command position") - compare(app.options.get(0).name.length, initData.menuParams.menuName.length, "Command name") - compare(app.options.get(0).icon.value.length, initData.cmdIcon.value.length, "Image path") - - destroyView() - console.debug("exit") - } - - function test_05_addCommand_Lower_Bound() { - console.debug("enter") - var initData = { - cmdID: 0, - cmdIcon: { - value: "", - imageType: "" - }, - menuParams: { - position: 0, - menuName: "0", - parentID: 0 - }, - appID: 0 - } - - createView(initData.appID) - sdlUIProxy.addCommand(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(0).id, initData.cmdID, "Command id") - compare(app.options.get(0).position, initData.menuParams.position, "Command position") - compare(app.options.get(0).name, initData.menuParams.menuName, "Command name") - compare(app.options.get(0).icon.value, initData.cmdIcon.value, "Image path") - - destroyView() - console.debug("exit") - } - - function test_06_addCommand_With_Fake_Parameter() { - console.debug("enter") - var initData = { - cmdID: 1, - cmdIcon: { - value: "345.jpg", - imageType: "DYNAMIC" - }, - menuParams: { - menuName: "Command fake param", - position: 1, - fakeParam: "fakeParam" - }, - appID: 1 - } - - createView(initData.appID) - sdlUIProxy.addCommand(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(0).id, initData.cmdID, "Command id") - compare(app.options.get(0).position, initData.menuParams.position, "Command position") - compare(app.options.get(0).name, initData.menuParams.menuName, "Command name") - compare(app.options.get(0).icon.value, initData.cmdIcon.value, "Image path") - - destroyView() - console.debug("exit") - } - - function test_07_addCommand_No_Menu_Params() { - console.debug("enter") - - var initData = { - appID: 1, - Commands:[] - } - - var n = 10; - initData.Commands.push({ - cmdID: 123, - menuParams: {}, - appID: 1 - }) - for (var i = 0; i < n; i++) { - initData.Commands.push({ - cmdID: i, - menuParams: { - position: i, - menuName: "Command " + i - }, - appID: 1 - }) - } - - createView(initData.appID) - for (var i = 0; i < initData.Commands.length; i++) { - sdlUIProxy.addCommand(initData.Commands[i]) - } - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.count, initData.Commands.length, "Command count") - compare(app.options.get(n).id, initData.Commands[0].cmdID, "Command 11 id") - compare(app.options.get(0).id, initData.Commands[1].cmdID, "Command 12 id") - - destroyView() - console.debug("exit") - } - } -} diff --git a/src/components/qt_hmi/test/src/tst_AddSubMenu.qml b/src/components/qt_hmi/test/src/tst_AddSubMenu.qml deleted file mode 100644 index 7f9477cab1..0000000000 --- a/src/components/qt_hmi/test/src/tst_AddSubMenu.qml +++ /dev/null @@ -1,328 +0,0 @@ -/** - * @file tst_AddSubMenu.qml - * @brief Test Case for OptionsView. - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - - -import QtTest 1.0 -import QtQuick 2.0 -import QtMultimedia 5.0 -import com.ford.sdl.hmi.dbus_adapter 1.0 -import com.ford.sdl.hmi.hw_buttons 1.0 -import com.ford.sdl.hmi.log4cxx 1.0 -import "../qml_model_qt5/controls" -import "../qml_model_qt5/views" -import "../qml_model_qt5/hmi_api" as HmiApi -import "../qml_model_qt5/models" -import "../qml_model_qt5/popups" -import "../qml_model_qt5/hmi_api/Common.js" as Common -import "../qml_model_qt5/models/Constants.js" as Constants -import "../qml_model_qt5/models/Internal.js" as Internal - -Item { - width : mainWindowLoader.width - height: mainWindowLoader.height - - Loader { - id: mainWindowLoader - asynchronous : false - } - - TestCase { - name: "AddSubMenu" - when: windowShown - property var dataContainer - property var sdlUIProxy - property var contentLoader - property var messageModel - - //initialization for each test - function createMessageView(appID) { - mainWindowLoader.source = "" - mainWindowLoader.source = "../qml_model_qt5/MainWindow.qml" - var mainWindowObject = mainWindowLoader.item - if(!mainWindowObject) - qtest_fail("mainWindowObject is undefined"); - var mainScreen = mainWindowObject.getMainScreen() - mainScreen.visible = true - var warningInfo = mainWindowObject.getWarningInfo() - warningInfo.visible = false - contentLoader = mainWindowObject.getContentLoader() - contentLoader.asynchronous = false - sdlUIProxy = mainWindowObject.getUIProxy() - dataContainer = mainWindowObject.getDataStorage() - dataContainer.addApplication({appName:"TestAppName", appId:appID}) - } - - //cleanup for each test - function destroyView() { - //Clear Loader with MainWindow, which delete own models and views - mainWindowLoader.source = "" - } - - /* - * Test Cases - */ - - //Positive case and in boundary conditions - function test_01_addSubMenu() { - console.debug("enter") - var initData = { - menuID: 1000, - menuParams: { - position: 500, - menuName: "SubMenu positive" - }, - appID: 1 - } - - createMessageView(initData.appID) - sdlUIProxy.addSubMenu(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(0).id, initData.menuID, "SubMenu id") - compare(app.options.get(0).position, initData.menuParams.position, "SubMenu position") - compare(app.options.get(0).name, initData.menuParams.menuName, "SubMenu name") - - destroyView() - console.debug("exit") - } - - // Only mandatory - without Position - function test_02_addSubMenu_WithoutPosition() { - console.debug("enter") - var initData = { - menuID: 1001, - menuParams: { - menuName: "SubMenu mandatory only" - }, - appID: 1 - } - - createMessageView(initData.appID) - sdlUIProxy.addSubMenu(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(0).id, initData.menuID, "SubMenu id") - //How to verify if value was not set? - //compare(app.options.get(0).position, initData.menuParams.position, "SubMenu position") - compare(app.options.get(0).name, initData.menuParams.menuName, "SubMenu name") - - destroyView() - console.debug("exit") - } - - //Create AddSubMenu and check data - function test_03_1000_SubMenu() { - console.debug("enter") - var initData = { - appID: 1, - subMenus: [] - } - - for (var i = 0; i < 1010; i++) { - - initData.subMenus.push({ - menuID: i, - menuParams: { - position: i, - menuName: "Submenu" + i - }, - appID: 1 - }) - } - - createMessageView(initData.appID) - for (var i = 0; i < initData.subMenus.length; i++) { - sdlUIProxy.addSubMenu(initData.subMenus[i]) - } - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.count, 1000, "SubMenus count") - - for (var i = 0; i < 1000; i++) { - compare(app.options.get(i).id, initData.subMenus[i].menuID, "SubMenu id") - compare(app.options.get(i).position, initData.subMenus[i].menuParams.position, "SubMenu position") - compare(app.options.get(i).name, initData.subMenus[i].menuParams.menuName, "SubMenu name") - } - - destroyView() - console.debug("exit") - } - - //Create AddSubMenu and check data - function test_04_addSubMenu_UpperBound() { - console.debug("enter") - var initData = { - menuID: 2000000000, - menuParams: { - position: 1000, - menuName: "00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890a00012å/678'90abc!def@ghi#jkl$mno%pqr^stu*vwx:yz()ABC-DEF_GHI=JKL+MNO|PQR~STU{}WXY[]Z,01234567890aAaaaaaaaaaaaaaa" - }, - appID: 1 - } - - createMessageView(initData.appID) - sdlUIProxy.addSubMenu(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(0).id, initData.menuID, "SubMenu id") - compare(app.options.get(0).position, initData.menuParams.position, "SubMenu position") - compare(app.options.get(0).name.length, 500, "SubMenu name") - - destroyView() - console.debug("exit") - } - - //Create AddSubMenu and check data - function test_05_addSubMenu_LowerBound() { - console.debug("enter") - var initData = { - menuID: 0, - menuParams: { - position: 0, - menuName: "0" - }, - appID: 1 - } - - createMessageView(initData.appID) - sdlUIProxy.addSubMenu(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(0).id, initData.menuID, "SubMenu id") - compare(app.options.get(0).position, initData.menuParams.position, "SubMenu position") - compare(app.options.get(0).name.length, 1, "SubMenu name") - - destroyView() - console.debug("exit") - } - - // With fake parameter - function test_06_addSubMenu_With_Fake_Parameter() { - console.debug("enter") - var initData = { - menuID: 1001, - menuParams: { - menuName: "SubMenu fake param", - position: 1, - fakeParam: "fakeParam" - }, - appID: 1 - } - - createMessageView(initData.appID) - sdlUIProxy.addSubMenu(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.get(0).id, initData.menuID, "SubMenu id") - compare(app.options.get(0).position, initData.menuParams.position, "SubMenu position") - compare(app.options.get(0).name, initData.menuParams.menuName, "SubMenu name") - - destroyView() - console.debug("exit") - } - - // With fake parameter - function test_07_addSubMenu_menuIDOutLowerBound() { - console.debug("enter") - var initData = { - menuID: -1, - menuParams: { - menuName: "100", - position: 1, - }, - appID: 1 - } - - createMessageView(initData.appID) - sdlUIProxy.addSubMenu(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.count, 0, "SubMenus count") - - compare(app.options.get(1), !undefined, "SubMenu duplicated") - - destroyView() - console.debug("exit") - } - - // With fake parameter - function test_08_addSubMenu_menuIDOutUpperBound() { - console.debug("enter") - var initData = { - menuID: 2000000001, - menuParams: { - menuName: "100", - position: 1, - }, - appID: 1 - } - - createMessageView(initData.appID) - sdlUIProxy.addSubMenu(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.count, 0, "SubMenus count") - - compare(app.options.get(1), !undefined, "SubMenu duplicated") - - destroyView() - console.debug("exit") - } - - // With fake parameter - function test_09_addSubMenu_duplicatedSubMenus() { - console.debug("enter") - var initData = { - menuID: 2000000001, - menuParams: { - menuName: "100", - position: 1, - }, - appID: 1 - } - - createMessageView(initData.appID) - sdlUIProxy.addSubMenu(initData) - sdlUIProxy.addSubMenu(initData) - var app = dataContainer.getApplication(initData.appID) - - compare(app.options.count, 1, "SubMenus count") - - compare(app.options.get(1), undefined, "SubMenu duplicated") - - destroyView() - console.debug("exit") - } - } -} diff --git a/src/components/qt_hmi/test/src/tst_DeleteCommand.qml b/src/components/qt_hmi/test/src/tst_DeleteCommand.qml deleted file mode 100644 index bf28be0282..0000000000 --- a/src/components/qt_hmi/test/src/tst_DeleteCommand.qml +++ /dev/null @@ -1,210 +0,0 @@ -/** - * @file tst_ScrollableMessage.qml - * @brief Test Case for ScrollableMessageView. - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtTest 1.0 -import QtQuick 2.0 -import QtMultimedia 5.0 -import com.ford.sdl.hmi.dbus_adapter 1.0 -import com.ford.sdl.hmi.hw_buttons 1.0 -import com.ford.sdl.hmi.log4cxx 1.0 -import "../qml_model_qt5/controls" -import "../qml_model_qt5/views" -import "../qml_model_qt5/hmi_api" as HmiApi -import "../qml_model_qt5/models" -import "../qml_model_qt5/popups" -import "../qml_model_qt5/hmi_api/Common.js" as Common -import "../qml_model_qt5/models/Constants.js" as Constants -import "../qml_model_qt5/models/Internal.js" as Internal - -Item -{ - width : mainWindowLoader.width - height: mainWindowLoader.height - - Loader - { - id: mainWindowLoader - asynchronous : false - } - - TestCase - { - name: "DeleteCommand" - when: windowShown - property var dataContainer - property var sdlUIProxy - property var contentLoader - property var messageModel - - - //initialization for each test - function createMessageView(appID) - { - mainWindowLoader.source = "" - mainWindowLoader.source = "../qml_model_qt5/MainWindow.qml" - var mainWindowObject = mainWindowLoader.item - if(!mainWindowObject) - qtest_fail("mainWindowObject is undefined"); - var mainScreen = mainWindowObject.getMainScreen() - mainScreen.visible = true - var warningInfo = mainWindowObject.getWarningInfo() - warningInfo.visible = false - contentLoader = mainWindowObject.getContentLoader() - contentLoader.asynchronous = false - sdlUIProxy = mainWindowObject.getUIProxy() - dataContainer = mainWindowObject.getDataStorage() - dataContainer.addApplication({appName:"TestAppName", appId:appID}) - } - - //cleanup for each test - function destroyView() - { - //Clear Loader with MainWindow, which delete own models and views - mainWindowLoader.source = "" - } - - /* - * Test Cases - */ - - function test_01_deleteCommand() - { - console.debug("enter") - var initData = { - cmdID: 1, - menuParams: - { - menuName:"", - }, - cmdIcon:"", - appID: 1 - } - var initData2 = { - cmdID: 2, - menuParams: - { - menuName:"", - }, - cmdIcon:"", - appID: 1 - } - - createMessageView(initData.appID) - var app = dataContainer.getApplication(initData.appID) - var MenuCount = app.options.count - app.options.append( - { id: initData.cmdID, - name: initData.menuParams.menuName, - type: Internal.MenuItemType.MI_NODE, - position: Constants.positionOfElementWithoutPosition, - icon: initData.cmdIcon ? cmdIcon : {}, - subMenu: [] - } - ) - - compare(app.options.count, MenuCount+1, "Command into menu not added") - sdlUIProxy.deleteCommand(initData2) - - var a = 0 - for(var i = 0;((a === 0) && ( i < app.options.count)); i++) - { - if (app.options.get(i).id===initData2.menuID) - { - a = 1 - } - } - compare (a, 0, "Command in menu isn't removed") - - - destroyView() - console.debug("exit") - } - - function test_02_deleteCommand() { - console.debug("enter") - var initData = { - menuID: 1000, - menuParams: { - position: 1, - menuName: "SubMenu" - }, - appID: 1 - } - - var initData2 = { - cmdID: 1, - menuParams: { - menuName:"", - }, - cmdIcon:"", - appID: 1 - } - - createMessageView(initData.appID) - var app = dataContainer.getApplication(initData.appID) - var MenuCount = app.options.count - app.options.append ({ - "id": initData.menuID, - "name": initData.menuParams.menuName, - "position": initData.menuParams.position, - "type": Internal.MenuItemType.MI_SUBMENU, - "icon": undefined, - "subMenu":[{ - "id":initData2.cmdID, - "name": initData2.menuParams.menuName, - "position": Constants.positionOfElementWithoutPosition, - "type": Internal.MenuItemType.MI_PARENT, - "icon": { - "imageType": Common.ImageType.DYNAMIC, - "value": "../res/nav/turnArrow.png" - }, - - "subMenu": [] - }] - }) - - compare(app.options.count, MenuCount+1, "SubMenu into added") - var SubMenuCount = app.options.get(0).subMenu.count - compare( SubMenuCount, 1, "Command is not added into SubMenu") - - sdlUIProxy.deleteCommand(initData2) - - compare(app.options.count , MenuCount+1, "Menu is changed") - compare(app.options.get(0).subMenu.count, SubMenuCount-1, "Command into SubMenu is not removed") - - destroyView() - console.debug("exit") - } - } -} diff --git a/src/components/qt_hmi/test/src/tst_ScrollableMessage.qml b/src/components/qt_hmi/test/src/tst_ScrollableMessage.qml deleted file mode 100644 index abf3105b1a..0000000000 --- a/src/components/qt_hmi/test/src/tst_ScrollableMessage.qml +++ /dev/null @@ -1,421 +0,0 @@ -/** - * @file tst_ScrollableMessage.qml - * @brief Test Case for ScrollableMessageView. - * Copyright (c) 2014, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - - -import QtTest 1.0 -import QtQuick 2.0 -import QtMultimedia 5.0 -import com.ford.sdl.hmi.dbus_adapter 1.0 -import com.ford.sdl.hmi.hw_buttons 1.0 -import com.ford.sdl.hmi.log4cxx 1.0 -import "../qml_model_qt5/controls" -import "../qml_model_qt5/views" -import "../qml_model_qt5/hmi_api" as HmiApi -import "../qml_model_qt5/models" -import "../qml_model_qt5/popups" -import "../qml_model_qt5/hmi_api/Common.js" as Common -import "../qml_model_qt5/models/Constants.js" as Constants -import "../qml_model_qt5/models/Internal.js" as Internal - -Item { - width : mainWindowLoader.width - height: mainWindowLoader.height - - Loader { - id: mainWindowLoader - asynchronous : false - } - - TestCase { - name: "ScrollableMessageView" - when: windowShown - property var dataContainer - property var sdlUIProxy - property var contentLoader - property var messageModel - property var messageView - property var timer - - property var softButtonsListExample : [ - {softButtonID:0, isHighlighted:true, systemAction:Common.SystemAction.DEFAULT_ACTION, - type:Common.SoftButtonType.SBT_TEXT, text:"Default Action"}, - {softButtonID:1, isHighlighted:false, systemAction:Common.SystemAction.STEAL_FOCUS, - type:Common.SoftButtonType.SBT_IMAGE, text:"Steal Focus"}, - {softButtonID:2, isHighlighted:false, systemAction:Common.SystemAction.KEEP_CONTEXT, - type:Common.SoftButtonType.SBT_BOTH, text:"Keep context"}] - - //initialization for each test - function createMessageView(appID) { - mainWindowLoader.source = "" - mainWindowLoader.source = "../qml_model_qt5/MainWindow.qml" - var mainWindowObject = mainWindowLoader.item - if(!mainWindowObject) - qtest_fail("mainWindowObject is undefined"); - var mainScreen = mainWindowObject.getMainScreen() - mainScreen.visible = true - var warningInfo = mainWindowObject.getWarningInfo() - warningInfo.visible = false - contentLoader = mainWindowObject.getContentLoader() - contentLoader.asynchronous = false - sdlUIProxy = mainWindowObject.getUIProxy() - dataContainer = mainWindowObject.getDataStorage() - dataContainer.addApplication({appName:"TestAppName", appId:appID}) - } - - //get messageModel and messageView after call @scrollableMessage - function getMessageViewModel() { - messageModel = dataContainer.scrollableMessageModel - if(!messageModel) - qtest_fail("messageModel is undefined"); - messageView = contentLoader.item - if(!messageView) - qtest_fail("messageView is undefined"); - } - - //cleanup for each test - function destroyView() { - //Clear Loader with MainWindow, which delete own models and views - mainWindowLoader.source = "" - } - - //return button from messageView by ommon.SystemAction - function findButtonByAction(systemAction){ - var listViewItems = messageView.getSoftButtonsListView() - for (var i = 0, len = listViewItems.count; i < len; i++) { - //get SoftButton by setting current item (ListView has no getter) - listViewItems.currentIndex = i - var buttonItem = listViewItems.currentItem - if (buttonItem.button.systemAction === systemAction) { - return buttonItem - } - } - } - - /* - * Test Cases - */ - - //Create ScrollableMessageView and check data - function test_01_create() { - console.debug("enter") - var initData = {appID:1, timeout:2000, - messageText:{fieldText:"Simple ScrollableMessage text"}, - softButtons:softButtonsListExample} - createMessageView(initData.appID) - - var result = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - - verify(result.__errno === undefined, "ScrollableMessage return error state") - timer = messageView.getTimer() - if(!timer) - qtest_fail("timer is undefined"); - //check button equals to init data - compare(messageModel.softButtons.count, initData.softButtons.length, "wrong buttons count created") - for (var i = 0, len = messageModel.softButtons.count; i < len; i++) { - var act = messageModel.softButtons.get(i) - var exp = initData.softButtons[i] - compare(act.softButtonID, exp.softButtonID, "wrong softButtonID in button") - compare(act.isHighlighted, exp.isHighlighted, "wrong isHighlighted in button") - compare(act.systemAction, exp.systemAction, "wrong systemAction in button") - compare(act.text, exp.text, "wrong text in button") - } - //check model data equals to init data - compare(messageModel.running, true, "ScrollableMessage didn't start") - compare(messageModel.longMessageText, initData.messageText.fieldText, "wrong messageText") - compare(messageModel.appId, initData.appID, "wrong application ID") - compare(messageModel.timeout, initData.timeout, "wrong timeout") - verify(messageModel.async !== undefined, "async in undefined") - destroyView() - console.debug("exit") - } - - //Create ScrollableMessageView with empty data - function test_02_emptyInit() { - console.debug("enter") - var initData = {appID:1, timeout:0, messageText:{fieldText:""}, softButtons:[]} - createMessageView(initData.appID) - - var result = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - - verify(result.__errno === undefined, "ScrollableMessage return error state") - //NOTE: don't check timer - it has been triggered immediately (timeout is 0) - //MessageView call @complete immediately - compare(messageModel.running, false, "ScrollableMessage didn't stop") - compare(messageModel.softButtons.count, initData.softButtons.length, "wrong buttons count") - compare(messageModel.longMessageText, initData.messageText.fieldText, "wrong messageText") - compare(messageModel.timeout, initData.timeout, "wrong timeout") - destroyView() - console.debug("exit") - } - - //call @scrollableMessage twice (after first view has closed) - function test_03_doubleCreate() { - console.debug("enter") - var initData = {appID:1, timeout:0, messageText:{fieldText:"Simple text"}, - softButtons:softButtonsListExample} - var initData2 = {appID:1, timeout:10000, messageText:{fieldText:"Simple text 2"}, - softButtons:[]} - createMessageView(initData.appID) - - //create view - var actualResult = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - - //create new view - var actualResult2 = sdlUIProxy.scrollableMessage(initData2) - getMessageViewModel() - - verify(actualResult.__errno === undefined, "ScrollableMessage return error state") - verify(actualResult2.__errno === undefined, "ScrollableMessage return error state") - compare(messageModel.running, true, "ScrollableMessage didn't start") - compare(messageModel.longMessageText, initData2.messageText.fieldText, "wrong messageText") - compare(messageModel.timeout, initData2.timeout, "wrong timeout") - compare(messageModel.appId, initData2.appID, "wrong application ID") - verify(messageModel.async !== undefined, "async in undefined") - destroyView() - console.debug("exit") - } - - //call @scrollableMessage twice (before first view is closed) - function test_04_doubleCreateError() { - console.debug("enter") - var initData = {appID:1, timeout:20000, messageText:{fieldText:"Simple text"}, - softButtons:softButtonsListExample} - var initData2 = {appID:1, timeout:10000, messageText:{fieldText:"Simple text 2"}, - softButtons:[]} - createMessageView(initData.appID) - - //create view - var actualResult = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - var firstView = messageView; - - //create new view - var actualResult2 = sdlUIProxy.scrollableMessage(initData2) - getMessageViewModel() - verify(actualResult.__errno === undefined, "ScrollableMessage return error state") - verify(actualResult2.__errno !== undefined, "ScrollableMessage don't return error state") - compare(messageModel.running, true, "ScrollableMessage didn't start") - compare(messageView, firstView, "creating new view insteed stay first") - compare(messageModel.longMessageText, initData.messageText.fieldText, "wrong messageText") - compare(messageModel.timeout, initData.timeout, "wrong timeout") - compare(messageModel.appId, initData.appID, "wrong application ID") - verify(messageModel.async !== undefined, "async in undefined") - destroyView() - console.debug("exit") - } - - //call @scrollableMessage and check close - function test_05_ClickBackButton() { - console.debug("enter") - var initData = {appID:1, timeout:20000, - messageText:{fieldText:"Simple ScrollableMessage text"}, - softButtons:softButtonsListExample} - createMessageView(initData.appID) - - var result = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - - compare(messageModel.running, true, "ScrollableMessage didn't start") - verify(result.__errno === undefined, "ScrollableMessage return error state") - //look for back button - var backButton = messageView.getBackButton() - verify(backButton !== undefined, "Not created back button") - //wait rendering for correct click position - waitForRendering(mainWindowLoader) - //Press back button - mouseClick(backButton, backButton.width/2, backButton.height/2, - Qt.LeftButton, Qt.NoModifier, 0) - //check that MessageView (in contentLoader) is unloaded and deleted - var isLoaded = (contentLoader.source.toString().indexOf("ScrollableMessageView.qml") > 0) - verify(!isLoaded, "MessageView should be unloaded") - //wait for delete messageView by GC - wait(0); - verify(messageView === null, "MessageView should be deleted") - destroyView() - console.debug("exit") - } - //call @scrollableMessage and check close - function test_06_ClickDefaultAction() { - console.debug("enter") - var initData = {appID:1, timeout:20000, - messageText:{fieldText:"Simple ScrollableMessage text"}, - softButtons:softButtonsListExample} - createMessageView(initData.appID) - - var result = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - - compare(messageModel.running, true, "ScrollableMessage didn't start") - verify(result.__errno === undefined, "ScrollableMessage return error state") - //look for DEFAULT_ACTION button - var defaultActionButton = findButtonByAction(Common.SystemAction.DEFAULT_ACTION) - verify(defaultActionButton !== undefined, "Not created button with DEFAULT_ACTION") - //wait rendering for correct click position - waitForRendering(mainWindowLoader) - //Press default button - mouseClick(defaultActionButton, defaultActionButton.width/2, defaultActionButton.height/2, - Qt.LeftButton, Qt.NoModifier, 0) - //check that MessageView (in contentLoader) is unloaded and deleted - var isLoaded = (contentLoader.source.toString().indexOf("ScrollableMessageView.qml") > 0) - verify(!isLoaded, "MessageView should be unloaded") - //wait for delete messageView by GC - wait(0); - verify(messageView === null, "MessageView should be deleted") - destroyView() - console.debug("exit") - } - - //call @scrollableMessage and check restart timer - function test_07_ClickStealFocus() { - console.debug("enter") - var initData = {appID:1, timeout:20000, messageText:{fieldText:"Simple ScrollableMessage text"}, - softButtons:softButtonsListExample} - createMessageView(initData.appID) - - var result = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - - //check - compare(messageModel.running, true, "ScrollableMessage didn't start") - verify(result.__errno === undefined, "ScrollableMessage return error state") - //look for STEAL_FOCUS button - var stealFocusButton = findButtonByAction(Common.SystemAction.STEAL_FOCUS) - verify(stealFocusButton !== undefined, "Not created button with STEAL_FOCUS") - //wait rendering for correct buttons size for correct click position - waitForRendering(mainWindowLoader) - mouseClick(stealFocusButton, stealFocusButton.width/2, stealFocusButton.height/2, - Qt.LeftButton, Qt.NoModifier, 0) - //check that MediaView loaded in loade - var viewQMlFileName = dataContainer.currentApplication.isMediaApplication ? - "SDLPlayerView.qml" : "SDLNonMediaView.qml" - var isLoaded = (contentLoader.source.toString().indexOf(viewQMlFileName) > 0) - verify(isLoaded, "SDLPlayerView/SDLNonMediaView should be loaded") - destroyView() - console.debug("exit") - } - - //call @scrollableMessage and check restart timer - function test_08_ClickKeepContex() { - console.debug("enter") - var initData = {appID:1, timeout:20000, messageText:{fieldText:"Simple ScrollableMessage text"}, - softButtons:softButtonsListExample} - createMessageView(initData.appID) - - var result = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - - //check - compare(messageModel.running, true, "ScrollableMessage didn't start") - verify(result.__errno === undefined, "ScrollableMessage return error state") - //look for KEEP_CONTEXT button - var keepContexButton = findButtonByAction(Common.SystemAction.KEEP_CONTEXT) - verify(keepContexButton !== undefined, "Not created button with KEEP_CONTEXT") - //wait rendering for correct click position - waitForRendering(mainWindowLoader) - //Press button - mouseClick(keepContexButton, keepContexButton.width/2, keepContexButton.height/2, - Qt.LeftButton, Qt.NoModifier, 0) - //check that MessageView is still unloaded loaded - var isLoaded = (contentLoader.source.toString().indexOf("ScrollableMessageView.qml") > 0) - verify(isLoaded, "MessageView should be loaded") - //verify restarted timer - timer = messageView.getTimer() - verify(timer.running === true, "Timer is not restarted by KEEP_CONTEXT button") - destroyView() - console.debug("exit") - } - - //add long text to model and check scrollBar visibility - function test_09_ScrollBarShown() { - console.debug("enter") - //generate string with (10!) lines - var longText = "It is very long text!\n" - for(var i = 1; i < 10; ++i) - longText += longText - var initData = {appID:1, timeout:20000, messageText:{fieldText:longText}, softButtons:[]} - createMessageView(initData.appID) - - var result = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - - //check - compare(messageModel.running, true, "ScrollableMessage didn't start") - verify(result.__errno === undefined, "ScrollableMessage return error state") - - //wait rendering - waitForRendering(mainWindowLoader) - var scrollBar = messageView.getScrollbar() - verify(scrollBar.visible === true, "ScrollBar is not shown for long text") - - destroyView() - console.debug("exit") - } - - //compare text width with and without buttons at top of SrollableMessage - function test_10_MessageTextHeight() { - console.debug("enter") - var initData = {appID:1, timeout:500, messageText:{fieldText:"Simple text"}, softButtons:[]} - createMessageView(initData.appID) - - var result = sdlUIProxy.scrollableMessage(initData) - getMessageViewModel() - - //check - compare(messageModel.running, true, "ScrollableMessage didn't start") - verify(result.__errno === undefined, "ScrollableMessage return error state") - - var textAreaHeight = messageView.getTextArea().height - wait(initData.timeout) - - var initData2 = {appID:1, timeout:20000, messageText:{fieldText:"Simple text"}, - softButtons:softButtonsListExample} - createMessageView(initData.appID) - - var result2 = sdlUIProxy.scrollableMessage(initData2) - getMessageViewModel() - - //wait rendering - waitForRendering(mainWindowLoader) - var textAreaHeight2 = messageView.getTextArea().height - console.debug("messageTextH", textAreaHeight, textAreaHeight2) - verify(textAreaHeight2 <= textAreaHeight, "Height of text area shoud be less with buttons") - - destroyView() - console.debug("exit") - } - } -} diff --git a/src/components/qt_hmi/test/src/tst_SetMediaClockTimer.qml b/src/components/qt_hmi/test/src/tst_SetMediaClockTimer.qml deleted file mode 100644 index 212cdfc143..0000000000 --- a/src/components/qt_hmi/test/src/tst_SetMediaClockTimer.qml +++ /dev/null @@ -1,292 +0,0 @@ -/** - * @file tst_Slider.qml - * @brief Test Case for Slider. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtTest 1.0 -import QtQuick 2.0 -import QtMultimedia 5.0 -import com.ford.sdl.hmi.dbus_adapter 1.0 -import com.ford.sdl.hmi.hw_buttons 1.0 -import com.ford.sdl.hmi.log4cxx 1.0 -import "../qml_model_qt5/controls" -import "../qml_model_qt5/views" -import "../qml_model_qt5/hmi_api" as HmiApi -import "../qml_model_qt5/models" -import "../qml_model_qt5/popups" -import "../qml_model_qt5/hmi_api/Common.js" as Common -import "../qml_model_qt5/models/Constants.js" as Constants -import "../qml_model_qt5/models/Internal.js" as Internal - -Item { - id:item123 - TestCase { - name: "time" - property var mainWindowComponent : Qt.createComponent("../qml_model_qt5/MainWindow.qml") - property var mainObject - property var sdlUI - property var dataContainer - - function createTime() { - mainObject = mainWindowComponent.createObject(parent) - sdlUI = mainObject.getUIProxy() - dataContainer = mainObject.getDataStorage() - } - - function destroyTime() { - mainObject.destroy() - } - - //No end time, works like a timer - function test_01_noEndTimeInCountUp() { - console.debug("enter") - - var initData = {startTime:{hours: 4, minutes: 0, seconds: 0}, endTime:undefined , updateMode: 0, appID: 1} - - var expectedResult = {endTimeResult:-1, resultCode : Common.Result.SUCCESS} - - createTime() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - - var actualResult = sdlUI.setMediaClockTimer(initData) - - try { - compare(dataContainer.getApplication(initData.appID).mediaClock.endTime, expectedResult.endTimeResult, "time position") - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - - destroyTime() - console.debug("exit") - } - - //No start time. Function process error - function test_02_noStartTime() { - console.debug("enter") - - var initData = {startTime:undefined, endTime:{hours: 4, minutes: 0, seconds: 0} , updateMode: 1, appID: 1} - var expectedResult = {resultCode : Common.Result.INVALID_DATA} - - createTime() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - - var actualResult = sdlUI.setMediaClockTimer(initData) - - try { - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - - destroyTime() - console.debug("exit") - } - - //Receive "pause", when onready paused - function test_03_pauseAfterPause() { - console.debug("enter") - - var initData = {startTime:{hours: 4, minutes: 0, seconds: 0}, endTime:{hours: 12, minutes: 00, seconds: 00}, updateMode: 0, appID: 1} - var expectedResult = {resultCode : Common.Result.IGNORED} - - createTime() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - - sdlUI.setMediaClockTimer(initData) - - initData.updateMode=2 - sdlUI.setMediaClockTimer(initData) - - var actualResult = sdlUI.setMediaClockTimer(initData) - - try { - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - - destroyTime() - console.debug("exit") - } - - //Receive "RESUME" after "CLEAR" - function test_04_resumeAfterClear() { - console.debug("enter") - - var initData = {startTime:{hours: 10, minutes: 0, seconds: 0},endTime:{ }, updateMode:0, appID:1} - - var expectedResult = {resultCode : Common.Result.IGNORED} - - createTime() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - - sdlUI.setMediaClockTimer(initData) - - initData.updateMode=4 - sdlUI.setMediaClockTimer(initData) - - initData.updateMode=3 - sdlUI.setMediaClockTimer(initData) - - var actualResult = sdlUI.setMediaClockTimer(initData) - try { - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - - destroyTime() - console.debug("exit") - } - - function test_05_resumeAfterEnd() { - console.debug("enter") - - var initData = {startTime:{hours: 0, minutes: 12, seconds: 33},endTime:{hours: 0, minutes: 12, seconds: 33}, updateMode:0, appID:1} - - var expectedResult = {resultCode : Common.Result.IGNORED} - - createTime() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - - sdlUI.setMediaClockTimer(initData) - - dataContainer.setApplicationProperties(initData.appID, { - "mediaClock": { - "updateMode": 0, - "runningMode": 1, - "startTime": initData.StartTime, - "endTime": initData.EndTime, - "startTimeForProgress": 753 - } - }) - initData.updateMode=3 - var actualResult = sdlUI.setMediaClockTimer(initData) - - try { - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - - destroyTime() - console.debug("exit") - } - - //Launch "COUNTUP" twice - function test_06_twoCountUp() { - console.debug("enter") - - var initData1 = {startTime:{hours: 4, minutes: 0, seconds: 0}, endTime:{hours: 12, minutes: 00, seconds: 00}, updateMode: 0, appID: 1} - var initData2 = {startTime:{hours: 5, minutes: 0, seconds: 0}, endTime:{hours: 18, minutes: 00, seconds: 00}, updateMode: 0, appID: 1} - var expectedResult = {startTime:18000, endTime: 64800, updateMode: 0, resultCode : Common.Result.SUCCESS} - - createTime() - dataContainer.addApplication({appName:"TestAppName", appId:initData1.appID}) - - sdlUI.setMediaClockTimer(initData1) - - var actualResult = sdlUI.setMediaClockTimer(initData2) - - try { - compare(dataContainer.getApplication(initData1.appID).mediaClock.startTime, expectedResult.startTime, "startTime") - compare(dataContainer.getApplication(initData1.appID).mediaClock.endTime, expectedResult.endTime, "endTime") - compare(dataContainer.getApplication(initData1.appID).mediaClock.updateMode, expectedResult.updateMode, "updateMode") - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - - destroyTime() - console.debug("exit") - } - - //Get "RESUME", when clock is paused - function test_07_resumeAfterResume() { - console.debug("enter") - - var initData = {startTime:{hours: 4, minutes: 0, seconds: 0}, endTime:{hours: 12, minutes: 00, seconds: 00}, updateMode: 0, appID: 1} - var expectedResult = {resultCode : Common.Result.IGNORED} - - createTime() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - - sdlUI.setMediaClockTimer(initData) - - initData.updateMode=3 - var actualResult = sdlUI.setMediaClockTimer(initData) - - try { - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - - destroyTime() - console.debug("exit") - } - - - function test_08_countDownAfterCountUp() { - console.debug("enter") - - var initData1 = {startTime:{hours: 4, minutes: 0, seconds: 0}, endTime:{hours: 12, minutes: 00, seconds: 00}, updateMode: 0, appID: 1} - var initData2 = {startTime:{hours: 18, minutes: 0, seconds: 0}, endTime:{hours: 5, minutes: 00, seconds: 00}, updateMode: 1, appID: 1} - var expectedResult = {startTime:64800, endTime: 18000, updateMode: 1, resultCode : Common.Result.SUCCESS} - - createTime() - dataContainer.addApplication({appName:"TestAppName", appId:initData1.appID}) - - sdlUI.setMediaClockTimer(initData1) - - var actualResult = sdlUI.setMediaClockTimer(initData2) - - try { - compare(dataContainer.getApplication(initData1.appID).mediaClock.startTime, expectedResult.startTime, "startTime") - compare(dataContainer.getApplication(initData1.appID).mediaClock.endTime, expectedResult.endTime, "endTime") - compare(dataContainer.getApplication(initData1.appID).mediaClock.updateMode, expectedResult.updateMode, "updateMode") - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - - destroyTime() - console.debug("exit") - } - - function test_09_noEndTimeInCountDown() { - console.debug("enter") - - var initData = {startTime:{hours: 4, minutes: 0, seconds: 0}, endTime:undefined, updateMode: 0, appID: 1} - - var expectedResult = {startTimeForProgress:14400, resultCode : Common.Result.SUCCESS} - - createTime() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - - var actualResult = sdlUI.setMediaClockTimer(initData) - - try { - compare(dataContainer.getApplication(initData.appID).mediaClock.startTimeForProgress, expectedResult.startTimeForProgress, "time position") - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - - destroyTime() - console.debug("exit") - } - } -} diff --git a/src/components/qt_hmi/test/src/tst_Show.qml b/src/components/qt_hmi/test/src/tst_Show.qml deleted file mode 100644 index cce2e7de49..0000000000 --- a/src/components/qt_hmi/test/src/tst_Show.qml +++ /dev/null @@ -1,363 +0,0 @@ -/** - * @file tst_Slider.qml - * @brief Test Case for Slider. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtTest 1.0 -import QtQuick 2.0 -import QtMultimedia 5.0 -import com.ford.sdl.hmi.dbus_adapter 1.0 -import com.ford.sdl.hmi.hw_buttons 1.0 -import com.ford.sdl.hmi.log4cxx 1.0 -import "../qml_model_qt5/controls" -import "../qml_model_qt5/views" -import "../qml_model_qt5/hmi_api" as HmiApi -import "../qml_model_qt5/models" -import "../qml_model_qt5/popups" -import "../qml_model_qt5/hmi_api/Common.js" as Common -import "../qml_model_qt5/models/Constants.js" as Constants -import "../qml_model_qt5/models/Internal.js" as Internal - -Item { - width : mainWindowLoader.width - height: mainWindowLoader.height - Loader { - id: mainWindowLoader - asynchronous : false - } - - TestCase { - name: "Show" - when: windowShown - property var mainWindowComponent : Qt.createComponent("../qml_model_qt5/MainWindow.qml") - property var mainObject - property var sldUI - property var dataContainer - property var contentLoader - - property var softButtonsListExample : [ - {softButtonID:0, isHighlighted:true, systemAction:Common.SystemAction.DEFAULT_ACTION, - type:Common.SoftButtonType.SBT_TEXT, text:"Default Action"}, - {softButtonID:1, isHighlighted:false, systemAction:Common.SystemAction.STEAL_FOCUS, - type:Common.SoftButtonType.SBT_IMAGE, text:"Steal Focus"}, - {softButtonID:2, isHighlighted:false, systemAction:Common.SystemAction.KEEP_CONTEXT, - type:Common.SoftButtonType.SBT_BOTH, text:"Keep context"}] - - - //initialization for each test - function createShow(appID) { - mainWindowLoader.source = "" - mainWindowLoader.source = "../../../../src/components/qt_hmi/qml_model_qt5/MainWindow.qml" - var mainWindowObject = mainWindowLoader.item - if(!mainWindowObject) - qtest_fail("mainWindowObject is undefined"); - var mainScreen = mainWindowObject.getMainScreen() - mainScreen.visible = true - var warningInfo = mainWindowObject.getWarningInfo() - warningInfo.visible = false - contentLoader = mainWindowObject.getContentLoader() - contentLoader.asynchronous = false - sldUI = mainWindowObject.getUIProxy() - dataContainer = mainWindowObject.getDataStorage() - dataContainer.addApplication({appName:"TestAppName", appId:appID}) - } - - - - //cleanup for each test - function destroyShow() { - //Clear Loader with MainWindow, which delete own models and views - mainWindowLoader.source = "" - } - - - //Fill up all fields, check save process to dataContainer - function test_01_create() { - console.debug("enter") - var initData = { - appID:1, - showStrings:[ - {fieldName:Common.TextFieldName.mainField1 ,fieldText:"showString1"}, - {fieldName:Common.TextFieldName.mainField2,fieldText:"showString2"}, - {fieldName:Common.TextFieldName.mainField3,fieldText:"showString3"}, - {fieldName:Common.TextFieldName.mainField4,fieldText:"showString4"}, - {fieldName:Common.TextFieldName.mediaTrack,fieldText:"mediaTrack"}, - {fieldName:Common.TextFieldName.statusBar,fieldText:"StatusBar"}, - {fieldName:Common.TextFieldName.mediaClock,fieldText:"12:34"} - ], - softButtons:softButtonsListExample, - alignment:2, - graphic:{value:"/home/user/applink/bin/SPTAlice9675308/action.png",imageType: "DYNAMIC"}, - secondaryGraphic:{value:"/home/user/applink/bin/SPTAlice9675308/action.png",imageType: "DYNAMIC"}, - customPresets:["GEN0","GEN1","GEN2","GEN3"] - } - - createShow(1) - var app = dataContainer.getApplication(initData.appID) - sldUI.show (initData) - - try { - - compare(app.hmiUIText.mainField1 , initData.showStrings[0].fieldText, "mainField1") - compare(app.hmiUIText.mainField2 , initData.showStrings[1].fieldText, "mainField2") - compare(app.hmiUIText.mainField3 , initData.showStrings[2].fieldText, "mainField3") - compare(app.hmiUIText.mainField4 , initData.showStrings[3].fieldText, "mainField4") - compare(app.hmiUIText.mediaTrack , initData.showStrings[4].fieldText, "mediaTrack") - compare(app.hmiUIText.statusBar , initData.showStrings[5].fieldText, "StatusBar" ) - compare(app.hmiUIText.mediaClock , initData.showStrings[6].fieldText, "mediaClock") - var a; - if(app.hmiUITextAlignment === 1) a=0; - if(app.hmiUITextAlignment === 2) a=1; - if(app.hmiUITextAlignment === 4) a=2; - compare(initData.alignment, a, "Alignment") - compare(app.hmiUIText.image, initData.graphic.value, "image") - compare(app.hmiUIText.secondaryImage, initData.secondaryGraphic.value, "secdondImage") - compare(app.softButtons.count, initData.softButtons.length, "wrong buttons count created") - for (var i = 0, len = app.softButtons.count; i < len; i++) - { - var act = app.softButtons.get(i) - var exp = initData.softButtons[i] - compare(act.softButtonID, exp.softButtonID, "wrong softButtonID in button") - compare(act.isHighlighted, exp.isHighlighted, "wrong isHighlighted in button") - compare(act.systemAction, exp.systemAction, "wrong systemAction in button") - compare(act.text, exp.text, "wrong text in button") - } - compare(app.customPresets.count, initData.customPresets.length, "wrong buttons count created") - for (var j = 0, len2 = app.customPresets.count; j < len; j++) - { - var act2 = app.customPresets.get(j) - var exp2 = initData.customPresets[j] - compare(act2.text, exp2, "wrong text in button") - } - } - catch (e) {} - destroyShow() - console.debug("exit") - } - //All fields are empty - function test_02_emptyInit() - { - console.debug("enter") - var initData = { - appID:1, - showStrings:[ - {fieldName:Common.TextFieldName.mainField1 ,fieldText:""}, - {fieldName:Common.TextFieldName.mainField2,fieldText:""}, - {fieldName:Common.TextFieldName.mainField3,fieldText:""}, - {fieldName:Common.TextFieldName.mainField4,fieldText:""}, - {fieldName:Common.TextFieldName.mediaTrack,fieldText:""}, - {fieldName:Common.TextFieldName.statusBar,fieldText:""}, - {fieldName:Common.TextFieldName.mediaClock,fieldText:""} - ], - softButtons:[], - alignment:0, - graphic:{value:"",imageType: "DYNAMIC"}, - secondaryGraphic:{value:"",imageType: "DYNAMIC"}, - customPresets:[] - } - - createShow(1) - var app = dataContainer.getApplication(initData.appID) - sldUI.show (initData) - - try { - - compare(app.hmiUIText.mainField1 , initData.showStrings[0].fieldText, "mainField1") - compare(app.hmiUIText.mainField2 , initData.showStrings[1].fieldText, "mainField2") - compare(app.hmiUIText.mainField3 , initData.showStrings[2].fieldText, "mainField3") - compare(app.hmiUIText.mainField4 , initData.showStrings[3].fieldText, "mainField4") - compare(app.hmiUIText.mediaTrack , initData.showStrings[4].fieldText, "mediaTrack") - compare(app.hmiUIText.statusBar , initData.showStrings[5].fieldText, "StatusBar" ) - compare(app.hmiUIText.mediaClock , initData.showStrings[6].fieldText, "mediaClock") - var a; - if(app.hmiUITextAlignment === 1) a=0; - if(app.hmiUITextAlignment === 2) a=1; - if(app.hmiUITextAlignment === 4) a=2; - compare(initData.alignment, a, "Alignment") - compare(app.hmiUIText.image, initData.graphic.value, "image") - compare(app.hmiUIText.secondaryImage, initData.secondaryGraphic.value, "secdondImage") - compare(app.softButtons.count, initData.softButtons.length, "wrong buttons count created") - for (var i = 0, len = app.softButtons.count; i < len; i++) - { - var act = app.softButtons.get(i) - var exp = initData.softButtons[i] - compare(act.softButtonID, exp.softButtonID, "wrong softButtonID in button") - compare(act.isHighlighted, exp.isHighlighted, "wrong isHighlighted in button") - compare(act.systemAction, exp.systemAction, "wrong systemAction in button") - compare(act.text, exp.text, "wrong text in button") - } - compare(app.customPresets.count, initData.customPresets.length, "wrong buttons count created") - for (var j = 0, len2 = app.customPresets.count; j < len; j++) - { - var act2 = app.customPresets.get(j) - var exp2 = initData.customPresets[j] - compare(act2.text, exp2, "wrong text in button") - } - } - catch (e) {} - destroyShow() - console.debug("exit") - } - - //Mandatory fields only - function test_03_create_mandatory_only() { - console.debug("enter") - var initData = { - appID:1, - showStrings:[ - {fieldName:Common.TextFieldName.mainField1 ,fieldText:"showString1"}, - {fieldName:Common.TextFieldName.mainField2,fieldText:"showString2"}, - {fieldName:Common.TextFieldName.mainField3,fieldText:"showString3"}, - {fieldName:Common.TextFieldName.mainField4,fieldText:"showString4"}, - {fieldName:Common.TextFieldName.mediaTrack,fieldText:"mediaTrack"}, - {fieldName:Common.TextFieldName.statusBar,fieldText:"StatusBar"}, - {fieldName:Common.TextFieldName.mediaClock,fieldText:"12:34"} - ] - } - - createShow(1) - var app = dataContainer.getApplication(initData.appID) - sldUI.show (initData) - - try { - - compare(app.hmiUIText.mainField1 , initData.showStrings[0].fieldText, "mainField1") - compare(app.hmiUIText.mainField2 , initData.showStrings[1].fieldText, "mainField2") - compare(app.hmiUIText.mainField3 , initData.showStrings[2].fieldText, "mainField3") - compare(app.hmiUIText.mainField4 , initData.showStrings[3].fieldText, "mainField4") - compare(app.hmiUIText.mediaTrack , initData.showStrings[4].fieldText, "mediaTrack") - compare(app.hmiUIText.statusBar , initData.showStrings[5].fieldText, "StatusBar" ) - compare(app.hmiUIText.mediaClock , initData.showStrings[6].fieldText, "mediaClock") - - } - catch (e) {} - destroyShow() - console.debug("exit") - } - //Field with extra param - function test_04_fake_param() { - console.debug("enter") - var initData = { - appID:1, - showStrings:[ - {fieldName:Common.TextFieldName.mainField1 ,fieldText:"showString1"}, - {fieldName:Common.TextFieldName.mainField2,fieldText:"showString2"}, - {fieldName:Common.TextFieldName.mainField3,fieldText:"showString3"}, - {fieldName:Common.TextFieldName.mainField4,fieldText:"showString4"}, - {fieldName:Common.TextFieldName.mediaTrack,fieldText:"mediaTrack"}, - {fieldName:Common.TextFieldName.statusBar,fieldText:"StatusBar",fakeParam:"FakeParam"}, - {fieldName:Common.TextFieldName.mediaClock,fieldText:"12:34"} - ] - } - - createShow(1) - var app = dataContainer.getApplication(initData.appID) - sldUI.show (initData) - - try { - - compare(app.hmiUIText.mainField1 , initData.showStrings[0].fieldText, "mainField1") - compare(app.hmiUIText.mainField2 , initData.showStrings[1].fieldText, "mainField2") - compare(app.hmiUIText.mainField3 , initData.showStrings[2].fieldText, "mainField3") - compare(app.hmiUIText.mainField4 , initData.showStrings[3].fieldText, "mainField4") - compare(app.hmiUIText.mediaTrack , initData.showStrings[4].fieldText, "mediaTrack") - compare(app.hmiUIText.statusBar , initData.showStrings[5].fieldText, "StatusBar" ) - compare(app.hmiUIText.mediaClock , initData.showStrings[6].fieldText, "mediaClock") - - } - catch (e) {} - destroyShow() - console.debug("exit") - } - //aligment of mainField1, mainField2 - function test_05_alignment() { - console.debug("enter") - var initData = { - appID:1, - showStrings:[], - alignment:0, - } - - createShow(1) - var app = dataContainer.getApplication(initData.appID) - sldUI.show (initData) - - try { - //Magic with digits - because enum of text.Alighnment enum and sdl alignment doesn't match - var a; - if(app.hmiUITextAlignment === 1) a=0; - if(app.hmiUITextAlignment === 2) a=1; - if(app.hmiUITextAlignment === 4) a=2; - compare(initData.alignment, a, "Alignment") - initData.alignment=1 - sldUI.show (initData) - var b; - if(app.hmiUITextAlignment === 1) b=0; - if(app.hmiUITextAlignment === 2) b=1; - if(app.hmiUITextAlignment === 4) b=2; - compare(initData.alignment, b, "Alignment") - initData.alignment=2 - sldUI.show (initData) - var c; - if(app.hmiUITextAlignment === 1) c=0; - if(app.hmiUITextAlignment === 2) c=1; - if(app.hmiUITextAlignment === 4) c=2; - compare(initData.alignment, c, "Alignment") - } - catch (e) {} - destroyShow() - console.debug("exit") - } - //pole bez parametra - function test_06_no_param() { - console.debug("enter") - var initData = { - appID:1, - showStrings:[], - graphic:{imageType: "DYNAMIC"}, - } - - createShow(1) - var app = dataContainer.getApplication(initData.appID) - sldUI.show (initData) - - try { - - compare(app.hmiUIText.image, undefined, "image") - - } - catch (e) {} - destroyShow() - console.debug("exit") - } -} -} diff --git a/src/components/qt_hmi/test/src/tst_Slider.qml b/src/components/qt_hmi/test/src/tst_Slider.qml deleted file mode 100644 index 0e6acef078..0000000000 --- a/src/components/qt_hmi/test/src/tst_Slider.qml +++ /dev/null @@ -1,204 +0,0 @@ -/** - * @file tst_Slider.qml - * @brief Test Case for Slider. - * Copyright (c) 2013, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -import QtTest 1.0 -import QtQuick 2.0 -import QtMultimedia 5.0 -import com.ford.sdl.hmi.dbus_adapter 1.0 -import com.ford.sdl.hmi.hw_buttons 1.0 -import com.ford.sdl.hmi.log4cxx 1.0 -import "../qml_model_qt5/controls" -import "../qml_model_qt5/views" -import "../qml_model_qt5/hmi_api" as HmiApi -import "../qml_model_qt5/models" -import "../qml_model_qt5/popups" -import "../qml_model_qt5/hmi_api/Common.js" as Common -import "../qml_model_qt5/models/Constants.js" as Constants -import "../qml_model_qt5/models/Internal.js" as Internal - -Item { - TestCase { - name: "Slider" - when: windowShown - property var mainWindowComponent : Qt.createComponent("../qml_model_qt5/MainWindow.qml") - property var mainObject - property var sldUI - property var dataContainer - property var sliderPopup - property var timer - - function createSlider() { - mainObject = mainWindowComponent.createObject(parent) - var mainScreen = mainObject.getMainScreen() - mainScreen.visible = true - sldUI = mainObject.getUIProxy() - dataContainer = mainObject.getDataStorage() - sliderPopup = mainObject.getSlider() - timer = sliderPopup.getTimer() - } - - - function destroySlider() { - mainObject.destroy() - } - - function test_01_timeoutZero() { - console.debug("enter") - var initData = {numTicks:9, position:4, sliderHeader:"header", sliderFooter:["footer"], timeout:0, appID:1} - createSlider() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - var actualResult = sldUI.slider(initData) - try { - compare(actualResult.sliderPosition, initData.position, "slider position") - } catch(e){} - destroySlider() - console.debug("exit") - } - - function test_02_changePosition() { - console.debug("enter") - var initData = {numTicks:9, position:4, sliderHeader:"header", sliderFooter:["footer"], timeout:1, appID:1} - var expectedResult = {position : 2, resultCode : Common.Result.SUCCESS} - createSlider() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - sliderPopup.onReady.connect(function simulateUserAction(){sliderPopup.position = expectedResult.position}) - - sldUI.slider(initData) - - timer.onTriggered() - try { - compare(dataContainer.uiSlider.position, expectedResult.position, "slider position") - compare(sliderPopup.resultCode, expectedResult.resultCode, "result code") - } catch (e) {} - destroySlider() - console.debug("exit") - } - - function test_03_unChangedPosition() { - console.debug("enter") - var initData = {numTicks:9, position:4, sliderHeader:"header", sliderFooter:["footer"], timeout:1, appID:1} - var expectedResult = {position : 4, resultCode : Common.Result.SUCCESS} - createSlider() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - - sldUI.slider(initData) - - timer.onTriggered() - try { - compare(dataContainer.uiSlider.position, expectedResult.position, "slider position") - compare(sliderPopup.resultCode, expectedResult.resultCode, "result code") - } catch (e) {} - destroySlider() - console.debug("exit") - } - - - function test_04_changePositionBackPressed() { - console.debug("enter") - var initData = {numTicks:9, position:4, sliderHeader:"header", sliderFooter:["footer"], timeout:1, appID:1} - var expectedResult = {position : 4, resultCode : Common.Result.ABORTED} - createSlider() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - sliderPopup.onReady.connect(function simulateUserAction(){sliderPopup.position = expectedResult.position}) - - sldUI.slider(initData) - sliderPopup.getBackButton().clicked() - - try { - compare(dataContainer.uiSlider.position, expectedResult.position, "slider position") - compare(sliderPopup.resultCode, expectedResult.resultCode, "result code") - } catch (e) {} - destroySlider() - console.debug("exit") - } - - function test_05_secondCall() { - console.debug("enter") - var initData = {numTicks:9, position:4, sliderHeader:"header", sliderFooter:["footer"], timeout:1, appID:1} - var expectedResult = {position : 5, resultCode : Common.Result.ABORTED} - createSlider() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - sliderPopup.onReady.connect(function simulateUserAction(){sliderPopup.position = expectedResult.position}) - - sldUI.slider(initData) - initData.position = 5 - var actualResult = sldUI.slider(initData) - - try { - compare(actualResult.sliderPosition, expectedResult.position, "slider position") - compare(actualResult.__retCode, expectedResult.resultCode, "result code") - } catch (e) {} - destroySlider() - console.debug("exit") - } - - function test_06_footerValueNoChange() { - console.debug("enter") - var initData = {numTicks:4, position:3, sliderHeader:"header", sliderFooter:["footer1", "footer2", "footer3", "footer4"], timeout:1, appID:1} - var expectedResult = {position: 3, footers:["footer1", "footer2", "footer3", "footer4"]} - createSlider() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - - sldUI.slider(initData) - - try { - compare(sliderPopup.getFooterText().text, expectedResult.footers[expectedResult.position - 1], "current footer") - } catch (e) {} - destroySlider() - console.debug("exit") - } - - function test_07_footerValueChange() { - console.debug("enter") - var initData = {numTicks:4, position:2, sliderHeader:"header", sliderFooter:["footer1", "footer2", "footer3", "footer4"], timeout:1, appID:1} - var expectedResult = {position: 3, footers:["footer1", "footer2", "footer3", "footer4"]} - createSlider() - dataContainer.addApplication({appName:"TestAppName", appId:initData.appID}) - sliderPopup.onReady.connect(function simulateUserAction(){ - var rect = sliderPopup.getBorderRectangle() - console.debug("visible", sliderPopup.visible) - mouseClick(rect, rect.width / initData.numTicks * expectedResult.position, 1) - }) - - sldUI.slider(initData) - - try { - compare(sliderPopup.getFooterText().text, expectedResult.footers[expectedResult.position - 1], "current footer") - } catch (e) {} - destroySlider() - console.debug("exit") - } - - } -} |