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
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 if (appName === 'navigation' || appName === 'browser') {
140 container.opacity = 0.0
143 image.source = './images/normal.png'
145 container.state = 'normal'
146 touchArea.switchArea(0)
147 homescreenHandler.tapShortcut(appName, false)
148 if (appName === 'navigation' || appName === 'browser') {
149 container.opacity = 1.0