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'
57 anchors.horizontalCenter: parent.horizontalCenter
58 anchors.bottom: parent.bottom
59 anchors.bottomMargin: 40
63 anchors.centerIn: parent
68 SequentialAnimation on font.letterSpacing {
71 NumberAnimation { from: 0; to: 50; easing.type: Easing.InQuad; duration: 3000 }
80 SequentialAnimation on opacity {
83 NumberAnimation { from: 1; to: 0; duration: 2600 }
84 PauseAnimation { duration: 400 }
88 function showHello(helloString) {
89 helloText.text = helloString
90 animation1.running = true;
91 animation2.running = true;
94 function showSign90(show) {
98 function showVisa(show) {
102 anchors.centerIn: parent
103 width: cellHeight * 3
104 height: cellHeight * 3
108 model: ApplicationModel {}
109 delegate: MouseArea {
114 source: './images/HMI_AppLauncher_%1_%2-01.png'.arg(model.icon).arg(pressed ? 'Active' : 'Inactive')
117 anchors.horizontalCenter: parent.horizontalCenter
118 horizontalAlignment: Text.AlignHCenter
121 font.family: "Roboto"
123 text: '%1'.arg(model.name)
124 function myChangeLanguage() {
125 text = '%1'.arg(model.name)
127 Component.onCompleted: {
128 root.languageChanged.connect(myChangeLanguage)
133 console.log("app is ", model.id)
134 pid = launcher.launch(model.id)
136 layoutHandler.makeMeVisible(pid)
138 applicationArea.visible = true
139 appLauncherAreaLauncher.visible = false
140 layoutHandler.showAppLayer(pid)
143 console.warn("app cannot be launched!")