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'
46 anchors.horizontalCenter: parent.horizontalCenter
47 anchors.bottom: parent.bottom
48 anchors.bottomMargin: 40
52 anchors.centerIn: parent
57 SequentialAnimation on font.letterSpacing {
60 NumberAnimation { from: 0; to: 50; easing.type: Easing.InQuad; duration: 3000 }
69 SequentialAnimation on opacity {
72 NumberAnimation { from: 1; to: 0; duration: 2600 }
73 PauseAnimation { duration: 400 }
77 function showHello(helloString) {
78 helloText.text = helloString
79 animation1.running = true;
80 animation2.running = true;
83 function showSign90(show) {
88 anchors.centerIn: parent
90 height: cellHeight * 3
94 model: ApplicationModel {}
100 source: './images/HMI_AppLauncher_%1_%2-01.png'.arg(model.icon).arg(pressed ? 'Active' : 'Inactive')
103 anchors.horizontalCenter: parent.horizontalCenter
104 horizontalAlignment: Text.AlignHCenter
107 font.family: "Roboto"
109 text: '%1'.arg(model.name)
110 function myChangeLanguage() {
111 text = '%1'.arg(model.name)
113 Component.onCompleted: {
114 root.languageChanged.connect(myChangeLanguage)
119 console.log("app is ", model.id)
120 pid = launcher.launch(model.id)
122 layoutHandler.makeMeVisible(pid)
124 applicationArea.visible = true
125 appLauncherAreaLauncher.visible = false
126 layoutHandler.showAppLayer(pid)
129 console.warn("app cannot be launched!")