2022-11-11 16:21:12 +00:00
|
|
|
// SPDX-FileCopyrightText: 2020 Marco Martin <mart@kde.org>
|
|
|
|
|
// SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-07-22 14:13:20 +00:00
|
|
|
|
|
|
|
|
import QtQuick 2.12
|
|
|
|
|
import QtQuick.Window 2.2
|
|
|
|
|
|
2022-12-11 02:05:13 +00:00
|
|
|
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
|
|
|
|
|
2020-07-22 14:13:20 +00:00
|
|
|
pragma Singleton
|
|
|
|
|
|
2021-12-29 05:08:32 +00:00
|
|
|
/**
|
|
|
|
|
* Provides access to the homescreen plasmoid containment within the shell.
|
|
|
|
|
*/
|
2020-07-22 14:13:20 +00:00
|
|
|
QtObject {
|
2022-12-11 02:05:13 +00:00
|
|
|
id: root
|
2020-07-22 14:13:20 +00:00
|
|
|
|
2021-12-25 03:31:33 +00:00
|
|
|
signal openHomeScreen()
|
2020-07-22 14:13:20 +00:00
|
|
|
signal resetHomeScreenPosition()
|
2021-04-13 12:03:05 +00:00
|
|
|
signal requestRelativeScroll(point pos)
|
2021-12-25 03:31:33 +00:00
|
|
|
|
2022-03-20 18:24:44 +00:00
|
|
|
signal openAppLaunchAnimation(string splashIcon, string title, real x, real y, real sourceIconSize)
|
|
|
|
|
signal closeAppLaunchAnimation()
|
2021-12-29 05:08:32 +00:00
|
|
|
|
2021-12-25 03:31:33 +00:00
|
|
|
property var taskSwitcher
|
2020-07-22 15:17:10 +00:00
|
|
|
property QtObject homeScreenWindow
|
2020-07-30 15:20:07 +00:00
|
|
|
property bool taskSwitcherVisible: false
|
2022-12-11 02:05:13 +00:00
|
|
|
|
|
|
|
|
// this state is updated from WindowUtil
|
|
|
|
|
property bool homeScreenVisible: true
|
|
|
|
|
|
|
|
|
|
property var windowListener: Connections {
|
|
|
|
|
target: MobileShell.WindowUtil
|
|
|
|
|
|
|
|
|
|
function onAllWindowsMinimizedChanged() {
|
|
|
|
|
root.homeScreenVisible = MobileShell.WindowUtil.allWindowsMinimized
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-07-22 14:13:20 +00:00
|
|
|
}
|