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
31 anchors.topMargin: -218
32 anchors.bottomMargin: -215
33 source: './images/AGL_HMI_Background_Car-01.png'
39 anchors.horizontalCenter: parent.horizontalCenter
40 anchors.top: parent.top
42 source: './images/B14-90.png'
48 anchors.left: parent.left
49 anchors.leftMargin: 20
50 anchors.top: parent.top
52 source: './images/us_flag.png'
59 anchors.right: parent.right
60 anchors.rightMargin: 20
61 anchors.top: parent.top
63 source: './images/visa.png'
67 anchors.top: parent.bottom
69 anchors.horizontalCenter: parent.horizontalCenter
70 horizontalAlignment: Text.AlignHCenter
79 anchors.horizontalCenter: parent.horizontalCenter
80 anchors.bottom: parent.bottom
81 anchors.bottomMargin: 40
85 anchors.centerIn: parent
87 text: 'No Authenticated User'
90 SequentialAnimation on font.letterSpacing {
93 NumberAnimation { from: 0; to: 50; easing.type: Easing.InQuad; duration: 3000 }
100 helloText.font.letterSpacing = 0
105 SequentialAnimation on opacity {
109 NumberAnimation { from: 1; to: 0; duration: 2600 }
110 PauseAnimation { duration: 400 }
114 function showHello(helloString) {
115 helloText.text = helloString
116 animation1.running = true;
117 animation2.running = true;
120 function showSign90(show) {
121 sign90.visible = show
124 function showVisa(show, num) {
126 cardNumber.text = num;
128 function changeFlag(flagImage) {
129 flagLanguage.source = flagImage
133 anchors.centerIn: parent
134 width: cellHeight * 3
135 height: cellHeight * 3
140 model: ApplicationModel {}
141 delegate: MouseArea {
147 source: './images/HMI_AppLauncher_%1_%2-01.png'.arg(model.icon).arg(pressed ? 'Active' : 'Inactive')
150 anchors.horizontalCenter: parent.horizontalCenter
151 horizontalAlignment: Text.AlignHCenter
154 font.family: "Roboto"
156 text: '%1'.arg(model.name)
157 function myChangeLanguage() {
158 text = '%1'.arg(model.name)
159 appImage.source = './images/HMI_AppLauncher_%1_%2-01.png'.arg(model.icon).arg(pressed ? 'Active' : 'Inactive')
161 Component.onCompleted: {
162 root.languageChanged.connect(myChangeLanguage)
167 console.log("app is ", model.id)
168 pid = launcher.launch(model.id)
170 layoutHandler.makeMeVisible(pid)
172 applicationArea.visible = true
173 appLauncherAreaLauncher.visible = false
174 layoutHandler.showAppLayer(pid)
177 console.warn("app cannot be launched!")
184 width: sourceSize.width
185 height: sourceSize.height
186 anchors.bottom: parent.bottom
187 anchors.right: parent.right
188 anchors.bottomMargin: 10
189 anchors.rightMargin: 20
190 source: './images/Logout-01.png'
197 helloText.text= 'No Authenticated User'