diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cd4c83b..a65765f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,8 +52,6 @@ include(CheckIncludeFiles) plasma_install_package(look-and-feel org.kde.plasma.phone look-and-feel) plasma_install_package(shell org.kde.plasma.phoneshell shells) -install(DIRECTORY kwinmultitasking/ DESTINATION ${DATA_INSTALL_DIR}/kwin/scripts/org.kde.phone.multitasking) -install(FILES kwinmultitasking/metadata.desktop DESTINATION ${SERVICES_INSTALL_DIR} RENAME kwin-script-org.kde.phone.multitasking.desktop) install(FILES plasma_phone_components.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR}) install(DIRECTORY components/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/mobileshell) diff --git a/applets/clock/Messages.sh b/applets/clock/Messages.sh deleted file mode 100755 index 2e97a97d..00000000 --- a/applets/clock/Messages.sh +++ /dev/null @@ -1,4 +0,0 @@ -#! /usr/bin/env bash -$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp -$XGETTEXT `find . -name \*.js -o -name \*.qml -o -name \*.cpp` -o $podir/plasma_applet_org.kde.phone.clock.pot -rm -f rc.cpp diff --git a/applets/clock/contents/ui/main.qml b/applets/clock/contents/ui/main.qml deleted file mode 100644 index 3b770d01..00000000 --- a/applets/clock/contents/ui/main.qml +++ /dev/null @@ -1,34 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2014 Aaron Seigo - * SPDX-FileCopyrightText: 2015 Marco Martin - * - * SPDX-License-Identifier: LGPL-2.0-or-later - */ - -import QtQuick 2.1 -import QtQuick.Layouts 1.1 -import org.kde.plasma.core 2.0 as PlasmaCore -import org.kde.plasma.components 2.0 as PlasmaComponents - - -PlasmaComponents.Label { - id: bigClock - - PlasmaCore.DataSource { - id: timeSource - engine: "time" - connectedSources: ["Local"] - interval: 60 * 1000 - } - - Layout.minimumWidth: implicitWidth - Layout.minimumHeight: implicitHeight - - text: Qt.formatTime(timeSource.data.Local.DateTime, "hh:mm") - color: PlasmaCore.ColorScope.textColor - horizontalAlignment: Qt.AlignHCenter - verticalAlignment: Qt.AlignVCenter - font.pointSize: 40 - style: Text.Raised - styleColor: "black" -} diff --git a/applets/clock/metadata.desktop b/applets/clock/metadata.desktop deleted file mode 100644 index 2e5abda0..00000000 --- a/applets/clock/metadata.desktop +++ /dev/null @@ -1,93 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Name=Clock -Name[ast]=Reló -Name[ca]=Rellotge -Name[ca@valencia]=Rellotge -Name[cs]=Hodiny -Name[da]=Ur -Name[de]=Uhr -Name[el]=Ρολόι -Name[en_GB]=Clock -Name[es]=Reloj -Name[et]=Kell -Name[eu]=Erlojua -Name[fi]=Kello -Name[fr]=Horloge -Name[gl]=Reloxo -Name[hu]=Óra -Name[ia]=Clock (Horologio) -Name[id]=Jam -Name[it]=Orologio -Name[ko]=시계 -Name[lt]=Laikrodis -Name[nl]=Klok -Name[nn]=Klokke -Name[pa]=ਘੜੀ -Name[pl]=Zegar -Name[pt]=Relógio -Name[pt_BR]=Relógio -Name[ro]=Ceas -Name[ru]=Часы -Name[sk]=Hodiny -Name[sl]=Ura -Name[sv]=Klocka -Name[tr]=Saat -Name[uk]=Годинник -Name[x-test]=xxClockxx -Name[zh_CN]=时钟 -Name[zh_TW]=時鐘 - -Comment=Time displayed in a digital format -Comment[ast]=La hora amuésase en formatu dixital -Comment[ca]=Mostra l'hora en un format digital -Comment[ca@valencia]=Mostra l'hora en un format digital -Comment[cs]=Čas zobrazený v digitální podobě -Comment[da]=Tiden vist i et digitalt format -Comment[de]=Zeigt die Uhrzeit in digitaler Form an -Comment[en_GB]=Time displayed in a digital format -Comment[es]=La hora mostrada en formato digital -Comment[et]=Aja esitamine digitaalsel kujul -Comment[eu]=Ordua azaldu formatu digitalean -Comment[fi]=Aika näytettynä digitaalimuodossa -Comment[fr]=Heure affichée dans un format numérique -Comment[gl]=A hora mostrada nun formato dixital. -Comment[hu]=Digitális formában kijelzett idő -Comment[ia]=Tempore monstrate in formato digital -Comment[id]=Waktu ditampilkan dalam format digital -Comment[it]=Ora visualizzata in un formato digitale -Comment[ko]=디지털 형식으로 시간 표시 -Comment[lt]=Skaitmeniniu formatu rodomas laikas -Comment[nl]=Tijd weergegeven in een digitale opmaak -Comment[nn]=Klokka vist i digitalformat -Comment[pa]=ਡਿਜ਼ਿਟਲ ਫਾਰਮੈਟ ਵਿੱਚ ਦਿਖਾਇਆ ਸਮਾਂ -Comment[pl]=Wyświetla czas w formacie cyfrowym -Comment[pt]=A hora apresentada num formato digital -Comment[pt_BR]=Hora exibida em formato digital -Comment[ro]=Ora afișată în format digital -Comment[ru]=Показ времени цифрами -Comment[sk]=Čas zobrazený v digitálnom formáte -Comment[sl]=Čas prikazan v digitalnem formatu -Comment[sv]=Tid visad med digitalformat -Comment[tr]=Saati, sayısal biçimde göster -Comment[uk]=Час, показаний у цифровому форматі -Comment[x-test]=xxTime displayed in a digital formatxx -Comment[zh_CN]=已数字格式显示时间 -Comment[zh_TW]=以數位格式顯示時間 - -Icon=preferences-system-time -Type=Service -X-KDE-ParentApp= -X-KDE-PluginInfo-Author=Marco Martin -X-KDE-PluginInfo-Email=mart@kde.org -X-KDE-PluginInfo-License=GPL -X-KDE-PluginInfo-Name=org.kde.phone.clock -X-KDE-PluginInfo-Version=1.0 -X-KDE-PluginInfo-Website=https://kde.org/plasma-desktop -X-KDE-ServiceTypes=Plasma/Applet -X-Plasma-API=declarativeappletscript -X-KDE-PluginInfo-Category=Date and Time -X-Plasma-Provides=org.kde.plasma.time - -X-Plasma-MainScript=ui/main.qml -X-Plasma-RemoteLocation= diff --git a/kwinmultitasking/contents/ui/Switcher.qml b/kwinmultitasking/contents/ui/Switcher.qml deleted file mode 100644 index 532ea7e8..00000000 --- a/kwinmultitasking/contents/ui/Switcher.qml +++ /dev/null @@ -1,185 +0,0 @@ -/* - KWin - the KDE window manager - This file is part of the KDE project. - -SPDX-FileCopyrightText: 2012, 2013 Martin Gräßlin - -SPDX-License-Identifier: GPL-2.0-or-later -*/ -import QtQuick 2.12; -import QtQuick.Layouts 1.2 -import QtQuick.Window 2.0; -import org.kde.plasma.core 2.0 as PlasmaCore; -import org.kde.plasma.components 2.0 as PlasmaComponents; -import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons; -import org.kde.kwin 2.0 as KWinScripting; - -PlasmaCore.Dialog { - id: dialog - location: PlasmaCore.Types.Floating - visible: false - flags: Qt.X11BypassWindowManagerHint - backgroundHints: PlasmaCore.Dialog.NoBackground - - property alias view: view - - function open() { - dialog.visible = true; - showAnim.restart(); - } - function close() { - hideAnim.restart(); - } - - mainItem: Rectangle { - width: workspace.virtualScreenSize.width - height: workspace.virtualScreenSize.height - color: Qt.rgba(0, 0, 0, 0.5) - - SequentialAnimation { - id: hideAnim - NumberAnimation { - target: view - properties: "contentY" - to: -view.height - duration: units.longDuration - easing.type: Easing.InOutQuad - } - ScriptAction { - script: dialog.visible = false; - } - } - NumberAnimation { - id: showAnim - target: view - properties: "contentY" - to: 0 - duration: units.longDuration - easing.type: Easing.InOutQuad - } - GridView { - id: view - anchors.fill: parent - cacheBuffer: 9999 - - cellWidth: width / Math.floor(width / (units.gridUnit * 10)) - cellHeight: cellWidth / (workspace.virtualScreenSize.width / workspace.virtualScreenSize.height) + units.gridUnit * 3 - model: KWinScripting.ClientModel { - id: clientModel - exclusions: KWinScripting.ClientModel.NotAcceptingFocusExclusion | - KWinScripting.ClientModel.DesktopWindowsExclusion | - KWinScripting.ClientModel.DockWindowsExclusion | - KWinScripting.ClientModel.SwitchSwitcherExclusion - } - MouseArea { - parent: view.contentItem - anchors { - left: parent.left - right: parent.right - } - height: Math.max(parent.height, view.height) - onClicked: dialog.close() - } - onMovingChanged: { - if (moving) { - return; - } - if (contentY < -view.height/2) { - hideAnim.running = true - } else if (contentY >= -view.height/2 && contentY < 0) { - showAnim.running = true - } - } - topMargin: height - bottomMargin: height - delegate: MouseArea { - width: view.cellWidth - height: view.cellHeight - drag.target: decoration - drag.axis: Drag.XAxis - - onReleased: { - if (decoration.x > decoration.width / 2) { - windowCloseAnim.to = decoration.width - windowCloseAnim.restart() - } else if (decoration.x < -decoration.width / 2) { - windowCloseAnim.to = -decoration.width - windowCloseAnim.restart() - } else { - resetAnim.restart(); - } - } - NumberAnimation { - id: resetAnim - target: decoration - property: "x" - from: decoration.x - to: 0 - duration: units.longDuration - easing.type: Easing.InOutQuad - } - SequentialAnimation { - id: windowCloseAnim - property alias to: internalAnim.to - NumberAnimation { - id: internalAnim - property: "x" - target: decoration - duration: units.longDuration - easing.type: Easing.InOutQuad - } - ScriptAction { - script: { - model.client.closeWindow() - decoration.x = 0; - } - } - } - Rectangle { - id: decoration - opacity: 1 - Math.abs(x / width) - width: parent.width - units.smallSpacing*2 - height: parent.height - units.smallSpacing*2 - radius: 3 - color: theme.backgroundColor - - ColumnLayout { - anchors { - fill: parent - margins: units.smallSpacing - } - RowLayout { - Layout.fillWidth: true - PlasmaComponents.Label { - Layout.fillWidth: true - elide: Text.ElideRight - text: model.client.caption - } - PlasmaComponents.ToolButton { - iconSource: "window-close" - onClicked: model.client.closeWindow() - visible: model.client.closeable - } - } - KWinScripting.ThumbnailItem { - Layout.fillWidth: true - Layout.fillHeight: true - //parentWindow: dialog.windowId - opacity: decoration.opacity - client: model.client - } - } - - } - onClicked: { - workspace.activeClient = model.client - hideAnim.running = true - } - } - } - } - - Component.onCompleted: { - KWin.registerWindow(dialog); - } -} diff --git a/kwinmultitasking/contents/ui/main.qml b/kwinmultitasking/contents/ui/main.qml deleted file mode 100644 index 0637b12f..00000000 --- a/kwinmultitasking/contents/ui/main.qml +++ /dev/null @@ -1,54 +0,0 @@ -/* - This file is part of the KDE project. - -SPDX-FileCopyrightText: 2015 Marco Martin - -SPDX-License-Identifier: GPL-2.0-or-later -*/ -import QtQuick 2.0 -import org.kde.plasma.core 2.0 as PlasmaCore -import org.kde.kwin 2.0; - -Item { - id: root - - function peekWindowList(amount) { - - switcher.view.contentY = amount; - switcher.visible = true; - //panelLoader.item.raise(); - } - - function showWindowList() { - switcher.open(); - //panelLoader.item.raise(); - } - - function closeWindowList() { - switcher.close(); - } - - Switcher { - id: switcher - } - - Connections { - target: workspace - onCurrentDesktopChanged: { - if (!switcher) { - mainItemLoader.source = "switcher.qml"; - } - switcher.visible = true; - } - } - - Loader { - id: panelLoader - } - - Component.onCompleted: { - panelLoader.source = "panel.qml" - } -} - - diff --git a/kwinmultitasking/contents/ui/panel.qml b/kwinmultitasking/contents/ui/panel.qml deleted file mode 100644 index ddb19975..00000000 --- a/kwinmultitasking/contents/ui/panel.qml +++ /dev/null @@ -1,95 +0,0 @@ -/* - This file is part of the KDE project. - -SPDX-FileCopyrightText: 2015 Marco Martin - -SPDX-License-Identifier: GPL-2.0-or-later -*/ -import QtQuick 2.0 -import QtQuick.Layouts 1.4 -import QtQuick.Window 2.0 -import org.kde.plasma.core 2.0 as PlasmaCore -import org.kde.plasma.components 3.0 as PlasmaComponents -import org.kde.kwin 2.0 - -PlasmaCore.Dialog { - id: panel - y: workspace.virtualScreenSize.height - height - flags: Qt.X11BypassWindowManagerHint - type: PlasmaCore.Dialog.Dock - backgroundHints: PlasmaCore.Dialog.NoBackground - - mainItem: MouseArea { - width: workspace.virtualScreenSize.width - height: units.iconSizes.medium - property int startY - property bool dragging - - onPressed: { - startY = mouse.y; - dragging = false - } - onPositionChanged: { - if (Math.abs(mouse.y - startY) > height) { - dragging = true; - } - if (dragging) { - root.peekWindowList(-workspace.virtualScreenSize.height - mouse.y); - } - } - onReleased: { - if (dragging) { - if (mouse.y < -workspace.virtualScreenSize.height/2) { - root.showWindowList(); - } else { - root.closeWindowList(); - } - return; - } - var button = layout.childAt(mouse.x, mouse.y); - if (button) { - button.click(); - } - } - - Rectangle { - anchors.fill: parent - color: theme.backgroundColor - } - - RowLayout { - id: layout - anchors.fill: parent - PlasmaCore.IconItem { - Layout.fillWidth: true - Layout.fillHeight: true - source: "box" - function click() { root.showWindowList();} - } - - PlasmaCore.IconItem { - Layout.fillWidth: true - Layout.fillHeight: true - source: "start-here-kde" - function click() { - root.closeWindowList(); - workspace.slotToggleShowDesktop(); - } - } - - PlasmaCore.IconItem { - Layout.fillWidth: true - Layout.fillHeight: true - source: "paint-none" - enabled: workspace.activeClient - function click() { workspace.activeClient.closeWindow();} - } - } - } - Component.onCompleted: { - KWin.registerWindow(panel); - panel.visible = true; - - panel.y = workspace.virtualScreenSize.height - height - } -} diff --git a/kwinmultitasking/metadata.desktop b/kwinmultitasking/metadata.desktop deleted file mode 100644 index 81fc3a62..00000000 --- a/kwinmultitasking/metadata.desktop +++ /dev/null @@ -1,86 +0,0 @@ -[Desktop Entry] -Name=Phone multitask -Name[ast]=Multixera de teléfonos -Name[ca]=Multitasca del telèfon -Name[ca@valencia]=Multitasca del telèfon -Name[da]=Multitask til telefon -Name[en_GB]=Phone multitask -Name[es]=Multitarea del teléfono -Name[et]=Multitegumtelefon -Name[eu]=Telefonoko ataza-anizkuna -Name[fi]=Phonen moniajo -Name[fr]=Multi-tâches pour téléphone -Name[gl]=Multi-tarefa do teléfono -Name[hu]=Telefon multitask -Name[ia]=Multitask de Phone -Name[id]=Multitask ponsel -Name[it]=Multitasking del telefono -Name[ko]=전화 멀티태스킹 -Name[lt]=Telefono daugiaprogramis apdorojimas -Name[nl]=Multitasking van de telefoon -Name[nn]=Telefon-multitasking -Name[pa]=ਫ਼ੋਨ ਬਹੁ-ਟਾਸਕ -Name[pl]=Wiele zadań na telefonie -Name[pt]=Multi-Tarefas do Telefone -Name[pt_BR]=Multitarefas do celular -Name[ro]=Sarcini multiple pe telefon -Name[ru]=Многозадачность для телефона -Name[sk]=Multitask telefónu -Name[sl]=Večopravilni telefon -Name[sv]=Flera uppgifter på telefonen -Name[tr]=Telefon çoklu görev -Name[uk]=Багатозадачний телефон -Name[x-test]=xxPhone multitaskxx -Name[zh_CN]=手机多任务 -Name[zh_TW]=手機多工 -Comment=Multitasking user interface for Phone devices -Comment[ast]=Interfaz d'usuariu multixera pa teléfonos -Comment[ca]=Interfície d'usuari multitasca per als dispositius de telèfon -Comment[ca@valencia]=Interfície d'usuari multitasca per als dispositius de telèfon -Comment[da]=Brugerflade med multitasking til telefoner -Comment[de]=Multitasking-Benutzeroberfläche für Plasma-Telefongeräte -Comment[en_GB]=Multitasking user interface for Phone devices -Comment[es]=Interfaz de usuario multitarea para teléfonos -Comment[et]=Telefonide multitegumtöö kasutajaliides -Comment[eu]=Telefono gailuentzako ataza-anizkuneko erabiltzaile interfazea -Comment[fi]=Moniajokäyttöliittymä Phone-laitteisiin -Comment[fr]=Interface utilisateur multi-tâches du téléphone -Comment[gl]=Interface de usuario multi-tarefa para dispositivos móbiles. -Comment[hu]=Multitask felület telefonokhoz -Comment[ia]=Interfacie de usator multitasking per dipositivos de Phone -Comment[id]=Antarmuka pengguna multitasking untuk perangkat Ponsel -Comment[it]=Interfaccia utente multitasking per i telefoni -Comment[ko]=전화기 장치의 멀티태스킹 사용자 인터페이스 -Comment[lt]=Daugiaprogramio apdorojimo naudotojo sąsaja telefono įrenginiams -Comment[nl]=Gebruikersinterface voor multitasking voor telefoonapparaten -Comment[nn]=Multitaskingsgrensesnitt for telefoneiningar -Comment[pa]=ਫ਼ੋਨ ਡਿਵਾਈਸਾਂ ਲਈ ਬਹੁ-ਟਾਸਕ ਵਰਤੋਂਕਾਰ ਇੰਟਰਫੇਸ -Comment[pl]=Interfejs użytkownika dla telefonów do wykonywania wielu zadań -Comment[pt]=Interface multi-tarefa para dispositivos telefónicos -Comment[pt_BR]=Interface de multitarefas para celulares -Comment[ro]=Interfață cu sarcini multiple pentru dispozitive telefonice -Comment[ru]=Интерфейс пользователя с поддержкой многозадачности для телефонов -Comment[sk]=Rozhranie multitaskingu pre telefóny -Comment[sl]=Večopravilni uporabniški vmesnik za telefonske naprave -Comment[sv]=Användargränssnitt med flera uppgifter för telefoner -Comment[tr]=Telefon aygıtları için çoklu görev kullanıcı arayüzü -Comment[uk]=Багатозадачний інтерфейс користувача для телефонних пристроїв -Comment[x-test]=xxMultitasking user interface for Phone devicesxx -Comment[zh_CN]=为手机设备设计的多任务用户界面 -Comment[zh_TW]=手機裝置的多工使用者介面 - -Icon=preferences-system-windows-script-test - -X-Plasma-API=declarativescript -X-Plasma-MainScript=ui/main.qml -X-KWin-Exclude-Listing=false - -X-KDE-PluginInfo-Author=Marco Martin -X-KDE-PluginInfo-Email=mart@kde.org -X-KDE-PluginInfo-Name=org.kde.phone.multitasking -X-KDE-PluginInfo-Version=1.0 -X-KDE-PluginInfo-EnabledByDefault=false - -X-KDE-PluginInfo-License=GPL -X-KDE-ServiceTypes=KWin/Script -Type=Service