2 * Copyright (C) 2016 The Qt Company Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 import QtQuick.Layouts 1.1
19 import QtQuick.Controls 1.0
25 signal languageChanged
29 anchors.topMargin: -218
30 anchors.bottomMargin: -215
31 source: './images/AGL_HMI_Background_Car-01.png'
37 anchors.horizontalCenter: parent.horizontalCenter
38 anchors.top: parent.top
40 source: './images/B14-90.png'
47 anchors.right: parent.right
48 anchors.rightMargin: 20
49 anchors.top: parent.top
51 source: './images/visa.png'
56 anchors.horizontalCenter: parent.horizontalCenter
57 anchors.bottom: parent.bottom
58 anchors.bottomMargin: 40
62 anchors.centerIn: parent
67 SequentialAnimation on font.letterSpacing {
70 NumberAnimation { from: 0; to: 50; easing.type: Easing.InQuad; duration: 3000 }
79 SequentialAnimation on opacity {
82 NumberAnimation { from: 1; to: 0; duration: 2600 }
83 PauseAnimation { duration: 400 }
87 function showHello(helloString) {
88 helloText.text = helloString
89 animation1.running = true;
90 animation2.running = true;
93 function showSign90(show) {
97 function showVisa(show) {
101 anchors.centerIn: parent
102 width: cellHeight * 3
103 height: cellHeight * 3
107 model: ApplicationModel {}
108 delegate: MouseArea {
113 source: './images/HMI_AppLauncher_%1_%2-01.png'.arg(model.icon).arg(pressed ? 'Active' : 'Inactive')
116 anchors.horizontalCenter: parent.horizontalCenter
117 horizontalAlignment: Text.AlignHCenter
120 font.family: "Roboto"
122 text: '%1'.arg(model.name)
123 function myChangeLanguage() {
124 text = '%1'.arg(model.name)
126 Component.onCompleted: {
127 root.languageChanged.connect(myChangeLanguage)
132 console.log("app is ", model.id)
133 pid = launcher.launch(model.id)
134 layoutHandler.makeMeVisible(pid)
136 applicationArea.visible = true
137 appLauncherAreaLauncher.visible = false
138 layoutHandler.showAppLayer()