2 * Copyright (C) 2016 The Qt Company Ltd.
3 * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 import QtQuick.Layouts 1.1
20 import QtQuick.Controls 1.0
26 signal languageChanged
30 anchors.topMargin: -218
31 anchors.bottomMargin: -215
32 source: './images/AGL_HMI_Background_Car-01.png'
38 anchors.horizontalCenter: parent.horizontalCenter
39 anchors.top: parent.top
41 source: './images/B14-90.png'
48 anchors.right: parent.right
49 anchors.rightMargin: 20
50 anchors.top: parent.top
52 source: './images/visa.png'
56 anchors.top: parent.bottom
58 anchors.horizontalCenter: parent.horizontalCenter
59 horizontalAlignment: Text.AlignHCenter
68 anchors.horizontalCenter: parent.horizontalCenter
69 anchors.bottom: parent.bottom
70 anchors.bottomMargin: 40
74 anchors.centerIn: parent
79 SequentialAnimation on font.letterSpacing {
82 NumberAnimation { from: 0; to: 50; easing.type: Easing.InQuad; duration: 3000 }
91 SequentialAnimation on opacity {
94 NumberAnimation { from: 1; to: 0; duration: 2600 }
95 PauseAnimation { duration: 400 }
99 function showHello(helloString) {
100 helloText.text = helloString
101 animation1.running = true;
102 animation2.running = true;
105 function showSign90(show) {
106 sign90.visible = show
109 function showVisa(show, num) {
111 cardNumber.text = num;
114 anchors.centerIn: parent
115 width: cellHeight * 3
116 height: cellHeight * 3
120 model: ApplicationModel {}
121 delegate: MouseArea {
126 source: './images/HMI_AppLauncher_%1_%2-01.png'.arg(model.icon).arg(pressed ? 'Active' : 'Inactive')
129 anchors.horizontalCenter: parent.horizontalCenter
130 horizontalAlignment: Text.AlignHCenter
133 font.family: "Roboto"
135 text: '%1'.arg(model.name)
136 function myChangeLanguage() {
137 text = '%1'.arg(model.name)
139 Component.onCompleted: {
140 root.languageChanged.connect(myChangeLanguage)
145 console.log("app is ", model.id)
146 pid = launcher.launch(model.id)
148 layoutHandler.makeMeVisible(pid)
150 applicationArea.visible = true
151 appLauncherAreaLauncher.visible = false
152 layoutHandler.showAppLayer(pid)
155 console.warn("app cannot be launched!")