From a73777d33b22d16886d62c06a5eba3e5b152f495 Mon Sep 17 00:00:00 2001 From: Reion Wong Date: Thu, 3 Sep 2026 00:55:02 -0400 Subject: [PATCH] refactor(core): remove unused shutdown UI --- CMakeLists.txt | 1 - shutdown-ui/CMakeLists.txt | 23 -- shutdown-ui/IconButton.qml | 89 -------- shutdown-ui/actions.cpp | 82 ------- shutdown-ui/actions.h | 39 ---- shutdown-ui/icons/system-lock-screen.svg | 8 - shutdown-ui/icons/system-log-out.svg | 8 - shutdown-ui/icons/system-reboot.svg | 8 - shutdown-ui/icons/system-shutdown.svg | 8 - shutdown-ui/icons/system-suspend.svg | 9 - shutdown-ui/main.cpp | 66 ------ shutdown-ui/main.qml | 279 ----------------------- shutdown-ui/qml.qrc | 11 - shutdown-ui/translations/ar_AA.ts | 32 --- shutdown-ui/translations/az_AZ.ts | 32 --- shutdown-ui/translations/be_BY.ts | 30 --- shutdown-ui/translations/be_Latn.ts | 27 --- shutdown-ui/translations/bg_BG.ts | 32 --- shutdown-ui/translations/bn_BD.ts | 32 --- shutdown-ui/translations/bs_BA.ts | 27 --- shutdown-ui/translations/cs_CZ.ts | 30 --- shutdown-ui/translations/da_DK.ts | 30 --- shutdown-ui/translations/de_DE.ts | 30 --- shutdown-ui/translations/en_US.ts | 32 --- shutdown-ui/translations/eo_XX.ts | 27 --- shutdown-ui/translations/es_ES.ts | 30 --- shutdown-ui/translations/es_MX.ts | 30 --- shutdown-ui/translations/fa_IR.ts | 30 --- shutdown-ui/translations/fi_FI.ts | 30 --- shutdown-ui/translations/fr_FR.ts | 30 --- shutdown-ui/translations/he_IL.ts | 32 --- shutdown-ui/translations/hi_IN.ts | 27 --- shutdown-ui/translations/hr_HR.ts | 32 --- shutdown-ui/translations/hu_HU.ts | 30 --- shutdown-ui/translations/id_ID.ts | 30 --- shutdown-ui/translations/ie.ts | 27 --- shutdown-ui/translations/it_IT.ts | 30 --- shutdown-ui/translations/ja_JP.ts | 32 --- shutdown-ui/translations/lt_LT.ts | 32 --- shutdown-ui/translations/lv_LV.ts | 32 --- shutdown-ui/translations/mg.ts | 32 --- shutdown-ui/translations/ml_IN.ts | 32 --- shutdown-ui/translations/nb_NO.ts | 30 --- shutdown-ui/translations/ne_NP.ts | 27 --- shutdown-ui/translations/nl_NL.ts | 32 --- shutdown-ui/translations/pl_PL.ts | 30 --- shutdown-ui/translations/pt_BR.ts | 30 --- shutdown-ui/translations/pt_PT.ts | 30 --- shutdown-ui/translations/ro_RO.ts | 32 --- shutdown-ui/translations/ru_RU.ts | 30 --- shutdown-ui/translations/si_LK.ts | 27 --- shutdown-ui/translations/sk_SK.ts | 30 --- shutdown-ui/translations/so.ts | 27 --- shutdown-ui/translations/sr_RS.ts | 32 --- shutdown-ui/translations/sv_SE.ts | 30 --- shutdown-ui/translations/sw.ts | 32 --- shutdown-ui/translations/ta_IN.ts | 27 --- shutdown-ui/translations/tr_TR.ts | 30 --- shutdown-ui/translations/tzm.ts | 32 --- shutdown-ui/translations/uk_UA.ts | 30 --- shutdown-ui/translations/uz_UZ.ts | 30 --- shutdown-ui/translations/vi_VN.ts | 32 --- shutdown-ui/translations/zh_CN.ts | 32 --- shutdown-ui/translations/zh_TW.ts | 30 --- 64 files changed, 2172 deletions(-) delete mode 100644 shutdown-ui/CMakeLists.txt delete mode 100644 shutdown-ui/IconButton.qml delete mode 100644 shutdown-ui/actions.cpp delete mode 100644 shutdown-ui/actions.h delete mode 100755 shutdown-ui/icons/system-lock-screen.svg delete mode 100644 shutdown-ui/icons/system-log-out.svg delete mode 100644 shutdown-ui/icons/system-reboot.svg delete mode 100644 shutdown-ui/icons/system-shutdown.svg delete mode 100644 shutdown-ui/icons/system-suspend.svg delete mode 100644 shutdown-ui/main.cpp delete mode 100644 shutdown-ui/main.qml delete mode 100644 shutdown-ui/qml.qrc delete mode 100644 shutdown-ui/translations/ar_AA.ts delete mode 100644 shutdown-ui/translations/az_AZ.ts delete mode 100644 shutdown-ui/translations/be_BY.ts delete mode 100644 shutdown-ui/translations/be_Latn.ts delete mode 100644 shutdown-ui/translations/bg_BG.ts delete mode 100644 shutdown-ui/translations/bn_BD.ts delete mode 100644 shutdown-ui/translations/bs_BA.ts delete mode 100644 shutdown-ui/translations/cs_CZ.ts delete mode 100644 shutdown-ui/translations/da_DK.ts delete mode 100644 shutdown-ui/translations/de_DE.ts delete mode 100644 shutdown-ui/translations/en_US.ts delete mode 100644 shutdown-ui/translations/eo_XX.ts delete mode 100644 shutdown-ui/translations/es_ES.ts delete mode 100644 shutdown-ui/translations/es_MX.ts delete mode 100644 shutdown-ui/translations/fa_IR.ts delete mode 100644 shutdown-ui/translations/fi_FI.ts delete mode 100644 shutdown-ui/translations/fr_FR.ts delete mode 100644 shutdown-ui/translations/he_IL.ts delete mode 100644 shutdown-ui/translations/hi_IN.ts delete mode 100644 shutdown-ui/translations/hr_HR.ts delete mode 100644 shutdown-ui/translations/hu_HU.ts delete mode 100644 shutdown-ui/translations/id_ID.ts delete mode 100644 shutdown-ui/translations/ie.ts delete mode 100644 shutdown-ui/translations/it_IT.ts delete mode 100644 shutdown-ui/translations/ja_JP.ts delete mode 100644 shutdown-ui/translations/lt_LT.ts delete mode 100644 shutdown-ui/translations/lv_LV.ts delete mode 100644 shutdown-ui/translations/mg.ts delete mode 100644 shutdown-ui/translations/ml_IN.ts delete mode 100644 shutdown-ui/translations/nb_NO.ts delete mode 100644 shutdown-ui/translations/ne_NP.ts delete mode 100644 shutdown-ui/translations/nl_NL.ts delete mode 100644 shutdown-ui/translations/pl_PL.ts delete mode 100644 shutdown-ui/translations/pt_BR.ts delete mode 100644 shutdown-ui/translations/pt_PT.ts delete mode 100644 shutdown-ui/translations/ro_RO.ts delete mode 100644 shutdown-ui/translations/ru_RU.ts delete mode 100644 shutdown-ui/translations/si_LK.ts delete mode 100644 shutdown-ui/translations/sk_SK.ts delete mode 100644 shutdown-ui/translations/so.ts delete mode 100644 shutdown-ui/translations/sr_RS.ts delete mode 100644 shutdown-ui/translations/sv_SE.ts delete mode 100644 shutdown-ui/translations/sw.ts delete mode 100644 shutdown-ui/translations/ta_IN.ts delete mode 100644 shutdown-ui/translations/tr_TR.ts delete mode 100644 shutdown-ui/translations/tzm.ts delete mode 100644 shutdown-ui/translations/uk_UA.ts delete mode 100644 shutdown-ui/translations/uz_UZ.ts delete mode 100644 shutdown-ui/translations/vi_VN.ts delete mode 100644 shutdown-ui/translations/zh_CN.ts delete mode 100644 shutdown-ui/translations/zh_TW.ts diff --git a/CMakeLists.txt b/CMakeLists.txt index 401606f..4e9beb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,6 @@ add_subdirectory(polkit-agent) add_subdirectory(screen-brightness) add_subdirectory(session) add_subdirectory(settings-daemon) -add_subdirectory(shutdown-ui) add_subdirectory(cpufreq) add_subdirectory(sddm-helper) add_subdirectory(clipboard) diff --git a/shutdown-ui/CMakeLists.txt b/shutdown-ui/CMakeLists.txt deleted file mode 100644 index 1090d83..0000000 --- a/shutdown-ui/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -project(cutefish-shutdown) - -add_executable(cutefish-shutdown - main.cpp - actions.cpp - qml.qrc -) - -target_link_libraries(cutefish-shutdown - Qt6::Core - Qt6::Widgets - Qt6::Quick - Qt6::QuickControls2 - Qt6::DBus -) - -file(GLOB TS_FILES translations/*.ts) -qt6_add_translation(QM_FILES ${TS_FILES}) -add_custom_target(shutdown-translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES}) -add_dependencies(cutefish-shutdown shutdown-translations) -install(FILES ${QM_FILES} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cutefish-shutdown/translations) - -install(TARGETS cutefish-shutdown RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) diff --git a/shutdown-ui/IconButton.qml b/shutdown-ui/IconButton.qml deleted file mode 100644 index 722dbfc..0000000 --- a/shutdown-ui/IconButton.qml +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (C) 2021 CutefishOS Team. - * - * Author: Reion Wong - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -import QtQuick 2.0 -import QtQuick.Controls 2.5 -import QtQuick.Layouts 1.3 -import Qt5Compat.GraphicalEffects -import FishUI 1.0 as FishUI - -Item { - id: control - width: 128 - height: width - - property string text - property string icon - property int iconSize: 52 - property bool checked: false - signal clicked - - MouseArea { - id: mouseArea - anchors.fill: parent - hoverEnabled: true - acceptedButtons: Qt.LeftButton - onClicked: control.clicked() - } - - ColumnLayout { - id: layout - anchors.fill: parent - spacing: FishUI.Units.largeSpacing * 1.5 - - Item { - Layout.fillHeight: true - } - - Item { - height: control.iconSize - Layout.fillWidth: true - - Rectangle { - anchors.centerIn: parent - width: parent.height + FishUI.Units.largeSpacing * 2 - height: parent.height + FishUI.Units.largeSpacing * 2 - z: -1 - color: "white" - opacity: mouseArea.pressed ? 0.1 : mouseArea.containsMouse || control.checked ? 0.2 : 0 - radius: height / 2 - } - - Image { - id: image - anchors.centerIn: parent - source: control.icon - sourceSize: Qt.size(width, height) - width: control.iconSize - height: width - } - } - - Label { - id: _label - Layout.alignment: Qt.AlignCenter - text: control.text - color: "white" - } - - Item { - Layout.fillHeight: true - } - } -} diff --git a/shutdown-ui/actions.cpp b/shutdown-ui/actions.cpp deleted file mode 100644 index 3010a13..0000000 --- a/shutdown-ui/actions.cpp +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2021 CutefishOS Team. - * - * Author: revenmartin - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include "actions.h" -#include -#include -#include - -const static QString s_dbusName = "com.cutefish.Session"; -const static QString s_pathName = "/Session"; -const static QString s_interfaceName = "com.cutefish.Session"; - -const static QString s_screenSaverService = "org.freedesktop.ScreenSaver"; -const static QString s_screenSaverPath = "/ScreenSaver"; -const static QString s_screenSaverInterface = "org.freedesktop.ScreenSaver"; - -Actions::Actions(QObject *parent) - : QObject(parent) -{ - -} - -void Actions::shutdown() -{ - QDBusInterface iface(s_dbusName, s_pathName, s_interfaceName, QDBusConnection::sessionBus()); - if (iface.isValid()) { - iface.call("powerOff"); - } -} - -void Actions::logout() -{ - QDBusInterface iface(s_dbusName, s_pathName, s_interfaceName, QDBusConnection::sessionBus()); - if (iface.isValid()) { - iface.call("logout"); - } -} - -void Actions::reboot() -{ - QDBusInterface iface(s_dbusName, s_pathName, s_interfaceName, QDBusConnection::sessionBus()); - if (iface.isValid()) { - iface.call("reboot"); - } -} - -void Actions::lockScreen() -{ - QDBusInterface iface(s_screenSaverService, - s_screenSaverPath, - s_screenSaverInterface, - QDBusConnection::sessionBus()); - if (iface.isValid()) { - iface.call(QStringLiteral("Lock")); - } - qApp->exit(0); -} - -void Actions::suspend() -{ - QDBusInterface iface(s_dbusName, s_pathName, s_interfaceName, QDBusConnection::sessionBus()); - if (iface.isValid()) { - iface.call("suspend"); - } - QCoreApplication::exit(0); -} diff --git a/shutdown-ui/actions.h b/shutdown-ui/actions.h deleted file mode 100644 index a63f3c3..0000000 --- a/shutdown-ui/actions.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2021 CutefishOS Team. - * - * Author: revenmartin - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#ifndef ACTIONS_H -#define ACTIONS_H - -#include - -class Actions : public QObject -{ - Q_OBJECT - -public: - explicit Actions(QObject *parent = nullptr); - - Q_INVOKABLE void shutdown(); - Q_INVOKABLE void logout(); - Q_INVOKABLE void reboot(); - Q_INVOKABLE void lockScreen(); - Q_INVOKABLE void suspend(); -}; - -#endif // ACTIONS_H diff --git a/shutdown-ui/icons/system-lock-screen.svg b/shutdown-ui/icons/system-lock-screen.svg deleted file mode 100755 index 0abfd96..0000000 --- a/shutdown-ui/icons/system-lock-screen.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/shutdown-ui/icons/system-log-out.svg b/shutdown-ui/icons/system-log-out.svg deleted file mode 100644 index c0b5106..0000000 --- a/shutdown-ui/icons/system-log-out.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/shutdown-ui/icons/system-reboot.svg b/shutdown-ui/icons/system-reboot.svg deleted file mode 100644 index 61b7222..0000000 --- a/shutdown-ui/icons/system-reboot.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/shutdown-ui/icons/system-shutdown.svg b/shutdown-ui/icons/system-shutdown.svg deleted file mode 100644 index 99e419c..0000000 --- a/shutdown-ui/icons/system-shutdown.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - diff --git a/shutdown-ui/icons/system-suspend.svg b/shutdown-ui/icons/system-suspend.svg deleted file mode 100644 index a2d20fb..0000000 --- a/shutdown-ui/icons/system-suspend.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - diff --git a/shutdown-ui/main.cpp b/shutdown-ui/main.cpp deleted file mode 100644 index 2da6019..0000000 --- a/shutdown-ui/main.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2021 CutefishOS Team. - * - * Author: revenmartin - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#include -#include -#include - -#include -#include -#include -#include - -#include "actions.h" - -int main(int argc, char *argv[]) -{ - QGuiApplication app(argc, argv); - - if (!QDBusConnection::sessionBus().registerService("com.cutefish.ShutdownUI")) { - return -1; - } - - if (!QDBusConnection::sessionBus().registerObject("/ShutdownUI", &app)) { - return -1; - } - - // Translations - QLocale locale; - QString qmFilePath = QString("%1/%2.qm").arg("/usr/share/cutefish-shutdown/translations/").arg(locale.name()); - if (QFile::exists(qmFilePath)) { - QTranslator *translator = new QTranslator(QGuiApplication::instance()); - if (translator->load(qmFilePath)) { - QGuiApplication::installTranslator(translator); - } else { - translator->deleteLater(); - } - } - - QQmlApplicationEngine engine; - const QUrl url(QStringLiteral("qrc:/main.qml")); - QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, - &app, [url](QObject *obj, const QUrl &objUrl) { - if (!obj && url == objUrl) - QCoreApplication::exit(-1); - }, Qt::QueuedConnection); - engine.rootContext()->setContextProperty("actions", new Actions); - engine.load(url); - - return app.exec(); -} diff --git a/shutdown-ui/main.qml b/shutdown-ui/main.qml deleted file mode 100644 index a87e34f..0000000 --- a/shutdown-ui/main.qml +++ /dev/null @@ -1,279 +0,0 @@ -/* - * Copyright (C) 2021 CutefishOS Team. - * - * Author: Reion Wong - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -import QtQuick 2.12 -import QtQuick.Window 2.3 -import QtQuick.Controls 2.5 -import QtQuick.Layouts 1.3 -import Qt5Compat.GraphicalEffects - -import Cutefish.Accounts 1.0 as Accounts -import Cutefish.System 1.0 as System -import FishUI 1.0 as FishUI - -ApplicationWindow { - width: Screen.width - height: Screen.height - visible: true - visibility: Window.FullScreen - flags: Qt.FramelessWindowHint - id: root - - function exit() { - Qt.quit() - } - - System.Wallpaper { - id: wallpaper - } - - Rectangle { - anchors.fill: parent - color: wallpaper.color - visible: wallpaper.type === 1 - } - - Image { - id: wallpaperImage - anchors.fill: parent - source: "file://" + wallpaper.path - sourceSize: Qt.size(width * FishUI.Dpi.ratio, - height * FishUI.Dpi.ratio) - fillMode: Image.PreserveAspectCrop - asynchronous: false - clip: true - cache: false - smooth: false - visible: wallpaper.type === 0 - } - - FastBlur { - id: wallpaperBlur - anchors.fill: parent - radius: 64 - source: wallpaperImage - cached: true - visible: wallpaperImage.visible - } - - ColorOverlay { - anchors.fill: parent - source: parent - color: "#000000" - opacity: 0.2 - } - - Accounts.UserAccount { - id: currentUser - } - - onActiveChanged: { - if (!active) - exit() - } - - MouseArea { - anchors.fill: parent - onClicked: exit() - } - - Item { - id: rootItem - anchors.fill: parent - focus: true - - Keys.enabled: true - Keys.onEscapePressed: { - Qt.quit() - } - - Keys.onEnterPressed: { - buttonsItem.action() - } - - Keys.onReturnPressed: { - buttonsItem.action() - } - - Keys.onLeftPressed: { - if (buttonsItem.currentIndex === -1 || buttonsItem.currentIndex === 0) { - buttonsItem.currentIndex = 0 - } else { - buttonsItem.currentIndex = buttonsItem.currentIndex - 1 - } - - buttonsItem.updateChecked() - } - - Keys.onRightPressed: { - if (buttonsItem.currentIndex >= 4) { - - } else { - buttonsItem.currentIndex = buttonsItem.currentIndex + 1 - } - - buttonsItem.updateChecked() - } - - Item { - id: userItem - anchors.top: parent.top - anchors.bottom: buttonsItem.top - anchors.bottomMargin: root.height * 0.05 - anchors.left: parent.left - anchors.right: parent.right - - ColumnLayout { - anchors.fill: parent - spacing: FishUI.Units.largeSpacing - - Item { - Layout.fillHeight: true - } - - Image { - id: userIcon - - property int iconSize: 60 - - Layout.preferredHeight: iconSize - Layout.preferredWidth: iconSize - sourceSize: String(source) === "image://icontheme/default-user" ? Qt.size(iconSize, iconSize) : undefined - source: currentUser.iconFileName ? "file:///" + currentUser.iconFileName : "image://icontheme/default-user" - Layout.alignment: Qt.AlignHCenter - - layer.enabled: true - layer.effect: OpacityMask { - maskSource: Item { - width: userIcon.width - height: userIcon.height - - Rectangle { - anchors.fill: parent - radius: parent.height / 2 - } - } - } - - // No Action - MouseArea { - anchors.fill: parent - } - } - - Label { - Layout.alignment: Qt.AlignHCenter - text: currentUser.userName - color: "white" - - // No Action - MouseArea { - anchors.fill: parent - } - } - } - } - - Item { - id: buttonsItem - anchors.centerIn: parent - width: buttonsLayout.implicitWidth - height: buttonsLayout.implicitHeight - - property int currentIndex: -1 - - function updateChecked() { - shutdownButton.checked = currentIndex === 0 - rebootButton.checked = currentIndex === 1 - logoutButton.checked = currentIndex === 2 - lockscreenButton.checked = currentIndex === 3 - suspendButton.checked = currentIndex === 4 - } - - function action() { - if (buttonsItem.currentIndex === -1 || buttonsItem.currentIndex > 4) - return - - switch (currentIndex) { - case 0: - actions.shutdown() - break - case 1: - actions.reboot() - break - case 2: - actions.logout() - break - case 3: - actions.lockScreen() - break - case 4: - actions.suspend() - break - } - } - - RowLayout { - id: buttonsLayout - anchors.fill: parent - spacing: root.width * 0.015 - - IconButton { - id: shutdownButton - Layout.alignment: Qt.AlignVCenter - text: qsTr("Shutdown") - icon: "qrc:///icons/system-shutdown.svg" - onClicked: actions.shutdown() - } - - IconButton { - id: rebootButton - Layout.alignment: Qt.AlignVCenter - text: qsTr("Reboot") - icon: "qrc:///icons/system-reboot.svg" - onClicked: actions.reboot() - } - - IconButton { - id: logoutButton - Layout.alignment: Qt.AlignVCenter - text: qsTr("Logout") - icon: "qrc:///icons/system-log-out.svg" - onClicked: actions.logout() - } - - IconButton { - id: lockscreenButton - Layout.alignment: Qt.AlignVCenter - text: qsTr("Lock screen") - icon: "qrc:/icons/system-lock-screen.svg" - onClicked: actions.lockScreen() - } - - IconButton { - id: suspendButton - Layout.alignment: Qt.AlignVCenter - text: qsTr("Suspend") - icon: "qrc:///icons/system-suspend.svg" - onClicked: actions.suspend() - } - } - } - } -} diff --git a/shutdown-ui/qml.qrc b/shutdown-ui/qml.qrc deleted file mode 100644 index 391d9ce..0000000 --- a/shutdown-ui/qml.qrc +++ /dev/null @@ -1,11 +0,0 @@ - - - main.qml - icons/system-log-out.svg - icons/system-reboot.svg - icons/system-shutdown.svg - icons/system-suspend.svg - IconButton.qml - icons/system-lock-screen.svg - - diff --git a/shutdown-ui/translations/ar_AA.ts b/shutdown-ui/translations/ar_AA.ts deleted file mode 100644 index eedf65a..0000000 --- a/shutdown-ui/translations/ar_AA.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - إيقاف التشغيل - - - - Reboot - إعادة التشغيل - - - - Logout - تسجيل الخروج - - - - Lock screen - قفل الشاشة - - - - Suspend - سكون - - - diff --git a/shutdown-ui/translations/az_AZ.ts b/shutdown-ui/translations/az_AZ.ts deleted file mode 100644 index b94e011..0000000 --- a/shutdown-ui/translations/az_AZ.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Söndür - - - - Reboot - Yenidən başlat - - - - Logout - Çıx - - - - Lock screen - Kilid ekranı - - - - Suspend - Yuxu - - - diff --git a/shutdown-ui/translations/be_BY.ts b/shutdown-ui/translations/be_BY.ts deleted file mode 100644 index 6969adb..0000000 --- a/shutdown-ui/translations/be_BY.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Выключэнне - - - - Reboot - Перазагрузка - - - - Logout - Выйсці з сеансу - - - - Suspend - Спячы рэжым - - - - - - diff --git a/shutdown-ui/translations/be_Latn.ts b/shutdown-ui/translations/be_Latn.ts deleted file mode 100644 index 2893012..0000000 --- a/shutdown-ui/translations/be_Latn.ts +++ /dev/null @@ -1,27 +0,0 @@ - - - - - main - - - Shutdown - Vykliučennie - - - - Reboot - Pierazahruzka - - - - Logout - Vyjsci z sieansu - - - - Suspend - Spiačy režym - - - diff --git a/shutdown-ui/translations/bg_BG.ts b/shutdown-ui/translations/bg_BG.ts deleted file mode 100644 index 0e037ef..0000000 --- a/shutdown-ui/translations/bg_BG.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Изкючване - - - - Reboot - Рестартиране - - - - Logout - Излизане - - - - Lock screen - Заключен екран - - - - Suspend - Приспиване - - - diff --git a/shutdown-ui/translations/bn_BD.ts b/shutdown-ui/translations/bn_BD.ts deleted file mode 100644 index 0636a5d..0000000 --- a/shutdown-ui/translations/bn_BD.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - বন্ধ করুন - - - - Reboot - পুনরায় চালু করুন - - - - Logout - লগ আউট - - - - Lock screen - স্ক্রীন লক করুন - - - - Suspend - স্থগিত করুন - - - diff --git a/shutdown-ui/translations/bs_BA.ts b/shutdown-ui/translations/bs_BA.ts deleted file mode 100644 index e272494..0000000 --- a/shutdown-ui/translations/bs_BA.ts +++ /dev/null @@ -1,27 +0,0 @@ - - - - - main - - - Shutdown - Ugasiti - - - - Reboot - Ponovno pokreni - - - - Logout - Odjavi se - - - - Suspend - Suspendiraj - - - diff --git a/shutdown-ui/translations/cs_CZ.ts b/shutdown-ui/translations/cs_CZ.ts deleted file mode 100644 index ddf6a93..0000000 --- a/shutdown-ui/translations/cs_CZ.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Vypnout - - - - Reboot - Restartovat - - - - Logout - Odhlásit se - - - - Suspend - Uspat - - - - - - diff --git a/shutdown-ui/translations/da_DK.ts b/shutdown-ui/translations/da_DK.ts deleted file mode 100644 index d476e06..0000000 --- a/shutdown-ui/translations/da_DK.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Luk ned - - - - Reboot - Genstart - - - - Logout - Log ud - - - - Suspend - Suspender - - - - - - diff --git a/shutdown-ui/translations/de_DE.ts b/shutdown-ui/translations/de_DE.ts deleted file mode 100644 index 3022d1b..0000000 --- a/shutdown-ui/translations/de_DE.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Herunterfahren - - - - Reboot - Neustart - - - - Logout - Abmelden - - - - Suspend - Bereitschaft - - - - - - diff --git a/shutdown-ui/translations/en_US.ts b/shutdown-ui/translations/en_US.ts deleted file mode 100644 index 82f8da6..0000000 --- a/shutdown-ui/translations/en_US.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Shutdown - - - - Reboot - Reboot - - - - Logout - Log out - - - - Lock screen - Lock screen - - - - Suspend - Suspend - - - diff --git a/shutdown-ui/translations/eo_XX.ts b/shutdown-ui/translations/eo_XX.ts deleted file mode 100644 index fadb4af..0000000 --- a/shutdown-ui/translations/eo_XX.ts +++ /dev/null @@ -1,27 +0,0 @@ - - - - - main - - - Shutdown - - - - - Reboot - - - - - Logout - - - - - Suspend - - - - diff --git a/shutdown-ui/translations/es_ES.ts b/shutdown-ui/translations/es_ES.ts deleted file mode 100644 index 6a037fa..0000000 --- a/shutdown-ui/translations/es_ES.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Apagar - - - - Reboot - Reiniciar - - - - Logout - Cerrar sesión - - - - Suspend - Suspender - - - - - - diff --git a/shutdown-ui/translations/es_MX.ts b/shutdown-ui/translations/es_MX.ts deleted file mode 100644 index 513034f..0000000 --- a/shutdown-ui/translations/es_MX.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Apagar - - - - Reboot - Reiniciar - - - - Logout - Cerrar Sesión - - - - Suspend - Suspender - - - - - - diff --git a/shutdown-ui/translations/fa_IR.ts b/shutdown-ui/translations/fa_IR.ts deleted file mode 100644 index 99a2fc1..0000000 --- a/shutdown-ui/translations/fa_IR.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - خاموش - - - - Reboot - راه‌اندازی مجدد - - - - Logout - خروج - - - - Suspend - تعلیق - - - - - - diff --git a/shutdown-ui/translations/fi_FI.ts b/shutdown-ui/translations/fi_FI.ts deleted file mode 100644 index dad6d24..0000000 --- a/shutdown-ui/translations/fi_FI.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Sammuta - - - - Reboot - Käynnistä uudelleen - - - - Logout - Kirjaudu ulos - - - - Suspend - Keskeytä - - - - - - diff --git a/shutdown-ui/translations/fr_FR.ts b/shutdown-ui/translations/fr_FR.ts deleted file mode 100644 index c953ece..0000000 --- a/shutdown-ui/translations/fr_FR.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Éteindre - - - - Reboot - Redémarrer - - - - Logout - Se déconnecter - - - - Suspend - Suspendre - - - - - - diff --git a/shutdown-ui/translations/he_IL.ts b/shutdown-ui/translations/he_IL.ts deleted file mode 100644 index 7f4e5a9..0000000 --- a/shutdown-ui/translations/he_IL.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - כיבוי - - - - Reboot - הפעל מחדש - - - - Logout - התנתק - - - - Lock screen - מסך נעילה - - - - Suspend - מצב שינה - - - diff --git a/shutdown-ui/translations/hi_IN.ts b/shutdown-ui/translations/hi_IN.ts deleted file mode 100644 index b295392..0000000 --- a/shutdown-ui/translations/hi_IN.ts +++ /dev/null @@ -1,27 +0,0 @@ - - - - - main - - - Shutdown - शट डाउन - - - - Reboot - - - - - Logout - - - - - Suspend - - - - diff --git a/shutdown-ui/translations/hr_HR.ts b/shutdown-ui/translations/hr_HR.ts deleted file mode 100644 index eb9b400..0000000 --- a/shutdown-ui/translations/hr_HR.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Isključi - - - - Reboot - Ponovno pokreni - - - - Logout - Odjava - - - - Lock screen - Zaključni zalon - - - - Suspend - Zaustavi - - - diff --git a/shutdown-ui/translations/hu_HU.ts b/shutdown-ui/translations/hu_HU.ts deleted file mode 100644 index e6d089d..0000000 --- a/shutdown-ui/translations/hu_HU.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Leállítás - - - - Reboot - Újraindítás - - - - Logout - Kijelentkezés - - - - Suspend - Alvó állapot - - - - - - diff --git a/shutdown-ui/translations/id_ID.ts b/shutdown-ui/translations/id_ID.ts deleted file mode 100644 index 962bedf..0000000 --- a/shutdown-ui/translations/id_ID.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Matikan - - - - Reboot - Boot Ulang - - - - Logout - Keluar - - - - Suspend - Tangguhkan - - - - - - diff --git a/shutdown-ui/translations/ie.ts b/shutdown-ui/translations/ie.ts deleted file mode 100644 index 576f064..0000000 --- a/shutdown-ui/translations/ie.ts +++ /dev/null @@ -1,27 +0,0 @@ - - - - - main - - - Shutdown - Extinter - - - - Reboot - Reiniciar - - - - Logout - Cluder li session - - - - Suspend - Suspender - - - diff --git a/shutdown-ui/translations/it_IT.ts b/shutdown-ui/translations/it_IT.ts deleted file mode 100644 index 8e20bd3..0000000 --- a/shutdown-ui/translations/it_IT.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Spegni - - - - Reboot - Riavvia - - - - Logout - Disconnettiti - - - - Suspend - Sospendi - - - - - - diff --git a/shutdown-ui/translations/ja_JP.ts b/shutdown-ui/translations/ja_JP.ts deleted file mode 100644 index f6d54f4..0000000 --- a/shutdown-ui/translations/ja_JP.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - シャットダウン - - - - Reboot - 再起動 - - - - Logout - ログアウト - - - - Lock screen - 画面をロック - - - - Suspend - サスペンド - - - diff --git a/shutdown-ui/translations/lt_LT.ts b/shutdown-ui/translations/lt_LT.ts deleted file mode 100644 index a67bc37..0000000 --- a/shutdown-ui/translations/lt_LT.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Išjungti - - - - Reboot - Paleisti iš naujo - - - - Logout - Atsijungti - - - - Lock screen - Užrakinti ekraną - - - - Suspend - Pristabdyti - - - diff --git a/shutdown-ui/translations/lv_LV.ts b/shutdown-ui/translations/lv_LV.ts deleted file mode 100644 index 23e867b..0000000 --- a/shutdown-ui/translations/lv_LV.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Izslēgt - - - - Reboot - Restartēt - - - - Logout - Izrakstīties - - - - Lock screen - Bloķēt ekrānu - - - - Suspend - Aizmidzināt - - - diff --git a/shutdown-ui/translations/mg.ts b/shutdown-ui/translations/mg.ts deleted file mode 100644 index 2c60a3c..0000000 --- a/shutdown-ui/translations/mg.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Vonoina - - - - Reboot - Averina alefa - - - - Logout - Mivoaka - - - - Lock screen - Hidiana ny ecran - - - - Suspend - Ajanona - - - diff --git a/shutdown-ui/translations/ml_IN.ts b/shutdown-ui/translations/ml_IN.ts deleted file mode 100644 index caa4440..0000000 --- a/shutdown-ui/translations/ml_IN.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - - - - - Reboot - - - - - Logout - - - - - Lock screen - - - - - Suspend - - - - diff --git a/shutdown-ui/translations/nb_NO.ts b/shutdown-ui/translations/nb_NO.ts deleted file mode 100644 index 0ce8474..0000000 --- a/shutdown-ui/translations/nb_NO.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Slå av - - - - Reboot - Omstart - - - - Logout - Logg ut - - - - Suspend - Hvilemodus - - - - - - diff --git a/shutdown-ui/translations/ne_NP.ts b/shutdown-ui/translations/ne_NP.ts deleted file mode 100644 index 11d6cc5..0000000 --- a/shutdown-ui/translations/ne_NP.ts +++ /dev/null @@ -1,27 +0,0 @@ - - - - - main - - - Shutdown - पावर अफ - - - - Reboot - पुन: सुचारु - - - - Logout - लग आउट - - - - Suspend - सस्पेन्ड - - - diff --git a/shutdown-ui/translations/nl_NL.ts b/shutdown-ui/translations/nl_NL.ts deleted file mode 100644 index 382c898..0000000 --- a/shutdown-ui/translations/nl_NL.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Sluit af - - - - Reboot - Herstart - - - - Logout - Meld af - - - - Lock screen - Vergrendelscherm - - - - Suspend - Slaapstand - - - diff --git a/shutdown-ui/translations/pl_PL.ts b/shutdown-ui/translations/pl_PL.ts deleted file mode 100644 index 7419fe1..0000000 --- a/shutdown-ui/translations/pl_PL.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Wyłącz - - - - Reboot - Uruchom ponownie - - - - Logout - Wyloguj się - - - - Suspend - Uśpij - - - - - - diff --git a/shutdown-ui/translations/pt_BR.ts b/shutdown-ui/translations/pt_BR.ts deleted file mode 100644 index 942fa70..0000000 --- a/shutdown-ui/translations/pt_BR.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Desligar - - - - Reboot - Reiniciar - - - - Logout - Encerrar sessão - - - - Suspend - Suspender - - - - - - diff --git a/shutdown-ui/translations/pt_PT.ts b/shutdown-ui/translations/pt_PT.ts deleted file mode 100644 index d6412f7..0000000 --- a/shutdown-ui/translations/pt_PT.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Desligar - - - - Reboot - Reiniciar - - - - Logout - Terminar sessão - - - - Suspend - Suspender - - - - - - diff --git a/shutdown-ui/translations/ro_RO.ts b/shutdown-ui/translations/ro_RO.ts deleted file mode 100644 index 3d8bd3b..0000000 --- a/shutdown-ui/translations/ro_RO.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Închidere - - - - Reboot - Repornire - - - - Logout - Delogare - - - - Lock screen - Blocare ecran - - - - Suspend - Întrerupere - - - diff --git a/shutdown-ui/translations/ru_RU.ts b/shutdown-ui/translations/ru_RU.ts deleted file mode 100644 index e78924e..0000000 --- a/shutdown-ui/translations/ru_RU.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Выключение - - - - Reboot - Перезагрузка - - - - Logout - Выйти - - - - Suspend - Спящий режим - - - - - - diff --git a/shutdown-ui/translations/si_LK.ts b/shutdown-ui/translations/si_LK.ts deleted file mode 100644 index 81a32df..0000000 --- a/shutdown-ui/translations/si_LK.ts +++ /dev/null @@ -1,27 +0,0 @@ - - - - - main - - - Shutdown - - - - - Reboot - - - - - Logout - නික්මෙන්න - - - - Suspend - අත්හිටුවන්න - - - diff --git a/shutdown-ui/translations/sk_SK.ts b/shutdown-ui/translations/sk_SK.ts deleted file mode 100644 index c5b76b6..0000000 --- a/shutdown-ui/translations/sk_SK.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Vypnúť - - - - Reboot - Reštartovať - - - - Logout - Odhlásiť sa - - - - Suspend - Uspať - - - - - - diff --git a/shutdown-ui/translations/so.ts b/shutdown-ui/translations/so.ts deleted file mode 100644 index f201c01..0000000 --- a/shutdown-ui/translations/so.ts +++ /dev/null @@ -1,27 +0,0 @@ - - - - - main - - - Shutdown - Dami - - - - Reboot - Soo daar - - - - Logout - Ka bax - - - - Suspend - Haki - - - diff --git a/shutdown-ui/translations/sr_RS.ts b/shutdown-ui/translations/sr_RS.ts deleted file mode 100644 index 48f6d12..0000000 --- a/shutdown-ui/translations/sr_RS.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Isključi - - - - Reboot - Pokreni ponovo - - - - Logout - Odjavi se - - - - Lock screen - Zaključaj ekran - - - - Suspend - Suspenduj - - - diff --git a/shutdown-ui/translations/sv_SE.ts b/shutdown-ui/translations/sv_SE.ts deleted file mode 100644 index 8c8c40e..0000000 --- a/shutdown-ui/translations/sv_SE.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Stäng av - - - - Reboot - Starta om - - - - Logout - Logga ut - - - - Suspend - Viloläge - - - - - - diff --git a/shutdown-ui/translations/sw.ts b/shutdown-ui/translations/sw.ts deleted file mode 100644 index 5179d6a..0000000 --- a/shutdown-ui/translations/sw.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Zima - - - - Reboot - Wakisha tena - - - - Logout - Toka Nje - - - - Lock screen - Funga skrini - - - - Suspend - Simamisha - - - diff --git a/shutdown-ui/translations/ta_IN.ts b/shutdown-ui/translations/ta_IN.ts deleted file mode 100644 index e700bb7..0000000 --- a/shutdown-ui/translations/ta_IN.ts +++ /dev/null @@ -1,27 +0,0 @@ - - - - - main - - - Shutdown - நிறுத்தவும் - - - - Reboot - மீண்டும் துவக்கவும் - - - - Logout - வெளியேறு - - - - Suspend - இடைநிறுத்து - - - diff --git a/shutdown-ui/translations/tr_TR.ts b/shutdown-ui/translations/tr_TR.ts deleted file mode 100644 index bd9fdbd..0000000 --- a/shutdown-ui/translations/tr_TR.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Kapat - - - - Reboot - Yeniden başlat - - - - Logout - Çıkış yap - - - - Suspend - Uyku - - - - - - diff --git a/shutdown-ui/translations/tzm.ts b/shutdown-ui/translations/tzm.ts deleted file mode 100644 index ba00f1e..0000000 --- a/shutdown-ui/translations/tzm.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - - - - - Reboot - - - - - Logout - - - - - Lock screen - - - - - Suspend - - - - diff --git a/shutdown-ui/translations/uk_UA.ts b/shutdown-ui/translations/uk_UA.ts deleted file mode 100644 index 5056601..0000000 --- a/shutdown-ui/translations/uk_UA.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Вимкнути - - - - Reboot - Перезавантаження - - - - Logout - Вийти з сеансу - - - - Suspend - Сон - - - - - - diff --git a/shutdown-ui/translations/uz_UZ.ts b/shutdown-ui/translations/uz_UZ.ts deleted file mode 100644 index 47b8ac5..0000000 --- a/shutdown-ui/translations/uz_UZ.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - Ishni yakunlash - - - - Reboot - Qayta yuklash - - - - Logout - Chiqish - - - - Suspend - Uhlatish - - - - - - diff --git a/shutdown-ui/translations/vi_VN.ts b/shutdown-ui/translations/vi_VN.ts deleted file mode 100644 index 0f4cf34..0000000 --- a/shutdown-ui/translations/vi_VN.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - Tắt nguồn - - - - Reboot - Khởi động lại - - - - Logout - Đăng xuất - - - - Lock screen - Khóa màn hình - - - - Suspend - Ngủ đông - - - diff --git a/shutdown-ui/translations/zh_CN.ts b/shutdown-ui/translations/zh_CN.ts deleted file mode 100644 index e5e2a34..0000000 --- a/shutdown-ui/translations/zh_CN.ts +++ /dev/null @@ -1,32 +0,0 @@ - - - - - main - - - Shutdown - 关机 - - - - Reboot - 重新启动 - - - - Logout - 注销 - - - - Lock screen - 锁屏 - - - - Suspend - 休眠 - - - diff --git a/shutdown-ui/translations/zh_TW.ts b/shutdown-ui/translations/zh_TW.ts deleted file mode 100644 index 6c3a4b8..0000000 --- a/shutdown-ui/translations/zh_TW.ts +++ /dev/null @@ -1,30 +0,0 @@ - - - - - main - - - Shutdown - 關閉電腦 - - - - Reboot - 重新啓動 - - - - Logout - 登出 - - - - Suspend - 掛起 - - - - - -