Commit 79bf2344 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

applets/activities & applets/krunner: Remove from repo

These applets are not being used at all on the base image
parent 89617c70
Pipeline #132912 passed with stage
in 50 seconds
......@@ -62,7 +62,6 @@ plasma_install_package(shell org.kde.plasma.phoneshell shells)
install(FILES plasma_phone_components.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR})
add_subdirectory(bin)
add_subdirectory(applets)
add_subdirectory(containments)
add_subdirectory(components)
add_subdirectory(quicksettings)
......
# SPDX-FileCopyrightText: 2015-2020 Marco Martin <mart@kde.org>
# SPDX-License-Identifier: GPL-2.0-or-later
plasma_install_package(activities org.kde.phone.activities)
#plasma_install_package(clock org.kde.phone.clock)
plasma_install_package(krunner org.kde.phone.krunner)
#! /usr/bin/env bash
# SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org>
# SPDX-License-Identifier: GPL-2.0-or-later
$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.activities.pot
rm -f rc.cpp
/*
* SPDX-FileCopyrightText: 2016 Marco Martin <notmart@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.5
import QtQuick.Layouts 1.1
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents //Needed for Highlight
import org.kde.plasma.components 3.0 as PlasmaComponents3
import org.kde.activities 0.1 as Activities
ColumnLayout {
PlasmaComponents3.ToolButton {
id: newButton
Layout.fillWidth: true
text: i18n("New Activity...")
onClicked: {
newEdit.visible = true;
newEdit.forceActiveFocus();
}
PlasmaComponents3.TextField {
id: newEdit
visible: false
width: parent.width
onFocusChanged: {
if (!focus) {
visible = false
}
}
onAccepted: {
if (text != "") {
activityModel.addActivity(text, function(id) {
visible = false;
activityModel.setCurrentActivity(id, function() {
plasmoid.expanded = false;
});
});
}
}
}
}
MouseArea {
id: rootMouseArea
Layout.fillWidth: true
Layout.fillHeight: true
drag.filterChildren: true
onClicked: newEdit.visible = false
ListView {
id: listView
anchors.fill: parent
model: Activities.ActivityModel {
id: activityModel
}
delegate: MouseArea {
id: delegate
preventStealing: true
drag {
target: listView.count > 0 ? delegate : null
axis: Drag.XAxis
}
PlasmaComponents.Highlight {
visible: model.current
anchors.fill:parent
}
Connections {
target: rootMouseArea
onClicked: {
if (!delegate.contains(rootMouseArea.mapToItem(delegate, mouse.x, mouse.y))) {
edit.visible = false;
}
}
}
Connections {
target: newButton
onClicked: edit.visible = false;
}
SequentialAnimation {
id: positionAnim
property alias to: xAnim.to
XAnimator {
id: xAnim
target: delegate
from: delegate.x
duration: PlasmaCore.Units.longDuration
easing.type: Easing.InOutQuad
}
ScriptAction {
script: {
if (delegate.x < -delegate.width/2 || delegate.x > delegate.width/2) {
activityModel.removeActivity(model.id, function() {});
}
}
}
}
width: listView.width
height: Math.max(label.height, label.height)
onClicked: {
listView.currentIndex = index;
activityModel.startActivity(model.id, function() {
activityModel.setCurrentActivity(model.id, function() {
plasmoid.expanded = false;
});
});
}
onPressAndHold: {
edit.visible = true
edit.focus = true
}
onReleased: {
if (edit.visible) {
edit.focus = true
edit.forceActiveFocus()
}
if (delegate.x < -delegate.width/2) {
positionAnim.to = -delegate.width;
} else if (delegate.x > delegate.width/2) {
positionAnim.to = delegate.width;
} else {
positionAnim.to = 0;
}
positionAnim.running = true;
}
PlasmaComponents3.Label {
id: label
text: model.name
anchors.verticalCenter: parent.verticalCenter
x: PlasmaCore.Units.smallSpacing
}
PlasmaComponents3.TextField {
id: edit
visible: false
text: model.name
width: parent.width
onFocusChanged: {
if (!focus) {
visible = false
}
}
onAccepted: {
if (text != "") {
activityModel.setActivityName(model.id, text, function() {visible = false});
}
}
}
}
}
}
}
# SPDX-FileCopyrightText: 2015-2016 Marco Martin <mart@kde.org>
# SPDX-License-Identifier: GPL-2.0-or-later
[Desktop Entry]
Encoding=UTF-8
Name=Phone Activities
Name[ast]=Actividaes del teléfonu
Name[ca]=Activitats del telèfon
Name[ca@valencia]=Activitats del telèfon
Name[cs]=Aktivity telefonu
Name[da]=Aktiviteter til telefon
Name[de]=Telefonaktivitäten
Name[en_GB]=Phone Activities
Name[es]=Actividades del teléfono
Name[et]=Telefonitegevused
Name[eu]=Telefono jarduerak
Name[fi]=Puhelinaktiviteetit
Name[fr]=Activités du téléphone
Name[gl]=Actividades de teléfono
Name[hu]=Telefon aktivitások
Name[ia]=Activitates de telephono
Name[id]=Aktivitas Ponsel
Name[it]=Attività del telefono
Name[ko]=전화 활동
Name[lt]=Telefono veiklos
Name[nl]=Telefoonactiviteiten
Name[nn]=Telefonaktivitetar
Name[pa]=ਫ਼ੋਨ ਸਰਗਰਮੀਆਂ
Name[pl]=Aktywności telefonu
Name[pt]=Actividades do Telefone
Name[pt_BR]=Atividades do celular
Name[ro]=Activități pe telefon
Name[ru]=Комнаты
Name[sk]=Aktivity telefónu
Name[sl]=Opravila telefona
Name[sv]=Telefonaktiviteter
Name[tr]=Telefon Etkinlikleri
Name[uk]=Простори дій телефону
Name[x-test]=xxPhone Activitiesxx
Name[zh_CN]=手机活动
Name[zh_TW]=手機活動
Comment=Activity switcher for the phone
Comment[ast]=Conmutador d'actividaes del teléfonu
Comment[ca]=Commutador de l'activitat per al telèfon
Comment[ca@valencia]=Commutador de l'activitat per al telèfon
Comment[cs]=Přepínač aktivit pro telefon
Comment[da]=Aktivitetsskifter til telefon
Comment[de]=Aktivitätenwechsler für das Telefon
Comment[en_GB]=Activity switcher for the phone
Comment[es]=Selector de actividad para el teléfono
Comment[et]=Telefoni tegevuste lülitaja
Comment[eu]=Telefonorako jarduera aldatzailea
Comment[fi]=Akviteettivaihtaja puhelimeen
Comment[fr]=Gestionnaire d'activités pour téléphone
Comment[gl]=Cambiador de actividade para o teléfono.
Comment[hu]=Aktivitásváltó a telefonhoz
Comment[ia]=Commutator de activitate per le telephono
Comment[id]=Pengalih aktivitas untuk ponsel
Comment[it]=Selettore di attività per il telefono
Comment[ko]=전화기의 활동 전환기
Comment[lt]=Veiklų perjungiklis telefonui
Comment[nl]=Omschakelaar van telefoonactiviteiten
Comment[nn]=Aktivitetsbytar for telefon
Comment[pa]=ਫ਼ੋਨ ਲਈ ਸਰਗਰਮੀ ਸਵਿੱਚਰ
Comment[pl]=Przełącznik aktywności dla tego telefonu
Comment[pt]=Selector de actividades do telefone
Comment[pt_BR]=Alternador de atividade para o celular
Comment[ro]=Comutator de activități pentru telefon
Comment[ru]=Переключатель комнат для телефона
Comment[sk]=Prepínač aktivít pre telefón
Comment[sl]=Preklop opravil za telefon
Comment[sv]=Aktivitetsbyte för telefonen
Comment[tr]=Telefon için etkinlik değiştirici
Comment[uk]=Перемикач дій для телефону
Comment[x-test]=xxActivity switcher for the phonexx
Comment[zh_CN]=手机的活动切换器
Comment[zh_TW]=手機的活動切換器
Icon=preferences-activities
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.activities
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=Activities
X-Plasma-Provides=org.kde.plasma.activities
X-Plasma-MainScript=ui/main.qml
X-Plasma-RemoteLocation=
#! /usr/bin/env bash
# SPDX-FileCopyrightText: 2015-2020 Marco Martin <mart@kde.org>
# SPDX-License-Identifier: GPL-2.0-or-later
$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.krunner.pot
rm -f rc.cpp
/*
* SPDX-FileCopyrightText: 2014 Aaron Seigo <aseigo@kde.org>
* SPDX-FileCopyrightText: 2015 Marco Martin <notmart@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.1
import QtQuick.Window 2.1
import QtQuick.Controls 2.2 as Controls
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.12
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.milou 0.1 as Milou
import org.kde.kirigami 2.14 as Kirigami
Item {
PlasmaCore.ColorScope.colorGroup: PlasmaCore.Theme.NormalColorGroup
Plasmoid.backgroundHints: PlasmaCore.Types.ShadowBackground | PlasmaCore.Types.ConfigurableBackground
Layout.minimumWidth: Math.min(plasmoid.availableScreenRect.width, plasmoid.availableScreenRect.height) - Kirigami.Units.gridUnit * 2
Rectangle {
id: background
anchors {
left: parent.left
right: parent.right
verticalCenter: parent.verticalCenter
margins: PlasmaCore.Units.gridUnit
}
radius: height/2
height: layout.implicitHeight + PlasmaCore.Units.largeSpacing
color: Qt.rgba(1,1,1, 0.3)
RowLayout {
id: layout
anchors {
left: parent.left
right: parent.right
verticalCenter: parent.verticalCenter
margins: background.radius/2
}
spacing: PlasmaCore.Units.smallSpacing * 2
Kirigami.Icon {
source: "start-here-symbolic"
Layout.preferredHeight: PlasmaCore.Units.gridUnit * 1.5
Layout.preferredWidth: height
color: "white"
}
PlasmaExtras.Heading {
level: 3
text: i18n("Search...")
}
Item { Layout.fillWidth: true }
Kirigami.Icon {
source: "search"
Layout.preferredHeight: PlasmaCore.Units.gridUnit * 1.5
Layout.preferredWidth: height
color: "white"
}
}
MouseArea {
anchors.fill: parent
onClicked: window.showMaximized()
}
Kirigami.AbstractApplicationWindow {
id: window
visible: false
color: "transparent"
onVisibleChanged: {
if (!visible) {
queryField.forceActiveFocus();
}
}
MouseArea {
anchors.fill: parent
onClicked: window.close();
// shadow for search window
RectangularGlow {
anchors.topMargin: 1
anchors.fill: content
cached: true
glowRadius: 4
spread: 0.2
color: Qt.rgba(0, 0, 0, 0.15)
}
MouseArea {
id: content
// capture presses on the rectangle so that it doesn't close the window
anchors.top: parent.top
anchors.topMargin: Kirigami.Units.largeSpacing * 2
anchors.horizontalCenter: parent.horizontalCenter
implicitWidth: Math.min(Kirigami.Units.gridUnit * 30, parent.width - Kirigami.Units.largeSpacing * 4)
implicitHeight: Math.min(mainColumn.implicitHeight, parent.height - Kirigami.Units.largeSpacing * 4)
Behavior on implicitHeight {
NumberAnimation {
duration: Kirigami.Units.longDuration
easing.type: Easing.InOutQuad
}
}
Rectangle {
anchors.fill: parent
radius: Kirigami.Units.smallSpacing
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.View
color: Kirigami.Theme.backgroundColor
ColumnLayout {
id: mainColumn
anchors.fill: parent
anchors.margins: Kirigami.Units.smallSpacing
RowLayout {
Layout.bottomMargin: Kirigami.Units.smallSpacing / 2
Item {
implicitHeight: queryField.height
implicitWidth: height
Kirigami.Icon {
anchors.fill: parent
anchors.margins: Math.round(Kirigami.Units.smallSpacing * 1.5)
source: "start-here-symbolic"
}
}
Kirigami.SearchField {
id: queryField
focus: true
Layout.fillWidth: true
}
}
Controls.ScrollView {
Layout.fillHeight: true
Layout.fillWidth: true
Milou.ResultsListView {
id: listView
queryString: queryField.text
highlight: null
PlasmaCore.ColorScope.colorGroup: PlasmaCore.Theme.NormalColorGroup
anchors.rightMargin: 10
onActivated: {
window.visible = false;
queryField.text = "";
}
onUpdateQueryString: {
queryField.text = text
queryField.cursorPosition = cursorPosition
}
delegate: Kirigami.BasicListItem {
id: resultDelegate
property var additionalActions: typeof actions !== "undefined" ? actions : []
icon: model.decoration
label: typeof modelData !== "undefined" ? modelData : model.display
subtitle: model.subtext || ""
onClicked: {
listView.currentIndex = model.index
listView.runCurrentIndex()
}
Row {
id: actionsRow
Repeater {
id: actionsRepeater
model: resultDelegate.additionalActions
Controls.ToolButton {
width: height
height: listItem.height
visible: modelData.visible || true
enabled: modelData.enabled || true
Accessible.role: Accessible.Button
Accessible.name: modelData.text
checkable: checked
checked: resultDelegate.activeAction === index
focus: resultDelegate.activeAction === index
Kirigami.Icon {
anchors.centerIn: parent
width: PlasmaCore.Units.iconSizes.small
height: PlasmaCore.Units.iconSizes.small
// ToolButton cannot cope with QIcon
source: modelData.icon || ""
active: parent.hovered || parent.checked
}
onClicked: resultDelegate.ListView.view.runAction(index)
}
}
}
}
}
}
}
}
}
}
}
}
}
# SPDX-FileCopyrightText: 2020 Marco Martin <mart@kde.org>
# SPDX-License-Identifier: GPL-2.0-or-later
[Desktop Entry]
Encoding=UTF-8
Name=Search And Run
Name[ast]=Busca y execución
Name[ca]=Cerca i executa
Name[ca@valencia]=Cerca i executa
Name[cs]=Vyhledat a spustit
Name[da]=Søg og kør
Name[de]=Suchen und Ausführen
Name[en_GB]=Search And Run
Name[es]=Buscar y ejecutar
Name[et]=Otsimine ja käivitamine
Name[eu]=Bilatu eta exekutatu
Name[fi]=Etsi ja käynnistä
Name[fr]=Chercher et lancer
Name[hu]=Keresés és indítás
Name[ia]=Cerca e Exeque
Name[id]=Cari Dan Jalankan
Name[it]=Cerca e avvia
Name[ko]=찾아서 실행하기
Name[lt]=Ieškoti ir paleisti
Name[nl]=Zoeken en uitvoeren
Name[nn]=Søk og køyr
Name[pa]=ਖੋਜੋ ਤੇ ਚਲਾਓ
Name[pl]=Znajdź i uruchom
Name[pt]=Pesquisar e Executar
Name[pt_BR]=Pesquisar e executar
Name[ro]=Căutare și lansare
Name[ru]=Поиск и запуск
Name[sk]=Hľadať a Spustiť
Name[sl]=Poišči in poženi
Name[sv]=Sök och kör
Name[uk]=Пошук і запуск
Name[x-test]=xxSearch And Runxx
Name[zh_CN]=搜索和运行
Name[zh_TW]=搜尋並執行
Comment=Search and run Applications and services
Comment[ast]=Busca y executa aplicaciones y servicios
Comment[ca]=Cerca i executa aplicacions i serveis
Comment[ca@valencia]=Cerca i executa aplicacions i serveis
Comment[cs]=Vyhledat a spustit aplikace a služby
Comment[da]=Søg og kør programmer og tjenester
Comment[de]=Anwendungen und Dienste suchen und ausführen
Comment[en_GB]=Search and run Applications and services
Comment[es]=Buscar y ejecutar aplicaciones y servicios
Comment[et]=Rakenduste ja teenuste otsimine ja käivitamine
Comment[eu]=Bilatu eta exekutatu aplikazioak eta zerbitzuak
Comment[fi]=Etsi ja käynnistä sovelluksia ja palveluja
Comment[fr]=Chercher et lancer des applications et des services
Comment[hu]=Alkalmazások és szolgáltatások keresése és indítása
Comment[ia]=Cerca e Exeque Applicatione e Servicios
Comment[id]=Cari dan jalankan Aplikasi dan layanan
Comment[it]=Cerca e avvia applicazioni e servizi
Comment[ko]=프로그램과 서비스 찾아서 실행하기
Comment[lt]=Ieškoti ir paleisti programas bei tarnybas
Comment[nl]=Zoeken en uitvoeren van toepassingen en services
Comment[nn]=Søk etter og køyr program og tenester
Comment[pa]=ਐਪਲੀਕੇਸ਼ਨਾਂ ਤੇ ਸੇਵਾਵਾਂ ਖੋਜੋ ਤੇ ਚਲਾਓ
Comment[pl]=Znajduj i uruchamiaj aplikacje i usługi
Comment[pt]=Pesquisa e executa aplicações e serviços
Comment[pt_BR]=Pesquisa e executa aplicativos e serviços
Comment[ro]=Caută și rulează aplicații și servicii
Comment[ru]=Поиск и запуск приложений и служб
Comment[sk]=Hľadať a spustiť Aplikácie a služby
Comment[sl]=Poišči in poženi program in storitve
Comment[sv]=Sök och kör applikationer och tjänster
Comment[uk]=Пошук і запуск програм і служб
Comment[x-test]=xxSearch and run Applications and servicesxx
Comment[zh_CN]=搜索和运行应用程序及服务
Comment[zh_TW]=搜尋並執行應用程式及服務
Icon=search
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.krunner
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=Search
X-Plasma-Provides=org.kde.plasma.search
X-Plasma-MainScript=ui/main.qml
X-Plasma-RemoteLocation=
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment