Warning, /plasma/plasma-mobile/components/mobileshellstate/qml/HomeScreenControls.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2020 Marco Martin <mart@kde.org>
0002 // SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
0003 // SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 import QtQuick 2.12
0006 import QtQuick.Window 2.2
0007 
0008 import org.kde.plasma.private.mobileshell 1.0 as MobileShell
0009 
0010 pragma Singleton
0011 
0012 /**
0013  * Provides access to the homescreen plasmoid containment within the shell.
0014  */
0015 QtObject {
0016     id: root
0017 
0018     signal openHomeScreen()
0019     signal resetHomeScreenPosition()
0020     signal requestRelativeScroll(point pos)
0021     
0022     signal openAppLaunchAnimation(string splashIcon, string title, real x, real y, real sourceIconSize)
0023     signal closeAppLaunchAnimation()
0024     
0025     property var taskSwitcher
0026     property QtObject homeScreenWindow
0027     property bool taskSwitcherVisible: false
0028 
0029     // this state is updated from WindowUtil
0030     property bool homeScreenVisible: true
0031 
0032     property var windowListener: Connections {
0033         target: MobileShell.WindowUtil
0034 
0035         function onAllWindowsMinimizedChanged() {
0036             root.homeScreenVisible = MobileShell.WindowUtil.allWindowsMinimized
0037         }
0038     }
0039 }