2 * Copyright (C) 2016 The Qt Company Ltd.
3 * Copyright (C) 2016, 2017 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.Window 2.1
20 import QtQuick.Layouts 1.1
25 flags: Qt.FramelessWindowHint
26 width: container.width * container.scale
27 height: container.height * container.scale
33 anchors.centerIn: parent
36 scale: screenInfo.scale_factor()
37 source: './images/AGL_HMI_Blue_Background_NoCar-01.png'
44 Layout.fillWidth: true
45 Layout.preferredHeight: 218
50 Layout.fillWidth: true
51 Layout.fillHeight: true
52 Layout.preferredHeight: 1920 - 218 - 215
59 Layout.fillWidth: true
60 Layout.fillHeight: true
61 Layout.preferredHeight: 215
73 target: applicationArea
88 target: applicationArea
97 transitions: Transition {
101 easing.type: "OutQuad"
107 easing.type: "OutQuad"
115 anchors.right: parent.right
116 anchors.rightMargin: 20
117 anchors.top: parent.top
118 anchors.topMargin: 25
125 property string btnState: 'normal'
129 source: './images/normal.png'
132 var appName = homescreenHandler.getCurrentApplication()
133 if (btnState === 'normal') {
134 image.source = './images/fullscreen.png'
135 btnState = 'fullscreen'
136 container.state = 'fullscreen'
137 touchArea.switchArea(1)
138 homescreenHandler.tapShortcut(appName, true)
139 container.opacity = 0.0
141 image.source = './images/normal.png'
143 container.state = 'normal'
144 touchArea.switchArea(0)
145 homescreenHandler.tapShortcut(appName, false)
146 container.opacity = 1.0
158 bottomInformation.visible = false
163 id: bottomInformation
166 anchors.bottom: parent.bottom
170 anchors.centerIn: parent
172 font.letterSpacing: 5
173 horizontalAlignment: Text.AlignHCenter
181 target: homescreenHandler
183 bottomText.text = info
184 bottomInformation.visible = true
185 informationTimer.restart()
194 onTriggered: notificationItem.visible = false
209 height: parent.height
216 anchors.left: parent.left
217 anchors.leftMargin: 20
218 anchors.verticalCenter: parent.verticalCenter
225 anchors.left: notificationIcon.right
226 anchors.leftMargin: 5
227 anchors.verticalCenter: parent.verticalCenter
235 target: homescreenHandler
236 onShowNotification: {
237 notificationIcon.source = icon_path
238 notificationtext.text = text
239 notificationItem.visible = true
240 notificationTimer.restart()