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
75 target: applicationArea
90 target: applicationArea
99 transitions: Transition {
103 easing.type: "OutQuad"
109 easing.type: "OutQuad"
119 anchors.right: parent.right
120 anchors.top: parent.top
122 property bool enableSwitchBtn: true
124 anchors.right: parent.right
125 anchors.rightMargin: 20
126 anchors.top: parent.top
127 anchors.topMargin: 25
131 source: './images/normal.png'
137 if(switchBtn.enableSwitchBtn) {
138 var appName = homescreenHandler.getCurrentApplication()
139 if (container.state === 'normal') {
140 image.source = './images/fullscreen.png'
141 container.state = 'fullscreen'
142 touchArea.switchArea(1)
143 homescreenHandler.tapShortcut(appName, true)
145 image.source = './images/normal.png'
146 container.state = 'normal'
147 touchArea.switchArea(0)
148 homescreenHandler.tapShortcut(appName, false)
154 function changeSwitchState(is_split) {
155 if(container.state === 'normal') {
157 switchBtn.enableSwitchBtn = false
158 image.source = './images/normal_disable.png'
160 switchBtn.enableSwitchBtn = true
161 image.source = './images/normal.png'