From ed88572dc2bf3c251e18df26b2aaa7455a1c22f7 Mon Sep 17 00:00:00 2001 From: "Raziel K. Crowe" <101006007+RazielCrowe@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:14:53 +0500 Subject: [PATCH] purge --- Changes.txt | 101 --- LibLXQT/ARM Power Management/CMakeLists.txt | 49 -- .../autostart/CMakeLists.txt | 16 - .../autostart/lxqt-powermanagement.desktop.in | 10 - .../config/CMakeLists.txt | 73 -- .../config/batterywatchersettings.cpp | 111 --- .../config/batterywatchersettings.h | 66 -- .../config/batterywatchersettings.ui | 249 ------ .../ARM Power Management/config/helpers.cpp | 62 -- LibLXQT/ARM Power Management/config/helpers.h | 20 - .../config/icons/laptop-lid.svg | 119 --- .../config/idlenesswatchersettings.cpp | 156 ---- .../config/idlenesswatchersettings.h | 66 -- .../config/idlenesswatchersettings.ui | 216 ------ .../config/lidwatchersettings.cpp | 83 -- .../config/lidwatchersettings.h | 58 -- .../config/lidwatchersettings.ui | 149 ---- .../lxqt-config-powermanagement.desktop.in | 8 - LibLXQT/ARM Power Management/config/main.cpp | 56 -- .../config/mainwindow.cpp | 56 -- .../ARM Power Management/config/mainwindow.h | 40 - .../config/powerkeyssettings.cpp | 63 -- .../config/powerkeyssettings.h | 59 -- .../config/powerkeyssettings.ui | 60 -- .../config/powermanagementsettings.cpp | 361 --------- .../config/powermanagementsettings.h | 133 ---- .../config/translations/CMakeLists.txt | 3 - .../lxqt-config-powermanagement.desktop.yaml | 3 - .../lxqt-config-powermanagement.ts | 298 -------- ...xqt-config-powermanagement_ar.desktop.yaml | 3 - .../lxqt-config-powermanagement_ar.ts | 298 -------- .../lxqt-config-powermanagement_arn.ts | 298 -------- .../lxqt-config-powermanagement_ast.ts | 212 ------ ...xqt-config-powermanagement_bg.desktop.yaml | 3 - .../lxqt-config-powermanagement_bg.ts | 298 -------- ...xqt-config-powermanagement_ca.desktop.yaml | 3 - .../lxqt-config-powermanagement_ca.ts | 298 -------- ...xqt-config-powermanagement_cs.desktop.yaml | 3 - .../lxqt-config-powermanagement_cs.ts | 298 -------- .../lxqt-config-powermanagement_cy.ts | 298 -------- ...xqt-config-powermanagement_da.desktop.yaml | 3 - .../lxqt-config-powermanagement_da.ts | 298 -------- ...xqt-config-powermanagement_de.desktop.yaml | 3 - .../lxqt-config-powermanagement_de.ts | 298 -------- ...xqt-config-powermanagement_el.desktop.yaml | 3 - .../lxqt-config-powermanagement_el.ts | 298 -------- ...xqt-config-powermanagement_es.desktop.yaml | 3 - .../lxqt-config-powermanagement_es.ts | 298 -------- ...xqt-config-powermanagement_et.desktop.yaml | 3 - .../lxqt-config-powermanagement_et.ts | 298 -------- .../lxqt-config-powermanagement_fi.ts | 298 -------- ...xqt-config-powermanagement_fr.desktop.yaml | 3 - .../lxqt-config-powermanagement_fr.ts | 298 -------- .../lxqt-config-powermanagement_gl.ts | 298 -------- ...xqt-config-powermanagement_he.desktop.yaml | 3 - .../lxqt-config-powermanagement_he.ts | 298 -------- ...xqt-config-powermanagement_hr.desktop.yaml | 3 - .../lxqt-config-powermanagement_hr.ts | 298 -------- ...xqt-config-powermanagement_hu.desktop.yaml | 3 - .../lxqt-config-powermanagement_hu.ts | 298 -------- .../lxqt-config-powermanagement_id.ts | 298 -------- ...xqt-config-powermanagement_it.desktop.yaml | 3 - .../lxqt-config-powermanagement_it.ts | 298 -------- ...xqt-config-powermanagement_ja.desktop.yaml | 3 - .../lxqt-config-powermanagement_ja.ts | 298 -------- ...xqt-config-powermanagement_ko.desktop.yaml | 3 - .../lxqt-config-powermanagement_ko.ts | 298 -------- ...xqt-config-powermanagement_lt.desktop.yaml | 3 - .../lxqt-config-powermanagement_lt.ts | 298 -------- ...-config-powermanagement_nb_NO.desktop.yaml | 3 - .../lxqt-config-powermanagement_nb_NO.ts | 298 -------- ...xqt-config-powermanagement_nl.desktop.yaml | 3 - .../lxqt-config-powermanagement_nl.ts | 298 -------- ...xqt-config-powermanagement_oc.desktop.yaml | 3 - ...xqt-config-powermanagement_pl.desktop.yaml | 3 - .../lxqt-config-powermanagement_pl.ts | 298 -------- ...xqt-config-powermanagement_pt.desktop.yaml | 3 - .../lxqt-config-powermanagement_pt.ts | 298 -------- .../lxqt-config-powermanagement_pt_BR.ts | 298 -------- ...xqt-config-powermanagement_ru.desktop.yaml | 3 - .../lxqt-config-powermanagement_ru.ts | 298 -------- ...xqt-config-powermanagement_si.desktop.yaml | 3 - .../lxqt-config-powermanagement_si.ts | 298 -------- ...xqt-config-powermanagement_sk.desktop.yaml | 3 - .../lxqt-config-powermanagement_sk_SK.ts | 298 -------- ...xqt-config-powermanagement_tr.desktop.yaml | 3 - .../lxqt-config-powermanagement_tr.ts | 298 -------- ...xqt-config-powermanagement_uk.desktop.yaml | 3 - .../lxqt-config-powermanagement_uk.ts | 298 -------- ...xqt-config-powermanagement_vi.desktop.yaml | 3 - ...-config-powermanagement_zh_CN.desktop.yaml | 3 - .../lxqt-config-powermanagement_zh_CN.ts | 298 -------- .../ARM Power Management/src/CMakeLists.txt | 71 -- .../src/batteryhelper.cpp | 101 --- .../ARM Power Management/src/batteryhelper.h | 44 -- .../src/batteryinfodialog.cpp | 52 -- .../src/batteryinfodialog.h | 37 - .../src/batteryinfodialog.ui | 64 -- .../src/batteryinfoframe.cpp | 70 -- .../src/batteryinfoframe.h | 54 -- .../src/batteryinfoframe.ui | 203 ----- .../src/batterywatcher.cpp | 207 ----- .../ARM Power Management/src/batterywatcher.h | 62 -- .../ARM Power Management/src/iconproducer.cpp | 245 ------ .../ARM Power Management/src/iconproducer.h | 53 -- .../src/idlenesswatcher.cpp | 212 ------ .../src/idlenesswatcher.h | 57 -- LibLXQT/ARM Power Management/src/lid.cpp | 78 -- LibLXQT/ARM Power Management/src/lid.h | 54 -- .../ARM Power Management/src/lidwatcher.cpp | 129 ---- LibLXQT/ARM Power Management/src/lidwatcher.h | 61 -- LibLXQT/ARM Power Management/src/main.cpp | 63 -- .../ARM Power Management/src/powerbutton.cpp | 134 ---- .../ARM Power Management/src/powerbutton.h | 67 -- .../src/powermanagementd.cpp | 121 --- .../src/powermanagementd.h | 46 -- .../src/translations/CMakeLists.txt | 3 - .../src/translations/lxqt-powermanagement.ts | 328 -------- .../translations/lxqt-powermanagement_ar.ts | 345 --------- .../translations/lxqt-powermanagement_arn.ts | 328 -------- .../translations/lxqt-powermanagement_ast.ts | 328 -------- .../translations/lxqt-powermanagement_bg.ts | 332 -------- .../translations/lxqt-powermanagement_ca.ts | 332 -------- .../translations/lxqt-powermanagement_cs.ts | 335 -------- .../translations/lxqt-powermanagement_cy.ts | 340 --------- .../translations/lxqt-powermanagement_da.ts | 332 -------- .../translations/lxqt-powermanagement_de.ts | 332 -------- .../translations/lxqt-powermanagement_el.ts | 333 -------- .../translations/lxqt-powermanagement_es.ts | 332 -------- .../translations/lxqt-powermanagement_et.ts | 332 -------- .../translations/lxqt-powermanagement_fi.ts | 332 -------- .../translations/lxqt-powermanagement_fr.ts | 332 -------- .../translations/lxqt-powermanagement_gl.ts | 332 -------- .../translations/lxqt-powermanagement_he.ts | 338 --------- .../translations/lxqt-powermanagement_hr.ts | 305 -------- .../translations/lxqt-powermanagement_hu.ts | 329 -------- .../translations/lxqt-powermanagement_id.ts | 329 -------- .../translations/lxqt-powermanagement_it.ts | 332 -------- .../translations/lxqt-powermanagement_ja.ts | 329 -------- .../translations/lxqt-powermanagement_ko.ts | 330 -------- .../translations/lxqt-powermanagement_lt.ts | 335 -------- .../lxqt-powermanagement_nb_NO.ts | 332 -------- .../translations/lxqt-powermanagement_nl.ts | 332 -------- .../translations/lxqt-powermanagement_pl.ts | 335 -------- .../translations/lxqt-powermanagement_pt.ts | 332 -------- .../lxqt-powermanagement_pt_BR.ts | 332 -------- .../translations/lxqt-powermanagement_ru.ts | 335 -------- .../translations/lxqt-powermanagement_si.ts | 331 -------- .../lxqt-powermanagement_sk_SK.ts | 335 -------- .../translations/lxqt-powermanagement_tr.ts | 329 -------- .../translations/lxqt-powermanagement_uk.ts | 335 -------- .../translations/lxqt-powermanagement_vi.ts | 329 -------- .../lxqt-powermanagement_zh_CN.ts | 329 -------- LibLXQT/ARM Power Management/src/trayicon.cpp | 252 ------- LibLXQT/ARM Power Management/src/trayicon.h | 84 --- LibLXQT/ARM Power Management/src/watcher.cpp | 51 -- LibLXQT/ARM Power Management/src/watcher.h | 36 - LibLXQT/AUTHORS | 13 - LibLXQT/CHANGELOG | 639 ---------------- LibLXQT/CMakeLists.txt | 412 ---------- LibLXQT/COPYING | 458 ----------- LibLXQT/README.md | 40 - LibLXQT/cmake/lxqt-config.cmake.in | 39 - LibLXQT/configdialog/lxqtconfigdialog.cpp | 192 ----- LibLXQT/configdialog/lxqtconfigdialog.h | 113 --- LibLXQT/configdialog/lxqtconfigdialog.ui | 84 --- LibLXQT/configdialog/lxqtconfigdialog_p.h | 66 -- .../lxqtconfigdialogcmdlineoptions.cpp | 62 -- .../lxqtconfigdialogcmdlineoptions.h | 55 -- LibLXQT/configdialog/lxqtpageselectwidget.cpp | 193 ----- LibLXQT/configdialog/lxqtpageselectwidget.h | 65 -- .../dbus/org.freedesktop.Notifications.xml | 69 -- LibLXQT/dbus/org.lxqt.SingleApplication.xml | 7 - LibLXQT/liblxqt.doxygen | 4 - LibLXQT/lxqtapplication.cpp | 152 ---- LibLXQT/lxqtapplication.h | 85 --- LibLXQT/lxqtautostartentry.cpp | 130 ---- LibLXQT/lxqtautostartentry.h | 114 --- LibLXQT/lxqtbacklight.cpp | 72 -- LibLXQT/lxqtbacklight.h | 57 -- .../linux_backend/driver/CMakeLists.txt | 16 - .../driver/libbacklight_backend.c | 237 ------ .../driver/libbacklight_backend.h | 74 -- .../driver/lxqtbacklight_backend.c | 213 ------ .../linux_backend/linuxbackend.cpp | 113 --- .../linux_backend/linuxbackend.h | 55 -- LibLXQT/lxqtbacklight/virtual_backend.cpp | 51 -- LibLXQT/lxqtbacklight/virtual_backend.h | 46 -- LibLXQT/lxqtglobals.h | 55 -- LibLXQT/lxqtgridlayout.cpp | 712 ------------------ LibLXQT/lxqtgridlayout.h | 245 ------ LibLXQT/lxqthtmldelegate.cpp | 137 ---- LibLXQT/lxqthtmldelegate.h | 57 -- LibLXQT/lxqtnotification.cpp | 254 ------- LibLXQT/lxqtnotification.h | 211 ------ LibLXQT/lxqtnotification_p.h | 71 -- LibLXQT/lxqtplugininfo.cpp | 180 ----- LibLXQT/lxqtplugininfo.h | 116 --- LibLXQT/lxqtpower/lxqtpower.cpp | 98 --- LibLXQT/lxqtpower/lxqtpower.h | 129 ---- LibLXQT/lxqtpower/lxqtpowerproviders.cpp | 696 ----------------- LibLXQT/lxqtpower/lxqtpowerproviders.h | 159 ---- LibLXQT/lxqtpowermanager.cpp | 205 ----- LibLXQT/lxqtpowermanager.h | 73 -- LibLXQT/lxqtprogramfinder.cpp | 68 -- LibLXQT/lxqtprogramfinder.h | 61 -- LibLXQT/lxqtrotatedwidget.cpp | 326 -------- LibLXQT/lxqtrotatedwidget.h | 126 ---- LibLXQT/lxqtscreensaver.cpp | 266 ------- LibLXQT/lxqtscreensaver.h | 66 -- LibLXQT/lxqtsettings.cpp | 709 ----------------- LibLXQT/lxqtsettings.h | 217 ------ LibLXQT/lxqtsingleapplication.cpp | 108 --- LibLXQT/lxqtsingleapplication.h | 158 ---- LibLXQT/lxqttranslator.cpp | 186 ----- LibLXQT/lxqttranslator.h | 72 -- .../org.lxqt.backlight.pkexec.policy.in | 15 - LibLXQT/resources/power.conf | 3 - .../lxqt-powermanagement.desktop.yaml | 1 - .../lxqt-powermanagement_bg.desktop.yaml | 1 - .../lxqt-powermanagement_cs.desktop.yaml | 1 - .../lxqt-powermanagement_da.desktop.yaml | 1 - .../lxqt-powermanagement_de.desktop.yaml | 1 - .../lxqt-powermanagement_el.desktop.yaml | 1 - .../lxqt-powermanagement_es.desktop.yaml | 1 - .../lxqt-powermanagement_et.desktop.yaml | 1 - .../lxqt-powermanagement_fr.desktop.yaml | 1 - .../lxqt-powermanagement_he.desktop.yaml | 1 - .../lxqt-powermanagement_hr.desktop.yaml | 1 - .../lxqt-powermanagement_hu.desktop.yaml | 1 - .../lxqt-powermanagement_it.desktop.yaml | 1 - .../lxqt-powermanagement_ja.desktop.yaml | 1 - .../lxqt-powermanagement_ko.desktop.yaml | 1 - .../lxqt-powermanagement_lt.desktop.yaml | 1 - .../lxqt-powermanagement_nb_NO.desktop.yaml | 1 - .../lxqt-powermanagement_nl.desktop.yaml | 1 - .../lxqt-powermanagement_pl.desktop.yaml | 1 - .../lxqt-powermanagement_pt.desktop.yaml | 1 - .../lxqt-powermanagement_ru.desktop.yaml | 1 - .../lxqt-powermanagement_si.desktop.yaml | 1 - .../lxqt-powermanagement_sk.desktop.yaml | 1 - .../lxqt-powermanagement_tr.desktop.yaml | 1 - .../lxqt-powermanagement_uk.desktop.yaml | 1 - .../lxqt-powermanagement_vi.desktop.yaml | 1 - .../lxqt-powermanagement_zh_CN.desktop.yaml | 1 - .../lxqt-powermanagement_zh_TW.desktop.yaml | 1 - 246 files changed, 37259 deletions(-) delete mode 100644 Changes.txt delete mode 100644 LibLXQT/ARM Power Management/CMakeLists.txt delete mode 100644 LibLXQT/ARM Power Management/autostart/CMakeLists.txt delete mode 100644 LibLXQT/ARM Power Management/autostart/lxqt-powermanagement.desktop.in delete mode 100644 LibLXQT/ARM Power Management/config/CMakeLists.txt delete mode 100644 LibLXQT/ARM Power Management/config/batterywatchersettings.cpp delete mode 100644 LibLXQT/ARM Power Management/config/batterywatchersettings.h delete mode 100644 LibLXQT/ARM Power Management/config/batterywatchersettings.ui delete mode 100644 LibLXQT/ARM Power Management/config/helpers.cpp delete mode 100644 LibLXQT/ARM Power Management/config/helpers.h delete mode 100644 LibLXQT/ARM Power Management/config/icons/laptop-lid.svg delete mode 100644 LibLXQT/ARM Power Management/config/idlenesswatchersettings.cpp delete mode 100644 LibLXQT/ARM Power Management/config/idlenesswatchersettings.h delete mode 100644 LibLXQT/ARM Power Management/config/idlenesswatchersettings.ui delete mode 100644 LibLXQT/ARM Power Management/config/lidwatchersettings.cpp delete mode 100644 LibLXQT/ARM Power Management/config/lidwatchersettings.h delete mode 100644 LibLXQT/ARM Power Management/config/lidwatchersettings.ui delete mode 100644 LibLXQT/ARM Power Management/config/lxqt-config-powermanagement.desktop.in delete mode 100644 LibLXQT/ARM Power Management/config/main.cpp delete mode 100644 LibLXQT/ARM Power Management/config/mainwindow.cpp delete mode 100644 LibLXQT/ARM Power Management/config/mainwindow.h delete mode 100644 LibLXQT/ARM Power Management/config/powerkeyssettings.cpp delete mode 100644 LibLXQT/ARM Power Management/config/powerkeyssettings.h delete mode 100644 LibLXQT/ARM Power Management/config/powerkeyssettings.ui delete mode 100644 LibLXQT/ARM Power Management/config/powermanagementsettings.cpp delete mode 100644 LibLXQT/ARM Power Management/config/powermanagementsettings.h delete mode 100644 LibLXQT/ARM Power Management/config/translations/CMakeLists.txt delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ar.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ar.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_arn.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ast.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_bg.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_bg.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ca.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ca.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cs.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cs.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cy.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_da.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_da.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_de.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_de.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_el.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_el.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_es.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_es.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_et.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_et.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fi.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fr.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fr.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_gl.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_he.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_he.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hr.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hr.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hu.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hu.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_id.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_it.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_it.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ja.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ja.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ko.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ko.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_lt.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_lt.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nb_NO.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nb_NO.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nl.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nl.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_oc.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pl.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pl.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt_BR.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ru.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ru.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_si.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_si.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_sk.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_sk_SK.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_tr.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_tr.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_uk.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_uk.ts delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_vi.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_zh_CN.desktop.yaml delete mode 100644 LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_zh_CN.ts delete mode 100644 LibLXQT/ARM Power Management/src/CMakeLists.txt delete mode 100644 LibLXQT/ARM Power Management/src/batteryhelper.cpp delete mode 100644 LibLXQT/ARM Power Management/src/batteryhelper.h delete mode 100644 LibLXQT/ARM Power Management/src/batteryinfodialog.cpp delete mode 100644 LibLXQT/ARM Power Management/src/batteryinfodialog.h delete mode 100644 LibLXQT/ARM Power Management/src/batteryinfodialog.ui delete mode 100644 LibLXQT/ARM Power Management/src/batteryinfoframe.cpp delete mode 100644 LibLXQT/ARM Power Management/src/batteryinfoframe.h delete mode 100644 LibLXQT/ARM Power Management/src/batteryinfoframe.ui delete mode 100644 LibLXQT/ARM Power Management/src/batterywatcher.cpp delete mode 100644 LibLXQT/ARM Power Management/src/batterywatcher.h delete mode 100644 LibLXQT/ARM Power Management/src/iconproducer.cpp delete mode 100644 LibLXQT/ARM Power Management/src/iconproducer.h delete mode 100644 LibLXQT/ARM Power Management/src/idlenesswatcher.cpp delete mode 100644 LibLXQT/ARM Power Management/src/idlenesswatcher.h delete mode 100644 LibLXQT/ARM Power Management/src/lid.cpp delete mode 100644 LibLXQT/ARM Power Management/src/lid.h delete mode 100644 LibLXQT/ARM Power Management/src/lidwatcher.cpp delete mode 100644 LibLXQT/ARM Power Management/src/lidwatcher.h delete mode 100644 LibLXQT/ARM Power Management/src/main.cpp delete mode 100644 LibLXQT/ARM Power Management/src/powerbutton.cpp delete mode 100644 LibLXQT/ARM Power Management/src/powerbutton.h delete mode 100644 LibLXQT/ARM Power Management/src/powermanagementd.cpp delete mode 100644 LibLXQT/ARM Power Management/src/powermanagementd.h delete mode 100644 LibLXQT/ARM Power Management/src/translations/CMakeLists.txt delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ar.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_arn.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ast.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_bg.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ca.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_cs.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_cy.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_da.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_de.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_el.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_es.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_et.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_fi.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_fr.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_gl.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_he.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_hr.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_hu.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_id.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_it.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ja.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ko.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_lt.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_nb_NO.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_nl.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pl.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pt.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pt_BR.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ru.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_si.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_sk_SK.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_tr.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_uk.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_vi.ts delete mode 100644 LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_zh_CN.ts delete mode 100644 LibLXQT/ARM Power Management/src/trayicon.cpp delete mode 100644 LibLXQT/ARM Power Management/src/trayicon.h delete mode 100644 LibLXQT/ARM Power Management/src/watcher.cpp delete mode 100644 LibLXQT/ARM Power Management/src/watcher.h delete mode 100644 LibLXQT/AUTHORS delete mode 100644 LibLXQT/CHANGELOG delete mode 100644 LibLXQT/CMakeLists.txt delete mode 100644 LibLXQT/COPYING delete mode 100644 LibLXQT/README.md delete mode 100644 LibLXQT/cmake/lxqt-config.cmake.in delete mode 100644 LibLXQT/configdialog/lxqtconfigdialog.cpp delete mode 100644 LibLXQT/configdialog/lxqtconfigdialog.h delete mode 100644 LibLXQT/configdialog/lxqtconfigdialog.ui delete mode 100644 LibLXQT/configdialog/lxqtconfigdialog_p.h delete mode 100644 LibLXQT/configdialog/lxqtconfigdialogcmdlineoptions.cpp delete mode 100644 LibLXQT/configdialog/lxqtconfigdialogcmdlineoptions.h delete mode 100644 LibLXQT/configdialog/lxqtpageselectwidget.cpp delete mode 100644 LibLXQT/configdialog/lxqtpageselectwidget.h delete mode 100644 LibLXQT/dbus/org.freedesktop.Notifications.xml delete mode 100644 LibLXQT/dbus/org.lxqt.SingleApplication.xml delete mode 100644 LibLXQT/liblxqt.doxygen delete mode 100644 LibLXQT/lxqtapplication.cpp delete mode 100644 LibLXQT/lxqtapplication.h delete mode 100644 LibLXQT/lxqtautostartentry.cpp delete mode 100644 LibLXQT/lxqtautostartentry.h delete mode 100644 LibLXQT/lxqtbacklight.cpp delete mode 100644 LibLXQT/lxqtbacklight.h delete mode 100644 LibLXQT/lxqtbacklight/linux_backend/driver/CMakeLists.txt delete mode 100644 LibLXQT/lxqtbacklight/linux_backend/driver/libbacklight_backend.c delete mode 100644 LibLXQT/lxqtbacklight/linux_backend/driver/libbacklight_backend.h delete mode 100644 LibLXQT/lxqtbacklight/linux_backend/driver/lxqtbacklight_backend.c delete mode 100644 LibLXQT/lxqtbacklight/linux_backend/linuxbackend.cpp delete mode 100644 LibLXQT/lxqtbacklight/linux_backend/linuxbackend.h delete mode 100644 LibLXQT/lxqtbacklight/virtual_backend.cpp delete mode 100644 LibLXQT/lxqtbacklight/virtual_backend.h delete mode 100644 LibLXQT/lxqtglobals.h delete mode 100644 LibLXQT/lxqtgridlayout.cpp delete mode 100644 LibLXQT/lxqtgridlayout.h delete mode 100644 LibLXQT/lxqthtmldelegate.cpp delete mode 100644 LibLXQT/lxqthtmldelegate.h delete mode 100644 LibLXQT/lxqtnotification.cpp delete mode 100644 LibLXQT/lxqtnotification.h delete mode 100644 LibLXQT/lxqtnotification_p.h delete mode 100644 LibLXQT/lxqtplugininfo.cpp delete mode 100644 LibLXQT/lxqtplugininfo.h delete mode 100644 LibLXQT/lxqtpower/lxqtpower.cpp delete mode 100644 LibLXQT/lxqtpower/lxqtpower.h delete mode 100644 LibLXQT/lxqtpower/lxqtpowerproviders.cpp delete mode 100644 LibLXQT/lxqtpower/lxqtpowerproviders.h delete mode 100644 LibLXQT/lxqtpowermanager.cpp delete mode 100644 LibLXQT/lxqtpowermanager.h delete mode 100644 LibLXQT/lxqtprogramfinder.cpp delete mode 100644 LibLXQT/lxqtprogramfinder.h delete mode 100644 LibLXQT/lxqtrotatedwidget.cpp delete mode 100644 LibLXQT/lxqtrotatedwidget.h delete mode 100644 LibLXQT/lxqtscreensaver.cpp delete mode 100644 LibLXQT/lxqtscreensaver.h delete mode 100644 LibLXQT/lxqtsettings.cpp delete mode 100644 LibLXQT/lxqtsettings.h delete mode 100644 LibLXQT/lxqtsingleapplication.cpp delete mode 100644 LibLXQT/lxqtsingleapplication.h delete mode 100644 LibLXQT/lxqttranslator.cpp delete mode 100644 LibLXQT/lxqttranslator.h delete mode 100644 LibLXQT/polkit/org.lxqt.backlight.pkexec.policy.in delete mode 100644 LibLXQT/resources/power.conf delete mode 100644 LibLXQT/translations/lxqt-powermanagement.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_bg.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_cs.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_da.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_de.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_el.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_es.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_et.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_fr.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_he.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_hr.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_hu.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_it.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_ja.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_ko.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_lt.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_nb_NO.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_nl.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_pl.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_pt.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_ru.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_si.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_sk.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_tr.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_uk.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_vi.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_zh_CN.desktop.yaml delete mode 100644 LibLXQT/translations/lxqt-powermanagement_zh_TW.desktop.yaml diff --git a/Changes.txt b/Changes.txt deleted file mode 100644 index 56cd49bb8b..0000000000 --- a/Changes.txt +++ /dev/null @@ -1,101 +0,0 @@ -Enhancements - -So you want to see Titan enhancements? Guess what, i dont have fucking time to please all of you fucks espeically that mother fucker T3Q. - -Parallell crypto engine enhancements -Qortal Crypto Function Library enabled during boot -Sequentual Number Generator -Polyhash Crypto API added -RIPMD Now integrated -HDMI HD enabled at boot -VideoCore5 vc666 DTBO -TPM SLB9690 DTBO -Arch Dynamic Switcher -Qortal Core Process Accounting Daemon - -Kernel Security Updates - -New SecureFS added -seucrityfs enabled -Copies between kernel memory and userspace are not semi restricted -Common str/mem against buffer overflows extended -Second level integrity subsystem created again -EVM activated -Auto purge kernel heap mem and free by writing zeroes as default - -Security Iusses Resolved - -CVE-2021-38205 -CVE-2021-41073 -CVE-2021-42252 -CVE-2021-33034 -CVE-2021-3178 -CVE-2020-36158 -CVE-2021-20194 -CVE-2021-3347 -CVE-2021-20239 -CVE-2020-29569 -CVE-2021-33033 -CVE-2021-32606 -CVE-2021-31440 - -Changes - -Makefile | 2 - arch/arm/kernel/asm-offsets.c | 3 - arch/arm/kernel/smccc-call.S | 11 + - arch/arm/kernel/suspend.c | 19 ++ - arch/riscv/include/asm/ftrace.h | 14 + - arch/riscv/kernel/mcount.S | 10 - - arch/riscv/kernel/vdso/Makefile | 12 - - arch/um/Kconfig.debug | 1 - arch/um/kernel/Makefile | 1 - arch/um/kernel/dyn.lds.S | 6 - arch/um/kernel/gmon_syms.c | 16 -- - arch/um/kernel/uml.lds.S | 6 - arch/x86/lib/msr-smp.c | 4 - drivers/bus/mhi/core/boot.c | 51 +++--- - drivers/bus/mhi/core/internal.h | 1 - drivers/bus/mhi/core/pm.c | 2 - drivers/dma/dw-edma/dw-edma-core.c | 11 - - drivers/gpio/gpiolib-acpi.c | 14 + - drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 51 ++++++ - drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 5 - drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 4 - drivers/gpu/drm/i915/display/intel_dp.c | 13 + - drivers/input/touchscreen/elants_i2c.c | 44 +++++- - drivers/input/touchscreen/silead.c | 44 +++++- - drivers/misc/kgdbts.c | 26 +-- - drivers/net/ethernet/chelsio/cxgb4/sge.c | 16 +- - drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c | 7 - drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 14 - - drivers/net/wireless/cisco/airo.c | 117 ++++++++-------- - drivers/nvme/target/admin-cmd.c | 6 - drivers/pci/controller/dwc/pcie-tegra194.c | 2 - drivers/pci/controller/pci-thunder-ecam.c | 2 - drivers/pci/controller/pci-thunder-pem.c | 13 - - drivers/pci/hotplug/acpiphp_glue.c | 1 - drivers/pci/pci.h | 6 - drivers/platform/chrome/cros_ec_typec.c | 5 - drivers/scsi/lpfc/lpfc_sli.c | 11 + - drivers/target/target_core_user.c | 4 - drivers/usb/host/sl811-hcd.c | 9 - - fs/block_dev.c | 20 ++ - fs/ceph/caps.c | 1 - fs/ceph/export.c | 8 + - fs/ceph/inode.c | 13 + - fs/ceph/mds_client.c | 7 - fs/ceph/super.h | 24 +++ - fs/f2fs/segment.c | 5 - fs/nfs/inode.c | 7 - lib/stackdepot.c | 6 - net/bridge/br_netlink.c | 5 - net/hsr/hsr_forward.c | 4 - net/ipv6/ip6_gre.c | 7 - net/ipv6/ip6_tunnel.c | 3 - net/ipv6/ip6_vti.c | 1 - net/ipv6/sit.c | 5 - net/sunrpc/xprtrdma/svc_rdma_sendto.c | 8 - - scripts/recordmcount.pl | 2 - sound/pci/hda/hda_generic.c | 16 +- - 57 files changed, 499 insertions(+), 227 deletions(-) diff --git a/LibLXQT/ARM Power Management/CMakeLists.txt b/LibLXQT/ARM Power Management/CMakeLists.txt deleted file mode 100644 index 9891b55418..0000000000 --- a/LibLXQT/ARM Power Management/CMakeLists.txt +++ /dev/null @@ -1,49 +0,0 @@ -cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) -# CMP0000: Call the cmake_minimum_required() command at the beginning of the top-level -# CMakeLists.txt file even before calling the project() command. -# The cmake_minimum_required(VERSION) command implicitly invokes the cmake_policy(VERSION) -# command to specify that the current project code is written for the given range of CMake -# versions. -project(lxqt-powermanagement) - -include(GNUInstallDirs) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTOUIC ON) -set(CMAKE_INCLUDE_CURRENT_DIR ON) -set(CMAKE_POSITION_INDEPENDENT_CODE ON) - -option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF) - -set(KF5_MINIMUM_VERSION "5.36.0") -set(LXQT_MINIMUM_VERSION "1.0.0") -set(QT_MINIMUM_VERSION "5.15.0") - -find_package(Qt5DBus ${QT_MINIMUM_VERSION} REQUIRED) -find_package(Qt5LinguistTools ${QT_MINIMUM_VERSION} REQUIRED) -find_package(Qt5Svg ${QT_MINIMUM_VERSION} REQUIRED) -find_package(Qt5Widgets ${QT_MINIMUM_VERSION} REQUIRED) -find_package(KF5IdleTime ${KF5_MINIMUM_VERSION} REQUIRED) -find_package(KF5Solid ${KF5_MINIMUM_VERSION} REQUIRED) -find_package(lxqt ${LXQT_MINIMUM_VERSION} REQUIRED) -find_package(lxqt-globalkeys-ui ${LXQT_GLOBALKEYS_MINIMUM_VERSION} REQUIRED) - -message(STATUS "Building with Qt${Qt5Core_VERSION}") - -# Patch Version -set(LXQT_POWERMANAGEMENT_PATCH_VERSION 0) - -set(LXQT_POWERMANAGEMENT_VERSION ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_POWERMANAGEMENT_PATCH_VERSION}) -add_definitions( - "-DLXQT_POWERMANAGEMENT_VERSION=\"${LXQT_POWERMANAGEMENT_VERSION}\"" -) - -include(LXQtPreventInSourceBuilds) -include(LXQtCompilerSettings NO_POLICY_SCOPE) - -# Translations ********************************** -include(LXQtTranslate) - -add_subdirectory(config) -add_subdirectory(src) -add_subdirectory(autostart) diff --git a/LibLXQT/ARM Power Management/autostart/CMakeLists.txt b/LibLXQT/ARM Power Management/autostart/CMakeLists.txt deleted file mode 100644 index bfdd9d0e09..0000000000 --- a/LibLXQT/ARM Power Management/autostart/CMakeLists.txt +++ /dev/null @@ -1,16 +0,0 @@ -file(GLOB DESKTOP_FILES_IN *.desktop.in) - -# Translations ********************************** -lxqt_translate_desktop(DESKTOP_FILES - SOURCES - ${DESKTOP_FILES_IN} - USE_YAML -) -add_custom_target(lxqt_powermanagement_autostart_desktop_files ALL DEPENDS ${DESKTOP_FILES}) -#************************************************ - -install(FILES - ${DESKTOP_FILES} - DESTINATION "${LXQT_ETC_XDG_DIR}/autostart" - COMPONENT Runtime -) diff --git a/LibLXQT/ARM Power Management/autostart/lxqt-powermanagement.desktop.in b/LibLXQT/ARM Power Management/autostart/lxqt-powermanagement.desktop.in deleted file mode 100644 index 79d1b6f817..0000000000 --- a/LibLXQT/ARM Power Management/autostart/lxqt-powermanagement.desktop.in +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -Type=Application -Version=1.1 -TryExec=lxqt-powermanagement -Exec=lxqt-powermanagement -OnlyShowIn=LXQt; -X-LXQt-Need-Tray=true -X-LXQt-Module=true - -#TRANSLATIONS_DIR=translations diff --git a/LibLXQT/ARM Power Management/config/CMakeLists.txt b/LibLXQT/ARM Power Management/config/CMakeLists.txt deleted file mode 100644 index be95b63a64..0000000000 --- a/LibLXQT/ARM Power Management/config/CMakeLists.txt +++ /dev/null @@ -1,73 +0,0 @@ -project(lxqt-config-powermanagement) - -set(QTX_LIBRARIES Qt5::Widgets Qt5::DBus Qt5::Svg) - -set(SOURCES - main.cpp - mainwindow.cpp - lidwatchersettings.cpp - batterywatchersettings.cpp - idlenesswatchersettings.cpp - powermanagementsettings.cpp - powerkeyssettings.cpp - helpers.cpp - ../src/iconproducer.cpp -) - -set(UI_FILES - lidwatchersettings.ui - batterywatchersettings.ui - idlenesswatchersettings.ui - powerkeyssettings.ui -) - -set(ICON_FILES - icons/laptop-lid.svg -) - -set(DESKTOP_FILES_IN - lxqt-config-powermanagement.desktop.in -) - -# Translations ********************************** - -lxqt_translate_ts(QM_FILES - UPDATE_TRANSLATIONS ${UPDATE_TRANSLATIONS} - SOURCES - ${SOURCES} - ${UI_FILES} - INSTALL_DIR - ${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME} -) - -lxqt_app_translation_loader(config-powermanagement_QM_LOADER ${PROJECT_NAME}) -lxqt_translate_desktop(DESKTOP_FILES SOURCES ${DESKTOP_FILES_IN} USE_YAML) - -add_executable(${PROJECT_NAME} - ${SOURCES} - ${DESKTOP_FILES} - ${QM_FILES} - ${config-powermanagement_QM_LOADER} -) - -target_link_libraries(lxqt-config-powermanagement - lxqt - ${QTX_LIBRARIES} - KF5::Solid -) - -install(TARGETS - ${PROJECT_NAME} - RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" - COMPONENT Runtime -) -install(FILES - ${DESKTOP_FILES} - DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications" - COMPONENT Runtime -) -install(FILES - ${ICON_FILES} - DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/devices" - COMPONENT Runtime -) diff --git a/LibLXQT/ARM Power Management/config/batterywatchersettings.cpp b/LibLXQT/ARM Power Management/config/batterywatchersettings.cpp deleted file mode 100644 index 7df57459ab..0000000000 --- a/LibLXQT/ARM Power Management/config/batterywatchersettings.cpp +++ /dev/null @@ -1,111 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#include - -#include -#include -#include -#include - -#include "batterywatchersettings.h" -#include "ui_batterywatchersettings.h" -#include "powermanagementsettings.h" - -BatteryWatcherSettings::BatteryWatcherSettings(QWidget *parent) : - QWidget(parent), - mSettings(), - mUi(new Ui::BatteryWatcherSettings), - mChargingIconProducer(), - mDischargingIconProducer() - -{ - mUi->setupUi(this); - fillComboBox(mUi->actionComboBox); - mUi->chargeLevelSlider->setValue(53); - mChargingIconProducer.updateState(Solid::Battery::Charging); - mDischargingIconProducer.updateState(Solid::Battery::Discharging); - - connect(mUi->groupBox, &QGroupBox::clicked, this, &BatteryWatcherSettings::saveSettings); - connect(mUi->actionComboBox, QOverload::of(&QComboBox::activated), this, &BatteryWatcherSettings::saveSettings); - connect(mUi->warningSpinBox, &QSpinBox::editingFinished, this, &BatteryWatcherSettings::saveSettings); - connect(mUi->levelSpinBox, &QSpinBox::editingFinished, this, &BatteryWatcherSettings::saveSettings); - connect(mUi->showIconCheckBox, &QCheckBox::clicked, this, &BatteryWatcherSettings::saveSettings); - connect(mUi->showIconCheckBox, &QCheckBox::clicked, mUi->previewBox, &QGroupBox::setEnabled); - connect(mUi->useThemeIconsCheckBox, &QCheckBox::clicked, this, &BatteryWatcherSettings::saveSettings); - connect(mUi->useThemeIconsCheckBox, &QCheckBox::clicked, this, &BatteryWatcherSettings::updatePreview); - connect(mUi->chargeLevelSlider, &QSlider::valueChanged, this, &BatteryWatcherSettings::updatePreview); - connect(&mChargingIconProducer, &IconProducer::iconChanged, this, &BatteryWatcherSettings::onChargeIconChanged); - connect(&mDischargingIconProducer, &IconProducer::iconChanged, this, &BatteryWatcherSettings::onDischargeIconChanged); - updatePreview(); -} - -BatteryWatcherSettings::~BatteryWatcherSettings() -{ - delete mUi; -} - -void BatteryWatcherSettings::loadSettings() -{ - mUi->groupBox->setChecked(mSettings.isBatteryWatcherEnabled()); - setComboBoxToValue(mUi->actionComboBox, mSettings.getPowerLowAction()); - mUi->warningSpinBox->setValue(mSettings.getPowerLowWarningTime()); - mUi->levelSpinBox->setValue(mSettings.getPowerLowLevel()); - mUi->showIconCheckBox->setChecked(mSettings.isShowIcon()); - mUi->useThemeIconsCheckBox->setChecked(mSettings.isUseThemeIcons()); -} - -void BatteryWatcherSettings::saveSettings() -{ - mSettings.setBatteryWatcherEnabled(mUi->groupBox->isChecked()); - mSettings.setPowerLowAction(currentValue(mUi->actionComboBox)); - mSettings.setPowerLowWarningTime(mUi->warningSpinBox->value()); - mSettings.setPowerLowLevel(mUi->levelSpinBox->value()); - mSettings.setShowIcon(mUi->showIconCheckBox->isChecked()); - mSettings.setUseThemeIcons(mUi->useThemeIconsCheckBox->isChecked()); -} - -void BatteryWatcherSettings::updatePreview() -{ - mUi->previewBox->setTitle(tr("Preview") + QString::fromLatin1(" (%1)").arg(mSettings.isUseThemeIcons() ? QIcon::themeName() : tr("built in"))); - - int chargePercent = mUi->chargeLevelSlider->value(); - mChargingIconProducer.updateChargePercent(chargePercent); - mDischargingIconProducer.updateChargePercent(chargePercent); - mUi->chargeLevelLabel->setText(tr("Level: %1%").arg(chargePercent)); -} - -void BatteryWatcherSettings::onChargeIconChanged() -{ - mUi->chargingIcon->setPixmap(mChargingIconProducer.mIcon.pixmap(mUi->chargingIcon->size())); - mUi->chargingLabel->setText(mChargingIconProducer.mIconName); -} - -void BatteryWatcherSettings::onDischargeIconChanged() -{ - mUi->dischargingIcon->setPixmap(mDischargingIconProducer.mIcon.pixmap(mUi->dischargingIcon->size())); - mUi->dischargingLabel->setText(mDischargingIconProducer.mIconName); -} diff --git a/LibLXQT/ARM Power Management/config/batterywatchersettings.h b/LibLXQT/ARM Power Management/config/batterywatchersettings.h deleted file mode 100644 index d088c8b6a6..0000000000 --- a/LibLXQT/ARM Power Management/config/batterywatchersettings.h +++ /dev/null @@ -1,66 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#ifndef POWERLOWSETTINGS_H -#define POWERLOWSETTINGS_H - -#include -#include - -#include "../config/powermanagementsettings.h" -#include "../src/iconproducer.h" - -#include "helpers.h" - -namespace Ui { -class BatteryWatcherSettings; -} - -class BatteryWatcherSettings : public QWidget -{ - Q_OBJECT - -public: - explicit BatteryWatcherSettings(QWidget *parent = nullptr); - ~BatteryWatcherSettings() override; - -public slots: - void loadSettings(); - -private slots: - void saveSettings(); - void updatePreview(); - void onChargeIconChanged(); - void onDischargeIconChanged(); - -private: - PowerManagementSettings mSettings; - Ui::BatteryWatcherSettings *mUi; - IconProducer mChargingIconProducer; - IconProducer mDischargingIconProducer; -}; - -#endif // POWERLOWSETTINGS_H diff --git a/LibLXQT/ARM Power Management/config/batterywatchersettings.ui b/LibLXQT/ARM Power Management/config/batterywatchersettings.ui deleted file mode 100644 index c4ae1d0d49..0000000000 --- a/LibLXQT/ARM Power Management/config/batterywatchersettings.ui +++ /dev/null @@ -1,249 +0,0 @@ - - - BatteryWatcherSettings - - - - 0 - 0 - 428 - 414 - - - - Battery Watcher Settings - - - - - - - 0 - 0 - - - - E&nable Battery Watcher - - - true - - - - QFormLayout::AllNonFixedFieldsGrow - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - When power is low then: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - Warning: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - seconds - - - 500 - - - - - - - Level is low at: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - % - - - - - - - Show icon: - - - - - - - - - - - - - - Use icons from theme: - - - - - - - - - - - - - - Preview - - - - - - 100 - - - Qt::Horizontal - - - - - - - - 50 - 50 - - - - - - - Qt::AlignCenter - - - - - - - - 9 - - - - Charging - - - Qt::AlignCenter - - - - - - - - 50 - 50 - - - - - - - Qt::AlignCenter - - - - - - - - - - - - - - - 9 - - - - Discharging - - - Qt::AlignCenter - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 15 - - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 25 - - - - - - - - - - - - diff --git a/LibLXQT/ARM Power Management/config/helpers.cpp b/LibLXQT/ARM Power Management/config/helpers.cpp deleted file mode 100644 index b05aab6b10..0000000000 --- a/LibLXQT/ARM Power Management/config/helpers.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include - -#include - -#include "helpers.h" - -void fillComboBox(QComboBox* comboBox) -{ - comboBox->clear(); - comboBox->addItem(QObject::tr("Nothing"), -1); - comboBox->addItem(QObject::tr("Ask"), LXQt::Power::PowerShowLeaveDialog); - comboBox->addItem(QObject::tr("Lock screen"), -2); // FIXME - comboBox->addItem(QObject::tr("Suspend"), LXQt::Power::PowerSuspend); - comboBox->addItem(QObject::tr("Hibernate"), LXQt::Power::PowerHibernate); - comboBox->addItem(QObject::tr("Shutdown"), LXQt::Power::PowerShutdown); - comboBox->addItem(QObject::tr("Turn Off monitor(s)"), LXQt::Power::PowerMonitorOff); -} - -void setComboBoxToValue(QComboBox* comboBox, int value) -{ - for (int index = 0; index < comboBox->count(); index++) - { - if (value == comboBox->itemData(index).toInt()) - { - comboBox->setCurrentIndex(index); - return; - } - } - - comboBox->setCurrentIndex(0); -} - -int currentValue(QComboBox *comboBox) -{ - return comboBox->itemData(comboBox->currentIndex()).toInt(); -} - diff --git a/LibLXQT/ARM Power Management/config/helpers.h b/LibLXQT/ARM Power Management/config/helpers.h deleted file mode 100644 index 7f20f7745b..0000000000 --- a/LibLXQT/ARM Power Management/config/helpers.h +++ /dev/null @@ -1,20 +0,0 @@ -/* -* Copyright (c) 2014 Christian Surlykke -* -* This file is part of the LXQt project. -* It is distributed under the LGPL 2.1 or later license. -* Please refer to the LICENSE file for a copy of the license. -*/ -#ifndef POWER_MANAGEMENT_SETTINGS_H -#define POWER_MANAGEMENT_SETTINGS_H - -#include - -void fillComboBox(QComboBox* comboBox); - -void setComboBoxToValue(QComboBox* comboBox, int value); - -int currentValue(QComboBox *comboBox); - -#endif // POWER_MANAGEMENT_SETTINGS_H - diff --git a/LibLXQT/ARM Power Management/config/icons/laptop-lid.svg b/LibLXQT/ARM Power Management/config/icons/laptop-lid.svg deleted file mode 100644 index e66164d0ec..0000000000 --- a/LibLXQT/ARM Power Management/config/icons/laptop-lid.svg +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - diff --git a/LibLXQT/ARM Power Management/config/idlenesswatchersettings.cpp b/LibLXQT/ARM Power Management/config/idlenesswatchersettings.cpp deleted file mode 100644 index e815ccaf86..0000000000 --- a/LibLXQT/ARM Power Management/config/idlenesswatchersettings.cpp +++ /dev/null @@ -1,156 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include - -#include "idlenesswatchersettings.h" -#include "ui_idlenesswatchersettings.h" -#include "helpers.h" - -#define MINIMUM_SECONDS 30 - -IdlenessWatcherSettings::IdlenessWatcherSettings(QWidget *parent) : - QWidget(parent), - mSettings(), - mUi(new Ui::IdlenessWatcherSettings) -{ - mUi->setupUi(this); - fillComboBox(mUi->idleACActionComboBox); - fillComboBox(mUi->idleBatteryActionComboBox); - - mUi->idleACTimeEdit->setMinimumTime( QTime(0,0,MINIMUM_SECONDS) ); - mUi->idleBatteryTimeEdit->setMinimumTime( QTime(0,0,MINIMUM_SECONDS) ); - - mBacklight = new LXQt::Backlight(this); - // If if no backlight support then disable backlight control: - if(! mBacklight->isBacklightAvailable()) { - mUi->idlenessBacklightWatcherGroupBox->setEnabled(false); - mUi->idlenessBacklightWatcherGroupBox->setChecked(false); - } else { - mBacklightActualValue = mBacklight->getBacklight(); - } - - mConnectSignals(); -} - - -void IdlenessWatcherSettings::mConnectSignals() -{ - connect(mUi->idlenessWatcherGroupBox, &QGroupBox::clicked, this, &IdlenessWatcherSettings::saveSettings); - connect(mUi->idleACActionComboBox, QOverload::of(&QComboBox::activated), this, &IdlenessWatcherSettings::saveSettings); - connect(mUi->idleACTimeEdit, &QTimeEdit::editingFinished, this, &IdlenessWatcherSettings::saveSettings); - connect(mUi->idleBatteryActionComboBox, QOverload::of(&QComboBox::activated), this, &IdlenessWatcherSettings::saveSettings); - connect(mUi->idleBatteryTimeEdit, &QTimeEdit::editingFinished, this, &IdlenessWatcherSettings::saveSettings); - - connect(mUi->checkBacklightButton, &QPushButton::pressed, this, &IdlenessWatcherSettings::backlightCheckButtonPressed); - connect(mUi->checkBacklightButton, &QPushButton::released, this, &IdlenessWatcherSettings::backlightCheckButtonReleased); - - connect(mUi->idlenessBacklightWatcherGroupBox, &QGroupBox::clicked, this, &IdlenessWatcherSettings::saveSettings); - connect(mUi->backlightSlider, &QSlider::valueChanged, this, &IdlenessWatcherSettings::saveSettings); - connect(mUi->idleTimeBacklightTimeEdit, &QTimeEdit::editingFinished, this, &IdlenessWatcherSettings::saveSettings); - connect(mUi->onBatteryDischargingCheckBox, &QCheckBox::toggled, this, &IdlenessWatcherSettings::saveSettings); - - connect(mUi->disableIdlenessFullscreenBox, &QCheckBox::toggled, this, &IdlenessWatcherSettings::saveSettings); -} - -void IdlenessWatcherSettings::mDisconnectSignals() -{ - disconnect(mUi->idlenessWatcherGroupBox, &QGroupBox::clicked, this, &IdlenessWatcherSettings::saveSettings); - disconnect(mUi->idleACActionComboBox, QOverload::of(&QComboBox::activated), this, &IdlenessWatcherSettings::saveSettings); - disconnect(mUi->idleACTimeEdit, &QTimeEdit::editingFinished, this, &IdlenessWatcherSettings::saveSettings); - disconnect(mUi->idleBatteryActionComboBox, QOverload::of(&QComboBox::activated), this, &IdlenessWatcherSettings::saveSettings); - disconnect(mUi->idleBatteryTimeEdit, &QTimeEdit::editingFinished, this, &IdlenessWatcherSettings::saveSettings); - - disconnect(mUi->checkBacklightButton, &QPushButton::pressed, this, &IdlenessWatcherSettings::backlightCheckButtonPressed); - disconnect(mUi->checkBacklightButton, &QPushButton::released, this, &IdlenessWatcherSettings::backlightCheckButtonReleased); - - disconnect(mUi->idlenessBacklightWatcherGroupBox, &QGroupBox::clicked, this, &IdlenessWatcherSettings::saveSettings); - disconnect(mUi->backlightSlider, &QSlider::valueChanged, this, &IdlenessWatcherSettings::saveSettings); - disconnect(mUi->idleTimeBacklightTimeEdit, &QTimeEdit::editingFinished, this, &IdlenessWatcherSettings::saveSettings); - disconnect(mUi->onBatteryDischargingCheckBox, &QCheckBox::toggled, this, &IdlenessWatcherSettings::saveSettings); - - disconnect(mUi->disableIdlenessFullscreenBox, &QCheckBox::toggled, this, &IdlenessWatcherSettings::saveSettings); -} - -IdlenessWatcherSettings::~IdlenessWatcherSettings() -{ - delete mUi; -} - -void IdlenessWatcherSettings::loadSettings() -{ - mDisconnectSignals(); - mUi->idlenessWatcherGroupBox->setChecked(mSettings.isIdlenessWatcherEnabled()); - - setComboBoxToValue(mUi->idleACActionComboBox, mSettings.getIdlenessACAction()); - mUi->idleACTimeEdit->setTime(mSettings.getIdlenessACTime()); - - setComboBoxToValue(mUi->idleBatteryActionComboBox, mSettings.getIdlenessBatteryAction()); - mUi->idleBatteryTimeEdit->setTime(mSettings.getIdlenessBatteryTime()); - - if(mBacklight->isBacklightAvailable()) { - mUi->idlenessBacklightWatcherGroupBox->setChecked(mSettings.isIdlenessBacklightWatcherEnabled()); - mUi->idleTimeBacklightTimeEdit->setTime(mSettings.getIdlenessBacklightTime()); - mUi->backlightSlider->setValue(mSettings.getBacklight()); - mUi->onBatteryDischargingCheckBox->setChecked(mSettings.isIdlenessBacklightOnBatteryDischargingEnabled()); - } - mUi->disableIdlenessFullscreenBox->setChecked(mSettings.isDisableIdlenessWhenFullscreenEnabled()); - mConnectSignals(); -} - -void IdlenessWatcherSettings::saveSettings() -{ - mSettings.setIdlenessWatcherEnabled(mUi->idlenessWatcherGroupBox->isChecked()); - - mSettings.setIdlenessACAction(currentValue(mUi->idleACActionComboBox)); - mSettings.setIdlenessACTime(mUi->idleACTimeEdit->time()); - - mSettings.setIdlenessBatteryAction(currentValue(mUi->idleBatteryActionComboBox)); - mSettings.setIdlenessBatteryTime(mUi->idleBatteryTimeEdit->time()); - - mSettings.setIdlenessBacklightWatcherEnabled(mBacklight->isBacklightAvailable() ? mUi->idlenessBacklightWatcherGroupBox->isChecked() : false); - mSettings.setIdlenessBacklightTime(mUi->idleTimeBacklightTimeEdit->time()); - mSettings.setBacklight(mUi->backlightSlider->value()); - mSettings.setIdlenessBacklightOnBatteryDischargingEnabled(mUi->onBatteryDischargingCheckBox->isChecked()); - mSettings.setDisableIdlenessWhenFullscreen(mUi->disableIdlenessFullscreenBox->isChecked()); -} - -void IdlenessWatcherSettings::backlightCheckButtonPressed() -{ - if(mBacklight->isBacklightAvailable()) { - mBacklightActualValue = mBacklight->getBacklight(); - mBacklight->setBacklight((float)mBacklightActualValue * (float)(mUi->backlightSlider->value())/100.0f); - } -} - -void IdlenessWatcherSettings::backlightCheckButtonReleased() -{ - if(mBacklight->isBacklightAvailable()) { - mBacklight->setBacklight(mBacklightActualValue); - } -} diff --git a/LibLXQT/ARM Power Management/config/idlenesswatchersettings.h b/LibLXQT/ARM Power Management/config/idlenesswatchersettings.h deleted file mode 100644 index 30028fb404..0000000000 --- a/LibLXQT/ARM Power Management/config/idlenesswatchersettings.h +++ /dev/null @@ -1,66 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#ifndef IDLE_SETTINGS_H -#define IDLE_SETTINGS_H - -#include -#include -#include - -#include "powermanagementsettings.h" - -namespace Ui { - class IdlenessWatcherSettings; -} - -class IdlenessWatcherSettings : public QWidget -{ - Q_OBJECT - -public: - explicit IdlenessWatcherSettings(QWidget *parent = nullptr); - ~IdlenessWatcherSettings() override; - -public Q_SLOTS: - void loadSettings(); - -private Q_SLOTS: - void saveSettings(); - void backlightCheckButtonPressed(); - void backlightCheckButtonReleased(); - -private: - PowerManagementSettings mSettings; - Ui::IdlenessWatcherSettings *mUi; - LXQt::Backlight *mBacklight; - int mBacklightActualValue; - - void mConnectSignals(); - void mDisconnectSignals(); -}; - -#endif // IDLE_SETTINGS_H diff --git a/LibLXQT/ARM Power Management/config/idlenesswatchersettings.ui b/LibLXQT/ARM Power Management/config/idlenesswatchersettings.ui deleted file mode 100644 index 2ef7e4ba6a..0000000000 --- a/LibLXQT/ARM Power Management/config/idlenesswatchersettings.ui +++ /dev/null @@ -1,216 +0,0 @@ - - - IdlenessWatcherSettings - - - - 0 - 0 - 400 - 452 - - - - - - - Enab&le Idleness Watcher - - - true - - - - - - - - - 0 - 0 - - - - When idle on AC: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - - 0 - 0 - - - - AC Idle time: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Minutes:Seconds (min: 01:30) - - - - 0 - 1 - 0 - 2000 - 1 - 1 - - - - mm:ss - - - - - - - When idle on Battery: - - - - - - - Battery Idle time: - - - - - - - Minutes:Seconds (min: 01:30) - - - - 0 - 1 - 0 - 2000 - 1 - 1 - - - - mm:ss - - - - - - - - - - - - Enable Backlight Change - - - true - - - - - - Backlight (%): - - - - - - - 100 - - - 1 - - - Qt::Horizontal - - - - - - - Idle time: - - - - - - - Minutes:Seconds - - - - - - - - - QDateTimeEdit::MinuteSection - - - mm:ss - - - - - - - Check backlight - - - - - - - On battery discharging - - - true - - - - - - - - - - - - - Disable idleness checks when fullscreen - - - - - - - - diff --git a/LibLXQT/ARM Power Management/config/lidwatchersettings.cpp b/LibLXQT/ARM Power Management/config/lidwatchersettings.cpp deleted file mode 100644 index b1f26d148c..0000000000 --- a/LibLXQT/ARM Power Management/config/lidwatchersettings.cpp +++ /dev/null @@ -1,83 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include - -#include "lidwatchersettings.h" -#include "ui_lidwatchersettings.h" -#include "helpers.h" - -LidWatcherSettings::LidWatcherSettings(QWidget *parent) : - QWidget(parent), - mSettings(), - mUi(new Ui::LidWatcherSettings) -{ - mUi->setupUi(this); - - fillComboBox(mUi->onBatteryActionComboBox); - fillComboBox(mUi->onAcActionComboBox); - fillComboBox(mUi->extMonOnBatteryActionComboBox); - fillComboBox(mUi->extMonOnAcActionComboBox); - - connect(mUi->lidWatcherSettingsGroupBox, &QGroupBox::clicked, this, &LidWatcherSettings::saveSettings); - connect(mUi->onBatteryActionComboBox, QOverload::of(&QComboBox::activated), this, &LidWatcherSettings::saveSettings); - connect(mUi->onAcActionComboBox, QOverload::of(&QComboBox::activated), this, &LidWatcherSettings::saveSettings); - connect(mUi->extMonOnBatteryActionComboBox, QOverload::of(&QComboBox::activated), this, &LidWatcherSettings::saveSettings); - connect(mUi->extMonOnAcActionComboBox, QOverload::of(&QComboBox::activated), this, &LidWatcherSettings::saveSettings); - connect(mUi->extMonGroupBox, &QGroupBox::clicked, this, &LidWatcherSettings::saveSettings); -} - -LidWatcherSettings::~LidWatcherSettings() -{ - delete mUi; -} - -void LidWatcherSettings::loadSettings() -{ - mUi->lidWatcherSettingsGroupBox->setChecked(mSettings.isLidWatcherEnabled()); - - setComboBoxToValue(mUi->onBatteryActionComboBox, mSettings.getLidClosedAction()); - setComboBoxToValue(mUi->onAcActionComboBox, mSettings.getLidClosedAcAction()); - - mUi->extMonGroupBox->setChecked(mSettings.isEnableExtMonLidClosedActions()); - setComboBoxToValue(mUi->extMonOnBatteryActionComboBox, mSettings.getLidClosedExtMonAction()); - setComboBoxToValue(mUi->extMonOnAcActionComboBox, mSettings.getLidClosedExtMonAcAction()); - -} - -void LidWatcherSettings::saveSettings() -{ - mSettings.setLidWatcherEnabled(mUi->lidWatcherSettingsGroupBox->isChecked()); - - mSettings.setLidClosedAction(currentValue(mUi->onBatteryActionComboBox)); - mSettings.setLidClosedAcAction(currentValue(mUi->onAcActionComboBox)); - - mSettings.setEnableExtMonLidClosedActions(mUi->extMonGroupBox->isChecked()); - mSettings.setLidClosedExtMonAction(currentValue(mUi->extMonOnBatteryActionComboBox)); - mSettings.setLidClosedExtMonAcAction(currentValue(mUi->extMonOnAcActionComboBox)); -} diff --git a/LibLXQT/ARM Power Management/config/lidwatchersettings.h b/LibLXQT/ARM Power Management/config/lidwatchersettings.h deleted file mode 100644 index a1f43a023c..0000000000 --- a/LibLXQT/ARM Power Management/config/lidwatchersettings.h +++ /dev/null @@ -1,58 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#ifndef LIDSETTINGS_H -#define LIDSETTINGS_H - -#include -#include - -#include "powermanagementsettings.h" - -namespace Ui { -class LidWatcherSettings; -} - -class LidWatcherSettings : public QWidget -{ - Q_OBJECT - -public: - explicit LidWatcherSettings(QWidget *parent = nullptr); - ~LidWatcherSettings() override; - -public slots: - void loadSettings(); - -private slots: - void saveSettings(); - -private: - PowerManagementSettings mSettings; - Ui::LidWatcherSettings *mUi; -}; - -#endif // LIDSETTINGS_H diff --git a/LibLXQT/ARM Power Management/config/lidwatchersettings.ui b/LibLXQT/ARM Power Management/config/lidwatchersettings.ui deleted file mode 100644 index 0edc915b72..0000000000 --- a/LibLXQT/ARM Power Management/config/lidwatchersettings.ui +++ /dev/null @@ -1,149 +0,0 @@ - - - LidWatcherSettings - - - - 0 - 0 - 276 - 289 - - - - QGroupBox QGroupBox { -border: none; -padding-top: 30px; -} - - - - - - Enable &Lid Watcher - - - true - - - true - - - - - - - - - Action when lid is closed: - - - - QFormLayout::AllNonFixedFieldsGrow - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - On Battery: - - - - - - - - Nothing - - - - - Suspend - - - - - Hibernate - - - - - Shut down - - - - - - - - On AC: - - - - - - - - - - - - - When &using external monitor - - - true - - - - QFormLayout::AllNonFixedFieldsGrow - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - 0 - 0 - - - - On Battery: - - - - - - - - - - On AC: - - - - - - - - 0 - 0 - - - - - - - - - - - - - - - diff --git a/LibLXQT/ARM Power Management/config/lxqt-config-powermanagement.desktop.in b/LibLXQT/ARM Power Management/config/lxqt-config-powermanagement.desktop.in deleted file mode 100644 index f8b38b1468..0000000000 --- a/LibLXQT/ARM Power Management/config/lxqt-config-powermanagement.desktop.in +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Type=Application -Exec=lxqt-config-powermanagement -Icon=preferences-system-power-management -Categories=Settings;DesktopSettings;Qt;LXQt; -OnlyShowIn=LXQt; - -#TRANSLATIONS_DIR=translations diff --git a/LibLXQT/ARM Power Management/config/main.cpp b/LibLXQT/ARM Power Management/config/main.cpp deleted file mode 100644 index 27e1f02a0f..0000000000 --- a/LibLXQT/ARM Power Management/config/main.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include - -#include - -#include "mainwindow.h" - -int main(int argc, char *argv[]) -{ - LXQt::SingleApplication a(argc, argv); - a.setAttribute(Qt::AA_UseHighDpiPixmaps, true); - - QCommandLineParser parser; - parser.setApplicationDescription(QStringLiteral("LXQt Config Powermanagement")); - const QString VERINFO = QStringLiteral(LXQT_POWERMANAGEMENT_VERSION - "\nliblxqt " LXQT_VERSION - "\nQt " QT_VERSION_STR); - a.setApplicationVersion(VERINFO); - parser.addVersionOption(); - parser.addHelpOption(); - parser.process(a); - - MainWindow mainWindow; - mainWindow.setWindowIcon(QIcon::fromTheme(QSL("preferences-system-power-management"))); - mainWindow.show(); - a.setActivationWindow(&mainWindow); - - return a.exec(); -} diff --git a/LibLXQT/ARM Power Management/config/mainwindow.cpp b/LibLXQT/ARM Power Management/config/mainwindow.cpp deleted file mode 100644 index 1ea6e57cdb..0000000000 --- a/LibLXQT/ARM Power Management/config/mainwindow.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "mainwindow.h" -#include "lidwatchersettings.h" -#include "batterywatchersettings.h" -#include "idlenesswatchersettings.h" -#include "powerkeyssettings.h" - -#include - -MainWindow::MainWindow(QWidget *parent) : - LXQt::ConfigDialog(tr("Power Management Settings"), new PowerManagementSettings(parent)) -{ - BatteryWatcherSettings* batteryWatcherSettings = new BatteryWatcherSettings(this); - addPage(batteryWatcherSettings, tr("Battery"), QSL("battery")); - connect(this, &MainWindow::reset, batteryWatcherSettings, &BatteryWatcherSettings::loadSettings); - - LidWatcherSettings *lidwatcherSettings = new LidWatcherSettings(this); - addPage(lidwatcherSettings, tr("Lid"), QSL("laptop-lid")); - connect(this, &MainWindow::reset, lidwatcherSettings, &LidWatcherSettings::loadSettings); - - IdlenessWatcherSettings* idlenessWatcherSettings = new IdlenessWatcherSettings(this); - addPage(idlenessWatcherSettings, tr("Idle"), (QStringList() << QSL("user-idle") << QSL("user-away"))); - connect(this, &MainWindow::reset, idlenessWatcherSettings, &IdlenessWatcherSettings::loadSettings); - - PowerKeysSettings* powerKeysSettings = new PowerKeysSettings(this); - addPage(powerKeysSettings, tr("Power keys"), QSL("system-shutdown")); - connect(this, &MainWindow::reset, powerKeysSettings, &PowerKeysSettings::loadSettings); - - emit reset(); -} diff --git a/LibLXQT/ARM Power Management/config/mainwindow.h b/LibLXQT/ARM Power Management/config/mainwindow.h deleted file mode 100644 index ff4fb25292..0000000000 --- a/LibLXQT/ARM Power Management/config/mainwindow.h +++ /dev/null @@ -1,40 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include - -class MainWindow : public LXQt::ConfigDialog -{ - Q_OBJECT - -public: - MainWindow(QWidget *parent = nullptr); -}; - -#endif // MAINWINDOW_H diff --git a/LibLXQT/ARM Power Management/config/powerkeyssettings.cpp b/LibLXQT/ARM Power Management/config/powerkeyssettings.cpp deleted file mode 100644 index c49fdf86b1..0000000000 --- a/LibLXQT/ARM Power Management/config/powerkeyssettings.cpp +++ /dev/null @@ -1,63 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2020 LXQt team - * Authors: - * Pedro L. Lucas - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "powerkeyssettings.h" -#include "ui_powerkeyssettings.h" -#include "helpers.h" - -PowerKeysSettings::PowerKeysSettings(QWidget *parent) : - QWidget(parent), - mSettings(), - mUi(new Ui::PowerKeysSettings) -{ - mUi->setupUi(this); - fillComboBox(mUi->powerKeyActionComboBox); - fillComboBox(mUi->suspendKeyActionComboBox); - fillComboBox(mUi->hibernateKeyActionComboBox); - - connect(mUi->powerKeyActionComboBox, QOverload::of(&QComboBox::activated), this, &PowerKeysSettings::saveSettings); - connect(mUi->suspendKeyActionComboBox, QOverload::of(&QComboBox::activated), this, &PowerKeysSettings::saveSettings); - connect(mUi->hibernateKeyActionComboBox, QOverload::of(&QComboBox::activated), this, &PowerKeysSettings::saveSettings); -} - -PowerKeysSettings::~PowerKeysSettings() -{ -} - -void PowerKeysSettings::loadSettings() -{ - setComboBoxToValue(mUi->powerKeyActionComboBox, mSettings.getPowerKeyAction()); - setComboBoxToValue(mUi->suspendKeyActionComboBox, mSettings.getSuspendKeyAction()); - setComboBoxToValue(mUi->hibernateKeyActionComboBox, mSettings.getHibernateKeyAction()); -} - -void PowerKeysSettings::saveSettings() -{ - mSettings.setPowerKeyAction(currentValue(mUi->powerKeyActionComboBox)); - mSettings.setSuspendKeyAction(currentValue(mUi->suspendKeyActionComboBox)); - mSettings.setHibernateKeyAction(currentValue(mUi->hibernateKeyActionComboBox)); -} diff --git a/LibLXQT/ARM Power Management/config/powerkeyssettings.h b/LibLXQT/ARM Power Management/config/powerkeyssettings.h deleted file mode 100644 index bdff1aca32..0000000000 --- a/LibLXQT/ARM Power Management/config/powerkeyssettings.h +++ /dev/null @@ -1,59 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2020 LXQt team - * Authors: - * Pedro L. Lucas - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef POWER_KEYS_SETTINGS_H -#define POWER_KEYS_SETTINGS_H - -#include -#include - -#include "powermanagementsettings.h" - -namespace Ui { - class PowerKeysSettings; -} - -class PowerKeysSettings : public QWidget -{ - Q_OBJECT - -public: - explicit PowerKeysSettings(QWidget *parent = nullptr); - ~PowerKeysSettings() override; - -public Q_SLOTS: - void loadSettings(); - -private Q_SLOTS: - void saveSettings(); - -private: - PowerManagementSettings mSettings; - Ui::PowerKeysSettings *mUi; -}; - -#endif // POWER_KEYS_SETTINGS_H diff --git a/LibLXQT/ARM Power Management/config/powerkeyssettings.ui b/LibLXQT/ARM Power Management/config/powerkeyssettings.ui deleted file mode 100644 index 817ddf6d1f..0000000000 --- a/LibLXQT/ARM Power Management/config/powerkeyssettings.ui +++ /dev/null @@ -1,60 +0,0 @@ - - - PowerKeysSettings - - - - 0 - 0 - 400 - 300 - - - - Form - - - - - - Handle Power Keys - - - - - - Power Key Action: - - - - - - - - - - - - - - - - Suspend Key Action: - - - - - - - Hibernate Key Action: - - - - - - - - - - - diff --git a/LibLXQT/ARM Power Management/config/powermanagementsettings.cpp b/LibLXQT/ARM Power Management/config/powermanagementsettings.cpp deleted file mode 100644 index 830843a7a2..0000000000 --- a/LibLXQT/ARM Power Management/config/powermanagementsettings.cpp +++ /dev/null @@ -1,361 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include - -#include - -#include "powermanagementsettings.h" - -// the pause state is only for the tray icon and is not saved -bool PowerManagementSettings::mIdlenessWatcherPaused = false; - -namespace PowerManagementSettingsConstants -{ - const QString RUN_CHECK_LEVEL { QSL("runCheckLevel") }; - const QString ENABLE_BATTERY_WATCHER_KEY { QSL("enableBatteryWatcher") }; - const QString ENABLE_LID_WATCHER_KEY { QSL("enableLidWatcher") }; - const QString ENABLE_IDLENESS_WATCHER_KEY { QL1S("enableIdlenessWatcher") }; - const QString ENABLE_IDLENESS_BACKLIGHT_WATCHER_KEY { QL1S("enableIdlenessBacklightWatcher") }; - const QString LID_CLOSED_ACTION_KEY { QL1S("lidClosedAction") }; - const QString LID_CLOSED_AC_ACTION_KEY { QL1S("lidClosedAcAction") }; - const QString LID_CLOSED_EXT_MON_ACTION_KEY { QL1S("lidClosedExtMonAction") }; - const QString LID_CLOSED_EXT_MON_AC_ACTION_KEY { QL1S("lidClosedExtMonAcAction") }; - const QString ENABLE_EXT_MON_LIDCLOSED_ACTIONS_KEY { QL1S("enableExtMonLidClosedActions") }; - const QString POWER_LOW_ACTION_KEY { QL1S("powerLowAction") }; - const QString POWER_LOW_WARNING_KEY { QL1S("powerLowWarning") }; - const QString POWER_LOW_LEVEL_KEY { QL1S("powerLowLevel") }; - const QString SHOW_ICON_KEY { QL1S("showIcon") }; - const QString USE_THEME_ICONS_KEY { QL1S("useThemeIcons") }; - const QString IDLENESS_AC_ACTION_KEY { QL1S("idlenessACAction") }; - const QString IDLENESS_AC_TIME { QL1S("idlenessACTime") }; - const QString IDLENESS_BATTERY_ACTION_KEY { QL1S("idlenessBatteryAction") }; - const QString IDLENESS_BATTERY_TIME { QL1S("idlenessBatteryTime") }; - const QString IDLENESS_BACKLIGHT_TIME { QL1S("idlenessTime") }; - const QString IDLENESS_BACKLIGHT { QL1S("backlightIdleness") }; - const QString IDLENESS_BACKLIGHT_ON_BATTERY_DISCHARGING { QL1S("backlightIdlenessOnBatteryDischarging") }; - const QString DISABLE_IDLENESS_WHEN_FULLSCREEN { QL1S("disableIdlenessWhenFullscreen") }; - const QString POWER_KEY_ACTION { QL1S("powerKeyAction") }; - const QString SUSPEND_KEY_ACTION { QL1S("suspendKeyAction") }; - const QString HIBERNATE_KEY_ACTION { QL1S("hibernateKeyAction") }; -} - -using namespace PowerManagementSettingsConstants; - -PowerManagementSettings::PowerManagementSettings(QObject* parent) : LXQt::Settings(QSL("lxqt-powermanagement"), parent) -{ -} - -PowerManagementSettings::~PowerManagementSettings() -{ -} - -int PowerManagementSettings::getRunCheckLevel() -{ - return value(RUN_CHECK_LEVEL, 0).toInt(); -} - -void PowerManagementSettings::setRunCheckLevel(int newLevel) -{ - setValue(RUN_CHECK_LEVEL, newLevel); -} - -bool PowerManagementSettings::isBatteryWatcherEnabled() -{ - return value(ENABLE_BATTERY_WATCHER_KEY, true).toBool(); -} - -void PowerManagementSettings::setBatteryWatcherEnabled(bool batteryWatcherEnabled) -{ - setValue(ENABLE_BATTERY_WATCHER_KEY, batteryWatcherEnabled); -} - -int PowerManagementSettings::getPowerLowAction() -{ - return value(POWER_LOW_ACTION_KEY, -1).toInt(); -} - -void PowerManagementSettings::setPowerLowAction(int powerLowAction) -{ - setValue(POWER_LOW_ACTION_KEY, powerLowAction); -} - -int PowerManagementSettings::getPowerLowLevel() -{ - return value(POWER_LOW_LEVEL_KEY, 5).toInt(); -} - -void PowerManagementSettings::setPowerLowLevel(int powerLowLevel) -{ - setValue(POWER_LOW_LEVEL_KEY, powerLowLevel); -} - -int PowerManagementSettings::getPowerLowWarningTime() -{ - return value(POWER_LOW_WARNING_KEY, 30).toInt(); -} - -void PowerManagementSettings::setPowerLowWarningTime(int powerLowWarningTime) -{ - setValue(POWER_LOW_WARNING_KEY, powerLowWarningTime); -} - -bool PowerManagementSettings::isShowIcon() -{ - return value(SHOW_ICON_KEY, true).toBool(); -} - -void PowerManagementSettings::setShowIcon(bool showIcon) -{ - setValue(SHOW_ICON_KEY, showIcon); -} - -bool PowerManagementSettings::isUseThemeIcons() -{ - return value(USE_THEME_ICONS_KEY, false).toBool(); -} - -void PowerManagementSettings::setUseThemeIcons(bool useThemeIcons) -{ - setValue(USE_THEME_ICONS_KEY, useThemeIcons); -} - -bool PowerManagementSettings::isLidWatcherEnabled() -{ - return value(ENABLE_LID_WATCHER_KEY, true).toBool(); -} - -void PowerManagementSettings::setLidWatcherEnabled(bool lidWatcherEnabled) -{ - setValue(ENABLE_LID_WATCHER_KEY, lidWatcherEnabled); -} - -int PowerManagementSettings::getLidClosedAcAction() -{ - return value(LID_CLOSED_AC_ACTION_KEY, -1).toInt(); -} - -void PowerManagementSettings::setLidClosedAcAction(int lidClosedAcAction) -{ - setValue(LID_CLOSED_AC_ACTION_KEY, lidClosedAcAction); -} - -int PowerManagementSettings::getLidClosedAction() -{ - return value(LID_CLOSED_ACTION_KEY, -1).toInt(); -} - -void PowerManagementSettings::setLidClosedAction(int lidClosedAction) -{ - setValue(LID_CLOSED_ACTION_KEY, lidClosedAction); -} - -int PowerManagementSettings::getLidClosedExtMonAcAction() -{ - return value(LID_CLOSED_EXT_MON_AC_ACTION_KEY, -1).toInt(); -} - -void PowerManagementSettings::setLidClosedExtMonAcAction(int lidClosedExtMonAcAction) -{ - setValue(LID_CLOSED_EXT_MON_AC_ACTION_KEY, lidClosedExtMonAcAction); -} - -int PowerManagementSettings::getLidClosedExtMonAction() -{ - return value(LID_CLOSED_EXT_MON_ACTION_KEY, -1).toInt(); -} - -void PowerManagementSettings::setLidClosedExtMonAction(int lidClosedExtMonAction) -{ - setValue(LID_CLOSED_EXT_MON_ACTION_KEY, lidClosedExtMonAction); -} - -bool PowerManagementSettings::isEnableExtMonLidClosedActions() -{ - return value(ENABLE_EXT_MON_LIDCLOSED_ACTIONS_KEY, 0).toBool(); -} - -void PowerManagementSettings::setEnableExtMonLidClosedActions(bool enableExtMonLidClosedActions) -{ - setValue(ENABLE_EXT_MON_LIDCLOSED_ACTIONS_KEY, enableExtMonLidClosedActions); -} - - -bool PowerManagementSettings::isIdlenessWatcherEnabled() -{ - return value(ENABLE_IDLENESS_WATCHER_KEY, false).toBool(); -} - -void PowerManagementSettings::setIdlenessWatcherEnabled(bool idlenessWatcherEnabled) -{ - setValue(ENABLE_IDLENESS_WATCHER_KEY, idlenessWatcherEnabled); -} - -int PowerManagementSettings::getIdlenessACAction() -{ - // defaults to nothing (-1) and eventually load legacy value - int oldValue = value(QL1S("idlenessAction"), -1).toInt(); - return value(IDLENESS_AC_ACTION_KEY, oldValue).toInt(); -} - -void PowerManagementSettings::setIdlenessACAction(int idlenessAction) -{ - setValue(IDLENESS_AC_ACTION_KEY, idlenessAction); -} - -QTime PowerManagementSettings::getIdlenessACTime() -{ - // 1. The default value is 15 minutes (the legacy key is also read); - // 2. Intervals greater than or equal to one hour aren't supported; and - // 3. Intervals smaller than one minute are prevented. - int oldValue = qBound(60, value(QL1S("idlenessTimeSecs"), 900).toInt(), 3599); - int m = oldValue / 60; - int s = oldValue - m * 60; - return value(IDLENESS_AC_TIME, QTime(0, m, s)).toTime(); -} - -void PowerManagementSettings::setIdlenessACTime(QTime idlenessTime) -{ - setValue(IDLENESS_AC_TIME, idlenessTime); -} - -int PowerManagementSettings::getIdlenessBatteryAction() -{ - // defaults to nothing (-1) and eventually load legacy value - int oldValue = value(QL1S("idlenessAction"), -1).toInt(); - return value(IDLENESS_BATTERY_ACTION_KEY, oldValue).toInt(); -} - -void PowerManagementSettings::setIdlenessBatteryAction(int idlenessAction) -{ - setValue(IDLENESS_BATTERY_ACTION_KEY, idlenessAction); -} - -QTime PowerManagementSettings::getIdlenessBatteryTime() -{ - // 1. The default value is 15 minutes (the legacy key is also read); - // 2. Intervals greater than or equal to one hour aren't supported; and - // 3. Intervals smaller than one minute are prevented. - int oldValue = qBound(60, value(QL1S("idlenessTimeSecs"), 900).toInt(), 3599); - int m = oldValue / 60; - int s = oldValue - m * 60; - return value(IDLENESS_BATTERY_TIME, QTime(0, m, s)).toTime(); -} - -void PowerManagementSettings::setIdlenessBatteryTime(QTime idlenessTime) -{ - setValue(IDLENESS_BATTERY_TIME, idlenessTime); -} - -bool PowerManagementSettings::isIdlenessBacklightWatcherEnabled() -{ - return value(ENABLE_IDLENESS_BACKLIGHT_WATCHER_KEY, false).toBool(); -} - -void PowerManagementSettings::setIdlenessBacklightWatcherEnabled(bool idlenessBacklightWatcherEnabled) -{ - setValue(ENABLE_IDLENESS_BACKLIGHT_WATCHER_KEY, idlenessBacklightWatcherEnabled); -} - -QTime PowerManagementSettings::getIdlenessBacklightTime() -{ - // default to 1 minute - return value(IDLENESS_BACKLIGHT_TIME, QTime(0, 1)).toTime(); -} - -void PowerManagementSettings::setIdlenessBacklightTime(QTime idlenessBacklightTime) -{ - setValue(IDLENESS_BACKLIGHT_TIME, idlenessBacklightTime); -} - -int PowerManagementSettings::getBacklight() -{ - return value(IDLENESS_BACKLIGHT, 50).toInt(); -} - -void PowerManagementSettings::setBacklight(int backlight) -{ - setValue(IDLENESS_BACKLIGHT, backlight); -} - -bool PowerManagementSettings::isIdlenessBacklightOnBatteryDischargingEnabled() -{ - return value(IDLENESS_BACKLIGHT_ON_BATTERY_DISCHARGING, true).toBool(); -} - -void PowerManagementSettings::setIdlenessBacklightOnBatteryDischargingEnabled(bool enabled) -{ - setValue(IDLENESS_BACKLIGHT_ON_BATTERY_DISCHARGING, enabled); -} - -bool PowerManagementSettings::isDisableIdlenessWhenFullscreenEnabled() -{ - return value(DISABLE_IDLENESS_WHEN_FULLSCREEN, false).toBool(); -} - -void PowerManagementSettings::setDisableIdlenessWhenFullscreen(bool enabled) -{ - setValue(DISABLE_IDLENESS_WHEN_FULLSCREEN, enabled); -} - -int PowerManagementSettings::getPowerKeyAction() -{ - return value(POWER_KEY_ACTION, LXQt::Power::Action::PowerShutdown).toInt(); -} - -void PowerManagementSettings::setPowerKeyAction(int action) -{ - setValue(POWER_KEY_ACTION, action); -} - -int PowerManagementSettings::getSuspendKeyAction() -{ - return value(SUSPEND_KEY_ACTION, LXQt::Power::Action::PowerSuspend).toInt(); -} - -void PowerManagementSettings::setSuspendKeyAction(int action) -{ - setValue(SUSPEND_KEY_ACTION, action); -} - -int PowerManagementSettings::getHibernateKeyAction() -{ - return value(HIBERNATE_KEY_ACTION, LXQt::Power::Action::PowerHibernate).toInt(); -} - -void PowerManagementSettings::setHibernateKeyAction(int action) -{ - setValue(HIBERNATE_KEY_ACTION, action); -} - -bool PowerManagementSettings::isIdlenessWatcherPaused() const -{ - return mIdlenessWatcherPaused; -} - -void PowerManagementSettings::setIdlenessWatcherPaused(bool idlenessWatcherPaused) { - mIdlenessWatcherPaused = idlenessWatcherPaused; -} - diff --git a/LibLXQT/ARM Power Management/config/powermanagementsettings.h b/LibLXQT/ARM Power Management/config/powermanagementsettings.h deleted file mode 100644 index 3c30796933..0000000000 --- a/LibLXQT/ARM Power Management/config/powermanagementsettings.h +++ /dev/null @@ -1,133 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef COMMON_H -#define COMMON_H - -#include -#include -#include - -#include - -class PowerManagementSettings : public LXQt::Settings -{ - Q_OBJECT - -public: - PowerManagementSettings(QObject* parent = nullptr); - ~PowerManagementSettings() override; - - int getRunCheckLevel(); - void setRunCheckLevel(int newLevel); - - bool isBatteryWatcherEnabled(); - void setBatteryWatcherEnabled(bool batteryWatcherEnabled); - - int getPowerLowAction(); - void setPowerLowAction(int powerLowAction); - - int getPowerLowLevel(); - void setPowerLowLevel(int powerLowLevel); - - int getPowerLowWarningTime(); - void setPowerLowWarningTime(int powerLowWarningTime); - - bool isShowIcon(); - void setShowIcon(bool showIcon); - - bool isUseThemeIcons(); - void setUseThemeIcons(bool useThemeIcons); - - - bool isLidWatcherEnabled(); - void setLidWatcherEnabled(bool lidWatcherEnabled); - - int getLidClosedAcAction(); - void setLidClosedAcAction(int lidClosedAcAction); - - int getLidClosedAction(); - void setLidClosedAction(int lidClosedAction); - - int getLidClosedExtMonAcAction(); - void setLidClosedExtMonAcAction(int lidClosedExtMonAcAction); - - int getLidClosedExtMonAction(); - void setLidClosedExtMonAction(int lidClosedExtMonAction); - - bool isEnableExtMonLidClosedActions(); - void setEnableExtMonLidClosedActions(bool enableExtMonLidClosedActions); - - - bool isIdlenessWatcherEnabled(); - void setIdlenessWatcherEnabled(bool idlenessWatcherEnabled); - - int getIdlenessACAction(); - void setIdlenessACAction(int idlenessAction); - - QTime getIdlenessACTime(); - void setIdlenessACTime(QTime idlenessTime); - - int getIdlenessBatteryAction(); - void setIdlenessBatteryAction(int idlenessAction); - - QTime getIdlenessBatteryTime(); - void setIdlenessBatteryTime(QTime idlenessTime); - - bool isIdlenessBacklightWatcherEnabled(); - void setIdlenessBacklightWatcherEnabled(bool idlenessBacklightWatcherEnabled); - - QTime getIdlenessBacklightTime(); - void setIdlenessBacklightTime(QTime idlenessBacklightTime); - - int getBacklight(); - void setBacklight(int backlight); - - bool isIdlenessBacklightOnBatteryDischargingEnabled(); - void setIdlenessBacklightOnBatteryDischargingEnabled(bool enabled); - - bool isDisableIdlenessWhenFullscreenEnabled(); - void setDisableIdlenessWhenFullscreen(bool enabled); - - int getPowerKeyAction(); - void setPowerKeyAction(int action); - - int getSuspendKeyAction(); - void setSuspendKeyAction(int action); - - int getHibernateKeyAction(); - void setHibernateKeyAction(int action); - - bool isIdlenessWatcherPaused() const; - void setIdlenessWatcherPaused(bool idlenessWatcherPaused); - -private: - static bool mIdlenessWatcherPaused; -}; - - -#endif // COMMON_H diff --git a/LibLXQT/ARM Power Management/config/translations/CMakeLists.txt b/LibLXQT/ARM Power Management/config/translations/CMakeLists.txt deleted file mode 100644 index 6b93167e98..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -project(lxqt-config-powermanagement) - -build_component("." "") diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement.desktop.yaml deleted file mode 100644 index eb7d21d279..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Power Management" -Desktop Entry/GenericName: "Power Management Settings" -Desktop Entry/Comment: "Various settings regarding Power Management like battery or idleness watcher" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement.ts deleted file mode 100644 index ebc0e1b031..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - - - - - E&nable Battery Watcher - - - - - Warning: - - - - - seconds - - - - - Level is low at: - - - - - % - - - - - Use icons from theme: - - - - - - Preview - - - - - Charging - - - - - Discharging - - - - - When power is low then: - - - - - Show icon: - - - - - built in - - - - - Level: %1% - - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - - - - - Idle time: - - - - - Enable Backlight Change - - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - - - - - Minutes:Seconds - - - - - - - mm:ss - - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - - - - - On battery discharging - - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - - - - - Action when lid is closed: - - - - - - On Battery: - - - - - Nothing - - - - - Suspend - - - - - Hibernate - - - - - Shut down - - - - - - On AC: - - - - - When &using external monitor - - - - - MainWindow - - - Power Management Settings - - - - - Battery - - - - - Lid - - - - - Idle - - - - - Power keys - - - - - PowerKeysSettings - - - Form - - - - - Handle Power Keys - - - - - Power Key Action: - - - - - Suspend Key Action: - - - - - Hibernate Key Action: - - - - - QObject - - - Nothing - - - - - Ask - - - - - Lock screen - - - - - Suspend - - - - - Hibernate - - - - - Shutdown - - - - - Turn Off monitor(s) - - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ar.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ar.desktop.yaml deleted file mode 100644 index 8045a7e205..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ar.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "إدارة الطّاقة" -Desktop Entry/GenericName: "إعدادات إدارة الطّاقة" -Desktop Entry/Comment: "عدّة إعدادات لإدارة الطّاقة مثل مراقبات البطّاريّة أو الخمول" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ar.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ar.ts deleted file mode 100644 index 5e09b0a295..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ar.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - إعدادات مراقب البطارية - - - - E&nable Battery Watcher - ف&عّل مراقب البطارية - - - - Warning: - التحذير: - - - - seconds - ثا - - - - Level is low at: - المستوى منخفض عند: - - - - % - ٪ - - - - Use icons from theme: - استخدم الأيقونات من السمة: - - - - - Preview - معاينة - - - - Charging - الشحن - - - - Discharging - تفريغ الشحن - - - - When power is low then: - عندما تكون البطارية منخفضة: - - - - Show icon: - اعرض الأيقونة: - - - - built in - مضمّنة - - - - Level: %1% - المستوى: %1٪ - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - ف&عّل مراقب الخمول - - - - Idle time: - وقت الخمول: - - - - Enable Backlight Change - - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - - - - - Minutes:Seconds - - - - - - - mm:ss - - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - - - - - On battery discharging - - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - ف&عّل مراقب الغطاء - - - - Action when lid is closed: - :الإجراء عند إطباق الغطاء - - - - - On Battery: - :على البطارية - - - - Nothing - لا شيء - - - - Suspend - علّق - - - - Hibernate - أسبِت - - - - Shut down - أطفِئ - - - - - On AC: - :على محوّل الطاقة - - - - When &using external monitor - عند استخدام شاشة &خارجية - - - - MainWindow - - - Power Management Settings - إعدادات إدارة الطاقة - - - - Battery - البطارية - - - - Lid - الغطاء - - - - Idle - الخمول - - - - Power keys - - - - - PowerKeysSettings - - - Form - - - - - Handle Power Keys - - - - - Power Key Action: - - - - - Suspend Key Action: - - - - - Hibernate Key Action: - - - - - QObject - - - Nothing - لا شيء - - - - Ask - - - - - Lock screen - اقفل الشاشة - - - - Suspend - علّق - - - - Hibernate - أسبِت - - - - Shutdown - أطفِئ - - - - Turn Off monitor(s) - أطفِئ الشاشة/الشاشات - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_arn.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_arn.ts deleted file mode 100644 index 6df80c2a86..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_arn.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - - - - - E&nable Battery Watcher - - - - - Warning: - - - - - seconds - - - - - Level is low at: - - - - - % - - - - - Use icons from theme: - - - - - - Preview - - - - - Charging - - - - - Discharging - - - - - When power is low then: - - - - - Show icon: - - - - - built in - - - - - Level: %1% - - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - - - - - Idle time: - - - - - Enable Backlight Change - - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - - - - - Minutes:Seconds - - - - - - - mm:ss - - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - - - - - On battery discharging - - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - - - - - Action when lid is closed: - - - - - - On Battery: - - - - - Nothing - - - - - Suspend - - - - - Hibernate - - - - - Shut down - - - - - - On AC: - - - - - When &using external monitor - - - - - MainWindow - - - Power Management Settings - - - - - Battery - - - - - Lid - - - - - Idle - - - - - Power keys - - - - - PowerKeysSettings - - - Form - - - - - Handle Power Keys - - - - - Power Key Action: - - - - - Suspend Key Action: - - - - - Hibernate Key Action: - - - - - QObject - - - Nothing - - - - - Ask - - - - - Lock screen - - - - - Suspend - - - - - Hibernate - - - - - Shutdown - - - - - Turn Off monitor(s) - - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ast.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ast.ts deleted file mode 100644 index 4cf8dc99b0..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ast.ts +++ /dev/null @@ -1,212 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Axustes del supervidor de batería - - - - E&nable Battery Watcher - Ac&tivar el supervisor de batería - - - - Warning: - Alvertir: - - - - seconds - segundos - - - - Level is low at: - El nivel ye baxu al: - - - - % - % - - - - Use icons from theme: - Usar los iconos del estilu - - - - - Preview - Previsualización - - - - Charging - - - - - Discharging - - - - - When power is low then: - Cuando'l nivel de batería seya baxu: - - - - Show icon: - Amosar l'iconu - - - - built in - - - - - Level: %1% - Nivel: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - &Activar el supervisor d'inactividá - - - - When idle then: - Al haber inactividá: - - - - Idle time: - Tiempu d'inactividá: - - - - minutes - minutos - - - - seconds - segundos - - - - LidWatcherSettings - - - Enable &Lid Watcher - - - - - Action when lid is closed: - L'aición al baxar la tapa: - - - - - On Battery: - Cola batería: - - - - Nothing - Nada - - - - Suspend - Suspender - - - - Hibernate - Ivernar - - - - Shut down - Apagar - - - - - On AC: - Col cargador: - - - - When &using external monitor - Al &usar una pantalla esterna - - - - MainWindow - - - Power Management Settings - Axustes de la xestión d'enerxía - - - - Battery - Batería - - - - Lid - Tapa - - - - Idle - Inactividá - - - - QObject - - - Nothing - Nada - - - - Lock screen - Bloquiar la pantalla - - - - Suspend - Suspender - - - - Hibernate - Ivernar - - - - Shutdown - Apagar - - - - Turn Off monitor(s) - Apagar pantalles - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_bg.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_bg.desktop.yaml deleted file mode 100644 index 542ee07a9e..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_bg.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Управление на захранването" -Desktop Entry/GenericName: "Настройки на управление на захранването" -Desktop Entry/Comment: "Настройки на поведение при бездействие, натиснат бутон за изключване, ниво на батерия и други" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_bg.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_bg.ts deleted file mode 100644 index 4f6c49f2c2..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_bg.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Настройки на монитор на батерията - - - - E&nable Battery Watcher - &Активиране на монитор на батерията - - - - Warning: - Продължителност на предупреждение: - - - - seconds - секунди - - - - Level is low at: - Предупреждение при ниво на батерията: - - - - % - % - - - - Use icons from theme: - Използване на иконата от системния стил: - - - - - Preview - Предварителен преглед - - - - Charging - Зареждане - - - - Discharging - Разреждане - - - - When power is low then: - Действие при ниско ниво на батерията: - - - - Show icon: - Показване на икона в панела: - - - - built in - вградена - - - - Level: %1% - Заредена: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - &Активиране на монитор за бездействие - - - - Idle time: - Продължителност на бездействие: - - - - Enable Backlight Change - Позволяване променяне на осветеност на екрана - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - Осветеност (%): - - - - Minutes:Seconds - Минути:Секунди - - - - - - mm:ss - mm:ss - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - Проверка на осветеност - - - - On battery discharging - При разреждане на батерията - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - &Активиране на монитор за състоянието на екрана - - - - Action when lid is closed: - Действие при затваряне на екрана: - - - - - On Battery: - На батерия: - - - - Nothing - Нищо - - - - Suspend - Приспиване - - - - Hibernate - Хибернация - - - - Shut down - Изключване - - - - - On AC: - В захранване: - - - - When &using external monitor - &При използване на външен монитор - - - - MainWindow - - - Power Management Settings - Настройки на управление на захранването - - - - Battery - Батерия - - - - Lid - Екран - - - - Idle - Бездействие - - - - Power keys - Бутони на захранването - - - - PowerKeysSettings - - - Form - Форма - - - - Handle Power Keys - Управление на бутони на захранването - - - - Power Key Action: - Бутон за включване: - - - - Suspend Key Action: - Бутон приспиване: - - - - Hibernate Key Action: - Бутон хибернация: - - - - QObject - - - Nothing - Нищо - - - - Ask - Запитване - - - - Lock screen - Заключване на екрана - - - - Suspend - Приспиване - - - - Hibernate - Хибернация - - - - Shutdown - Изключване - - - - Turn Off monitor(s) - Изключване на монитор - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ca.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ca.desktop.yaml deleted file mode 100644 index ad4b9ff6eb..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ca.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Gestió de l'energia" -Desktop Entry/GenericName: "Ajusts de la gestió de l'energia" -Desktop Entry/Comment: "Diversos ajusts pel que fa a la gestió de l'energia com la bateria o l'observador de l'ociositat" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ca.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ca.ts deleted file mode 100644 index 2082c3e48d..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ca.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Ajusts de l'observador de la bateria - - - - E&nable Battery Watcher - &Habilita l'observador de la bateria - - - - Warning: - Advertència: - - - - seconds - segons - - - - Level is low at: - El nivell és baix al: - - - - % - % - - - - Use icons from theme: - Utilitza les icones del tema: - - - - - Preview - Vista prèvia - - - - Charging - Càrrega - - - - Discharging - Descàrrega - - - - When power is low then: - Quan l'energia sigui baixa aleshores: - - - - Show icon: - Mostra la icona: - - - - built in - integrada - - - - Level: %1% - Nivell: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Habi&lita l'observador de l'ociositat - - - - Idle time: - Temps d'inactivitat: - - - - Enable Backlight Change - - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - - - - - Minutes:Seconds - - - - - - - mm:ss - - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - - - - - On battery discharging - - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - Habi&lita l'observador de la tapa - - - - Action when lid is closed: - Acció quan la tapa és tancada: - - - - - On Battery: - Amb bateria: - - - - Nothing - Res - - - - Suspend - Suspèn - - - - Hibernate - Hiberna - - - - Shut down - Apaga - - - - - On AC: - Amb CA: - - - - When &using external monitor - Quan s'&utilitzi un monitor extern - - - - MainWindow - - - Power Management Settings - Ajusts de la gestió de l'energia - - - - Battery - Bateria - - - - Lid - Tapa - - - - Idle - Inactiu - - - - Power keys - - - - - PowerKeysSettings - - - Form - - - - - Handle Power Keys - - - - - Power Key Action: - - - - - Suspend Key Action: - - - - - Hibernate Key Action: - - - - - QObject - - - Nothing - Res - - - - Ask - - - - - Lock screen - Bloqueja la pantalla - - - - Suspend - Suspèn - - - - Hibernate - Hiberna - - - - Shutdown - Apaga - - - - Turn Off monitor(s) - Apaga els monitors - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cs.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cs.desktop.yaml deleted file mode 100644 index c2ca78a0ea..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cs.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Správa napájení" -Desktop Entry/GenericName: "Nastavení správy napájení" -Desktop Entry/Comment: "Různá nastavení ohledně správy napájení, jako je stav akumulátoru a přechod do úsporného režimu při nečinnosti" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cs.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cs.ts deleted file mode 100644 index 4156b7a6df..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cs.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Nastavení sledování akumulátoru - - - - E&nable Battery Watcher - &Sledovat stav akumulátoru - - - - Warning: - Varování: - - - - seconds - sekund - - - - Level is low at: - Téměř vybito je při: - - - - % - % - - - - Use icons from theme: - Použít ikony z motivu: - - - - - Preview - Náhled - - - - Charging - Nabíjí se - - - - Discharging - Vybíjí se - - - - When power is low then: - Při téměř vybitém akumulátoru: - - - - Show icon: - Zobrazovat ikonu: - - - - built in - vestavěno - - - - Level: %1% - Nabití: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - S&ledovat nečinnost (chod naprázdno) - - - - Idle time: - Doba trvání nečinnosti: - - - - Enable Backlight Change - Povolit změnu podsvícení - - - - When idle on Battery: - Při nečinnosti na baterii: - - - - Battery Idle time: - Doba nečinnosti baterie: - - - - Backlight (%): - Podsvícení (%): - - - - Minutes:Seconds - Minuty:Sekundy - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Při nečinnosti při napájení ze zásuvky: - - - - AC Idle time: - Doba nečinnosti při napájení ze zásuvky: - - - - - Minutes:Seconds (min: 01:30) - Minuty:Sekundy (min: 01:30) - - - - Check backlight - Zkontrolovat podsvícení - - - - On battery discharging - Při vybíjení baterie - - - - Disable idleness checks when fullscreen - Zakázat kontroly nečinnosti při zobrazení na celou obrazovku - - - - LidWatcherSettings - - - Enable &Lid Watcher - S&ledovat víko obrazovky - - - - Action when lid is closed: - Akce při zavření víka: - - - - - On Battery: - Při napájení z akumulátoru: - - - - Nothing - Nic - - - - Suspend - Uspat do paměti - - - - Hibernate - Uspat na disk - - - - Shut down - Vypnout - - - - - On AC: - Při napájení ze zásuvky: - - - - When &using external monitor - Při po&užívání externí obrazovky - - - - MainWindow - - - Power Management Settings - Nastavení správy napájení - - - - Battery - Akumulátor - - - - Lid - Víko - - - - Idle - Nečinný - - - - Power keys - Klávesy napájení - - - - PowerKeysSettings - - - Form - Formulář - - - - Handle Power Keys - Zacházení s vypínacími klávesami - - - - Power Key Action: - Akce při stisknutí klávesy napájení: - - - - Suspend Key Action: - Akce při stisknutí klávesy pro uspání: - - - - Hibernate Key Action: - Akce při stisknutí klávesy pro uspání na disk: - - - - QObject - - - Nothing - Nic - - - - Ask - Zeptat se - - - - Lock screen - Uzamknout obrazovku - - - - Suspend - Uspat do paměti - - - - Hibernate - Uspat na disk - - - - Shutdown - Vypnout - - - - Turn Off monitor(s) - Vypnout monitor(y) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cy.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cy.ts deleted file mode 100644 index 5c7630357d..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_cy.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - - - - - E&nable Battery Watcher - - - - - Warning: - - - - - seconds - - - - - Level is low at: - - - - - % - - - - - Use icons from theme: - - - - - - Preview - - - - - Charging - - - - - Discharging - - - - - When power is low then: - - - - - Show icon: - - - - - built in - - - - - Level: %1% - - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - - - - - Idle time: - - - - - Enable Backlight Change - - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - - - - - Minutes:Seconds - - - - - - - mm:ss - - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - - - - - On battery discharging - - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - - - - - Action when lid is closed: - - - - - - On Battery: - - - - - Nothing - - - - - Suspend - - - - - Hibernate - - - - - Shut down - - - - - - On AC: - - - - - When &using external monitor - - - - - MainWindow - - - Power Management Settings - - - - - Battery - - - - - Lid - - - - - Idle - - - - - Power keys - - - - - PowerKeysSettings - - - Form - - - - - Handle Power Keys - - - - - Power Key Action: - - - - - Suspend Key Action: - - - - - Hibernate Key Action: - - - - - QObject - - - Nothing - - - - - Ask - - - - - Lock screen - - - - - Suspend - - - - - Hibernate - - - - - Shutdown - - - - - Turn Off monitor(s) - - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_da.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_da.desktop.yaml deleted file mode 100644 index 61dd9dc57f..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_da.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Strømstyring" -Desktop Entry/GenericName: "Indstillinger for strømstyring" -Desktop Entry/Comment: "Diverse indstillinger omhandlende strømstyring, såsom batteri- eller tomgangsovervågning" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_da.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_da.ts deleted file mode 100644 index a98d4b79df..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_da.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Indstillinger for overvågning af batteri - - - - E&nable Battery Watcher - &Aktivér overvågning af batteri - - - - Warning: - Advarsel: - - - - seconds - sekunder - - - - Level is low at: - Niveau er lavt ved: - - - - % - % - - - - Use icons from theme: - Brug ikoner fra tema: - - - - - Preview - Forhåndsvisning - - - - Charging - Oplader - - - - Discharging - Aflader - - - - When power is low then: - Når strøm er lavt: - - - - Show icon: - Vis ikon: - - - - built in - indbygget - - - - Level: %1% - Niveau: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - &Aktivér overvågning af inaktivitet - - - - Idle time: - Inaktivitetstid: - - - - Enable Backlight Change - Aktivér ændring af baggrundsbelysning - - - - When idle on Battery: - Når inaktiv på batteri: - - - - Battery Idle time: - Inaktivitetstid for batteri: - - - - Backlight (%): - Baggrundsbelysning (%): - - - - Minutes:Seconds - Minutter:Sekunder - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Når inaktiv på strømforsyning: - - - - AC Idle time: - Inaktivitetstid for strømforsyning: - - - - - Minutes:Seconds (min: 01:30) - minutter:sekunder (minimum: 01:30) - - - - Check backlight - Tjek baggrundsbelysning - - - - On battery discharging - Når batteriet aflades - - - - Disable idleness checks when fullscreen - Deaktivér tjek af inaktivetet når i fuldskærm - - - - LidWatcherSettings - - - Enable &Lid Watcher - &Aktivér overvågning af låg - - - - Action when lid is closed: - Handling når låget lukkes: - - - - - On Battery: - På batteri: - - - - Nothing - Intet - - - - Suspend - Hvile - - - - Hibernate - Dvale - - - - Shut down - Luk ned - - - - - On AC: - På strømforsyning: - - - - When &using external monitor - &Når der bruges ekstern skærm - - - - MainWindow - - - Power Management Settings - Indstillinger for strømstyring - - - - Battery - Batteri - - - - Lid - Låg - - - - Idle - Inaktivitet - - - - Power keys - Strømtaster - - - - PowerKeysSettings - - - Form - Formular - - - - Handle Power Keys - Håndter strømtaster - - - - Power Key Action: - Handling for strømtast: - - - - Suspend Key Action: - Handling for suspendertast: - - - - Hibernate Key Action: - Handling for dvaletast: - - - - QObject - - - Nothing - Intet - - - - Ask - Spørg - - - - Lock screen - Lås skærm - - - - Suspend - Hvile - - - - Hibernate - Dvale - - - - Shutdown - Luk ned - - - - Turn Off monitor(s) - Sluk skærm(e) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_de.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_de.desktop.yaml deleted file mode 100644 index 4ba595fe62..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_de.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Energieverwaltung" -Desktop Entry/GenericName: "Einstellungen der Energieverwaltung" -Desktop Entry/Comment: "Verschiedene Einstellungen zur Energieverwaltung wie Batterie- oder Leerlaufüberwachung" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_de.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_de.ts deleted file mode 100644 index ca693b85ec..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_de.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Einstellungen zur Batterieüberwachung - - - - E&nable Battery Watcher - &Aktiviere Batterieüberwachung - - - - Warning: - Warnung: - - - - seconds - Sekunden - - - - Level is low at: - Niedriger Ladezustand bei: - - - - % - % - - - - Use icons from theme: - Nutze Symbole des Themas: - - - - - Preview - Vorschau - - - - Charging - Aufladen - - - - Discharging - Entladen - - - - When power is low then: - Bei niedrigem Ladestand: - - - - Show icon: - Symbol anzeigen: - - - - built in - eingebaut - - - - Level: %1% - Ladezustand: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - &Leerlaufüberwachung aktivieren - - - - Idle time: - Leerlaufzeit: - - - - Enable Backlight Change - Änderung der Hintergrundbeleuchtung aktivieren - - - - When idle on Battery: - im Akku-Betrieb: - - - - Battery Idle time: - Akkuentladezeit: - - - - Backlight (%): - Bildschirmhelligkeit (%): - - - - Minutes:Seconds - Minuten:Sekunden - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Im Netzbetrieb: - - - - AC Idle time: - Netzlaufzeit: - - - - - Minutes:Seconds (min: 01:30) - Minuten:Sekunden (min: 01:30) - - - - Check backlight - Hintergrundbeleuchtung prüfen - - - - On battery discharging - Beim Entladen der Batterie - - - - Disable idleness checks when fullscreen - Ladezustandskontrolle ausschalten im Vollbildmodus - - - - LidWatcherSettings - - - Enable &Lid Watcher - &Aktiviere Deckelüberwachung - - - - Action when lid is closed: - Aktion bei geschlossenem Deckel: - - - - - On Battery: - Batteriebetrieb: - - - - Nothing - Nichts - - - - Suspend - Bereitschaftszustand - - - - Hibernate - Ruhezustand - - - - Shut down - Herunterfahren - - - - - On AC: - Am Netz: - - - - When &using external monitor - Bei &Verwendung eines externen Bildschirms - - - - MainWindow - - - Power Management Settings - Einstellungen der Energieverwaltung - - - - Battery - Batterie - - - - Lid - Deckel - - - - Idle - Leerlauf - - - - Power keys - Ein/Aus-Tasten - - - - PowerKeysSettings - - - Form - Formular - - - - Handle Power Keys - Bearbeite Schalter - - - - Power Key Action: - Schalteraktion: - - - - Suspend Key Action: - Bereitschaftszustand-Tastenaktion: - - - - Hibernate Key Action: - Ruhezustand-Tastenaktion: - - - - QObject - - - Nothing - Nichts - - - - Ask - Nachfragen - - - - Lock screen - Sperre Bildschirm - - - - Suspend - Bereitschaft - - - - Hibernate - Ruhezustand - - - - Shutdown - Herunterfahren - - - - Turn Off monitor(s) - Bildschirm(e) ausschalten - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_el.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_el.desktop.yaml deleted file mode 100644 index 325e0028d9..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_el.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Διαχείριση ενέργειας" -Desktop Entry/GenericName: "Ρυθμίσεις της διαχείρισης ενέργειας" -Desktop Entry/Comment: "Διάφορες ρυθμίσεις σχετικά με την διαχείριση ενέργειας όπως ο επόπτης μπαταρίας ή αδράνειας" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_el.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_el.ts deleted file mode 100644 index a883676c13..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_el.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Ρυθμίσεις του επόπτη συσσωρευτή - - - - E&nable Battery Watcher - &Ενεργοποίηση του επόπτη του συσσωρευτή - - - - Warning: - Προειδοποίηση: - - - - seconds - δευτερόλεπτα - - - - Level is low at: - Το επίπεδο είναι χαμηλό στο: - - - - % - % - - - - Use icons from theme: - Χρήση των εικονιδίων από το θέμα: - - - - - Preview - Προεπισκόπηση - - - - Charging - Φόρτιση - - - - Discharging - Αποφόρτιση - - - - When power is low then: - Όταν η φόρτιση είναι χαμηλή: - - - - Show icon: - Εμφάνιση του εικονιδίου: - - - - built in - ενσωματωμένο - - - - Level: %1% - Επίπεδο: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Ενεργοποίηση του επόπτη α&δράνειας - - - - Idle time: - Χρόνος αδράνειας: - - - - Enable Backlight Change - Ενεργοποίηση της αλλαγής του οπισθοφωτός - - - - When idle on Battery: - Κατά την αδράνεια σε λειτουργία συσσωρευτή: - - - - Battery Idle time: - Χρόνος αδράνειας σε συσσωρευτή: - - - - Backlight (%): - Οπισθόφως (%): - - - - Minutes:Seconds - Λεπτά:Δευτερόλεπτα - - - - - - mm:ss - λλ:δδ - - - - When idle on AC: - Κατά την αδράνεια σε λειτουργία τροφοδοτικού AC: - - - - AC Idle time: - Χρόνος αδράνειας σε AC: - - - - - Minutes:Seconds (min: 01:30) - Λεπτά:Δευτερόλεπτα (λεπ: 01:30) - - - - Check backlight - Έλεγχος οπισθοφωτός - - - - On battery discharging - Κατά την αποφόρτιση του συσσωρευτή - - - - Disable idleness checks when fullscreen - Απενεργοποίηση των ελέγχων αδράνειας σε λειτουργία πλήρους οθόνης - - - - LidWatcherSettings - - - Enable &Lid Watcher - Ενεργοποίηση του επόπτη &καλύμματος - - - - Action when lid is closed: - Ενέργεια κατά το κλείσιμο του καλύμματος: - - - - - On Battery: - Σε συσσωρευτή: - - - - Nothing - Τίποτα - - - - Suspend - Αναστολή - - - - Hibernate - Νάρκη - - - - Shut down - Τερματισμός - - - - - On AC: - Σε τροφοδοτικό AC: - - - - When &using external monitor - Όταν χρησιμοποιείται εξωτερική ο&θόνη - - - - MainWindow - - - Power Management Settings - Ρυθμίσεις της διαχείρισης ενέργειας - - - - Battery - Συσσωρευτής - - - - Lid - Κάλυμμα φορητού - - - - Idle - Αδρανής - - - - Power keys - Πλήκτρα τροφοδοσίας - - - - PowerKeysSettings - - - Form - Φόρμα - - - - Handle Power Keys - Διαχείριση των πλήκτρων τροφοδοσίας - - - - Power Key Action: - Ενέργεια του πλήκτρου τροφοδοσίας: - - - - Suspend Key Action: - Ενέργεια του πλήκτρου αναστολής: - - - - Hibernate Key Action: - Ενέργεια του πλήκτρου νάρκωσης: - - - - QObject - - - Nothing - Τίποτα - - - - Ask - Ερώτηση - - - - Lock screen - Κλείδωμα οθόνης - - - - Suspend - Αναστολή - - - - Hibernate - Νάρκη - - - - Shutdown - Τερματισμός - - - - Turn Off monitor(s) - Απενεργοποίηση των οθονών - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_es.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_es.desktop.yaml deleted file mode 100644 index c7325e5a0b..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_es.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Gestión de energía" -Desktop Entry/GenericName: "Configuración de la gestión de energía" -Desktop Entry/Comment: "Configuraciones varias relacionadas con la gestión de energía, como la batería o el monitor de inactividad" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_es.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_es.ts deleted file mode 100644 index 865efc9cf5..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_es.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Configuración del monitor de batería - - - - E&nable Battery Watcher - Activar el mo&nitor de batería - - - - Warning: - Aviso: - - - - seconds - segundos - - - - Level is low at: - El nivel es bajo al: - - - - % - % - - - - Use icons from theme: - Utilizar iconos del tema: - - - - - Preview - Vista previa - - - - Charging - Cargando - - - - Discharging - Descargando - - - - When power is low then: - Cuando la carga sea baja: - - - - Show icon: - Mostrar icono: - - - - built in - integrado - - - - Level: %1% - Nivel: %1 % - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Habi&litar el monitor de inactividad - - - - Idle time: - Tiempo para inactividad: - - - - Enable Backlight Change - Activar cambio de retroiluminación - - - - When idle on Battery: - En caso de inactividad, con batería: - - - - Battery Idle time: - - - - - Backlight (%): - Retroiluminación (%): - - - - Minutes:Seconds - Minutos:Segundos - - - - - - mm:ss - mm:ss - - - - When idle on AC: - En caso de inactividad, con CA: - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - Minutos:Segundos (mínimo: 01:30) - - - - Check backlight - Comprobar retroiluminación - - - - On battery discharging - Al descargarse la batería - - - - Disable idleness checks when fullscreen - Deshabilitar las comprobaciones de inactividad en pantalla completa - - - - LidWatcherSettings - - - Enable &Lid Watcher - Habi&litar el monitor de la tapa - - - - Action when lid is closed: - Acción al cerrar la tapa: - - - - - On Battery: - En batería: - - - - Nothing - Nada - - - - Suspend - Suspender - - - - Hibernate - Hibernar - - - - Shut down - Apagar - - - - - On AC: - Enchufado: - - - - When &using external monitor - Al &usar un monitor externo - - - - MainWindow - - - Power Management Settings - Configuración de la gestión de energía - - - - Battery - Batería - - - - Lid - Tapa - - - - Idle - Inactividad - - - - Power keys - Teclas de apagado - - - - PowerKeysSettings - - - Form - Formulario - - - - Handle Power Keys - Administrar teclas de apagado - - - - Power Key Action: - Acción de tecla de apagado: - - - - Suspend Key Action: - Acción de tecla de suspensión: - - - - Hibernate Key Action: - Acción de tecla de hibernación: - - - - QObject - - - Nothing - Nada - - - - Ask - Preguntar - - - - Lock screen - Bloquear la pantalla - - - - Suspend - Suspender - - - - Hibernate - Hibernar - - - - Shutdown - Apagar - - - - Turn Off monitor(s) - Apagar el monitor - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_et.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_et.desktop.yaml deleted file mode 100644 index 655e41a1eb..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_et.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Toitehaldus" -Desktop Entry/GenericName: "Toitehalduse seadistused" -Desktop Entry/Comment: "Erinevad seadistused, mis seostuvad toitehaldusega, aku kasutusega ja arvuti ooteajaga" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_et.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_et.ts deleted file mode 100644 index 8577314696..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_et.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Akuoleku jälgija seadistused - - - - E&nable Battery Watcher - Võta &kasutusele akuoleku jälgija - - - - Warning: - Hoiatus: - - - - seconds - sekundit - - - - Level is low at: - Madal aku laetuse tase on: - - - - % - % - - - - Use icons from theme: - Kasuta ikoone sellest teemast: - - - - - Preview - Eelvaade - - - - Charging - Laen akut - - - - Discharging - Aku tühjeneb - - - - When power is low then: - Madala akutaseme puhul: - - - - Show icon: - Näita ikooni: - - - - built in - sisseehitatud - - - - Level: %1% - Tase: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Kasuta &jõudeoleku jälgijat - - - - Idle time: - Jõudeaeg on: - - - - Enable Backlight Change - Kasuta taustavalguse muutmist - - - - When idle on Battery: - Jõudeolek akutoitel: - - - - Battery Idle time: - Jõudeoleku aeg akutoitel: - - - - Backlight (%): - Taustavalgus (%): - - - - Minutes:Seconds - Minutit:sekundit - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Jõudeolek võrgutoitel: - - - - AC Idle time: - Jõudeoleku aeg võrgutoitel: - - - - - Minutes:Seconds (min: 01:30) - Minutit:sekundit (vähemalt 01:30) - - - - Check backlight - Kontrolli taustavalgust - - - - On battery discharging - Kui aku on tühjenemas - - - - Disable idleness checks when fullscreen - Kui mõni rakendus on täisekraanivaates, siis ära kasuta jõudeoleku seadistusi - - - - LidWatcherSettings - - - Enable &Lid Watcher - Kasuta &kaane jälgijat - - - - Action when lid is closed: - Tegevus kaane sulgemisel: - - - - - On Battery: - Akutoitel: - - - - Nothing - Ära tee midagi - - - - Suspend - Vaju unne - - - - Hibernate - Vaju sügavasse unne - - - - Shut down - Seiska - - - - - On AC: - Võrgutoitel: - - - - When &using external monitor - Kui kasutad &täiendavat monitori - - - - MainWindow - - - Power Management Settings - Toitehalduse seadistused - - - - Battery - Aku - - - - Lid - Kaas - - - - Idle - Ootel - - - - Power keys - Toitenupud - - - - PowerKeysSettings - - - Form - Vorm - - - - Handle Power Keys - Tegevused toitenupu vajutamisel - - - - Power Key Action: - Toitenupp: - - - - Suspend Key Action: - Uinakunupu vajutamisel: - - - - Hibernate Key Action: - Sügava uinaku nupu vajutamisel: - - - - QObject - - - Nothing - Ära tee midagi - - - - Ask - Küsi - - - - Lock screen - Lukusta ekraan - - - - Suspend - Vaju unne - - - - Hibernate - Vaju sügavasse unne - - - - Shutdown - Seiska - - - - Turn Off monitor(s) - Lülita monitor(id) välja - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fi.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fi.ts deleted file mode 100644 index 69e6954787..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fi.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Akunvalvonnan asetukset - - - - E&nable Battery Watcher - Ota käyttöön akun valvonta - - - - Warning: - Varoitus: - - - - seconds - sekuntia - - - - Level is low at: - Latauksen alhainen taso: - - - - % - % - - - - Use icons from theme: - Käytä teeman kuvakkeita: - - - - - Preview - Esikatselu - - - - Charging - Lataa - - - - Discharging - Purkaantuu - - - - When power is low then: - Kun virta on alhainen: - - - - Show icon: - Näytä kuvake: - - - - built in - sisäänrakennettu - - - - Level: %1% - Taso: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Ota käyttöön joutilaan ajan valvonta - - - - Idle time: - Joutilaana olo aika: - - - - Enable Backlight Change - Ota käyttöön taustavalon muutos - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - Taustavalo (%): - - - - Minutes:Seconds - Minuuttia:sekuntia - - - - - - mm:ss - mm:ss - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - Tarkista taustavalo - - - - On battery discharging - Kun akku purkaantuu - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - Ota käyttöön kannen valvonta - - - - Action when lid is closed: - Toiminto kun kansi suljetaan: - - - - - On Battery: - Akkuvirralla: - - - - Nothing - Ei mitään - - - - Suspend - Lepotila - - - - Hibernate - Horrostila - - - - Shut down - Sammuta - - - - - On AC: - Verkkovirralla: - - - - When &using external monitor - Kun ulkoisia näyttöjä on käytössä - - - - MainWindow - - - Power Management Settings - Virranhallinnan asetukset - - - - Battery - Akku - - - - Lid - Kansi - - - - Idle - Joutilas - - - - Power keys - Virtanäppäimet - - - - PowerKeysSettings - - - Form - - - - - Handle Power Keys - Käsittele virtanäppäimet - - - - Power Key Action: - VIrtanäppäimen toiminto: - - - - Suspend Key Action: - Lepotila-näppäimen toiminto: - - - - Hibernate Key Action: - Horrostilanäppäimen toiminto: - - - - QObject - - - Nothing - Ei mitään - - - - Ask - Kysy - - - - Lock screen - Lukitse näyttö - - - - Suspend - Siirry lepotilaan - - - - Hibernate - Siirry horrostilaan - - - - Shutdown - Sammuta - - - - Turn Off monitor(s) - Sammuta näyttö/näytöt - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fr.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fr.desktop.yaml deleted file mode 100644 index 051d311bd2..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fr.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Gestion de l'énergie" -Desktop Entry/GenericName: "Paramétrage de la gestion de l'énergie" -Desktop Entry/Comment: "Divers paramétrages de la gestion de l'énergie, tels que batteries ou contrôle de l'activité" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fr.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fr.ts deleted file mode 100644 index 854c117f61..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_fr.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Paramétrage de la surveillance de la batterie - - - - E&nable Battery Watcher - &Activer la surveillance de la batterie - - - - When power is low then: - Quand la batterie est faible : - - - - Warning: - Avertissement : - - - - seconds - secondes - - - - Level is low at: - Le niveau est faible pour : - - - - % - % - - - - Show icon: - Afficher l'icône : - - - - Use icons from theme: - Utiliser les icônes du thème : - - - - - Preview - Aperçu - - - - Charging - En cours de charge - - - - Discharging - Décharge - - - - built in - intégré(e) - - - - Level: %1% - Niveau : %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Configurer le comportement en cas d'&inactivité - - - - Idle time: - Temps d'inactivité : - - - - Enable Backlight Change - Activer le changement de rétroéclairage - - - - When idle on Battery: - En cas d'inactivité sur batterie : - - - - Battery Idle time: - Temps d'inactivité sur batterie : - - - - Backlight (%): - Rétroéclairage (%) : - - - - Minutes:Seconds - Minutes:Secondes - - - - - - mm:ss - mm:ss - - - - When idle on AC: - En cas d'inactivité branché : - - - - AC Idle time: - Temps d'inactivité branché : - - - - - Minutes:Seconds (min: 01:30) - Minutes:Secondes (min : 01:30) - - - - Check backlight - Vérifier le rétroéclairage - - - - On battery discharging - Lorsque la batterie se décharge - - - - Disable idleness checks when fullscreen - Désactiver les contrôles d'inactivité en plein écran - - - - LidWatcherSettings - - - Enable &Lid Watcher - Activer la &surveillance du capot - - - - Action when lid is closed: - Action lorsque le capot est fermé : - - - - - On Battery: - Sur batterie : - - - - Nothing - Ne rien faire - - - - Suspend - Suspendre - - - - Hibernate - Hiberner - - - - Shut down - Arrêter - - - - - On AC: - Branché : - - - - When &using external monitor - &Utilisation d'un moniteur externe - - - - MainWindow - - - Power Management Settings - Paramètres de gestion de l'alimentation - - - - Battery - Batterie - - - - Lid - Capot - - - - Idle - Inactivité - - - - Power keys - Boutons d'alimentation - - - - PowerKeysSettings - - - Form - Forme - - - - Handle Power Keys - Gérer les touches d'alimentation - - - - Power Key Action: - Action des touches d'alimentation : - - - - Suspend Key Action: - Action de la touche suspendre : - - - - Hibernate Key Action: - Action de la touche hiberner : - - - - QObject - - - Nothing - Ne rien faire - - - - Ask - Demander - - - - Lock screen - Verrouiller l'écran - - - - Suspend - Suspendre - - - - Hibernate - Hiberner - - - - Shutdown - Arrêter - - - - Turn Off monitor(s) - Éteindre le(s) moniteur(s) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_gl.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_gl.ts deleted file mode 100644 index 658d08996d..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_gl.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Axustes da supervisión da batería - - - - E&nable Battery Watcher - Activar o supervisor da &batería - - - - Warning: - Aviso: - - - - seconds - segundos - - - - Level is low at: - O nivel está baixo ao: - - - - % - - - - - Use icons from theme: - Usar as iconas do tema: - - - - - Preview - Vista previa - - - - Charging - Cargando - - - - Discharging - Descargando - - - - When power is low then: - Cando a carga sexa baixa: - - - - Show icon: - Amosar a icona: - - - - built in - integrada - - - - Level: %1% - Nivel: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Activar o supervisor de &inactividade - - - - Idle time: - Tempo inactivo: - - - - Enable Backlight Change - - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - - - - - Minutes:Seconds - - - - - - - mm:ss - - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - - - - - On battery discharging - - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - Activar o supervisor da &tapa - - - - Action when lid is closed: - Acción ao pechar a tapa: - - - - - On Battery: - Coa batería: - - - - Nothing - Non facer ren - - - - Suspend - Suspender - - - - Hibernate - Hibernar - - - - Shut down - Apagar - - - - - On AC: - Con corrente: - - - - When &using external monitor - Cando se &utilice un monitor externo - - - - MainWindow - - - Power Management Settings - Axustes da xestión de enerxía - - - - Battery - Batería - - - - Lid - Tapa - - - - Idle - Inactividade - - - - Power keys - - - - - PowerKeysSettings - - - Form - - - - - Handle Power Keys - - - - - Power Key Action: - - - - - Suspend Key Action: - - - - - Hibernate Key Action: - - - - - QObject - - - Nothing - Non facer ren - - - - Ask - - - - - Lock screen - Bloquear a pantalla - - - - Suspend - Suspender - - - - Hibernate - Hibernar - - - - Shutdown - Apagar - - - - Turn Off monitor(s) - Apagar o(s) monitor(es) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_he.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_he.desktop.yaml deleted file mode 100644 index 446489cdd8..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_he.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "ניהול צריכת חשמל" -Desktop Entry/GenericName: "הגדרות ניהול צריכת חשמל" -Desktop Entry/Comment: "הגדרות שונות בתחום צריכת החשמל כגון סוללה או מעקב אחר פעילות" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_he.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_he.ts deleted file mode 100644 index a0984e03e0..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_he.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - הגדרות עוקב סוללה - - - - E&nable Battery Watcher - ה&פעלת עוקב סוללה - - - - Warning: - אזהרה: - - - - seconds - שניות - - - - Level is low at: - העצמה נמוכה בערך: - - - - % - - - - - Use icons from theme: - שימוש בסמלים מערכת העיצוב: - - - - - Preview - תצוגה מקדימה - - - - Charging - בטעינה - - - - Discharging - בפריקה - - - - When power is low then: - כאשר עצמת המתח יורדת מתחת ל־: - - - - Show icon: - הצגת סמל: - - - - built in - מובנית - - - - Level: %1% - רמה: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - הפ&עלת עוקב השהיה - - - - Idle time: - זמן השהיה: - - - - Enable Backlight Change - הפעלת שינוי תאורה אחורית - - - - When idle on Battery: - כשאין פעילות עם סוללה: - - - - Battery Idle time: - זמן חוסר פעילות על סוללה: - - - - Backlight (%): - תאורה אחורית (%): - - - - Minutes:Seconds - שניות:דקות - - - - - - mm:ss - mm:ss - - - - When idle on AC: - כשאין פעילות בעת חיבור לחשמל: - - - - AC Idle time: - זמן חוסר פעילות בעת חיבור לחשמל: - - - - - Minutes:Seconds (min: 01:30) - דקות:שניות (01:30 לכל הפחות) - - - - Check backlight - בדיקת התאורה האחורית - - - - On battery discharging - כאשר בפריקת הסוללה - - - - Disable idleness checks when fullscreen - להשבית בדיקות חוסר פעילות כשבמסך מלא - - - - LidWatcherSettings - - - Enable &Lid Watcher - הפעלת עוקב &כיסוי - - - - Action when lid is closed: - פעולה כשהכיסוי נסגר: - - - - - On Battery: - על סוללה: - - - - Nothing - כלום - - - - Suspend - השהיה - - - - Hibernate - תרדמת - - - - Shut down - כיבוי - - - - - On AC: - עם חיבור לחשמל: - - - - When &using external monitor - בעת &שימוש במסך חיצוני - - - - MainWindow - - - Power Management Settings - הגדרות ניהול צריכת חשמל - - - - Battery - סוללה - - - - Lid - כיסוי - - - - Idle - השהיה - - - - Power keys - מקשי הפעלה - - - - PowerKeysSettings - - - Form - טופס - - - - Handle Power Keys - טיפול במקשי ההפעלה - - - - Power Key Action: - פעולת מקש הכיבוי: - - - - Suspend Key Action: - פעולת מקש ההשהיה: - - - - Hibernate Key Action: - פעולת מקש התרדמת: - - - - QObject - - - Nothing - כלום - - - - Ask - לשאול - - - - Lock screen - לנעול מסך - - - - Suspend - להשהות - - - - Hibernate - תרדמת - - - - Shutdown - לכבות - - - - Turn Off monitor(s) - לכבות צגים - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hr.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hr.desktop.yaml deleted file mode 100644 index 1a334349c1..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hr.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Upravljanje energijom" -Desktop Entry/GenericName: "Upravljanje energijom – Postavke" -Desktop Entry/Comment: "Razne postavke za upravljanje energijom, kao što su praćenja stanja baterije i stanja mirovanja" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hr.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hr.ts deleted file mode 100644 index be695c5428..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hr.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Praćenje stanja baterije – Postavke - - - - E&nable Battery Watcher - &Aktiviraj praćenje stanja baterije - - - - Warning: - Upozorenje: - - - - seconds - s - - - - Level is low at: - Razina je niska pri: - - - - % - % - - - - Use icons from theme: - Koristi ikone teme: - - - - - Preview - Pregled - - - - Charging - Punjenje - - - - Discharging - Pražnjenje - - - - When power is low then: - Kad je razina niska, onda: - - - - Show icon: - Prikaži ikonu: - - - - built in - ugrađeno - - - - Level: %1% - Razina: %1 % - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - &Aktiviraj praćenje stanja mirovanja - - - - Idle time: - Vrijeme mirovanja: - - - - Enable Backlight Change - Aktiviraj mijenjanje pozadinskog osvjetljenja - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - Pozadinsko osvjetljenje (%): - - - - Minutes:Seconds - Minute:Sekunde - - - - - - mm:ss - mm:ss - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - Provjeri pozadinsko osvjetljenje - - - - On battery discharging - Pri pražnjenju baterije - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - Aktiviraj &praćenje stanja poklopca - - - - Action when lid is closed: - Radnja kad je poklopac zatvoren: - - - - - On Battery: - Napajanje baterijom: - - - - Nothing - Ništa - - - - Suspend - Pripravno stanje - - - - Hibernate - Stanje mirovanja - - - - Shut down - Isključi računalo - - - - - On AC: - Napajanje strujom: - - - - When &using external monitor - Kad se &koristi vanjski monitor - - - - MainWindow - - - Power Management Settings - Upravljanje energijom – Postavke - - - - Battery - Baterija - - - - Lid - Poklopac - - - - Idle - Mirovanje - - - - Power keys - Gumbovi za stanja računala - - - - PowerKeysSettings - - - Form - Obrazac - - - - Handle Power Keys - Postavke gumbova za stanja računala - - - - Power Key Action: - Gumb za gašenje računala: - - - - Suspend Key Action: - Gumb za pripravno stanje: - - - - Hibernate Key Action: - Gumb za stanje mirovanja: - - - - QObject - - - Nothing - Ništa - - - - Ask - Pitaj - - - - Lock screen - Zaključaj ekran - - - - Suspend - Pripravno stanje - - - - Hibernate - Stanje mirovanja - - - - Shutdown - Isključi računalo - - - - Turn Off monitor(s) - Ugasi monitore - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hu.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hu.desktop.yaml deleted file mode 100644 index f0a0a1a9c9..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hu.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Energiakezelés" -Desktop Entry/GenericName: "Energiakezelés beállítások" -Desktop Entry/Comment: "Az energiagazdálkodással kapcsolatos különféle beállítások, például akkumulátor- vagy tétlenség-figyelő" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hu.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hu.ts deleted file mode 100644 index 25eff3cd75..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_hu.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Akkumulátorfigyelő beállítások - - - - E&nable Battery Watcher - Akkumulátor figyelő e&ngedélyezése - - - - Warning: - Figyelmeztetés: - - - - seconds - másodperc - - - - Level is low at: - Alacsony energiaszint: - - - - % - - - - - Use icons from theme: - Ikonok használata a témából: - - - - - Preview - Előnézet - - - - Charging - Töltés - - - - Discharging - Kisütés - - - - When power is low then: - Alacsony energiaszintnél: - - - - Show icon: - Ikon megjelenítése: - - - - built in - beépített - - - - Level: %1% - Szint: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Tétle&nségi felügyelet engedélyezése - - - - Idle time: - Tétlenségi idő: - - - - Enable Backlight Change - Háttérvilágítás-változtatás engedélyezése - - - - When idle on Battery: - Amikor nincs töltőn és tétlen: - - - - Battery Idle time: - Akkumulátor tétlenségi idő: - - - - Backlight (%): - Háttérvilágítás (%): - - - - Minutes:Seconds - Perc:másodperc - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Amikor külső tápon tétlen: - - - - AC Idle time: - Külső táp tétlenségi idő: - - - - - Minutes:Seconds (min: 01:30) - Perc:másodperc (minimum: 01:30) - - - - Check backlight - Háttérvilágítás ellenőrzése - - - - On battery discharging - Az akkumulátor lemerüléséről - - - - Disable idleness checks when fullscreen - Tétlenségi ellenőrzés kikapcsolás teljes képernyős alkalmazás esetén - - - - LidWatcherSettings - - - Enable &Lid Watcher - Fedé&lfelügyelet engedélyezése - - - - Action when lid is closed: - Teendő lecsukáskor: - - - - - On Battery: - Akkumulátor: - - - - Nothing - Semmi - - - - Suspend - Készenlét - - - - Hibernate - Hibernálás - - - - Shut down - Leállítás - - - - - On AC: - Külső táp: - - - - When &using external monitor - &Külső monitor használatakor - - - - MainWindow - - - Power Management Settings - Energiakezelés beállítások - - - - Battery - Akkumulátor - - - - Lid - Fedél - - - - Idle - Tétlenség - - - - Power keys - Bekapcsológombok - - - - PowerKeysSettings - - - Form - Űrlap - - - - Handle Power Keys - Bekapcsológombok kezelése - - - - Power Key Action: - Bekapcsológomb művelet: - - - - Suspend Key Action: - Felfüggesztés gomb művelet: - - - - Hibernate Key Action: - Hibernálás gomb művelet: - - - - QObject - - - Nothing - Semmi - - - - Ask - Kérdezze meg - - - - Lock screen - Zárolás - - - - Suspend - Készenlét - - - - Hibernate - Hibernálás - - - - Shutdown - Leállítás - - - - Turn Off monitor(s) - Monitor(ok) kikapcsolása - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_id.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_id.ts deleted file mode 100644 index 2dbba401c0..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_id.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Pengaturan Pemantau Baterai - - - - E&nable Battery Watcher - Aktifkan Pemantau Baterai - - - - Warning: - Peringatan: - - - - seconds - detik - - - - Level is low at: - Level rendah di: - - - - % - % - - - - Use icons from theme: - Gunakan ikon dari tema: - - - - - Preview - Pratayang - - - - Charging - Mengisi daya - - - - Discharging - Pengosongan - - - - When power is low then: - Saat daya rendah maka: - - - - Show icon: - Tampilkan ikon: - - - - built in - bawaan - - - - Level: %1% - Level: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Aktifkan Pemantau Siaga - - - - Idle time: - Waktu siaga: - - - - Enable Backlight Change - Aktifkan Perubahan Lampu Latar - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - Lampur latar (%): - - - - Minutes:Seconds - Menit:Detik - - - - - - mm:ss - mm:dd - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - Memerika Lampu latar - - - - On battery discharging - Pada pengurasan batery - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - Aktifkan Pemantau &Lid - - - - Action when lid is closed: - Tindakan saat lid ditutup: - - - - - On Battery: - Pada Baterai: - - - - Nothing - Tidak ada - - - - Suspend - Suspensi - - - - Hibernate - Hibernasi - - - - Shut down - Matikan - - - - - On AC: - Pada AC: - - - - When &using external monitor - Ketika mengunakan monitor eksternal - - - - MainWindow - - - Power Management Settings - Pengaturan Manajemen Daya - - - - Battery - Baterai - - - - Lid - Lid - - - - Idle - Siaga - - - - Power keys - - - - - PowerKeysSettings - - - Form - Borang - - - - Handle Power Keys - - - - - Power Key Action: - Aksi Kunci Power: - - - - Suspend Key Action: - - - - - Hibernate Key Action: - Aksi Kunci Hibernasi: - - - - QObject - - - Nothing - Tidak ada - - - - Ask - - - - - Lock screen - Kunci layar - - - - Suspend - Suspensi - - - - Hibernate - Hibernasi - - - - Shutdown - Matikan - - - - Turn Off monitor(s) - Matikan monitor - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_it.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_it.desktop.yaml deleted file mode 100644 index a3b677c82b..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_it.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Gestore energia" -Desktop Entry/GenericName: "Impostazioni del risparmio energetico" -Desktop Entry/Comment: "Diverse impostazioni per il risparmio energetico " diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_it.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_it.ts deleted file mode 100644 index 6b9e47b5b9..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_it.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Impostazioni monitor batteria - - - - E&nable Battery Watcher - &Attiva il monitor della batteria - - - - Warning: - Tempo di attesa: - - - - seconds - secondi - - - - Level is low at: - Livello basso : - - - - % - - - - - Use icons from theme: - Usa icone del tema: - - - - - Preview - Anteprima - - - - Charging - In carica - - - - Discharging - Scaricando - - - - When power is low then: - Quando il livello è basso: - - - - Show icon: - Mostra icona: - - - - built in - icone integrate - - - - Level: %1% - Livello: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - &Attiva monitor attività sistema - - - - Idle time: - Tempo di inattività: - - - - Enable Backlight Change - Abilita cambiamento luminosità - - - - When idle on Battery: - Se inattivo a batteria: - - - - Battery Idle time: - Tempo di inattività a batteria: - - - - Backlight (%): - Luminosità (%): - - - - Minutes:Seconds - Minuti:Secondi - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Se inattivo alimentato da rete: - - - - AC Idle time: - Tempo di inattività alimentato da rete: - - - - - Minutes:Seconds (min: 01:30) - Minuti:Secondi (min: 01:30) - - - - Check backlight - Prova luminosità - - - - On battery discharging - Con batteria in scaricamento - - - - Disable idleness checks when fullscreen - Disattiva controlli di inattività quando a schermo intero - - - - LidWatcherSettings - - - Enable &Lid Watcher - &Attiva monitor coperchio - - - - Action when lid is closed: - Azione a chiusura: - - - - - On Battery: - Alimentazione a batteria: - - - - Nothing - Niente - - - - Suspend - Sospendi - - - - Hibernate - Iberna - - - - Shut down - Spegni - - - - - On AC: - Alimentazione di rete: - - - - When &using external monitor - Quando è in uso un monitor &esterno - - - - MainWindow - - - Power Management Settings - Impostazioni gestore energia - - - - Battery - Batteria - - - - Lid - Coperchio - - - - Idle - Inattività - - - - Power keys - Tasti di alimentazione - - - - PowerKeysSettings - - - Form - Form - - - - Handle Power Keys - Gestisci tasti di alimentazione - - - - Power Key Action: - Azione tasto di accensione: - - - - Suspend Key Action: - Azione tasto di sospensione: - - - - Hibernate Key Action: - Azione tasto di ibernazione: - - - - QObject - - - Nothing - Nessuna azione - - - - Ask - Chiedi - - - - Lock screen - Blocca schermo - - - - Suspend - Sospendi - - - - Hibernate - Iberna - - - - Shutdown - Spegni - - - - Turn Off monitor(s) - Spegni (tutti) monitor - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ja.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ja.desktop.yaml deleted file mode 100644 index 5652c673e1..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ja.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "電源管理" -Desktop Entry/GenericName: "電源管理" -Desktop Entry/Comment: "LXQt 電源管理(バッテリー、ふた、アイドル状態など)を設定します" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ja.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ja.ts deleted file mode 100644 index 89a21ccdae..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ja.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - バッテリーの監視設定 - - - - E&nable Battery Watcher - バッテリーを監視する(&N) - - - - Warning: - 警告: - - - - seconds - - - - - Level is low at: - 低いと判断するレベル: - - - - % - % - - - - Use icons from theme: - テーマのアイコンを使用する: - - - - - Preview - プレビュー - - - - Charging - 充電中 - - - - Discharging - 放電中 - - - - When power is low then: - 電源が低い時には: - - - - Show icon: - トレイにアイコンを表示: - - - - built in - 内蔵のアイコン - - - - Level: %1% - レベル: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - アイドル状態を監視する(&L) - - - - Idle time: - アイドル状態の時間: - - - - Enable Backlight Change - バックライトの変更を有効にする - - - - When idle on Battery: - バッテリー電源でアイドル時に: - - - - Battery Idle time: - バッテリーアイドル時間: - - - - Backlight (%): - バックライト (%): - - - - Minutes:Seconds - 分:秒 - - - - - - mm:ss - mm:ss - - - - When idle on AC: - AC 電源でアイドル時に: - - - - AC Idle time: - AC アイドル時間: - - - - - Minutes:Seconds (min: 01:30) - 分:秒 (最小: 01:30) - - - - Check backlight - バックライトの確認 - - - - On battery discharging - バッテリー放電時 - - - - Disable idleness checks when fullscreen - 全画面時にアイドル状態の確認を無効にする - - - - LidWatcherSettings - - - Enable &Lid Watcher - ふたを監視する(&L) - - - - Action when lid is closed: - ふたを閉じた時の動作: - - - - - On Battery: - バッテリー電源の時: - - - - Nothing - 何もしない - - - - Suspend - サスペンド - - - - Hibernate - ハイバネート - - - - Shut down - シャットダウン - - - - - On AC: - AC 電源の時: - - - - When &using external monitor - 外部モニターの使用時には(&U) - - - - MainWindow - - - Power Management Settings - 電源管理の設定 - - - - Battery - バッテリー - - - - Lid - ふた - - - - Idle - アイドル - - - - Power keys - 電源キー - - - - PowerKeysSettings - - - Form - フォーム - - - - Handle Power Keys - 電源キーの処理 - - - - Power Key Action: - [電源]キーの動作: - - - - Suspend Key Action: - [サスペンド]キーの動作: - - - - Hibernate Key Action: - [ハイバネート]キーの動作: - - - - QObject - - - Nothing - 何もしない - - - - Ask - 問い合わせ - - - - Lock screen - 画面ロック - - - - Suspend - サスペンド - - - - Hibernate - ハイバネート - - - - Shutdown - シャットダウン - - - - Turn Off monitor(s) - モニターの電源オフ - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ko.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ko.desktop.yaml deleted file mode 100644 index 5397878494..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ko.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "전원 관리" -Desktop Entry/GenericName: "전원 관리 설정" -Desktop Entry/Comment: "배터리 또는 유휴 감시자와 같은 전원 관리와 관련된 다양한 설정" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ko.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ko.ts deleted file mode 100644 index 53ef342b5a..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ko.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - 배터리 감시자 설정 - - - - E&nable Battery Watcher - 배터리 감시자 활성화(&N) - - - - Warning: - 경고: - - - - seconds - - - - - Level is low at: - 낮은 배터리 임계값: - - - - % - % - - - - Use icons from theme: - 테마의 아이콘 사용: - - - - - Preview - 미리보기 - - - - Charging - 충전 중 - - - - Discharging - 방전 중 - - - - When power is low then: - 전원이 부족할 때: - - - - Show icon: - 표시 아이콘: - - - - built in - 기본 제공 아이콘 - - - - Level: %1% - 레벨: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - 유휴 감시자 활성화(&L) - - - - Idle time: - 유휴 시간: - - - - Enable Backlight Change - 백라이트 변경 활성화 - - - - When idle on Battery: - 배터리에서 유휴 상태일 때: - - - - Battery Idle time: - 배터리 유휴 시간: - - - - Backlight (%): - 백라이트(%): - - - - Minutes:Seconds - 분:초 - - - - - - mm:ss - mm:ss - - - - When idle on AC: - AC에서 유휴 상태일 때: - - - - AC Idle time: - AC 유휴 시간: - - - - - Minutes:Seconds (min: 01:30) - 분:초 (분: 01:30) - - - - Check backlight - 백라이트 확인 - - - - On battery discharging - 배터리 방전 시 - - - - Disable idleness checks when fullscreen - 전체 화면일 때 유휴 상태 확인 비활성화 - - - - LidWatcherSettings - - - Enable &Lid Watcher - 리드 감시자 활성화(&L) - - - - Action when lid is closed: - 리드를 닫았을 때의 동작 : - - - - - On Battery: - 배터리로 전원 공급: - - - - Nothing - 동작 없음 - - - - Suspend - 대기 모드 - - - - Hibernate - 최대 절전 모드 - - - - Shut down - 시스템 종료 - - - - - On AC: - AC로 전원 공급: - - - - When &using external monitor - 외부 모니터 사용 시(&U) - - - - MainWindow - - - Power Management Settings - 전원 관리 설정 - - - - Battery - 배터리 - - - - Lid - 리드 - - - - Idle - 유휴 - - - - Power keys - 전원 키 - - - - PowerKeysSettings - - - Form - 형태 - - - - Handle Power Keys - 전원 키 처리 - - - - Power Key Action: - 전원 키 동작: - - - - Suspend Key Action: - 대기 모드 키 동작: - - - - Hibernate Key Action: - 최대 절전 모드 키 동작: - - - - QObject - - - Nothing - 동작 없음 - - - - Ask - 묻기 - - - - Lock screen - 잠금 화면 - - - - Suspend - 대기 모드 - - - - Hibernate - 최대 절전 모드 - - - - Shutdown - 시스템 종료 - - - - Turn Off monitor(s) - 모니터 끄기 - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_lt.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_lt.desktop.yaml deleted file mode 100644 index 07213de263..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_lt.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Maitinimo valdymas" -Desktop Entry/GenericName: "Maitinimo valdymo nustatymai" -Desktop Entry/Comment: "Įvairūs su maitinimo valdymu susiję nustatymai" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_lt.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_lt.ts deleted file mode 100644 index f793cd2e51..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_lt.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Baterijos stebėtojo nustatymai - - - - E&nable Battery Watcher - Į&jungti baterijos stebėtoją - - - - Warning: - Įspėjimas: - - - - seconds - sekundžių - - - - Level is low at: - Žemas lygis yra ties: - - - - % - % - - - - Use icons from theme: - Naudoti piktogramas iš apipavidalinimo: - - - - - Preview - Peržiūra - - - - Charging - Įkraunama - - - - Discharging - Išsikrauna - - - - When power is low then: - Esant žemam energijos lygiui: - - - - Show icon: - Rodyti piktogramą: - - - - built in - įtaisyta - - - - Level: %1% - Lygis: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Į&jungti neveiklumo stebėtoją - - - - Idle time: - Neveiklumo laikas: - - - - Enable Backlight Change - Įjungti foninio apšvietimo pakeitimus - - - - When idle on Battery: - Esant neveiklumui naudojant bateriją: - - - - Battery Idle time: - Baterijos neveiklumo laikas: - - - - Backlight (%): - Foninis apšvietimas (%): - - - - Minutes:Seconds - Minutės:Sekundės - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Esant neveiklumui naudojant el. maitinimą: - - - - AC Idle time: - El. maitinimo neveiklumo laikas: - - - - - Minutes:Seconds (min: 01:30) - Minutės:Sekundės (min.: 01:30) - - - - Check backlight - Tikrinti foninį apšvietimą - - - - On battery discharging - Baterijai išsikraunant - - - - Disable idleness checks when fullscreen - Išjungti neveiklumo patikrinimus, kai rodoma visame ekrane - - - - LidWatcherSettings - - - Enable &Lid Watcher - Įj&ungti dangčio stebėtoją - - - - Action when lid is closed: - Veiksmas, užveriant dangtį: - - - - - On Battery: - Naudojant bateriją: - - - - Nothing - Nieko - - - - Suspend - Pristabdyti - - - - Hibernate - Užmigdyti - - - - Shut down - Išjungti - - - - - On AC: - Naudojant. el. maitinimą: - - - - When &using external monitor - Naudojant išori&nį monitorių - - - - MainWindow - - - Power Management Settings - Maitinimo tvarkytuvės nustatymai - - - - Battery - Baterija - - - - Lid - Dangtis - - - - Idle - Neveiklumas - - - - Power keys - Maitinimo klavišai - - - - PowerKeysSettings - - - Form - Forma - - - - Handle Power Keys - Apdoroti maitinimo klavišus - - - - Power Key Action: - Maitinimo klavišo veiksmas: - - - - Suspend Key Action: - Pristabdymo klavišo veiksmas: - - - - Hibernate Key Action: - Užmigdymo klavišo veiksmas: - - - - QObject - - - Nothing - Nieko - - - - Ask - Klausti - - - - Lock screen - Užrakinti ekraną - - - - Suspend - Pristabdyti - - - - Hibernate - Užmigdyti - - - - Shutdown - Išjungti - - - - Turn Off monitor(s) - Išjungti monitorių(-ius) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nb_NO.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nb_NO.desktop.yaml deleted file mode 100644 index 69deb6f4a4..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nb_NO.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Strømstyring" -Desktop Entry/GenericName: "Strømstyringsinnstillinger" -Desktop Entry/Comment: "Forskjellige innstillinger for strømstyring, som f.eks, batteri- eller lediggangsoppsyn" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nb_NO.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nb_NO.ts deleted file mode 100644 index 612b296b32..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nb_NO.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Batteriovervåkningsinnstillinger - - - - E&nable Battery Watcher - F&ølg med på batteriet - - - - Warning: - Advarsel: - - - - seconds - sekunder - - - - Level is low at: - Nivået er lavt ved: - - - - % - - - - - Use icons from theme: - Bruk symboler fra tema: - - - - - Preview - Forhåndsvisning - - - - Charging - Lader - - - - Discharging - Utlader - - - - When power is low then: - Når det er lite strøm: - - - - Show icon: - Vis symbol: - - - - built in - innebygd - - - - Level: %1% - Nivå: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Aktiver overvåking av &inaktivitet - - - - Idle time: - Inaktivitetstid: - - - - Enable Backlight Change - Skru på bakgrunnsbelysningsendring - - - - When idle on Battery: - Ved lediggang på batteri: - - - - Battery Idle time: - Lediggangstid på batteri: - - - - Backlight (%): - Bagrunnsbelysning (%) - - - - Minutes:Seconds - Minutter:Sekunder - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Ved lediggang på lysnettstilkobling: - - - - AC Idle time: - Lediggangstid på lysnett: - - - - - Minutes:Seconds (min: 01:30) - minutter:sekunder (minimum:01:30) - - - - Check backlight - Sjekk bakgrunnsbelysning - - - - On battery discharging - Når batteriet utlades - - - - Disable idleness checks when fullscreen - Skru av lediggangssjekk i fullskjermsvisning - - - - LidWatcherSettings - - - Enable &Lid Watcher - Aktiver overvåking av &lokket - - - - Action when lid is closed: - Handling når lokket er lukket: - - - - - On Battery: - På batteri: - - - - Nothing - Ingenting - - - - Suspend - Hvile - - - - Hibernate - Dvale - - - - Shut down - Skru av - - - - - On AC: - På strømnettet: - - - - When &using external monitor - Når man br&uker ekstern skjerm - - - - MainWindow - - - Power Management Settings - Strømstyringsinnstillinger - - - - Battery - Batteri - - - - Lid - Lokk - - - - Idle - Inaktivitet - - - - Power keys - Effekt-taster - - - - PowerKeysSettings - - - Form - Skjema - - - - Handle Power Keys - Håndter effekt-taster - - - - Power Key Action: - Handling for på/av-knapp: - - - - Suspend Key Action: - Handling for hviletast: - - - - Hibernate Key Action: - Handling for dvaletast: - - - - QObject - - - Nothing - Ingenting - - - - Ask - Spør - - - - Lock screen - Lås skjerm - - - - Suspend - Hvile - - - - Hibernate - Dvale - - - - Shutdown - Skru av - - - - Turn Off monitor(s) - Skru av skjerm(er) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nl.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nl.desktop.yaml deleted file mode 100644 index a826accd36..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nl.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Energiebeheer" -Desktop Entry/GenericName: "Energiebeheerinstellingen" -Desktop Entry/Comment: "Instellingen omtrent energiebeheer, zoals accu- en inactiviteitsinstellingen" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nl.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nl.ts deleted file mode 100644 index 5f4fd08b63..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_nl.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Accumonitor-instellingen - - - - E&nable Battery Watcher - Accumonitor i&nschakelen - - - - Warning: - Waarschuwing: - - - - seconds - seconden - - - - Level is low at: - Laag niveau: - - - - % - % - - - - Use icons from theme: - Pictogrammen van thema gebruiken: - - - - - Preview - Voorvertoning - - - - Charging - Opladen - - - - Discharging - Ontladen - - - - When power is low then: - Bij laag niveau: - - - - Show icon: - Pictogram tonen: - - - - built in - meegeleverd - - - - Level: %1% - Niveau: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Inactiviteitsmonitor inschake&len - - - - Idle time: - Duur van inactiviteit: - - - - Enable Backlight Change - Achtergrondverlichting bijstellen - - - - When idle on Battery: - Bij inactiviteit op accu: - - - - Battery Idle time: - Inactiviteitsduur (accu): - - - - Backlight (%): - Achtergrondverlichting (in %): - - - - Minutes:Seconds - Minuten:Seconden - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Bij inactiviteit op netstroom: - - - - AC Idle time: - Inactiviteitsduur (netstroom): - - - - - Minutes:Seconds (min: 01:30) - Minuten:Seconden (min: 01:30) - - - - Check backlight - Achtergrondverlichting controleren - - - - On battery discharging - Bij ontladen van accu - - - - Disable idleness checks when fullscreen - Inactiviteitscontroles overslaan bij beeldvullende activiteiten - - - - LidWatcherSettings - - - Enable &Lid Watcher - Dekse&lmonitor inschakelen - - - - Action when lid is closed: - Actie na sluiten van deksel: - - - - - On Battery: - Op accu: - - - - Nothing - Niets - - - - Suspend - Pauzestand - - - - Hibernate - Slaapstand - - - - Shut down - Afsluiten - - - - - On AC: - Op netstroom: - - - - When &using external monitor - Bij gebr&uik van extern beeldscherm - - - - MainWindow - - - Power Management Settings - Energiebeheer-instellingen - - - - Battery - Accu - - - - Lid - Deksel - - - - Idle - Inactief - - - - Power keys - Energieknoppen - - - - PowerKeysSettings - - - Form - Dialoogvenster - - - - Handle Power Keys - Energieknoppen gebruiken - - - - Power Key Action: - Energieknopactie: - - - - Suspend Key Action: - Pauzestandknopactie: - - - - Hibernate Key Action: - Slaapstandknopactie: - - - - QObject - - - Nothing - Niets - - - - Ask - Vragen - - - - Lock screen - Scherm vergrendelen - - - - Suspend - Pauzestand - - - - Hibernate - Slaapstand - - - - Shutdown - Afsluiten - - - - Turn Off monitor(s) - Beeldscherm(en) uitschakelen - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_oc.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_oc.desktop.yaml deleted file mode 100644 index 7d330b8662..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_oc.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Gestion energetica" -Desktop Entry/GenericName: "Paramètres de gestion energetica" -Desktop Entry/Comment: "Divèrs paramètres de gestion energetica, coma la batariá o lo contraròtle de l’activitat" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pl.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pl.desktop.yaml deleted file mode 100644 index 67921ae570..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pl.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Zarządzanie energią" -Desktop Entry/GenericName: "Konfiguracja zarządzania energią" -Desktop Entry/Comment: "Konfiguracja zarządzania energią" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pl.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pl.ts deleted file mode 100644 index 8a7620b511..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pl.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Ustawienia monitorowania baterii - - - - E&nable Battery Watcher - W&łącz monitorowanie baterii - - - - Warning: - Ostrzeżenie: - - - - seconds - sek - - - - Level is low at: - Poziom niski od: - - - - % - % - - - - Use icons from theme: - Użyj ikon z motywu: - - - - - Preview - Podgląd - - - - Charging - Ładowanie - - - - Discharging - Rozładowywanie - - - - When power is low then: - Gdy poziom jest niski: - - - - Show icon: - Pokaż ikonę: - - - - built in - wbudowana - - - - Level: %1% - Poziom: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - W&łącz monitorowanie bezczynności - - - - Idle time: - Czas bezczynności: - - - - Enable Backlight Change - - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Backlight (%): - - - - - Minutes:Seconds - - - - - - - mm:ss - - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - Check backlight - - - - - On battery discharging - - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - W&łącz monitorowanie pokrywy - - - - Action when lid is closed: - Reakcja na zamknięcie pokrywy: - - - - - On Battery: - Na baterii: - - - - Nothing - Brak - - - - Suspend - Wstrzymaj - - - - Hibernate - Hibernuj - - - - Shut down - Wyłącz - - - - - On AC: - Zasilany: - - - - When &using external monitor - Przy używaniu &zewnętrznego monitora - - - - MainWindow - - - Power Management Settings - Ustawienia zarządzania energią - - - - Battery - Bateria - - - - Lid - Pokrywa - - - - Idle - Bezczynność - - - - Power keys - - - - - PowerKeysSettings - - - Form - - - - - Handle Power Keys - - - - - Power Key Action: - - - - - Suspend Key Action: - - - - - Hibernate Key Action: - - - - - QObject - - - Nothing - Brak reakcji - - - - Ask - - - - - Lock screen - Zablokuj ekran - - - - Suspend - Wstrzymaj - - - - Hibernate - Hibernuj - - - - Shutdown - Wyłącz - - - - Turn Off monitor(s) - Wyłącz ekran(y) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt.desktop.yaml deleted file mode 100644 index 83726349cb..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Gestão de energia" -Desktop Entry/GenericName: "Definições do gestor de energia" -Desktop Entry/Comment: "Definições do gestor de energia" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt.ts deleted file mode 100644 index f061fe2276..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Definições do monitor de energia - - - - E&nable Battery Watcher - Ativar mo&nitor de energia - - - - Warning: - Aviso: - - - - seconds - segundos - - - - Level is low at: - O nível está baixo em: - - - - % - % - - - - Use icons from theme: - Utilizar ícones do tema: - - - - - Preview - Pré-visualização - - - - Charging - A carregar - - - - Discharging - A descarregar - - - - When power is low then: - Se a energia estiver baixa: - - - - Show icon: - Mostrar ícone: - - - - built in - nativo - - - - Level: %1% - Nível: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - At&ivar monitor de inatividade - - - - Idle time: - Tempo de inatividade: - - - - Enable Backlight Change - Ativar alteração da retro-iluminação - - - - When idle on Battery: - Se inativo com bateria: - - - - Battery Idle time: - Tempo de inatividade se em bateria: - - - - Backlight (%): - Retro-iluminação (%): - - - - Minutes:Seconds - Minutos:Segundos - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Se inativo ligado à corrente: - - - - AC Idle time: - Tempo de inatividade se ligado à corrente: - - - - - Minutes:Seconds (min: 01:30) - Minutos:Segundos (min: 01:30) - - - - Check backlight - Verificar retro-iluminação - - - - On battery discharging - Bateria a descarregar - - - - Disable idleness checks when fullscreen - Verificações de inatividade se em ecrã completo - - - - LidWatcherSettings - - - Enable &Lid Watcher - Ativar monitori&zador da tampa - - - - Action when lid is closed: - Ação ao fechar a tampa: - - - - - On Battery: - Com bateria: - - - - Nothing - Nada fazer - - - - Suspend - Suspender - - - - Hibernate - Hibernar - - - - Shut down - Desligar - - - - - On AC: - Com corrente: - - - - When &using external monitor - Ao &utilizar monitor externo - - - - MainWindow - - - Power Management Settings - Definições de energia - - - - Battery - Bateria - - - - Lid - Tampa - - - - Idle - Inatividade - - - - Power keys - Teclas de energia - - - - PowerKeysSettings - - - Form - Formulário - - - - Handle Power Keys - Gerir teclas de energia - - - - Power Key Action: - Ação da tecla Energia: - - - - Suspend Key Action: - Ação da tecla Suspender: - - - - Hibernate Key Action: - Ação da tecla Hibernar: - - - - QObject - - - Nothing - Nada fazer - - - - Ask - Perguntar - - - - Lock screen - Bloquear ecrã - - - - Suspend - Suspender - - - - Hibernate - Hibernar - - - - Shutdown - Desligar - - - - Turn Off monitor(s) - Desligar monitor(es) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt_BR.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt_BR.ts deleted file mode 100644 index 2053aa37db..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_pt_BR.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Configurações do monitor de bateria - - - - E&nable Battery Watcher - A&tivar monitor de bateria - - - - Warning: - Aviso: - - - - seconds - segundos - - - - Level is low at: - Nível baixo em: - - - - % - % - - - - Use icons from theme: - Usar ícones do tema: - - - - - Preview - Pré-visualização - - - - Charging - Carregando - - - - Discharging - Descarregando - - - - When power is low then: - Em caso de baixa energia: - - - - Show icon: - Exibir ícone: - - - - built in - integrado - - - - Level: %1% - Nível: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Ativar monitor d&e inatividade - - - - Idle time: - Tempo para inatividade: - - - - Enable Backlight Change - Habilitar alteração de luz de fundo - - - - When idle on Battery: - Quando inativo na bateria: - - - - Battery Idle time: - Tempo de inatividade na bateria: - - - - Backlight (%): - Luz de fundo (%): - - - - Minutes:Seconds - Minutos:segundos - - - - - - mm:ss - mm:ss - - - - When idle on AC: - Quando inativo na tomada: - - - - AC Idle time: - Tempo de inatividade na tomada: - - - - - Minutes:Seconds (min: 01:30) - Minutos:segundos (min: 01:30) - - - - Check backlight - Verificar luz de fundo - - - - On battery discharging - Na bateria descarregando - - - - Disable idleness checks when fullscreen - Desabilitar verificações de inatividade quando em tela cheia - - - - LidWatcherSettings - - - Enable &Lid Watcher - Ativar monitor da &tampa - - - - Action when lid is closed: - Ação ao fechar a tampa: - - - - - On Battery: - Com bateria: - - - - Nothing - Não fazer nada - - - - Suspend - Suspender - - - - Hibernate - Hibernar - - - - Shut down - Desligar - - - - - On AC: - Na tomada: - - - - When &using external monitor - Ao &utilizar monitor externo - - - - MainWindow - - - Power Management Settings - Configurações do gerenciador de energia - - - - Battery - Bateria - - - - Lid - Tampa - - - - Idle - Inatividade - - - - Power keys - Botões de energia - - - - PowerKeysSettings - - - Form - Formulário - - - - Handle Power Keys - Lidar com botões de energia - - - - Power Key Action: - Ação do botão de energia: - - - - Suspend Key Action: - Ação do botão de suspender: - - - - Hibernate Key Action: - Ação do botão de hibernar: - - - - QObject - - - Nothing - Não fazer nada - - - - Ask - Perguntar - - - - Lock screen - Bloquear tela - - - - Suspend - Suspender - - - - Hibernate - Hibernar - - - - Shutdown - Desligar - - - - Turn Off monitor(s) - Desativar monitor(es) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ru.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ru.desktop.yaml deleted file mode 100644 index c68316629b..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ru.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Управление энергопотреблением" -Desktop Entry/GenericName: "Настройки управления энергопотреблением" -Desktop Entry/Comment: "Настройки управления энергопотреблением" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ru.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ru.ts deleted file mode 100644 index 077d255541..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_ru.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Настройки наблюдения за батареей - - - - E&nable Battery Watcher - &Разрешить наблюдение за батареей - - - - Warning: - Предупреждение: - - - - seconds - секунд - - - - Level is low at: - Низкий уровень при: - - - - % - % - - - - Use icons from theme: - Использовать значки из темы: - - - - - Preview - Предварительный просмотр - - - - Charging - Заряжается - - - - Discharging - Разряжается - - - - When power is low then: - При низком заряде: - - - - Show icon: - Показывать значок: - - - - built in - встроенная - - - - Level: %1% - Уровень: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - В&ключить наблюдение за простоем - - - - Idle time: - Время простоя: - - - - Enable Backlight Change - Включить изменение подсветки - - - - When idle on Battery: - В режиме ожидания от батареи: - - - - Battery Idle time: - Время простоя аккумулятора: - - - - Backlight (%): - Подсветка (%): - - - - Minutes:Seconds - Минуты:Секунды - - - - - - mm:ss - мм:сс - - - - When idle on AC: - При простое от сети: - - - - AC Idle time: - Время простоя от сети: - - - - - Minutes:Seconds (min: 01:30) - Минуты:Секунды (мин: 01:30) - - - - Check backlight - Проверить подсветку - - - - On battery discharging - Только при работе от батареи - - - - Disable idleness checks when fullscreen - Отключить проверку бездействия в полноэкранном режиме - - - - LidWatcherSettings - - - Enable &Lid Watcher - В&ключить наблюдение за крышкой - - - - Action when lid is closed: - Действие при закрытии крышки: - - - - - On Battery: - От батареи: - - - - Nothing - Ничего - - - - Suspend - Ждущий режим - - - - Hibernate - Спящий режим - - - - Shut down - Выключить компьютер - - - - - On AC: - От сети: - - - - When &using external monitor - При &использовании внешнего монитора - - - - MainWindow - - - Power Management Settings - Настройки управления энергопотреблением - - - - Battery - Батарея - - - - Lid - Крышка - - - - Idle - Бездействие - - - - Power keys - Кнопки питания - - - - PowerKeysSettings - - - Form - Form - - - - Handle Power Keys - Обработка клавиш управления питанием - - - - Power Key Action: - Действие кнопки питания: - - - - Suspend Key Action: - При переходе в ждущий режим: - - - - Hibernate Key Action: - При переходе в спящий режим: - - - - QObject - - - Nothing - Ничего - - - - Ask - Спросить - - - - Lock screen - Блокировать экран - - - - Suspend - Ждущий режим - - - - Hibernate - Спящий режим - - - - Shutdown - Выключить компьютер - - - - Turn Off monitor(s) - Выключить монитор(ы) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_si.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_si.desktop.yaml deleted file mode 100644 index 775df48e71..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_si.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "" -Desktop Entry/GenericName: "" -Desktop Entry/Comment: "" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_si.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_si.ts deleted file mode 100644 index 9e6f734aa4..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_si.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - - - - - E&nable Battery Watcher - - - - - Warning: - - - - - seconds - - - - - Level is low at: - - - - - % - - - - - Use icons from theme: - - - - - - Preview - - - - - Charging - - - - - Discharging - - - - - When power is low then: - - - - - Show icon: - - - - - built in - - - - - Level: %1% - - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - - - - - Idle time: - - - - - Enable Backlight Change - - - - - Backlight (%): - - - - - Minutes:Seconds - - - - - - - mm:ss - - - - - When idle on AC: - - - - - AC Idle time: - - - - - - Minutes:Seconds (min: 01:30) - - - - - When idle on Battery: - - - - - Battery Idle time: - - - - - Check backlight - - - - - On battery discharging - - - - - Disable idleness checks when fullscreen - - - - - LidWatcherSettings - - - Enable &Lid Watcher - - - - - Action when lid is closed: - - - - - - On Battery: - - - - - Nothing - - - - - Suspend - - - - - Hibernate - - - - - Shut down - - - - - - On AC: - - - - - When &using external monitor - - - - - MainWindow - - - Power Management Settings - - - - - Battery - - - - - Lid - - - - - Idle - - - - - Power keys - - - - - PowerKeysSettings - - - Form - - - - - Handle Power Keys - - - - - Power Key Action: - - - - - Suspend Key Action: - - - - - Hibernate Key Action: - - - - - QObject - - - Nothing - - - - - Ask - - - - - Lock screen - - - - - Suspend - - - - - Hibernate - - - - - Shutdown - - - - - Turn Off monitor(s) - - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_sk.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_sk.desktop.yaml deleted file mode 100644 index e9f763beac..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_sk.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Správa napájania" -Desktop Entry/GenericName: "Nastavenia napájania" -Desktop Entry/Comment: "Rôzne nastavenia napájania, napr. nastavenia batérie či úsporný režim" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_sk_SK.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_sk_SK.ts deleted file mode 100644 index 4c28a007aa..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_sk_SK.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Nastavenie sledovania batérie - - - - E&nable Battery Watcher - &Sledovať stav batérie - - - - Warning: - Varovanie: - - - - seconds - sekúnd - - - - Level is low at: - Takmer vybité pri: - - - - % - % - - - - Use icons from theme: - Použiť ikony z motívu: - - - - - Preview - Náhľad - - - - Charging - Nabíja sa - - - - Discharging - Vybíja sa - - - - When power is low then: - Pri takmer vybitej batérii: - - - - Show icon: - Zobrazovať ikonu: - - - - built in - Vstavené - - - - Level: %1% - Nabitie: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - &Sledovať nečinnosť (chod naprázdno) - - - - Idle time: - Doba trvanie nečinnosti: - - - - Enable Backlight Change - Povoliť zmenu podsvietenia - - - - When idle on Battery: - Pri nečinnosti na batériu: - - - - Battery Idle time: - Doba nečinnosti batérie: - - - - Backlight (%): - Podsvietenie (%): - - - - Minutes:Seconds - Minúty:Sekundy - - - - - - mm:ss - mm: ss - - - - When idle on AC: - Pri nečinnosti počas nabíjania: - - - - AC Idle time: - Doba nečinnosti počas nabíjania: - - - - - Minutes:Seconds (min: 01:30) - Minúty:Sekundy (min: 01:30) - - - - Check backlight - Skontrolovať podsvietenie - - - - On battery discharging - Pri vybíjaní batérie - - - - Disable idleness checks when fullscreen - Zakázať kontrolu nečinnosti počas zobrazenia na celú obrazovku - - - - LidWatcherSettings - - - Enable &Lid Watcher - &Sledovať kryt obrazovky - - - - Action when lid is closed: - Akcia pri zatvorení: - - - - - On Battery: - Pri napájaní z batérie: - - - - Nothing - Nič - - - - Suspend - Uspať do pamäti - - - - Hibernate - Uspať na disk - - - - Shut down - Vypnúť - - - - - On AC: - Pri napájaní zo zásuvky: - - - - When &using external monitor - &Pri používaní externého monitora - - - - MainWindow - - - Power Management Settings - Nastavenie správy napájania - - - - Battery - Batéria - - - - Lid - Kryt - - - - Idle - Nečinný - - - - Power keys - Vypínacie tlačidlá - - - - PowerKeysSettings - - - Form - Formulár - - - - Handle Power Keys - Manipulovanie s klávesmi napájania - - - - Power Key Action: - Akcia napájania: - - - - Suspend Key Action: - Tlačítko vypnutia: - - - - Hibernate Key Action: - Tlačítko pre uspatie: - - - - QObject - - - Nothing - Nič - - - - Ask - Opýtať sa - - - - Lock screen - Uzamknúť obrazovku - - - - Suspend - Uspať do pamäte - - - - Hibernate - Uspať na disk - - - - Shutdown - Vypnúť - - - - Turn Off monitor(s) - Vypnúť monitory - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_tr.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_tr.desktop.yaml deleted file mode 100644 index a427d4cc7a..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_tr.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Güç Yönetimi" -Desktop Entry/GenericName: "Güç Yönetimi Ayarları" -Desktop Entry/Comment: "Pil veya boşta çalışan izleyici gibi Güç Yönetimi ile ilgili çeşitli ayarlar" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_tr.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_tr.ts deleted file mode 100644 index 5147154fd3..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_tr.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Pil İzleyici Ayarları - - - - E&nable Battery Watcher - Pil İzleyici &Etkin - - - - Warning: - Uyarı: - - - - seconds - saniye - - - - Level is low at: - Kritik seviye: - - - - % - % - - - - Use icons from theme: - Tema simgesini kullan: - - - - - Preview - Önizle - - - - Charging - Doluyor - - - - Discharging - Boşalıyor - - - - When power is low then: - Pil durumu kritik seviyedeyken: - - - - Show icon: - Simgeyi göster: - - - - built in - sistem - - - - Level: %1% - Seviye: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Bekleme İzeyicisini Etkin&leştir - - - - Idle time: - Boşta bekleme süresi: - - - - Enable Backlight Change - Arka Işık Değişimi Etkin - - - - When idle on Battery: - Pil ile boştayken: - - - - Battery Idle time: - Pil boşta kalma süresi: - - - - Backlight (%): - Arka Işık (%): - - - - Minutes:Seconds - Dakika:Saniye - - - - - - mm:ss - dd:ss - - - - When idle on AC: - Kabloda boştayken: - - - - AC Idle time: - Kabloda boşta kalma süresi: - - - - - Minutes:Seconds (min: 01:30) - Dakika: Saniye (enaz: 01:30) - - - - Check backlight - Arka ışığı kontrol et - - - - On battery discharging - Pil boşalırken - - - - Disable idleness checks when fullscreen - Tam ekranken boşta kalma kontrolünü devre dışı bırakın - - - - LidWatcherSettings - - - Enable &Lid Watcher - &Kapak İzleyicisini Etkinleştir - - - - Action when lid is closed: - Kapak kapatıldığında: - - - - - On Battery: - Pil Durumunda: - - - - Nothing - Hiçbir şey - - - - Suspend - Beklemeye Al - - - - Hibernate - Uykuya Al - - - - Shut down - Bilgisayarı Kapat - - - - - On AC: - Prize Takılı Durumda: - - - - When &using external monitor - Harici ekran k&ullanırken - - - - MainWindow - - - Power Management Settings - Güç Yönetim Ayarları - - - - Battery - Pil - - - - Lid - Kapak - - - - Idle - Bekleme - - - - Power keys - Güç tuşları - - - - PowerKeysSettings - - - Form - Form - - - - Handle Power Keys - Güç Tuşları Kullanımı - - - - Power Key Action: - Güç Tuşu Eylemi: - - - - Suspend Key Action: - Askıya Al Tuşu Eylemi: - - - - Hibernate Key Action: - Beklemeye Al Tuşu Eylemi: - - - - QObject - - - Nothing - Hiçbir şey - - - - Ask - Sor - - - - Lock screen - Ekranı kilitle - - - - Suspend - Beklemeye Al - - - - Hibernate - Uykuya Al - - - - Shutdown - Bilgisayarı Kapat - - - - Turn Off monitor(s) - Ekran(lar)ı kapat - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_uk.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_uk.desktop.yaml deleted file mode 100644 index eafc94f888..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_uk.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Менеджер живлення" -Desktop Entry/GenericName: "Налаштування Менеджера живлення" -Desktop Entry/Comment: "Різні налаштування Менеджера живлення, такі як батарея або годинник бездіяльності" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_uk.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_uk.ts deleted file mode 100644 index 5513f1b7f2..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_uk.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - Налаштування вартового батареї - - - - E&nable Battery Watcher - &Ввімкнути вартового батареї - - - - Warning: - Попередження: - - - - seconds - секунди - - - - Level is low at: - Низький рівень: - - - - % - % - - - - Use icons from theme: - Застосувати піктограми теми: - - - - - Preview - Перегляд - - - - Charging - Заряджання - - - - Discharging - Розряджання - - - - When power is low then: - Коли заряд нижче ніж: - - - - Show icon: - Показати піктограму: - - - - built in - вбудовано в - - - - Level: %1% - Рівень: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - Увімкнути &вартового бездіяльності - - - - Idle time: - Час бездіяльності: - - - - Enable Backlight Change - Увімкнути зміну підсвічування - - - - When idle on Battery: - За бездіяльності під час роботи від акумулятора: - - - - Battery Idle time: - Час бездіяльності під час роботи від акумулятора: - - - - Backlight (%): - Підсвічування (%): - - - - Minutes:Seconds - Хвилин:Сукунд - - - - - - mm:ss - хх:сс - - - - When idle on AC: - Під час простою в режимі живлення від мережі: - - - - AC Idle time: - Час простою в режимі живлення від мережі: - - - - - Minutes:Seconds (min: 01:30) - Хвилини:Секунди (хв: 01:30) - - - - Check backlight - Перевірити підсвічування - - - - On battery discharging - Під час роботи від акумулятора - - - - Disable idleness checks when fullscreen - Вимкнути перевірку простою в повноекранному режимі - - - - LidWatcherSettings - - - Enable &Lid Watcher - Увімкнути вартового за &кришкою ноутбука - - - - Action when lid is closed: - Дія коли кришку закрито: - - - - - On Battery: - Від акумулятора: - - - - Nothing - Нічого - - - - Suspend - Призупинити - - - - Hibernate - Приспати - - - - Shut down - Вимкнути - - - - - On AC: - На живленні від мережі: - - - - When &using external monitor - &Коли використовується зовнішній монітор - - - - MainWindow - - - Power Management Settings - Налаштування менеджера живлення - - - - Battery - Батарея - - - - Lid - Кришка нотбука - - - - Idle - Без навантаження - - - - Power keys - Кнопки живлення - - - - PowerKeysSettings - - - Form - Форма - - - - Handle Power Keys - Дії кнопок живлення - - - - Power Key Action: - Дія кнопки живлення: - - - - Suspend Key Action: - Дія кнопки зупинки: - - - - Hibernate Key Action: - Дія кнопки сну: - - - - QObject - - - Nothing - Нічого - - - - Ask - Питати - - - - Lock screen - Заблокувати екран - - - - Suspend - Призупинити - - - - Hibernate - Приспати - - - - Shutdown - Вимкнути - - - - Turn Off monitor(s) - Вимкнути монітор(и) - - - diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_vi.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_vi.desktop.yaml deleted file mode 100644 index 3ff40ada59..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_vi.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "Quản lí Năng lượng" -Desktop Entry/GenericName: "Cài đặt Quản lí Năng lượng" -Desktop Entry/Comment: "Nhiều cài đặt khác nhau về Quản lí Năng lượng như là pin hoặc là bộ bảo vệ màn hình" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_zh_CN.desktop.yaml b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_zh_CN.desktop.yaml deleted file mode 100644 index c154206ad2..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_zh_CN.desktop.yaml +++ /dev/null @@ -1,3 +0,0 @@ -Desktop Entry/Name: "电源管理" -Desktop Entry/GenericName: "电源管理设置" -Desktop Entry/Comment: "关于电源管理的各种设置,如电池与空闲监视器" diff --git a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_zh_CN.ts b/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_zh_CN.ts deleted file mode 100644 index 386b798cd2..0000000000 --- a/LibLXQT/ARM Power Management/config/translations/lxqt-config-powermanagement_zh_CN.ts +++ /dev/null @@ -1,298 +0,0 @@ - - - - - BatteryWatcherSettings - - - Battery Watcher Settings - 电池监视器设置 - - - - E&nable Battery Watcher - 开启电池监视器(&N) - - - - Warning: - 警告: - - - - seconds - - - - - Level is low at: - 电量不足临界值: - - - - % - - - - - Use icons from theme: - 使用主题提供的图标: - - - - - Preview - 预览 - - - - Charging - 正在充电 - - - - Discharging - 正在放电 - - - - When power is low then: - 电量不足时: - - - - Show icon: - 显示图标: - - - - built in - 内置 - - - - Level: %1% - 百分比: %1% - - - - IdlenessWatcherSettings - - - Enab&le Idleness Watcher - 开启空闲监视器(&L) - - - - Idle time: - 空闲临界时间: - - - - Enable Backlight Change - 启用背光修改 - - - - When idle on Battery: - 电池闲置时: - - - - Battery Idle time: - 电池闲置时间: - - - - Backlight (%): - 背光 (%): - - - - Minutes:Seconds - 分钟:秒钟 - - - - - - mm:ss - mm:ss - - - - When idle on AC: - 在交流电闲置时: - - - - AC Idle time: - 交流闲置时间: - - - - - Minutes:Seconds (min: 01:30) - 分钟:秒(分钟:01:30) - - - - Check backlight - 检测背光 - - - - On battery discharging - 电池放电 - - - - Disable idleness checks when fullscreen - 全屏时禁用空闲检查 - - - - LidWatcherSettings - - - Enable &Lid Watcher - 开启屏盖监视器(&L) - - - - Action when lid is closed: - 合盖时的动作: - - - - - On Battery: - 电池供电时: - - - - Nothing - 无动作 - - - - Suspend - 挂起 - - - - Hibernate - 休眠 - - - - Shut down - 关机 - - - - - On AC: - 交流供电时: - - - - When &using external monitor - 使用外置监视器时(&U) - - - - MainWindow - - - Power Management Settings - 电源管理设置 - - - - Battery - 电池 - - - - Lid - 屏盖 - - - - Idle - 空闲 - - - - Power keys - 电源键 - - - - PowerKeysSettings - - - Form - 表单 - - - - Handle Power Keys - 处理电源键 - - - - Power Key Action: - 电源键的动作: - - - - Suspend Key Action: - 挂起键的动作: - - - - Hibernate Key Action: - Hibernate 的按键操作: - - - - QObject - - - Nothing - 无动作 - - - - Ask - 提问 - - - - Lock screen - 锁屏 - - - - Suspend - 挂起 - - - - Hibernate - 休眠 - - - - Shutdown - 关机 - - - - Turn Off monitor(s) - 关闭显示器(s) - - - diff --git a/LibLXQT/ARM Power Management/src/CMakeLists.txt b/LibLXQT/ARM Power Management/src/CMakeLists.txt deleted file mode 100644 index 177ddb12e1..0000000000 --- a/LibLXQT/ARM Power Management/src/CMakeLists.txt +++ /dev/null @@ -1,71 +0,0 @@ -project(lxqt-powermanagement) - -set(QTX_LIBRARIES Qt5::Widgets Qt5::DBus Qt5::Svg) - -set(SOURCES - watcher.cpp - batteryhelper.cpp - batteryinfoframe.cpp - batteryinfodialog.cpp - batterywatcher.cpp - idlenesswatcher.cpp - lid.cpp - lidwatcher.cpp - main.cpp - powermanagementd.cpp - trayicon.cpp - iconproducer.cpp - powerbutton.cpp - ../config/powermanagementsettings.cpp -) - -set(UI_FILES - batteryinfoframe.ui - batteryinfodialog.ui -) - -set(DESKTOP_FILES_IN - lxqt-powermanagement.desktop.in -) - -lxqt_translate_ts(QM_FILES - UPDATE_TRANSLATIONS ${UPDATE_TRANSLATIONS} - SOURCES - ${SOURCES} - ${UI_FILES} - INSTALL_DIR - ${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME} -) - -lxqt_app_translation_loader(lxqt-powermanagement_QM_LOADER ${PROJECT_NAME}) - -include_directories( - ${Qt5Gui_PRIVATE_INCLUDE_DIRS} -) - -add_executable(lxqt-powermanagement - ${SOURCES} - ${RSCS} - ${QM_FILES} - ${lxqt-powermanagement_QM_LOADER} - ${DESKTOP_FILES} -) - -target_link_libraries(lxqt-powermanagement - lxqt - ${QTX_LIBRARIES} - KF5::Solid - KF5::IdleTime - lxqt-globalkeys -) - -install(TARGETS - ${PROJECT_NAME} - RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" - COMPONENT Runtime -) -install(FILES - ${DESKTOP_FILES} - DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications" - COMPONENT Runtime -) diff --git a/LibLXQT/ARM Power Management/src/batteryhelper.cpp b/LibLXQT/ARM Power Management/src/batteryhelper.cpp deleted file mode 100644 index b5151e43c6..0000000000 --- a/LibLXQT/ARM Power Management/src/batteryhelper.cpp +++ /dev/null @@ -1,101 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2011 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include -#include -#include -#include - -#include "batteryhelper.h" -#include "../config/powermanagementsettings.h" - -QString BatteryHelper::stateToString(Solid::Battery::ChargeState state) -{ - switch (state) - { - case Solid::Battery::NoCharge: - return tr("Empty"); - case Solid::Battery::Discharging: - return tr("Discharging"); - case Solid::Battery::FullyCharged: - return tr("Fully charged"); - case Solid::Battery::Charging: - default: - return tr("Charging"); - } -} - -QString BatteryHelper::technologyToString(Solid::Battery::Technology tech) -{ - switch (tech) - { - case Solid::Battery::LithiumIon: - return tr("Lithium ion"); - case Solid::Battery::LithiumPolymer: - return tr("Lithium polymer"); - case Solid::Battery::LithiumIronPhosphate: - return tr("Lithium iron phosphate"); - case Solid::Battery::LeadAcid: - return tr("Lead acid"); - case Solid::Battery::NickelCadmium: - return tr("Nickel cadmium"); - case Solid::Battery::NickelMetalHydride: - return tr("Nickel metal hydride"); - case Solid::Battery::UnknownTechnology: - default: - return tr("Unknown"); - } -} - -QString BatteryHelper::typeToString(Solid::Battery::BatteryType type) -{ - switch (type) - { - case Solid::Battery::PdaBattery: - return tr("Personal Digital Assistant's battery"); - case Solid::Battery::UpsBattery: - return tr("Uninterruptible Power Supply's battery"); - case Solid::Battery::PrimaryBattery: - return tr("Primary battery"); - case Solid::Battery::MouseBattery: - return tr("Mouse battery"); - case Solid::Battery::KeyboardBattery: - return tr("Keyboard battery"); - case Solid::Battery::KeyboardMouseBattery: - return tr("Keyboard and mouse's battery"); - case Solid::Battery::CameraBattery: - return tr("Camera battery"); - case Solid::Battery::PhoneBattery: - return tr("Phone battery"); - case Solid::Battery::MonitorBattery: - return tr("Monitor battery"); - case Solid::Battery::UnknownBattery: - default: - return tr("Unknown battery"); - } -} diff --git a/LibLXQT/ARM Power Management/src/batteryhelper.h b/LibLXQT/ARM Power Management/src/batteryhelper.h deleted file mode 100644 index 874a211c6f..0000000000 --- a/LibLXQT/ARM Power Management/src/batteryhelper.h +++ /dev/null @@ -1,44 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2011 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#ifndef BATTERYHELPER_H -#define BATTERYHELPER_H - -#include -#include -#include -#include - -class BatteryHelper : public QObject -{ - Q_OBJECT - -public: - static QString stateToString(Solid::Battery::ChargeState state); - static QString technologyToString(Solid::Battery::Technology tech); - static QString typeToString(Solid::Battery::BatteryType type); -}; -#endif diff --git a/LibLXQT/ARM Power Management/src/batteryinfodialog.cpp b/LibLXQT/ARM Power Management/src/batteryinfodialog.cpp deleted file mode 100644 index 9bee58b4cd..0000000000 --- a/LibLXQT/ARM Power Management/src/batteryinfodialog.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* -* Copyright (c) 2014 Christian Surlykke -* -* This file is part of the LXQt project. -* It is distributed under the LGPL 2.1 or later license. -* Please refer to the LICENSE file for a copy of the license. -*/ - -#include "batteryinfodialog.h" -#include "ui_batteryinfodialog.h" - -#include - -#include -#include -#include - -BatteryInfoDialog::BatteryInfoDialog(QList batteries, QWidget *parent) : - QDialog(parent), - ui(new Ui::BatteryInfoDialog) -{ - ui->setupUi(this); - - setWindowTitle(tr("Battery Info")); - - if (batteries.size() == 1) - { - BatteryInfoFrame *batteryInfoFrame = new BatteryInfoFrame(batteries[0]); - ui->verticalLayout->insertWidget(0, batteryInfoFrame); - } - else - { - QTabWidget *tabWidget = new QTabWidget(this); - ui->verticalLayout->insertWidget(0, tabWidget); - for (Solid::Battery *const battery : qAsConst(batteries)) - { - BatteryInfoFrame *batteryInfoFrame = new BatteryInfoFrame(battery); - tabWidget->addTab(batteryInfoFrame, QSL("BAT")); - } - } -} - -BatteryInfoDialog::~BatteryInfoDialog() -{ - delete ui; -} - -void BatteryInfoDialog::toggleShow() -{ - qDebug() << "toggleShow"; - isVisible() ? hide() : show(); -} diff --git a/LibLXQT/ARM Power Management/src/batteryinfodialog.h b/LibLXQT/ARM Power Management/src/batteryinfodialog.h deleted file mode 100644 index 75a3ddda69..0000000000 --- a/LibLXQT/ARM Power Management/src/batteryinfodialog.h +++ /dev/null @@ -1,37 +0,0 @@ -/* -* Copyright (c) 2014 Christian Surlykke -* -* This file is part of the LXQt project. -* It is distributed under the LGPL 2.1 or later license. -* Please refer to the LICENSE file for a copy of the license. -*/ - -#ifndef BATTERYINFODIALOG_H -#define BATTERYINFODIALOG_H - -#include "batteryinfoframe.h" - -#include -#include -#include - -namespace Ui { -class BatteryInfoDialog; -} - -class BatteryInfoDialog : public QDialog -{ - Q_OBJECT - -public: - explicit BatteryInfoDialog(QList batteries, QWidget *parent = nullptr); - ~BatteryInfoDialog() override; - -public slots: - void toggleShow(); - -private: - Ui::BatteryInfoDialog *ui; -}; - -#endif // BATTERYINFODIALOG_H diff --git a/LibLXQT/ARM Power Management/src/batteryinfodialog.ui b/LibLXQT/ARM Power Management/src/batteryinfodialog.ui deleted file mode 100644 index bfc14a140c..0000000000 --- a/LibLXQT/ARM Power Management/src/batteryinfodialog.ui +++ /dev/null @@ -1,64 +0,0 @@ - - - BatteryInfoDialog - - - - 0 - 0 - 334 - 301 - - - - Dialog - - - - - - Qt::Horizontal - - - QDialogButtonBox::Ok - - - - - - - - - buttonBox - accepted() - BatteryInfoDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - BatteryInfoDialog - reject() - - - 316 - 260 - - - 286 - 274 - - - - - diff --git a/LibLXQT/ARM Power Management/src/batteryinfoframe.cpp b/LibLXQT/ARM Power Management/src/batteryinfoframe.cpp deleted file mode 100644 index 777a35afab..0000000000 --- a/LibLXQT/ARM Power Management/src/batteryinfoframe.cpp +++ /dev/null @@ -1,70 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#include -#include - -#include "batteryinfoframe.h" -#include "batteryhelper.h" -#include "ui_batteryinfoframe.h" - -#include - -BatteryInfoFrame::BatteryInfoFrame(Solid::Battery *battery) : - QFrame(), - mBattery(battery), - mUi(new Ui::BatteryInfoFrame) -{ - mUi->setupUi(this); - - mUi->energyFullDesignValue->setText(QString::fromLatin1("%1 Wh").arg(mBattery->energyFullDesign(), 0, 'f', 2)); - mUi->typeValue->setText(BatteryHelper::typeToString(mBattery->type())); - mUi->technologyValue->setText(BatteryHelper::technologyToString(mBattery->technology())); - - QString vendor = QString::fromLatin1("%1 %2").arg( battery->recallVendor() , battery->serial() ); - if (vendor.trimmed().isEmpty()) - vendor = QSL("Unknown"); - mUi->vendorValue->setText(vendor); - - connect(mBattery, &Solid::Battery::energyChanged, this, &BatteryInfoFrame::onBatteryChanged); - connect(mBattery, &Solid::Battery::chargeStateChanged, this, &BatteryInfoFrame::onBatteryChanged); - onBatteryChanged(); -} - -BatteryInfoFrame::~BatteryInfoFrame() -{ - delete mUi; -} - -void BatteryInfoFrame::onBatteryChanged() -{ - mUi->stateValue->setText(BatteryHelper::stateToString(mBattery->chargeState())); - mUi->energyFullValue->setText(QString::fromLatin1("%1 Wh (%2 %)").arg(mBattery->energyFull(), 0, 'f', 2).arg(mBattery->capacity())); - mUi->energyValue->setText(QString::fromLatin1("%1 Wh (%2 %)").arg(mBattery->energy(), 0, 'f', 2).arg(mBattery->chargePercent())); - mUi->energyRateValue->setText(QString::fromLatin1("%1 W").arg(mBattery->energyRate(), 0, 'f', 2)); - mUi->voltageValue->setText(QString::fromLatin1("%1 V").arg(mBattery->voltage(), 0, 'f', 2)); - mUi->temperatureValue->setText(QString::fromUtf8("%1 ºC").arg(mBattery->temperature())); -} diff --git a/LibLXQT/ARM Power Management/src/batteryinfoframe.h b/LibLXQT/ARM Power Management/src/batteryinfoframe.h deleted file mode 100644 index b1e351796f..0000000000 --- a/LibLXQT/ARM Power Management/src/batteryinfoframe.h +++ /dev/null @@ -1,54 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#ifndef BATTERYINFOFRAME_H -#define BATTERYINFOFRAME_H - -#include - -#include - -namespace Ui { -class BatteryInfoFrame; -} - -class BatteryInfoFrame : public QFrame -{ - Q_OBJECT - -public: - explicit BatteryInfoFrame(Solid::Battery* battery); - ~BatteryInfoFrame() override; - -private slots: - void onBatteryChanged(); - -private: - Solid::Battery* mBattery; - Ui::BatteryInfoFrame *mUi; -}; - -#endif // BATTERYINFOFRAME_H diff --git a/LibLXQT/ARM Power Management/src/batteryinfoframe.ui b/LibLXQT/ARM Power Management/src/batteryinfoframe.ui deleted file mode 100644 index 0465881ff2..0000000000 --- a/LibLXQT/ARM Power Management/src/batteryinfoframe.ui +++ /dev/null @@ -1,203 +0,0 @@ - - - BatteryInfoFrame - - - - 0 - 0 - 277 - 292 - - - - Power Management - - - - 6 - - - 12 - - - 12 - - - 12 - - - - - DELL 00 - - - - - - - Primary - - - - - - - 12.27 ºC - - - - - - - Temperature: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Type: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - State: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Charging - - - - - - - Energy Full Design: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 73.26 Wh - - - - - - - Energy Full: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 64.58 Wh (88.2 %) - - - - - - - Energy Now: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 63.41 Wh (98.2 %) - - - - - - - Energy rate: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 15.11 W - - - - - - - Lithium ion - - - - - - - Technology: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - 12.27 V - - - - - - - Voltage: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Vendor: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - diff --git a/LibLXQT/ARM Power Management/src/batterywatcher.cpp b/LibLXQT/ARM Power Management/src/batterywatcher.cpp deleted file mode 100644 index 200c27cac4..0000000000 --- a/LibLXQT/ARM Power Management/src/batterywatcher.cpp +++ /dev/null @@ -1,207 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -#include "batterywatcher.h" -#include "../config/powermanagementsettings.h" - -BatteryWatcher::BatteryWatcher(QObject *parent) : Watcher(parent) -{ - const QList devices = Solid::Device::listFromType(Solid::DeviceInterface::Battery, QString()); - - if (devices.isEmpty()) - { - LXQt::Notification::notify(tr("No battery!"), - tr("LXQt could not find data about any battery - monitoring disabled"), - QSL("lxqt-powermanagement")); - } - - for (Solid::Device device : devices) - { - Solid::Battery *battery = device.as(); - if (battery->type() != Solid::Battery::PrimaryBattery) - { - continue; - } - mBatteries << battery; - connect(battery, &Solid::Battery::energyChanged, this, &BatteryWatcher::batteryChanged); - connect(battery, &Solid::Battery::chargeStateChanged, this, &BatteryWatcher::batteryChanged); - } - - mBatteryInfoDialog = new BatteryInfoDialog(mBatteries); - - connect(&mSettings, &PowerManagementSettings::settingsChanged, this, &BatteryWatcher::settingsChanged); - connect(LXQt::Settings::globalSettings(), &LXQt::GlobalSettings::iconThemeChanged, this, &BatteryWatcher::settingsChanged); - - settingsChanged(); - batteryChanged(); - - // pause timer - mPauseTimer.setSingleShot(true); - mPauseTimer.setTimerType(Qt::VeryCoarseTimer); - connect(&mPauseTimer, &QTimer::timeout, this, &BatteryWatcher::onPauseTimeout); -} - -BatteryWatcher::~BatteryWatcher() -{ -} - -void BatteryWatcher::batteryChanged() -{ - static QTime actionTime; - static LXQt::Notification *notification = nullptr; - - double totalEnergyFull = 0; - double totalEnergyNow = 0; - bool discharging = true; - double chargeLevel; - - for (const Solid::Battery *battery : qAsConst(mBatteries)) - { - totalEnergyFull += battery->energyFull(); - totalEnergyNow += battery->energy(); - discharging &= (battery->chargeState() == Solid::Battery::Discharging); - } - - chargeLevel = 100 * totalEnergyNow / totalEnergyFull; - - qDebug() << "BatteryChanged" - << "discharging:" << discharging - << "chargeLevel:" << chargeLevel - << "actionTime:" << actionTime; - - bool powerLowActionRequired = - discharging && - chargeLevel < mSettings.getPowerLowLevel() && - mSettings.getPowerLowAction() > 0; - - if (powerLowActionRequired) - { - if (actionTime.isNull()) - actionTime = QTime::currentTime().addMSecs(mSettings.getPowerLowWarningTime() * 1000); - - if (!notification) - { - notification = new LXQt::Notification(tr("Power low!"), this); - notification->setTimeout(2000); - } - - int milliSecondsToAction = QTime::currentTime().msecsTo(actionTime); - - if (milliSecondsToAction > 0) - { - int secondsToAction = milliSecondsToAction / 1000; - switch (mSettings.getPowerLowAction()) - { - case LXQt::Power::PowerSuspend: - notification->setBody(tr("Suspending in %n second(s)", nullptr, secondsToAction).arg(secondsToAction)); - break; - case LXQt::Power::PowerHibernate: - notification->setBody(tr("Hibernating in %n second(s)", nullptr, secondsToAction).arg(secondsToAction)); - break; - case LXQt::Power::PowerShutdown: - notification->setBody(tr("Shutting down in %n second(s)", nullptr, secondsToAction).arg(secondsToAction)); - break; - } - - notification->update(); - - QTimer::singleShot(200, this, &BatteryWatcher::batteryChanged); - } - else - { - doAction(mSettings.getPowerLowAction()); - } - } - else - { - if (!actionTime.isNull()) - actionTime = QTime(); - - if (notification) - { - delete notification; - notification = nullptr; - } - } -} - -void BatteryWatcher::settingsChanged() -{ - if (!mSettings.isShowIcon()) - { - // first remove the pause state because it is only for the tray - mSettings.setIdlenessWatcherPaused(false); - - while (!mTrayIcons.isEmpty()) - { - mTrayIcons.first()->hide(); - mTrayIcons.takeFirst()->deleteLater(); - } - } - else if (mTrayIcons.isEmpty()) - { - for (Solid::Battery *battery : qAsConst(mBatteries)) - { - mTrayIcons.append(new TrayIcon(battery, this)); - connect(mTrayIcons.last(), &TrayIcon::toggleShowInfo, mBatteryInfoDialog, &BatteryInfoDialog::toggleShow); - connect(mTrayIcons.last(), &TrayIcon::pauseChanged, this, &BatteryWatcher::setPause); - mTrayIcons.last()->show(); - } - } -} - -void BatteryWatcher::onPauseTimeout() -{ - for (const auto &trayIcon : qAsConst(mTrayIcons)) - trayIcon->setPause(TrayIcon::PAUSE::None); -} - -void BatteryWatcher::setPause(TrayIcon::PAUSE duration) -{ - if (duration == TrayIcon::PAUSE::None) - { - onPauseTimeout(); - mPauseTimer.stop(); - } - else - { - for (const auto &trayIcon : qAsConst(mTrayIcons)) - trayIcon->setPause(duration); - mPauseTimer.start(TrayIcon::getPauseInterval(duration)); - } -} diff --git a/LibLXQT/ARM Power Management/src/batterywatcher.h b/LibLXQT/ARM Power Management/src/batterywatcher.h deleted file mode 100644 index 60b4bfcee6..0000000000 --- a/LibLXQT/ARM Power Management/src/batterywatcher.h +++ /dev/null @@ -1,62 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#ifndef BATTERYWATCHER_H -#define BATTERYWATCHER_H - -#include "watcher.h" -#include "trayicon.h" -#include "batteryinfodialog.h" -#include "../config/powermanagementsettings.h" - -#include - -#include - -class BatteryWatcher : public Watcher -{ - Q_OBJECT - -public: - explicit BatteryWatcher(QObject *parent = nullptr); - ~BatteryWatcher() override; - -private slots: - void batteryChanged(); - void settingsChanged(); - void onPauseTimeout(); - void setPause(TrayIcon::PAUSE duration); - -private: - QList mBatteries; - QList mTrayIcons; - QTimer mPauseTimer; - - PowerManagementSettings mSettings; - BatteryInfoDialog *mBatteryInfoDialog; -}; - -#endif // BATTERYWATCHER_H diff --git a/LibLXQT/ARM Power Management/src/iconproducer.cpp b/LibLXQT/ARM Power Management/src/iconproducer.cpp deleted file mode 100644 index 52f3f688d2..0000000000 --- a/LibLXQT/ARM Power Management/src/iconproducer.cpp +++ /dev/null @@ -1,245 +0,0 @@ -/* -* Copyright (c) 2014, 2015 Christian Surlykke, Paulo Lieuthier -* -* This file is part of the LXQt project. -* It is distributed under the LGPL 2.1 or later license. -* Please refer to the LICENSE file for a copy of the license. -*/ -#include "iconproducer.h" - -#include -#include -#include -#include -#include -#include -#include - -IconProducer::IconProducer(Solid::Battery *battery, QObject *parent) : QObject(parent) -{ - connect(battery, &Solid::Battery::chargeStateChanged, this, &IconProducer::updateState); - connect(battery, &Solid::Battery::chargePercentChanged, this, &IconProducer::updateChargePercent); - connect(&mSettings, &PowerManagementSettings::settingsChanged, this, &IconProducer::update); - - mChargePercent = battery->chargePercent(); - mState = battery->chargeState(); - themeChanged(); -} - -IconProducer::IconProducer(QObject *parent): QObject(parent) -{ - themeChanged(); - update(); -} - - -void IconProducer::updateChargePercent(int newChargePercent) -{ - mChargePercent = newChargePercent; - - update(); -} - -void IconProducer::updateState(int newState) -{ - mState = (Solid::Battery::ChargeState) newState; - - update(); -} - -void IconProducer::update() -{ - QString newIconName; - - if (mSettings.isUseThemeIcons()) - { - QMap *levelNameMap = (mState == Solid::Battery::Discharging ? &mLevelNameMapDischarging : &mLevelNameMapCharging); - const auto levels = levelNameMap->keys(); - for (const float level : levels) - { - if (level >= mChargePercent) - { - newIconName = levelNameMap->value(level); - break; - } - } - } - - if (mSettings.isUseThemeIcons() && newIconName == mIconName) - return; - - mIconName = newIconName; - mIcon = mSettings.isUseThemeIcons() ? QIcon::fromTheme(mIconName) : circleIcon(); - emit iconChanged(); -} - -void IconProducer::themeChanged() -{ - /* - * We maintain specific charge-level-to-icon-name mappings for Oxygen and Awoken and - * asume all other themes adhere to the freedesktop standard. - * This is certainly not true, and as bug reports come in stating that - * this and that theme is not working we will probably have to add new - * mappings beside Oxygen and Awoken - */ - mLevelNameMapDischarging.clear(); - mLevelNameMapCharging.clear(); - - if (QIcon::themeName() == QL1S("oxygen")) - { - // Means: - // Use 'battery-low' for levels up to 10 - // - 'battery-caution' for levels between 10 and 20 - // - 'battery-040' for levels between 20 and 40, etc.. - mLevelNameMapDischarging[10] = QL1S("battery-low"); - mLevelNameMapDischarging[20] = QL1S("battery-caution"); - mLevelNameMapDischarging[40] = QL1S("battery-040"); - mLevelNameMapDischarging[60] = QL1S("battery-060"); - mLevelNameMapDischarging[80] = QL1S("battery-080"); - mLevelNameMapDischarging[101] = QL1S("battery-100"); - mLevelNameMapCharging[10] = QL1S("battery-charging-low"); - mLevelNameMapCharging[20] = QL1S("battery-charging-caution"); - mLevelNameMapCharging[40] = QL1S("battery-charging-040"); - mLevelNameMapCharging[60] = QL1S("battery-charging-060"); - mLevelNameMapCharging[80] = QL1S("battery-charging-080"); - mLevelNameMapCharging[101] = QL1S("battery-charging"); - } - else if (QIcon::themeName().startsWith(QL1S("AwOken"))) // AwOken, AwOkenWhite, AwOkenDark - { - mLevelNameMapDischarging[5] = QL1S("battery-000"); - mLevelNameMapDischarging[30] = QL1S("battery-020"); - mLevelNameMapDischarging[50] = QL1S("battery-040"); - mLevelNameMapDischarging[70] = QL1S("battery-060"); - mLevelNameMapDischarging[95] = QL1S("battery-080"); - mLevelNameMapDischarging[101] = QL1S("battery-100"); - mLevelNameMapCharging[5] = QL1S("battery-000-charging"); - mLevelNameMapCharging[30] = QL1S("battery-020-charging"); - mLevelNameMapCharging[50] = QL1S("battery-040-charging"); - mLevelNameMapCharging[70] = QL1S("battery-060-charging"); - mLevelNameMapCharging[95] = QL1S("battery-080-charging"); - mLevelNameMapCharging[101] = QL1S("battery-100-charging"); - } - else // As default we fall back to the freedesktop scheme. - { - mLevelNameMapDischarging[3] = QL1S("battery-empty"); - mLevelNameMapDischarging[10] = QL1S("battery-caution"); - mLevelNameMapDischarging[50] = QL1S("battery-low"); - mLevelNameMapDischarging[90] = QL1S("battery-good"); - mLevelNameMapDischarging[101] = QL1S("battery-full"); - mLevelNameMapCharging[3] = QL1S("battery-empty"); - mLevelNameMapCharging[10] = QL1S("battery-caution-charging"); - mLevelNameMapCharging[50] = QL1S("battery-low-charging"); - mLevelNameMapCharging[90] = QL1S("battery-good-charging"); - mLevelNameMapCharging[101] = QL1S("battery-full-charging"); - } - - update(); -} - -QIcon& IconProducer::circleIcon() -{ - static QMap > cache; - - int chargeLevelAsInt = (int) (mChargePercent + 0.49); - - if (!cache[mState].contains(chargeLevelAsInt)) - cache[mState][chargeLevelAsInt] = buildCircleIcon(mState, mChargePercent); - - return cache[mState][chargeLevelAsInt]; -} - -QIcon IconProducer::buildCircleIcon(Solid::Battery::ChargeState state, int chargeLevel) -{ - static QString svg_template = QL1S( - "\n" - "\n" - "\n" - " \n" - " \n" - " \n" - " \n" - "\n" - "\n" - "\n" - "\n" - "\n" - "\n" - " STATE_MARKER\n" - "\n" - ""); - - static QString filledCircle = QL1S(""); - static QString plus = QL1S(""); - static QString minus = QL1S(""); - static QString hollowCircle = QL1S(""); - - QString svg = svg_template; - - if (chargeLevel > 99) - chargeLevel = 99; - - double angle; - QString sweepFlag; - if (state == Solid::Battery::Discharging) - { - angle = M_PI_2 + 2 * M_PI * chargeLevel/100; - sweepFlag = QL1C('0'); - } - else - { - angle = M_PI_2 - 2 *M_PI * chargeLevel/100; - sweepFlag = QL1C('1'); - } - double circle_endpoint_x = 80.0 * cos(angle) + 100; - double circle_endpoint_y = -80.0 * sin(angle) + 100; - - QString largeArgFlag = chargeLevel > 50 ? QL1S("1") : QL1S("0"); - - svg.replace(QL1S("END_X"), QString::number(circle_endpoint_x)); - svg.replace(QL1S("END_Y"), QString::number(circle_endpoint_y)); - svg.replace(QL1S("LARGE_ARC_FLAG"), largeArgFlag); - svg.replace(QL1S("SWEEP_FLAG"), sweepFlag); - - switch (state) - { - case Solid::Battery::FullyCharged: - svg.replace(QL1S("STATE_MARKER"), filledCircle); - break; - case Solid::Battery::Charging: - svg.replace(QL1S("STATE_MARKER"), plus); - break; - case Solid::Battery::Discharging: - svg.replace(QL1S("STATE_MARKER"), minus); - break; - default: - svg.replace(QL1S("STATE_MARKER"), hollowCircle); - } - - if (state != Solid::Battery::FullyCharged && state != Solid::Battery::Charging && chargeLevel < mSettings.getPowerLowLevel() + 30) - { - if (chargeLevel <= mSettings.getPowerLowLevel() + 10) - svg.replace(QL1S("RED_OPACITY"), QL1S("1")); - else - svg.replace(QL1S("RED_OPACITY"), QString::number((mSettings.getPowerLowLevel() + 30 - chargeLevel)/20.0)); - } - else - svg.replace(QL1S("RED_OPACITY"), QL1S("0")); - - // qDebug() << svg; - - // Paint the svg on a pixmap and create an icon from that. - QSvgRenderer render(svg.toLatin1()); - QPixmap pixmap(render.defaultSize()); - pixmap.fill(QColor(0,0,0,0)); - QPainter painter(&pixmap); - render.render(&painter); - return QIcon(pixmap); -} diff --git a/LibLXQT/ARM Power Management/src/iconproducer.h b/LibLXQT/ARM Power Management/src/iconproducer.h deleted file mode 100644 index 1fe267cdd1..0000000000 --- a/LibLXQT/ARM Power Management/src/iconproducer.h +++ /dev/null @@ -1,53 +0,0 @@ -/* -* Copyright (c) 2014 Christian Surlykke -* -* This file is part of the LXQt project. -* It is distributed under the LGPL 2.1 or later license. -* Please refer to the LICENSE file for a copy of the license. -*/ - -#ifndef ICONPRODUCER_H -#define ICONPRODUCER_H -#include -#include -#include -#include "../config/powermanagementsettings.h" -#include - -class IconProducer : public QObject -{ - Q_OBJECT - -public: - IconProducer(Solid::Battery* battery, QObject *parent = nullptr); - IconProducer(QObject *parent = nullptr); - - QIcon mIcon; - QString mIconName; - -signals: - void iconChanged(); - -public slots: - void updateChargePercent(int newChargePercent); - void updateState(int newState); - void update(); - void themeChanged(); - -private: - - QIcon &circleIcon(); - QIcon buildCircleIcon(Solid::Battery::ChargeState state, int chargeLevel); - - - int mChargePercent; - Solid::Battery::ChargeState mState; - - PowerManagementSettings mSettings; - - QMap mLevelNameMapCharging; - QMap mLevelNameMapDischarging; - -}; - -#endif // ICONPRODUCER_H diff --git a/LibLXQT/ARM Power Management/src/idlenesswatcher.cpp b/LibLXQT/ARM Power Management/src/idlenesswatcher.cpp deleted file mode 100644 index 5ff2ad136f..0000000000 --- a/LibLXQT/ARM Power Management/src/idlenesswatcher.cpp +++ /dev/null @@ -1,212 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2013 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "idlenesswatcher.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -IdlenessWatcher::IdlenessWatcher(QObject* parent): - Watcher(parent) -{ - qDebug() << "Starting idlenesswatcher"; - - mIdleACWatcher = mIdleBatteryWatcher = mIdleBacklightWatcher = mBacklightActualValue = -1; - mBacklight = nullptr; - mDischarging = false; - - connect(KIdleTime::instance(), - static_cast(&KIdleTime::timeoutReached), - this, - &IdlenessWatcher::timeoutReached); - - // Init backlight control - connect(KIdleTime::instance(), - &KIdleTime::resumingFromIdle, - this, - &IdlenessWatcher::resumingFromIdle); - const QList devices = Solid::Device::listFromType(Solid::DeviceInterface::Battery, QString()); - - for (Solid::Device device : devices) - { - Solid::Battery *battery = device.as(); - if (battery->type() == Solid::Battery::PrimaryBattery) { - connect(battery, &Solid::Battery::chargeStateChanged, this, &IdlenessWatcher::onBatteryChanged); - mDischarging |= battery->chargeState() == Solid::Battery::ChargeState::Discharging; - } - } - - connect(&mPSettings, &LXQt::Settings::settingsChanged, this, &IdlenessWatcher::onSettingsChanged); - - setup(); -} - -IdlenessWatcher::~IdlenessWatcher() -{ - KIdleTime::instance()->removeAllIdleTimeouts(); -} - -void IdlenessWatcher::setup() -{ - if(mPSettings.isIdlenessWatcherEnabled()) { - QTime ACtime = mPSettings.getIdlenessACTime(); - int ACmsecs = (ACtime.second() + ACtime.minute() * 60) * 1000; - mIdleACWatcher = KIdleTime::instance()->addIdleTimeout(ACmsecs); - - QTime BATtime = mPSettings.getIdlenessBatteryTime(); - int BATmsecs = (BATtime.second() + BATtime.minute() * 60) * 1000; - // to get sure times are NOT the same ones... - if (BATmsecs == ACmsecs) { - BATmsecs -= 10; // just 10 msecs less... ;) - } - mIdleBatteryWatcher = KIdleTime::instance()->addIdleTimeout(BATmsecs); - - // Enable backlight control: - if(mPSettings.isIdlenessBacklightWatcherEnabled() && - ( - !mPSettings.isIdlenessBacklightOnBatteryDischargingEnabled() - || - ( - mPSettings.isIdlenessBacklightOnBatteryDischargingEnabled() - && - mDischarging - ) - ) - ) { - QTime time = mPSettings.getIdlenessBacklightTime(); - int milliseconds = (time.second() + time.minute() * 60) * 1000; - if(milliseconds < 1000) - milliseconds = 1000; - mIdleBacklightWatcher = KIdleTime::instance()->addIdleTimeout(milliseconds); - } - } -} - -void IdlenessWatcher::timeoutReached(int identifier,int /*msec*/) -{ - if (mPSettings.isIdlenessWatcherPaused()) { - QTimer::singleShot(0, this, [] { - KIdleTime::instance()->simulateUserActivity(); - }); - return; - } - - // check if disable Idleness when fullscreen is enabled - if (mPSettings.isDisableIdlenessWhenFullscreenEnabled()) { - WId w = KWindowSystem::activeWindow(); - KWindowInfo info(w, NET::WMState); - if (info.hasState(NET::FullScreen)) { - QTimer::singleShot(0, this, [] { - KIdleTime::instance()->simulateUserActivity(); - }); - return; - } - } - - if(identifier == mIdleACWatcher) { - if (mDischarging) { - return; - } - doAction(mPSettings.getIdlenessACAction()); - return; - } - - if(identifier == mIdleBatteryWatcher) { - if (!mDischarging) { - return; - } - doAction(mPSettings.getIdlenessBatteryAction()); - return; - } - - if(identifier == mIdleBacklightWatcher && mBacklightActualValue < 0) { - if(mBacklight == nullptr) { - mBacklight = new LXQt::Backlight(); - connect(mBacklight, &QObject::destroyed, this, [this](QObject *) {mBacklight = nullptr;} ); - } - - //LXQt::Notification::notify(QStringLiteral("IdlenessWatcher::timeoutReached"), - // mBacklight->isBacklightAvailable() ? - // QStringLiteral("").setNum(mBacklightActualValue):QStringLiteral("Error!!")); - - mBacklightActualValue = mBacklight->getBacklight(); - if(mBacklight->isBacklightAvailable() && !mBacklight->isBacklightOff()) - mBacklight->setBacklight((float)mBacklightActualValue * (float)(mPSettings.getBacklight())/100.0f); - - KIdleTime::instance()->removeIdleTimeout(mIdleBacklightWatcher); - KIdleTime::instance()->catchNextResumeEvent(); - - mBacklight->deleteLater(); - } -} - -void IdlenessWatcher::resumingFromIdle() -{ - if(mBacklightActualValue > -1) { - if(mPSettings.isIdlenessBacklightWatcherEnabled()) { - if(mBacklight == nullptr) { - mBacklight = new LXQt::Backlight(); - connect(mBacklight, &QObject::destroyed, this, [this](QObject *) {mBacklight = nullptr;} ); - } - - if(mBacklight->isBacklightAvailable() && !mBacklight->isBacklightOff()) - mBacklight->setBacklight(mBacklightActualValue); - mBacklightActualValue = -1; - onSettingsChanged(); - - mBacklight->deleteLater(); - } - } -} - -void IdlenessWatcher::onBatteryChanged(int, const QString &) -{ - const QList devices = Solid::Device::listFromType(Solid::DeviceInterface::Battery, QString()); - - mDischarging = false; - - for (Solid::Device device : devices) { - Solid::Battery *battery = device.as(); - if (battery->type() == Solid::Battery::PrimaryBattery) { - mDischarging |= battery->chargeState() == Solid::Battery::ChargeState::Discharging; - } - } - - onSettingsChanged(); -} - -void IdlenessWatcher::onSettingsChanged() -{ - KIdleTime::instance()->removeAllIdleTimeouts(); - mIdleACWatcher = mIdleBatteryWatcher = mIdleBacklightWatcher = -1; - setup(); -} diff --git a/LibLXQT/ARM Power Management/src/idlenesswatcher.h b/LibLXQT/ARM Power Management/src/idlenesswatcher.h deleted file mode 100644 index af0b585fe0..0000000000 --- a/LibLXQT/ARM Power Management/src/idlenesswatcher.h +++ /dev/null @@ -1,57 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2013 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef IDLENESSWATCHER_H -#define IDLENESSWATCHER_H - -#include -#include "../config/powermanagementsettings.h" -#include "watcher.h" - -class IdlenessWatcher : public Watcher -{ - Q_OBJECT - -public: - explicit IdlenessWatcher(QObject* parent = nullptr); - ~IdlenessWatcher() override; - -private Q_SLOTS: - void setup(); - void timeoutReached(int identifier,int msec); - void resumingFromIdle(); - void onBatteryChanged(int newState, const QString &udi = QString()); - void onSettingsChanged(); - -private: - PowerManagementSettings mPSettings; - int mIdleACWatcher; - int mIdleBatteryWatcher; - int mIdleBacklightWatcher; - LXQt::Backlight *mBacklight; - int mBacklightActualValue; - bool mDischarging; -}; - -#endif // IDLENESSWATCHER_H diff --git a/LibLXQT/ARM Power Management/src/lid.cpp b/LibLXQT/ARM Power Management/src/lid.cpp deleted file mode 100644 index 7ca180208e..0000000000 --- a/LibLXQT/ARM Power Management/src/lid.cpp +++ /dev/null @@ -1,78 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2011 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include -#include -#include - -#include "lid.h" - -#include - -Lid::Lid() -{ - mUPowerInterface = new QDBusInterface(QL1S("org.freedesktop.UPower"), - QL1S("/org/freedesktop/UPower"), - QL1S("org.freedesktop.UPower"), - QDBusConnection::systemBus(), this); - - mUPowerPropertiesInterface = new QDBusInterface(QL1S("org.freedesktop.UPower"), - QL1S("/org/freedesktop/UPower"), - QL1S("org.freedesktop.DBus.Properties"), - QDBusConnection::systemBus(), this); - - if (!QDBusConnection::systemBus().connect(QL1S("org.freedesktop.UPower"), - QL1S("/org/freedesktop/UPower"), - QL1S("org.freedesktop.DBus.Properties"), - QL1S("PropertiesChanged"), - this, - SLOT(uPowerChange()))) - qDebug() << "Could not connect to org.freedesktop.DBus.Properties.PropertiesChanged()"; - - mIsClosed = mUPowerPropertiesInterface->property("LidIsClosed").toBool(); -} - -bool Lid::haveLid() -{ - return mUPowerInterface->property("LidIsPresent").toBool(); -} - -bool Lid::onBattery() -{ - return mUPowerInterface->property("OnBattery").toBool(); -} - -void Lid::uPowerChange() -{ - bool newIsClosed = mUPowerInterface->property("LidIsClosed").toBool(); - if (newIsClosed != mIsClosed) - { - mIsClosed = newIsClosed; - emit changed(mIsClosed); - } -} diff --git a/LibLXQT/ARM Power Management/src/lid.h b/LibLXQT/ARM Power Management/src/lid.h deleted file mode 100644 index 0d15558340..0000000000 --- a/LibLXQT/ARM Power Management/src/lid.h +++ /dev/null @@ -1,54 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2011 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#ifndef LID_H -#define LID_H - -#include - -class Lid : public QObject -{ - Q_OBJECT - -signals: - void changed(bool closed); - -public: - Lid(); - bool haveLid(); - bool onBattery(); - bool isClosed() { return mIsClosed; } - -private: - bool mIsClosed; - QDBusInterface *mUPowerInterface; - QDBusInterface *mUPowerPropertiesInterface; - -private slots: - void uPowerChange(); -}; - -#endif // LID_H diff --git a/LibLXQT/ARM Power Management/src/lidwatcher.cpp b/LibLXQT/ARM Power Management/src/lidwatcher.cpp deleted file mode 100644 index 0cfbf43d40..0000000000 --- a/LibLXQT/ARM Power Management/src/lidwatcher.cpp +++ /dev/null @@ -1,129 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include -#include -#include -#include -#include - -#include "lidwatcher.h" -#include "../config/powermanagementsettings.h" - -#include - -LidWatcher::LidWatcher(QObject *parent) : Watcher(parent) -{ - inhibitSystemdLogin(); - connect(&mLid, &Lid::changed, this, &LidWatcher::lidChanged); -} - -LidWatcher::~LidWatcher(){ -} - -void LidWatcher::lidChanged(bool closed) -{ - if (closed) - { - doAction(action()); - } -} - -int LidWatcher::action() -{ - if (mSettings.isEnableExtMonLidClosedActions() && externalMonitorPlugged()) - { - if (mLid.onBattery()) - { - return mSettings.getLidClosedExtMonAction(); - } - else - { - return mSettings.getLidClosedExtMonAcAction(); - } - } - else - { - if (mLid.onBattery()) - { - return mSettings.getLidClosedAction(); - } - else - { - return mSettings.getLidClosedAcAction(); - } - } -} - -bool LidWatcher::externalMonitorPlugged() -{ - int monitorCount = 0; - - QProcess xrandr(this); - xrandr.start(QSL("xrandr"), QStringList(), QIODevice::ReadOnly); - xrandr.waitForFinished(1000); - - if (xrandr.exitCode() != 0) - { - return false; // Well, what to do? - } - - QTextStream xrandr_stdout(&xrandr); - while (!xrandr_stdout.atEnd()) - { - QString line = xrandr_stdout.readLine(); - qDebug() << ">>" << line; - if (line.indexOf(QL1S(" connected"), 0) > -1) - { - monitorCount++; - } - } - - qDebug() << "monitorCount: " << monitorCount; - - return monitorCount >= 2; -} - -void LidWatcher::inhibitSystemdLogin() -{ - QDBusInterface manager(QSL("org.freedesktop.login1"), - QSL("/org/freedesktop/login1"), - QSL("org.freedesktop.login1.Manager"), - QDBusConnection::systemBus(), this); - QDBusReply reply = manager.call(QSL("Inhibit"), QSL("handle-lid-switch"), QSL("lxqt-powermanagment"), QSL("LidWatcher is in da house!"), QSL("block")); - if (reply.isValid()) - { - logindLock = reply.value(); - qDebug() << "Inhibit got:" << logindLock.fileDescriptor(); - } - else - { - qDebug() << "Error from inhibit:" << reply.error(); - } -} - diff --git a/LibLXQT/ARM Power Management/src/lidwatcher.h b/LibLXQT/ARM Power Management/src/lidwatcher.h deleted file mode 100644 index 04431dbacb..0000000000 --- a/LibLXQT/ARM Power Management/src/lidwatcher.h +++ /dev/null @@ -1,61 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ -#ifndef LIDWATCHER_H -#define LIDWATCHER_H - -#include -#include -#include - -#include - -#include "../config/powermanagementsettings.h" -#include "watcher.h" -#include "lid.h" - -class LidWatcher : public Watcher -{ - Q_OBJECT -public: - explicit LidWatcher(QObject *parent = nullptr); - ~LidWatcher() override; - -private slots: - void lidChanged(bool closed); - -private: - int action(); - bool externalMonitorPlugged(); - void inhibitSystemdLogin(); - - Lid mLid; - LXQt::Power mLXQtPower; - PowerManagementSettings mSettings; - QDBusUnixFileDescriptor logindLock; -}; - -#endif // LIDWATCHER_H diff --git a/LibLXQT/ARM Power Management/src/main.cpp b/LibLXQT/ARM Power Management/src/main.cpp deleted file mode 100644 index 493bf8bc20..0000000000 --- a/LibLXQT/ARM Power Management/src/main.cpp +++ /dev/null @@ -1,63 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include -#include - -#include - -#include "powermanagementd.h" - -int main(int argc, char *argv[]) -{ - - LXQt::Application a(argc, argv); - a.setQuitOnLastWindowClosed(false); - - QCommandLineParser parser; - parser.setApplicationDescription(QStringLiteral("LXQt Powermanagement Daemon")); - const QString VERINFO = QSL(LXQT_POWERMANAGEMENT_VERSION \ - "\nliblxqt " LXQT_VERSION \ - "\nQt " QT_VERSION_STR); - a.setApplicationVersion(VERINFO); - parser.addVersionOption(); - parser.addHelpOption(); - parser.process(a); - - // To ensure only one instance of lxqt-powermanagement is running we register as a DBus service and refuse to run - // if not able to do so. - // We do not register any object as we don't have any dbus-operations to expose. - if (! QDBusConnection::sessionBus().registerService(QSL("org.lxqt.lxqt-powermanagement"))) - { - qWarning() << "Unable to register 'org.lxqt.lxqt-powermanagement' service - is another instance of lxqt-powermanagement running?"; - return 1; - } - else - { - PowerManagementd powerManagementd; - return a.exec(); - } -} diff --git a/LibLXQT/ARM Power Management/src/powerbutton.cpp b/LibLXQT/ARM Power Management/src/powerbutton.cpp deleted file mode 100644 index 5862ba3fe6..0000000000 --- a/LibLXQT/ARM Power Management/src/powerbutton.cpp +++ /dev/null @@ -1,134 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2020 LXQt team - * Authors: - * Pedro L. Lucas - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include -#include -#include -#include - -#include "powerbutton.h" - -#include -#include -#include -#include -#include - -PowerButton::PowerButton(QObject *parent) : Watcher(parent) -{ - - QDBusInterface manager(QSL("org.freedesktop.login1"), - QSL("/org/freedesktop/login1"), - QSL("org.freedesktop.login1.Manager"), - QDBusConnection::systemBus(), this); - - - // QString powerKeyAction = mLogindInterface->property("HandlePowerKey").toString(); - //LXQt::Notification::notify(powerKeyAction, powerKeyAction); - - mFdPower = manager.call(QL1S("Inhibit"), QL1S("handle-power-key"), QL1S("lxqt-powermanager"), - QL1S("lxqt-powermanager controls power key"), QL1S("block")); - QDBusError error = manager.lastError(); - qDebug() << QStringLiteral("PowerButton") << error.name() << error.message() ; - - mFdSuspend = manager.call(QL1S("Inhibit"), QL1S("handle-suspend-key"), QL1S("lxqt-powermanager"), - QL1S("lxqt-powermanager controls suspend key"), QL1S("block")); - error = manager.lastError(); - qDebug() << QStringLiteral("SuspendButton") << error.name() << error.message() ; - - mFdHibernate = manager.call(QL1S("Inhibit"), QL1S("handle-hibernate-key"), QL1S("lxqt-powermanager"), - QL1S("lxqt-powermanager controls hibernate key"), QL1S("block")); - error = manager.lastError(); - qDebug() << QStringLiteral("HibenateButton") << error.name() << error.message() ; - - //LXQt::Notification::notify(QL1S("powermanager"), QStringLiteral("Fd %1").arg(mFd.value().fileDescriptor())); - - mKeyPowerButton = GlobalKeyShortcut::Client::instance()->addAction(QStringLiteral("XF86PowerOff"), - QStringLiteral("/powermanager/keypoweroff"), tr("Power off key action"), this); - - if (mKeyPowerButton) { - connect(mKeyPowerButton, &GlobalKeyShortcut::Action::activated, this, &PowerButton::handleShortcutPoweroff); - } - - mKeySuspendButton = GlobalKeyShortcut::Client::instance()->addAction(QStringLiteral("XF86Suspend"), - QStringLiteral("/powermanager/keysuspend"), tr("Suspend key action"), this); - - if (mKeySuspendButton) { - connect(mKeySuspendButton, &GlobalKeyShortcut::Action::activated, this, &PowerButton::handleShortcutSuspend); - } - - mKeyHibernateButton = GlobalKeyShortcut::Client::instance()->addAction(QStringLiteral("XF86Sleep"), - QStringLiteral("/powermanager/keyhibernate"), tr("Hibernate key action"), this); - - if (mKeyHibernateButton) { - connect(mKeyHibernateButton, &GlobalKeyShortcut::Action::activated, this, &PowerButton::handleShortcutHibernate); - } -} - - -PowerButton::~PowerButton() -{ - close(mFdPower.value().fileDescriptor()); - close(mFdSuspend.value().fileDescriptor()); - close(mFdHibernate.value().fileDescriptor()); -} - - -void PowerButton::handleShortcutPoweroff() -{ - qDebug() << "Power off"; - PowerManagementSettings mSettings; - runAction(mSettings.getPowerKeyAction()); -} - -void PowerButton::handleShortcutSuspend() -{ - qDebug() << "Suspend"; - PowerManagementSettings mSettings; - runAction(mSettings.getSuspendKeyAction()); -} - -void PowerButton::handleShortcutHibernate() -{ - qDebug() << "Hibernate"; - PowerManagementSettings mSettings; - runAction(mSettings.getHibernateKeyAction()); -} - -void PowerButton::runAction(int action) -{ - PowerManagementSettings mSettings; - if(action == LXQt::Power::PowerMonitorOff) { - QTimer::singleShot(1000, this, [this]() { - qDebug() << "LXQt::Power::PowerMonitorOff"; - doAction(LXQt::Power::PowerMonitorOff); - }); - } else { - doAction(mSettings.getPowerKeyAction()); - } -} diff --git a/LibLXQT/ARM Power Management/src/powerbutton.h b/LibLXQT/ARM Power Management/src/powerbutton.h deleted file mode 100644 index c41498c150..0000000000 --- a/LibLXQT/ARM Power Management/src/powerbutton.h +++ /dev/null @@ -1,67 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2020 LXQt team - * Authors: - * Pedro L. Lucas - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef POWERBUTTON_H -#define POWERBUTTON_H - -#include -#include -#include -#include "../config/powermanagementsettings.h" -#include "watcher.h" - -namespace GlobalKeyShortcut -{ -class Action; -} - - -class PowerButton : public Watcher -{ - Q_OBJECT - -public: - PowerButton(QObject *parent); - ~PowerButton(); - -private Q_SLOTS: - void handleShortcutPoweroff(); - void handleShortcutSuspend(); - void handleShortcutHibernate(); - -private: - QDBusInterface *mLogindInterface; - QDBusInterface *mLogindPropertiesInterface; - QDBusReply mFdPower, mFdSuspend, mFdHibernate; - GlobalKeyShortcut::Action *mKeyPowerButton; - GlobalKeyShortcut::Action *mKeySuspendButton; - GlobalKeyShortcut::Action *mKeyHibernateButton; - - void runAction(int action); -}; - -#endif // LID_H diff --git a/LibLXQT/ARM Power Management/src/powermanagementd.cpp b/LibLXQT/ARM Power Management/src/powermanagementd.cpp deleted file mode 100644 index c318ca4daa..0000000000 --- a/LibLXQT/ARM Power Management/src/powermanagementd.cpp +++ /dev/null @@ -1,121 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include -#include - -#include "batteryhelper.h" -#include "powermanagementd.h" -#include "../config/powermanagementsettings.h" -#include "idlenesswatcher.h" -#include "lidwatcher.h" -#include "batterywatcher.h" -#include "powerbutton.h" - -#include - -#define CURRENT_RUNCHECK_LEVEL 1 - -PowerManagementd::PowerManagementd() : - mBatterywatcherd(nullptr), - mLidwatcherd(nullptr), - mIdlenesswatcherd(nullptr), - mSettings() - { - connect(&mSettings, &PowerManagementSettings::settingsChanged, this, &PowerManagementd::settingsChanged); - settingsChanged(); - - if (mSettings.getRunCheckLevel() < CURRENT_RUNCHECK_LEVEL) - { - performRunCheck(); - mSettings.setRunCheckLevel(CURRENT_RUNCHECK_LEVEL); - } - - mPowerButton = new PowerButton(this); -} - -PowerManagementd::~PowerManagementd() -{ -} - -void PowerManagementd::settingsChanged() -{ - if (mSettings.isBatteryWatcherEnabled() && !mBatterywatcherd) - mBatterywatcherd = new BatteryWatcher(this); - else if (mBatterywatcherd && ! mSettings.isBatteryWatcherEnabled()) - { - mBatterywatcherd->deleteLater(); - mBatterywatcherd = nullptr; - } - - if (mSettings.isLidWatcherEnabled() && !mLidwatcherd) - { - mLidwatcherd = new LidWatcher(this); - } - else if (mLidwatcherd && ! mSettings.isLidWatcherEnabled()) - { - mLidwatcherd->deleteLater(); - mLidwatcherd = nullptr; - } - - if (mSettings.isIdlenessWatcherEnabled() && !mIdlenesswatcherd) - { - mIdlenesswatcherd = new IdlenessWatcher(this); - } - else if (mIdlenesswatcherd && !mSettings.isIdlenessWatcherEnabled()) - { - mIdlenesswatcherd->deleteLater(); - mIdlenesswatcherd = nullptr; - } - -} - -void PowerManagementd::runConfigure() -{ - mNotification.close(); - QProcess::startDetached(QSL("lxqt-config-powermanagement"), QStringList()); -} - -void PowerManagementd::performRunCheck() -{ - mSettings.setLidWatcherEnabled(Lid().haveLid()); - bool hasBattery = false; - - const auto devices = Solid::Device::listFromType(Solid::DeviceInterface::Battery, QString()); - for (const Solid::Device& device : devices) - if (device.as()->type() == Solid::Battery::PrimaryBattery) - hasBattery = true; - mSettings.setBatteryWatcherEnabled(hasBattery); - mSettings.setIdlenessWatcherEnabled(true); - mSettings.sync(); - - mNotification.setSummary(tr("Power Management")); - mNotification.setBody(tr("You are running LXQt Power Management for the first time.\nYou can configure it from settings... ")); - mNotification.setActions(QStringList() << tr("Configure...")); - mNotification.setTimeout(10000); - connect(&mNotification, &LXQt::Notification::actionActivated, this, &PowerManagementd::runConfigure); - mNotification.update(); -} diff --git a/LibLXQT/ARM Power Management/src/powermanagementd.h b/LibLXQT/ARM Power Management/src/powermanagementd.h deleted file mode 100644 index 95450eb302..0000000000 --- a/LibLXQT/ARM Power Management/src/powermanagementd.h +++ /dev/null @@ -1,46 +0,0 @@ -/* -* Copyright (c) 2014 Christian Surlykke -* -* This file is part of the LXQt project. -* It is distributed under the LGPL 2.1 or later license. -* Please refer to the LICENSE file for a copy of the license. -*/ - -#ifndef POWERMANAGEMENTD_H -#define POWERMANAGEMENTD_H - -#include - -#include "../config/powermanagementsettings.h" - -class BatteryWatcher; -class LidWatcher; -class IdlenessWatcher; -class PowerButton; - -class PowerManagementd : public QObject -{ - Q_OBJECT - -public: - PowerManagementd(); - ~PowerManagementd() override; - -private slots: - void settingsChanged(); - void runConfigure(); - -private: - void performRunCheck(); - - BatteryWatcher* mBatterywatcherd; - LidWatcher* mLidwatcherd; - IdlenessWatcher* mIdlenesswatcherd; - PowerButton *mPowerButton; - - PowerManagementSettings mSettings; - LXQt::Notification mNotification; -}; - -#endif /* POWERMANAGEMENTD_H */ - diff --git a/LibLXQT/ARM Power Management/src/translations/CMakeLists.txt b/LibLXQT/ARM Power Management/src/translations/CMakeLists.txt deleted file mode 100644 index 15f6674f96..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -project(lxqt-powermanagement) - -build_component("." "") diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement.ts deleted file mode 100644 index e3f4e8e89f..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement.ts +++ /dev/null @@ -1,328 +0,0 @@ - - - - - BatteryHelper - - - Empty - - - - - Discharging - - - - - Fully charged - - - - - Charging - - - - - Lithium ion - - - - - Lithium polymer - - - - - Lithium iron phosphate - - - - - Lead acid - - - - - Nickel cadmium - - - - - Nickel metal hydride - - - - - Unknown - - - - - Personal Digital Assistant's battery - - - - - Uninterruptible Power Supply's battery - - - - - Primary battery - - - - - Mouse battery - - - - - Keyboard battery - - - - - Keyboard and mouse's battery - - - - - Camera battery - - - - - Phone battery - - - - - Monitor battery - - - - - Unknown battery - - - - - BatteryInfoDialog - - - Dialog - - - - - Battery Info - - - - - BatteryInfoFrame - - - Power Management - - - - - Temperature: - - - - - Type: - - - - - State: - - - - - Energy Full Design: - - - - - Energy Full: - - - - - Energy Now: - - - - - Energy rate: - - - - - Technology: - - - - - Voltage: - - - - - Vendor: - - - - - BatteryWatcher - - - No battery! - - - - - LXQt could not find data about any battery - monitoring disabled - - - - - Power low! - - - - - Suspending in %n second(s) - - - - - - - Hibernating in %n second(s) - - - - - - - Shutting down in %n second(s) - - - - - - - PowerButton - - - Power off key action - - - - - Suspend key action - - - - - Hibernate key action - - - - - PowerManagementd - - - Power Management - - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - - - - - Configure... - - - - - TrayIcon - - - Configure - - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - - - - - Disable icon - - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - - - - - LXQt Power Management info - - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - - - - - Configure now - - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ar.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ar.ts deleted file mode 100644 index 5af866f1f2..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ar.ts +++ /dev/null @@ -1,345 +0,0 @@ - - - - - BatteryHelper - - - Empty - فارغة - - - - Discharging - تُفرّغ الشحن - - - - Fully charged - مشحونة بالكامل - - - - Charging - تشحن - - - - Lithium ion - ليثيوم أيون - - - - Lithium polymer - ليثيوم بوليمر - - - - Lithium iron phosphate - ليثيوم فوسفات الحديد - - - - Lead acid - حمض الرصاص - - - - Nickel cadmium - نيكل كادميوم - - - - Nickel metal hydride - هيدريد نيكل معدني - - - - Unknown - مجهولة - - - - Personal Digital Assistant's battery - بطارية المساعد الرقمي الشخصي - - - - Uninterruptible Power Supply's battery - تحتاج تنقيح؟ - بطارية للتزويد بطاقة لامنقطعة - - - - Primary battery - بطارية أساسية - - - - Mouse battery - بطارية الفأرة - - - - Keyboard battery - بطارية لوحة المفاتيح - - - - Keyboard and mouse's battery - بطارية الفأرة ولوحة المفاتيح - - - - Camera battery - بطارية الكمرة - - - - Phone battery - بطارية الهاتف - - - - Monitor battery - بطارية الشاشة - - - - Unknown battery - بطارية مجهولة - - - - BatteryInfoDialog - - - Dialog - حواريّ - - - - Battery Info - معلومات البطارية - - - - BatteryInfoFrame - - - Power Management - إدارة الطاقة - - - - Temperature: - درجة الحرارة: - - - - Type: - النوع: - - - - State: - الحالة: - - - - Energy Full Design: - التصميم للشحن الكامل: - - - - Energy Full: - الشحن الكامل: - - - - Energy Now: - الشحن الآن: - - - - Energy rate: - معدّل الشحن: - - - - Technology: - التقنية: - - - - Voltage: - الفولتية: - - - - Vendor: - البائع: - - - - BatteryWatcher - - - No battery! - لا بطارية! - - - - LXQt could not find data about any battery - monitoring disabled - تعذر على لكسكيوت العثور على أي بطارية - عُطّلت المراقبة - - - - Power low! - البطارية ضعيفة! - - - - Suspending in %n second(s) - - سيُعلّق الحاسوب بعد %n ثوان - - - - - - - - - - Hibernating in %n second(s) - - سيُسبت الحاسوب بعد %n ثوان - - - - - - - - - - Shutting down in %n second(s) - - سيُطفأ الحاسوب بعد %n ثوان - - - - - - - - - - PowerButton - - - Power off key action - - - - - Suspend key action - - - - - Hibernate key action - - - - - PowerManagementd - - - Power Management - إدارة الطاقة - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - أنت تشغّل إدارة لكسكيوت للطاقة للمرة الأولى. -يمكنك ضبطها من الإعدادات… - - - - Configure... - اضبط… - - - - TrayIcon - - - Configure - اضبط - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - عن - - - - Disable icon - عطّل الأيقونة - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>إدارة لكسكيوت للطاقة</b><br/> - إدارة طاقة لبيئة سطح مكتب لكسكيوت</p><p> المؤلفون:<br/> &nbsp; Christian Surlykke و Alec Moskvin<br/> &nbsp; - وآخرين من مشروعي ريزر ولكسكيوت</p><p> الحقوق محفوظة &copy; ٢٠١٢-٢٠١٤</p> - - - - LXQt Power Management info - معلومات لكسكيوت لإدارة الطاقة - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - يمكن تفعيل/إعادة تفعيل أيقونة صينية النظام لإدارة لكسكيوت للطاقة من <i>lxqt-config-powermanagement</i> - - - - Configure now - اضبط الآن - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_arn.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_arn.ts deleted file mode 100644 index 56236147d1..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_arn.ts +++ /dev/null @@ -1,328 +0,0 @@ - - - - - BatteryHelper - - - Empty - - - - - Discharging - - - - - Fully charged - - - - - Charging - - - - - Lithium ion - - - - - Lithium polymer - - - - - Lithium iron phosphate - - - - - Lead acid - - - - - Nickel cadmium - - - - - Nickel metal hydride - - - - - Unknown - - - - - Personal Digital Assistant's battery - - - - - Uninterruptible Power Supply's battery - - - - - Primary battery - - - - - Mouse battery - - - - - Keyboard battery - - - - - Keyboard and mouse's battery - - - - - Camera battery - - - - - Phone battery - - - - - Monitor battery - - - - - Unknown battery - - - - - BatteryInfoDialog - - - Dialog - - - - - Battery Info - - - - - BatteryInfoFrame - - - Power Management - - - - - Temperature: - - - - - Type: - - - - - State: - - - - - Energy Full Design: - - - - - Energy Full: - - - - - Energy Now: - - - - - Energy rate: - - - - - Technology: - - - - - Voltage: - - - - - Vendor: - - - - - BatteryWatcher - - - No battery! - - - - - LXQt could not find data about any battery - monitoring disabled - - - - - Power low! - - - - - Suspending in %n second(s) - - - - - - - Hibernating in %n second(s) - - - - - - - Shutting down in %n second(s) - - - - - - - PowerButton - - - Power off key action - - - - - Suspend key action - - - - - Hibernate key action - - - - - PowerManagementd - - - Power Management - - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - - - - - Configure... - - - - - TrayIcon - - - Configure - - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - - - - - Disable icon - - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - - - - - LXQt Power Management info - - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - - - - - Configure now - - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ast.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ast.ts deleted file mode 100644 index fb008e463d..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ast.ts +++ /dev/null @@ -1,328 +0,0 @@ - - - - - BatteryHelper - - - Empty - - - - - Discharging - - - - - Fully charged - - - - - Charging - - - - - Lithium ion - - - - - Lithium polymer - - - - - Lithium iron phosphate - - - - - Lead acid - - - - - Nickel cadmium - - - - - Nickel metal hydride - - - - - Unknown - - - - - Personal Digital Assistant's battery - - - - - Uninterruptible Power Supply's battery - - - - - Primary battery - - - - - Mouse battery - - - - - Keyboard battery - - - - - Keyboard and mouse's battery - - - - - Camera battery - - - - - Phone battery - - - - - Monitor battery - - - - - Unknown battery - - - - - BatteryInfoDialog - - - Dialog - - - - - Battery Info - - - - - BatteryInfoFrame - - - Power Management - - - - - Temperature: - - - - - Type: - - - - - State: - - - - - Energy Full Design: - - - - - Energy Full: - - - - - Energy Now: - - - - - Energy rate: - - - - - Technology: - - - - - Voltage: - - - - - Vendor: - - - - - BatteryWatcher - - - No battery! - - - - - LXQt could not find data about any battery - monitoring disabled - - - - - Power low! - - - - - Suspending in %n second(s) - - - - - - - Hibernating in %n second(s) - - - - - - - Shutting down in %n second(s) - - - - - - - PowerButton - - - Power off key action - - - - - Suspend key action - - - - - Hibernate key action - - - - - PowerManagementd - - - Power Management - - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - - - - - Configure... - - - - - TrayIcon - - - Configure - - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - - - - - Disable icon - - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - - - - - LXQt Power Management info - - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - - - - - Configure now - - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_bg.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_bg.ts deleted file mode 100644 index f7cb1598e2..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_bg.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Празна - - - - Discharging - Разреждане - - - - Fully charged - Напълно заредена - - - - Charging - Зареждане - - - - Lithium ion - Литиевойонна - - - - Lithium polymer - Литиевополимерна - - - - Lithium iron phosphate - Литиевойонна фосфатна - - - - Lead acid - Оловнокисела - - - - Nickel cadmium - Никел-кадмиева - - - - Nickel metal hydride - Никел-металхидридна - - - - Unknown - Неизвестна - - - - Personal Digital Assistant's battery - Батерия на PDA - - - - Uninterruptible Power Supply's battery - Батерия на UPS - - - - Primary battery - Основна батерия - - - - Mouse battery - Батерия на мишка - - - - Keyboard battery - Батерия на клавиатура - - - - Keyboard and mouse's battery - Батерия на клавиатура и мишка - - - - Camera battery - Батерия на камера - - - - Phone battery - Батерия на телефон - - - - Monitor battery - Батерия на монитора - - - - Unknown battery - Батерия неизвестна - - - - BatteryInfoDialog - - - Dialog - Диалог - - - - Battery Info - Информация за батерия - - - - BatteryInfoFrame - - - Power Management - Управление на захранването - - - - Temperature: - Температура: - - - - Type: - Тип: - - - - State: - Състояние: - - - - Energy Full Design: - Енергиен дизайн: - - - - Energy Full: - Енергия при пълно зареждане: - - - - Energy Now: - Енергия в момента: - - - - Energy rate: - Енергийна норма: - - - - Technology: - Технология: - - - - Voltage: - Волтаж: - - - - Vendor: - Vendor: - - - - BatteryWatcher - - - No battery! - Няма батерия! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt не може да намери данни за батерия - мониторирането е деактивирано - - - - Power low! - Ниско ниво на батерията! - - - - Suspending in %n second(s) - - Приспиване след %n s - Приспиване след %n s - - - - - Hibernating in %n second(s) - - Хибернация след %n s - Хибернация след %n s - - - - - Shutting down in %n second(s) - - Изключване след %n s - Изключване след %n s - - - - - PowerButton - - - Power off key action - Клавишна комбинация за изключване - - - - Suspend key action - Клавишна комбинация за приспиване - - - - Hibernate key action - Клавишна комбинация за хибернация - - - - PowerManagementd - - - Power Management - Управление на захранването - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Изпълнявате Управление на захранването за първи път. -Можете да го конфигурирате от настройките ... - - - - Configure... - Конфигуриране... - - - - TrayIcon - - - Configure - Конфигуриране - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - Относно - - - - Disable icon - Деактивиране на икона - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt Управление на захранването</b><br/> - Управление на захранването на LXQt работна среда</p><p> Автори:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - и други от Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - Управление на захранването Инфо - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Иконата за зоната на системния обмен може да бъде активирана в<i>Настройки->LXQt->Управление на захранването</i> - - - - Configure now - Конфигурирай сега - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ca.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ca.ts deleted file mode 100644 index 1e9946356b..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ca.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Buida - - - - Discharging - S'està descarregant - - - - Fully charged - Completament carregada - - - - Charging - S'està carregant - - - - Lithium ion - Ió liti - - - - Lithium polymer - Ió liti en polímer - - - - Lithium iron phosphate - Fosfat de ferro i liti - - - - Lead acid - Plom i àcid - - - - Nickel cadmium - Níquel i cadmi - - - - Nickel metal hydride - Hidrur metàl·lic de níquel - - - - Unknown - Desconeguda - - - - Personal Digital Assistant's battery - Bateria d'ordinador de butxaca - - - - Uninterruptible Power Supply's battery - Bateria de sistema d'alimentació ininterrompuda - - - - Primary battery - Bateria primària - - - - Mouse battery - Bateria de ratolí - - - - Keyboard battery - Bateria de teclat - - - - Keyboard and mouse's battery - Bateria de teclat i ratolí - - - - Camera battery - Bateria de càmera - - - - Phone battery - Bateria de telèfon - - - - Monitor battery - Bateria de monitor - - - - Unknown battery - Bateria desconeguda - - - - BatteryInfoDialog - - - Dialog - Diàleg - - - - Battery Info - Informació de la bateria - - - - BatteryInfoFrame - - - Power Management - Gestió de l'energia - - - - Temperature: - Temperatura: - - - - Type: - Tipus: - - - - State: - Estat: - - - - Energy Full Design: - Energia disseny-producció: - - - - Energy Full: - Energia plena: - - - - Energy Now: - Energia ara: - - - - Energy rate: - Cadència d'energia: - - - - Technology: - Tecnologia: - - - - Voltage: - Voltatge: - - - - Vendor: - Fabricant: - - - - BatteryWatcher - - - No battery! - Sense bateria! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt no ha pogut trobar les dades de cap bateria - s'ha inhabilitat el monitoratge - - - - Power low! - Energia baixa! - - - - Suspending in %n second(s) - - Se suspèn d'aquí a %n segon - Se suspèn d'aquí a %n segons - - - - - Hibernating in %n second(s) - - S'hiberna d'aquí a %n segon - S'hiberna d'aquí a %n segons - - - - - Shutting down in %n second(s) - - S'apaga d'aquí a %n segon - S'apaga d'aquí a %n segons - - - - - PowerButton - - - Power off key action - - - - - Suspend key action - - - - - Hibernate key action - - - - - PowerManagementd - - - Power Management - Gestió de l'energia - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Esteu executant per primera vegada la gestió de l'energia de LXQt. -Podeu configurar-ho des dels ajusts... - - - - Configure... - Configura... - - - - TrayIcon - - - Configure - Configura - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - Quant a - - - - Disable icon - Inhabilita la icona - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Gestió de l'energia de LXQt</b><br/> - Gestió de l'energia per a l'entorn d'escriptori LXQt</p><p> Autors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - i altres des dels projectes Razor i LXQt</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - Informació de la gestió de l'energia de LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - La icona de la safata de la gestió de l'energia de LXQt pot ser (re)habilitada a <i>lxqt-config-powermanagement</i> - - - - Configure now - Configura ara - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_cs.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_cs.ts deleted file mode 100644 index 38936e5dcd..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_cs.ts +++ /dev/null @@ -1,335 +0,0 @@ - - - - - BatteryHelper - - - Empty - Téměř vybito - - - - Discharging - Vybíjí se - - - - Fully charged - Plně nabito - - - - Charging - Nabíjí se - - - - Lithium ion - Lithium ion - - - - Lithium polymer - Lithium polymer - - - - Lithium iron phosphate - Lithium železo fosfát - - - - Lead acid - Olověný - - - - Nickel cadmium - Nikl kadmium - - - - Nickel metal hydride - Nikl metal hybrid - - - - Unknown - Neznámá - - - - Personal Digital Assistant's battery - Akumulátor/baterie osobního digitálního asistenta (PDA) - - - - Uninterruptible Power Supply's battery - Akumulátor zdroje nepřerušovaného napájení (UPS) - - - - Primary battery - Hlavní akumulátor - - - - Mouse battery - Baterie/akumulátor myši - - - - Keyboard battery - Baterie/akumulátor klávesnice - - - - Keyboard and mouse's battery - Baterie/akumulátor klávesnice a myši - - - - Camera battery - Akumulátor fotoaparátu/kamery - - - - Phone battery - Akumulátor telefonu - - - - Monitor battery - Monitorovat akumulátor - - - - Unknown battery - Neznámý akumulátor - - - - BatteryInfoDialog - - - Dialog - Dialog - - - - Battery Info - Informace o akumulátoru - - - - BatteryInfoFrame - - - Power Management - Správa napájení - - - - Temperature: - Teplota: - - - - Type: - Typ: - - - - State: - Stav: - - - - Energy Full Design: - Kapacita z výroby: - - - - Energy Full: - Stávající kapacita: - - - - Energy Now: - Stávající nabití: - - - - Energy rate: - Intenzita vybíjení: - - - - Technology: - Technologie: - - - - Voltage: - Napětí: - - - - Vendor: - Výrobce: - - - - BatteryWatcher - - - No battery! - Žádný akumulátor! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt se nepodařilo najít údaje o žádném akumulátoru/baterii – sledování proto vypnuto - - - - Power low! - Téměř vybito! - - - - Suspending in %n second(s) - - Uspání do paměti za %n sekundu - Uspání do paměti za %n sekundy - Uspání do paměti za %n sekund - - - - - Hibernating in %n second(s) - - Uspání na disk za %n sekundu - Uspání na disk za %n sekundy - Uspání na disk za %n sekund - - - - - Shutting down in %n second(s) - - Vypnutí za %n sekundu - Vypnutí za %n sekundy - Vypnutí za %n sekund - - - - - PowerButton - - - Power off key action - Akce klávesy napájení - - - - Suspend key action - Akce klávesy pro uspání - - - - Hibernate key action - Akce klávesy pro uspání na disk - - - - PowerManagementd - - - Power Management - Správa napájení - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - LXQt správa napájení je spuštěna poprvé. -Parametry je možné upravit v Nastavení… - - - - Configure... - Nastavit… - - - - TrayIcon - - - Configure - Nastavit - - - - 30 minutes - 30 minut - - - - 1 hour - 1 hodina - - - - 2 hours - 2 hodiny - - - - 3 hours - 3 hodiny - - - - 4 hours - 4 hodiny - - - - Pause idleness checks - Pozastavit kontroly nečinnosti - - - - - About - O aplikaci - - - - Disable icon - Nezobrazovat ikonu - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Správa napájení</b><br/> – správa napájení pro pracovní prostředí LXQt</p><p> Autoři:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; – a další z projektů Razor a LXQt</p><p> Autorské právo &copy; 2012-2014</p> - - - - LXQt Power Management info - Informace z LXQt správy napájení - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Zobrazování ikony správy napájení v systémovém panelu lze (znovu)zapnout v <i>lxqt-config-powermanagement</i> - - - - Configure now - Nastavit nyní - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_cy.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_cy.ts deleted file mode 100644 index 75001d3027..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_cy.ts +++ /dev/null @@ -1,340 +0,0 @@ - - - - - BatteryHelper - - - Empty - - - - - Discharging - - - - - Fully charged - - - - - Charging - - - - - Lithium ion - - - - - Lithium polymer - - - - - Lithium iron phosphate - - - - - Lead acid - - - - - Nickel cadmium - - - - - Nickel metal hydride - - - - - Unknown - - - - - Personal Digital Assistant's battery - - - - - Uninterruptible Power Supply's battery - - - - - Primary battery - - - - - Mouse battery - - - - - Keyboard battery - - - - - Keyboard and mouse's battery - - - - - Camera battery - - - - - Phone battery - - - - - Monitor battery - - - - - Unknown battery - - - - - BatteryInfoDialog - - - Dialog - - - - - Battery Info - - - - - BatteryInfoFrame - - - Power Management - - - - - Temperature: - - - - - Type: - - - - - State: - - - - - Energy Full Design: - - - - - Energy Full: - - - - - Energy Now: - - - - - Energy rate: - - - - - Technology: - - - - - Voltage: - - - - - Vendor: - - - - - BatteryWatcher - - - No battery! - - - - - LXQt could not find data about any battery - monitoring disabled - - - - - Power low! - - - - - Suspending in %n second(s) - - - - - - - - - - - Hibernating in %n second(s) - - - - - - - - - - - Shutting down in %n second(s) - - - - - - - - - - - PowerButton - - - Power off key action - - - - - Suspend key action - - - - - Hibernate key action - - - - - PowerManagementd - - - Power Management - - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - - - - - Configure... - - - - - TrayIcon - - - Configure - - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - - - - - Disable icon - - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - - - - - LXQt Power Management info - - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - - - - - Configure now - - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_da.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_da.ts deleted file mode 100644 index 4a3af0d0fb..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_da.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Tomt - - - - Discharging - Aflader - - - - Fully charged - Fuldt opladet - - - - Charging - Oplader - - - - Lithium ion - Litium ion - - - - Lithium polymer - Litium polymer - - - - Lithium iron phosphate - Litium jern fosfat - - - - Lead acid - Bly-syre - - - - Nickel cadmium - Nikkel cadmium - - - - Nickel metal hydride - Nikkel metal hydrid - - - - Unknown - Ukendt - - - - Personal Digital Assistant's battery - Batteri i håndholdt computer - - - - Uninterruptible Power Supply's battery - Batteri til uafbrudt strømforsygning - - - - Primary battery - Primært batteri - - - - Mouse battery - Bateri til mus - - - - Keyboard battery - Batteri til tastatur - - - - Keyboard and mouse's battery - Batteri til tastatur og mus - - - - Camera battery - Batteri til kamera - - - - Phone battery - Batteri til telefon - - - - Monitor battery - Batteri til skærm - - - - Unknown battery - Batteriet er ukendt - - - - BatteryInfoDialog - - - Dialog - Dialog - - - - Battery Info - Batteriinfo - - - - BatteryInfoFrame - - - Power Management - Strømstyring - - - - Temperature: - Temperatur: - - - - Type: - Type: - - - - State: - Tilstand: - - - - Energy Full Design: - Design ved fuld energi: - - - - Energy Full: - Fuld energi: - - - - Energy Now: - Nuværende energi: - - - - Energy rate: - Energirate: - - - - Technology: - Teknologi: - - - - Voltage: - Volt: - - - - Vendor: - Producent: - - - - BatteryWatcher - - - No battery! - Intet batteri! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt kunne ikke finde data på noget batteri - overvågning deaktiveret - - - - Power low! - Strøm lavt! - - - - Suspending in %n second(s) - - Går i hvile om %n sekund - Går i hvile om %n sekunder - - - - - Hibernating in %n second(s) - - Går i dvale om %n sekund - Går i dvale om %n sekunder - - - - - Shutting down in %n second(s) - - Lukker ned om %n sekund - Lukker ned om %n sekunder - - - - - PowerButton - - - Power off key action - Handling for sluktast - - - - Suspend key action - Handling for suspendertast - - - - Hibernate key action - Handling for dvaletast - - - - PowerManagementd - - - Power Management - Strømstyring - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Du kører LXQt-strømstyring for første gang. -Du kan konfigurere den fra indstillinger... - - - - Configure... - Konfigurér... - - - - TrayIcon - - - Configure - Konfigurér - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - Om - - - - Disable icon - Deaktivér ikon - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt-strømstyring</b><br/> - strømstyring til LXQt-skrivebordsmiljøet</p><p> Forfatter:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - og andre fra Razor- og LXQt-projekterne</p><p> Ophavsret &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt-strømstyringsinfo - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - LXQt-strømstyringens bakkeikon kan (gen)aktiveres i <i>lxqt-config-powermanagement</i> - - - - Configure now - Konfigurér nu - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_de.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_de.ts deleted file mode 100644 index a42a09f0a4..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_de.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Leer - - - - Discharging - Entladen - - - - Fully charged - Vollständig aufgeladen - - - - Charging - Aufladen - - - - Lithium ion - Lithium-Ionen - - - - Lithium polymer - Lithium-Polymer - - - - Lithium iron phosphate - Lithium-Eisenphosphat - - - - Lead acid - Blei - - - - Nickel cadmium - Nickel-Cadmium - - - - Nickel metal hydride - Nickel-Metallhydrid - - - - Unknown - Unbekannt - - - - Personal Digital Assistant's battery - Personal-Digital-Assistant-Batterie - - - - Uninterruptible Power Supply's battery - Unterbrechungsfreie-Stromversorgung-Batterie - - - - Primary battery - Primäre Batterie - - - - Mouse battery - Maus-Batterie - - - - Keyboard battery - Tastatur-Batterie - - - - Keyboard and mouse's battery - Tastatur-und-Maus-Batterie - - - - Camera battery - Kamera-Batterie - - - - Phone battery - Telefon-Batterie - - - - Monitor battery - Bildschirm-Batterie - - - - Unknown battery - Unbekannte Batterie - - - - BatteryInfoDialog - - - Dialog - Dialog - - - - Battery Info - Batterie-Info - - - - BatteryInfoFrame - - - Power Management - Energieverwaltung - - - - Temperature: - Temperatur: - - - - Type: - Typ: - - - - State: - Status: - - - - Energy Full Design: - Vorgabe-Ladung: - - - - Energy Full: - Maximale Ladung: - - - - Energy Now: - Aktuelle Ladung: - - - - Energy rate: - Ladungsrate: - - - - Technology: - Technologie: - - - - Voltage: - Spannung: - - - - Vendor: - Hersteller: - - - - BatteryWatcher - - - No battery! - Keine Batterie! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt konnte keine Daten über eine Batterie finden - Überwachung deaktiviert - - - - Power low! - Niedrige Ladung! - - - - Suspending in %n second(s) - - Bereitschaftsmodus in %n Sekunde(n) - Bereitschaftsmodus in %n Sekunden - - - - - Hibernating in %n second(s) - - Ruhezustand in %n Sekunde(n) - Ruhezustand in %n Sekunden - - - - - Shutting down in %n second(s) - - Herunterfahren in %n Sekunde(n) - Herunterfahren in %n Sekunden - - - - - PowerButton - - - Power off key action - Ausschalt-Tastenaktion - - - - Suspend key action - Bereitschaftszustand-Tastenaktion - - - - Hibernate key action - Ruhezustand-Tastenaktion - - - - PowerManagementd - - - Power Management - Energieverwaltung - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Sie führen die LXQt-Energieverwaltung erstmals aus. -Sie können sie in den Einstellungen konfigurieren... - - - - Configure... - Konfigurieren... - - - - TrayIcon - - - Configure - Konfigurieren - - - - 30 minutes - 30 Minuten - - - - 1 hour - 1 Stunde - - - - 2 hours - 2 Stunden - - - - 3 hours - 3 Stunden - - - - 4 hours - 4 Stunden - - - - Pause idleness checks - Leerlaufprüfungen pausieren - - - - - About - Über - - - - Disable icon - Symbol deaktivieren - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt-Energieverwaltung</b><br/> - Energieverwaltung für die LXQt-Desktop-Umgebung</p><p> Autoren:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - und Andere aus den Razor- und LXQt-Projekten</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt-Energieverwaltung-Info - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Das LXQt-Energieverwaltung-Systemleistensymbol kann in <i>lxqt-config-powermanagement</i> (wieder) aktiviert werden - - - - Configure now - Jetzt konfigurieren - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_el.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_el.ts deleted file mode 100644 index 7c52426c4a..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_el.ts +++ /dev/null @@ -1,333 +0,0 @@ - - - - - BatteryHelper - - - Empty - Αποφορτισμένος - - - - Discharging - Αποφόρτιση - - - - Fully charged - Φορτισμένος πλήρως - - - - Charging - Φόρτιση - - - - Lithium ion - Ιόντων λιθίου - - - - Lithium polymer - Πολυμερούς λιθίου - - - - Lithium iron phosphate - Λίθιου Φωσφορικού άλατος σιδήρου - - - - Lead acid - Μολύβδου οξέος - - - - Nickel cadmium - Νικελίου καδμίου - - - - Nickel metal hydride - Υβριδικός νικελίου μετάλλου - - - - Unknown - Άγνωστο - - - - Personal Digital Assistant's battery - Συσσωρευτής χειρός - - - - Uninterruptible Power Supply's battery - Σύστημα αδιάλειπτης τροφοδοσίας (UPS) - - - - Primary battery - Πρωτεύων συσσωρευτής - - - - Mouse battery - Συσσωρευτής ποντικιού - - - - Keyboard battery - Συσσωρευτής πληκτρολογίου - - - - Keyboard and mouse's battery - Συσσωρευτής ποντικιού και πληκτρολογίου - - - - Camera battery - Συσσωρευτής κάμερας - - - - Phone battery - Συσσωρευτής τηλεφώνου - - - - Monitor battery - Συσσωρευτής οθόνης - - - - Unknown battery - Άγνωστος συσσωρευτής - - - - BatteryInfoDialog - - - Dialog - Διάλογος - - - - Battery Info - Πληροφορίες του συσσωρευτή - - - - BatteryInfoFrame - - - Power Management - Διαχείριση ενέργειας - - - - Temperature: - Θερμοκρασία: - - - - Type: - Τύπος: - - - - State: - Κατάσταση: - - - - Energy Full Design: - Πλήρης ενέργεια σχεδιασμός: - - - - Energy Full: - Πλήρης ενέργεια: - - - - Energy Now: - Η τρέχουσα ενέργεια: - - - - Energy rate: - Ρυθμός ενέργειας: - - - - Technology: - Τεχνολογία: - - - - Voltage: - Τάση: - - - - Vendor: - Κατασκευαστής: - - - - BatteryWatcher - - - No battery! - Ουδείς συσσωρευτής! - - - - LXQt could not find data about any battery - monitoring disabled - Το LXQt δεν μπόρεσε να βρει δεδομένα κάποιου συσσωρευτή - η εποπτεία απενεργοποιήθηκε - - - - Power low! - Η ενέργεια είναι χαμηλή! - - - - Suspending in %n second(s) - - Αναστολή σε %n δευτερόλεπτο(α) - - - - - - Hibernating in %n second(s) - - Νάρκωση σε %n δευτερόλεπτο(α) - - - - - - Shutting down in %n second(s) - - Τερματισμός σε %n δευτερόλεπτο(α) - - - - - - PowerButton - - - Power off key action - Ενέργεια του πλήκτρου τερματισμού - - - - Suspend key action - Ενέργεια του πλήκτρου αναστολής - - - - Hibernate key action - Ενέργεια του πλήκτρου νάρκωσης - - - - PowerManagementd - - - Power Management - Διαχείριση ενέργειας - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Εκτελείτε την διαχείριση ενέργειας του LXQt για πρώτη φορά. -Μπορείτε να την διαμορφώσετε από τις ρυθμίσεις... - - - - - Configure... - Διαμόρφωση... - - - - TrayIcon - - - Configure - Διαμόρφωση - - - - 30 minutes - 30 λεπτά - - - - 1 hour - 1 ώρα - - - - 2 hours - 2 ώρες - - - - 3 hours - 3 ώρες - - - - 4 hours - 4 ώρες - - - - Pause idleness checks - Παύση των ελέγχων αδράνειας - - - - - About - Σχετικά - - - - Disable icon - Απενεργοποίηση του εικονιδίου - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Διαχείριση ενέργειας LXQt</b><br/> - Διαχείριση ενέργειας του περιβάλλοντος εργασίας LXQt</p><p> Συγγραφείς:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - και λοιποί από τα έργα Razor και LXQt</p><p> Πνευματικά δικαιώματα &copy; 2012-2014</p> - - - - LXQt Power Management info - Πληροφορίες της διαχείρισης ενέργειας του LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Το εικονίδιο στο πλαίσο συστήματος μπορεί να (επαν)ενεργοποιηθεί από το <i>lxqt-config-powermanagement</i> - - - - Configure now - Διαμόρφωση τώρα - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_es.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_es.ts deleted file mode 100644 index f4c5a13dd1..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_es.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Vacía - - - - Discharging - Descargando - - - - Fully charged - Completamente cargada - - - - Charging - Cargando - - - - Lithium ion - Iones de litio - - - - Lithium polymer - Polímero de lítio - - - - Lithium iron phosphate - Litio y fosfato de hierro - - - - Lead acid - Plomo y ácido - - - - Nickel cadmium - Níquel cadmio - - - - Nickel metal hydride - Hidruro metálico de níquel - - - - Unknown - Desconocido - - - - Personal Digital Assistant's battery - Batería del Asistente Personal Digital - - - - Uninterruptible Power Supply's battery - Batería del sistema de alimentación ininterrumpida - - - - Primary battery - Batería principal - - - - Mouse battery - Batería de ratón - - - - Keyboard battery - Batería de teclado - - - - Keyboard and mouse's battery - Batería de teclado y ratón - - - - Camera battery - Batería de cámara - - - - Phone battery - Batería de teléfono - - - - Monitor battery - Batería de monitor - - - - Unknown battery - Batería desconocida - - - - BatteryInfoDialog - - - Dialog - Diálogo - - - - Battery Info - Información de la batería - - - - BatteryInfoFrame - - - Power Management - Gestión de energía - - - - Temperature: - Temperatura: - - - - Type: - Tipo: - - - - State: - Estado: - - - - Energy Full Design: - Carga completa por diseño: - - - - Energy Full: - Carga completa: - - - - Energy Now: - Carga actual: - - - - Energy rate: - Tasa de carga: - - - - Technology: - Tecnología: - - - - Voltage: - Voltaje: - - - - Vendor: - Fabricante: - - - - BatteryWatcher - - - No battery! - ¡Sin batería! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt no pudo encontrar datos sobre ninguna batería - monitoreo deshabilitado - - - - Power low! - ¡Carga baja! - - - - Suspending in %n second(s) - - Suspensión en %n segundo - Suspensión en %n segundos - - - - - Hibernating in %n second(s) - - Hibernando en %n segundo - Hibernando en %n segundos - - - - - Shutting down in %n second(s) - - Apagado en %n segundo - Apagado en %n segundos - - - - - PowerButton - - - Power off key action - Acción de tecla de apagado - - - - Suspend key action - Acción de tecla de suspensión - - - - Hibernate key action - Acción de tecla de hibernación - - - - PowerManagementd - - - Power Management - Gestión de energía - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Está ejecutando Gestión de energía de LXQt por primera vez. -Puede configurarlo desde ajustes... - - - - Configure... - Configurar... - - - - TrayIcon - - - Configure - Configurar - - - - 30 minutes - 30 minutos - - - - 1 hour - 1 hora - - - - 2 hours - 2 horas - - - - 3 hours - 3 horas - - - - 4 hours - 4 horas - - - - Pause idleness checks - Pausar comprobaciones de inactividad - - - - - About - Acerca de - - - - Disable icon - Deshabilitar icono - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Gestión de energía de LXQt</b><br/> - Gestión de energía para el entorno de escritorio LXQt</p><p> Autores:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - y otros de los proyectos Razor y LXQt</p><p> Derechos de autor &copy; 2012-2014</p> - - - - LXQt Power Management info - Información de Gestión de energía de LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - El icono de la bandeja del sistema de Gestión de energía de LXQt se puede (re)habilitar en <i>lxqt-config-powermanagement</i> - - - - Configure now - Configurarlo ahora - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_et.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_et.ts deleted file mode 100644 index a269a6077e..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_et.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Tühi - - - - Discharging - Aku tühjeneb - - - - Fully charged - Täielikult laetud - - - - Charging - Laen akut - - - - Lithium ion - Liitium-ioonaku - - - - Lithium polymer - Liitium-polümeeraku - - - - Lithium iron phosphate - Liitium-raudfosfaataku - - - - Lead acid - Pliiaku - - - - Nickel cadmium - Nikkel-kaadmiumaku - - - - Nickel metal hydride - Nikkel-metallhüdriidaku - - - - Unknown - Tundmatu akutüüp - - - - Personal Digital Assistant's battery - PDA aku - - - - Uninterruptible Power Supply's battery - UPS'i aku - - - - Primary battery - Põhiaku - - - - Mouse battery - Hiire patarei - - - - Keyboard battery - Klaviatuuri patarei - - - - Keyboard and mouse's battery - Klaviatuuri ja hiire patarei - - - - Camera battery - Kaamera aku - - - - Phone battery - Telefoni aku - - - - Monitor battery - Monitori aku - - - - Unknown battery - Tundmatu aku - - - - BatteryInfoDialog - - - Dialog - Valikuaken - - - - Battery Info - Akuteave - - - - BatteryInfoFrame - - - Power Management - Toitehaldus - - - - Temperature: - Temperatuur: - - - - Type: - Tüüp: - - - - State: - Olek: - - - - Energy Full Design: - Projektikohane täislaetus: - - - - Energy Full: - Täislaetus: - - - - Energy Now: - Laetus hetkel: - - - - Energy rate: - Laetuse määr: - - - - Technology: - Tehnoloogia: - - - - Voltage: - Pinge: - - - - Vendor: - Tootja: - - - - BatteryWatcher - - - No battery! - Aku puudub! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt ei leidnud aku kohta mitte mingit teavet ja seega aku haldus ei ole kasutusel - - - - Power low! - Aku on peaaegu tühi! - - - - Suspending in %n second(s) - - Vajun unne %n sekundi möödumisel - Vajun unne %n sekundi möödumisel - - - - - Hibernating in %n second(s) - - Vajun sügavasse unne %n sekundi möödumisel - Vajun sügavasse unne %n sekundi möödumisel - - - - - Shutting down in %n second(s) - - Seiskan arvuti %n sekundi möödumisel - Seiskan arvuti %n sekundi möödumisel - - - - - PowerButton - - - Power off key action - Tegevus toitenupu vajutamisel - - - - Suspend key action - Tegevus uinakunupu vajutamisel - - - - Hibernate key action - Tegevus sügava uinaku nupu vajutamisel - - - - PowerManagementd - - - Power Management - Toitehaldus - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Sa kasutad LXQt toitehaldust esimest korda. -Eelistusi võid muuta seadistuse vaatest... - - - - Configure... - Seadista... - - - - TrayIcon - - - Configure - Seadista - - - - 30 minutes - 30 minutit - - - - 1 hour - 1 tund - - - - 2 hours - 2 tundi - - - - 3 hours - 3 tundi - - - - 4 hours - 4 tundi - - - - Pause idleness checks - Ajutiselt peata jõudeoleku kontroll - - - - - About - Lisateave - - - - Disable icon - Ära kasuta ikooni - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt toitehaldus</b><br/> - Toitehalduse rakendus LXQt töölauakeskonna jaoks</p><p> Autorid:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - ja teised Razor'i ja LXQt projektidest</p><p> Autoriõigused &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt toitehalduse teave - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - LXQt toitehalduse süsteemisalve ikooni saad sisse/välja lülitada <i>lxqt-config-powermanagement</i> alt - - - - Configure now - Muuda seadistusi nüüd - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_fi.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_fi.ts deleted file mode 100644 index 365eb5518f..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_fi.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Tyhjä - - - - Discharging - Purkaantuu - - - - Fully charged - Täyteen ladattu - - - - Charging - Latautuu - - - - Lithium ion - Litiumioni - - - - Lithium polymer - Litiumpolymeeri - - - - Lithium iron phosphate - Litium-rautafosfaatti - - - - Lead acid - Lyijyhappo - - - - Nickel cadmium - Nikkeli-kadmium - - - - Nickel metal hydride - Nikkelimetallihydridi - - - - Unknown - Tuntematon - - - - Personal Digital Assistant's battery - Henkilökohtaisen, digitaalisen avustajan akku - - - - Uninterruptible Power Supply's battery - Keskeytymättömän virransyötön akku - - - - Primary battery - Pääakku - - - - Mouse battery - Hiiren akku - - - - Keyboard battery - Näppäimistön akku - - - - Keyboard and mouse's battery - Näppäimistön ja hiiren akku - - - - Camera battery - Kameran akku - - - - Phone battery - Puhelimen akku - - - - Monitor battery - Näytön akku - - - - Unknown battery - Tuntematon akku - - - - BatteryInfoDialog - - - Dialog - Dialogi - - - - Battery Info - Akkuinfo - - - - BatteryInfoFrame - - - Power Management - Virranhallinta - - - - Temperature: - Lämpötila: - - - - Type: - Tyyppi: - - - - State: - Tila: - - - - Energy Full Design: - Suunniteltu täysi lataus: - - - - Energy Full: - Täysi lataus: - - - - Energy Now: - Lataus nyt: - - - - Energy rate: - Lataus aste: - - - - Technology: - Teknologia: - - - - Voltage: - Jännite: - - - - Vendor: - Valmistaja: - - - - BatteryWatcher - - - No battery! - Ei akkua! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt ei löytänyt tietoja akusta - valvonta pois käytöstä - - - - Power low! - Virta vähissä! - - - - Suspending in %n second(s) - - Siirtyy lepotilaa % sekunnin kuluttua - Siirtyy lepotilaan % sekunnin kuluttua - - - - - Hibernating in %n second(s) - - Siirtyy horrostilaan sekunnin kuluttua - Siirtyy horrostilaan % sekunnin kuluttua - - - - - Shutting down in %n second(s) - - Sammutetaan sekunnin kuluttua - Sammutetaan % sekunnin kuluttua - - - - - PowerButton - - - Power off key action - Virtanäppäimen toiminto - - - - Suspend key action - Lepotila-näppäimen toiminto - - - - Hibernate key action - Horrostila-näppäimen toiminto - - - - PowerManagementd - - - Power Management - Virranhallinta - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Käytät LXQt Virranhallintaa ensimmäistä kertaa. -Voit muuttaa sen toimintaa asetuksista… - - - - Configure... - Muuta asetuksia… - - - - TrayIcon - - - Configure - Muuta asetuksia - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - Tietoja - - - - Disable icon - Poista kuvake käytöstä - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt Virranhallinta</b><br/> - Virranhallinta LXQt Työpöytäympäristölle</p><p> Tekijät:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - ja muita Razor- ja LXQt-projekteista</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt Virranhallinta info - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - LXQt Virranhallinnan tehtäväpalkin kuvake voidaan ottaa käyttöön ohjelmassa <i>lxqt-config-powermanagement</i> - - - - Configure now - Muuta asetuksia nyt - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_fr.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_fr.ts deleted file mode 100644 index 04660a66e5..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_fr.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Vide - - - - Discharging - En cours de déchargement - - - - Fully charged - Totalement chargée - - - - Charging - En chargement - - - - Lithium ion - Lithium-ion - - - - Lithium polymer - Lithium-polymère - - - - Lithium iron phosphate - Lithium fer phosphate - - - - Lead acid - Plomb-acide - - - - Nickel cadmium - Nickel-cadmium - - - - Nickel metal hydride - Nickel-hydrure métallique - - - - Unknown - Inconnue - - - - Personal Digital Assistant's battery - Batterie de l'assistant numérique personnel (PDA) - - - - Uninterruptible Power Supply's battery - Batterie de système d'alimentation secourue (UPS) - - - - Primary battery - Batterie primaire - - - - Mouse battery - Batterie de souris sans fil - - - - Keyboard battery - Batterie de clavier sans fil - - - - Keyboard and mouse's battery - Batterie de clavier/souris sans fil - - - - Camera battery - Batterie d'appareil photo - - - - Phone battery - Batterie de téléphone - - - - Monitor battery - Batterie d'écran - - - - Unknown battery - Batterie inconnue - - - - BatteryInfoDialog - - - Dialog - Dialogue - - - - Battery Info - Informations sur la batterie - - - - BatteryInfoFrame - - - Power Management - Gestionnaire d'alimentation - - - - Temperature: - Température : - - - - Type: - Type : - - - - State: - Statut : - - - - Energy Full Design: - Énergie totale théorique : - - - - Energy Full: - Énergie totale : - - - - Energy Now: - Énergie actuelle : - - - - Energy rate: - Taux d'énergie : - - - - Technology: - Technologie : - - - - Voltage: - Voltage : - - - - Vendor: - Fabricant : - - - - BatteryWatcher - - - No battery! - Pas de batterie ! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt ne trouve pas les données de la batterie - Gestion inactive - - - - Power low! - Énergie faible ! - - - - Suspending in %n second(s) - - Veille dans %n seconde - Veille dans %n secondes - - - - - Hibernating in %n second(s) - - Hibernation dans %n seconde - Hibernation dans %n secondes - - - - - Shutting down in %n second(s) - - Arrêt dans %n seconde - Arrêt dans %n secondes - - - - - PowerButton - - - Power off key action - Action de la touche de mise hors tension - - - - Suspend key action - Action de la touche suspendre - - - - Hibernate key action - Action de la touche Hiberner - - - - PowerManagementd - - - Power Management - Gestionnaire d'alimentation - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Vous exécutez le gestionnaire de l'alimentation de LXQt pour la première fois. -Vous pouvez le paramétrer à partir de l'onglet de Configuration... - - - - Configure... - Configuration... - - - - TrayIcon - - - Configure - Configuration - - - - 30 minutes - 30 minutes - - - - 1 hour - 1 heure - - - - 2 hours - 2 heures - - - - 3 hours - 3 heures - - - - 4 hours - 4 heures - - - - Pause idleness checks - Suspendre les contrôles d'inactivité - - - - - About - À propos - - - - Disable icon - Désactiver l'icône - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Gestion de l'alimentation LXQt</b><br/> - Gestion de l'alimentation pour l'environnement de bureau LXQt</p><p> Auteurs:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - et d’autres projets Razor et LXQt</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - Informations sur la gestion de l'alimentation LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - L'icône de gestion de l'alimentation LXQt peut être (re)activée à partir de <i>lxqt-config-powermanagement</i> - - - - Configure now - Configurer maintenant - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_gl.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_gl.ts deleted file mode 100644 index 58d441c03b..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_gl.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Baleira - - - - Discharging - Descargando - - - - Fully charged - Totalmente cargada - - - - Charging - Cargando - - - - Lithium ion - Ións de litio - - - - Lithium polymer - Polímero de litio - - - - Lithium iron phosphate - Litio-ferrofosfato - - - - Lead acid - Chumbo e ácido - - - - Nickel cadmium - Níquel-cadmio - - - - Nickel metal hydride - Níquel-metal hidruro - - - - Unknown - Descoñecida - - - - Personal Digital Assistant's battery - Batería de computador de peto (PDA) - - - - Uninterruptible Power Supply's battery - Batería de sistema de alimentación ininterrompida (UPS) - - - - Primary battery - Batería principal - - - - Mouse battery - Batería de rato - - - - Keyboard battery - Batería de teclado - - - - Keyboard and mouse's battery - Batería de teclado e de rato - - - - Camera battery - Batería de cámara - - - - Phone battery - Batería de teléfono - - - - Monitor battery - Batería de monitor - - - - Unknown battery - Batería descoñecida - - - - BatteryInfoDialog - - - Dialog - Diálogo - - - - Battery Info - Información da batería - - - - BatteryInfoFrame - - - Power Management - Xestión da enerxía - - - - Temperature: - Temperatura: - - - - Type: - Tipo: - - - - State: - Estado: - - - - Energy Full Design: - Enerxía total teórica: - - - - Energy Full: - Carga completa: - - - - Energy Now: - Carga actual: - - - - Energy rate: - Taxa de carga: - - - - Technology: - Tecnoloxía: - - - - Voltage: - Voltaxe: - - - - Vendor: - Fabricante: - - - - BatteryWatcher - - - No battery! - Sen batería! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt non foi quen de atopar datos sobre ningunha batería - desactivouse a supervisión - - - - Power low! - Carga baixa! - - - - Suspending in %n second(s) - - Suspenderase nun segundo - Suspenderase en %n segundos - - - - - Hibernating in %n second(s) - - Hibernará nun segundo - Hibernará en %n segundos - - - - - Shutting down in %n second(s) - - Apagarase nun segundo - Apagarase en %n segundos - - - - - PowerButton - - - Power off key action - - - - - Suspend key action - - - - - Hibernate key action - - - - - PowerManagementd - - - Power Management - Xestión da enerxía - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Está executando por primeira vez a xestión de enerxía do LXQt. -Pode configurala a partires dos axustes... - - - - Configure... - Configurar... - - - - TrayIcon - - - Configure - Configurar - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - Sobre - - - - Disable icon - Desactivar a icona - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Xestión de enerxía do LXQt</b><br/> - Xestión de enerxía do contorno de escritorio LXQt</p><p> Autores:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - e outras persoas dos proxectos Razor e LXQt</p><p> Dereitos de autoría &copy; 2012-2014</p> - - - - LXQt Power Management info - Información da xestión de enerxía do LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Pode (re)activar a icona da xestión de enerxía do LXQt na área de notificación en <i>lxqt-config-powermanagement</i> - - - - Configure now - Configurala agora - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_he.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_he.ts deleted file mode 100644 index c45a7549bf..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_he.ts +++ /dev/null @@ -1,338 +0,0 @@ - - - - - BatteryHelper - - - Empty - ריק - - - - Discharging - בפריקה - - - - Fully charged - טעינה מלאה - - - - Charging - בטעינה - - - - Lithium ion - ליתיום יון - - - - Lithium polymer - ליתיום פולימר - - - - Lithium iron phosphate - ליתיום ברזל פוספט - - - - Lead acid - עופרת חומצה - - - - Nickel cadmium - ניקל קדמיום - - - - Nickel metal hydride - ניקל מתכת הידריד - - - - Unknown - לא ידוע - - - - Personal Digital Assistant's battery - סוללת התקן כף היד - - - - Uninterruptible Power Supply's battery - סוללת האל־פסק - - - - Primary battery - סוללה עיקרית - - - - Mouse battery - סוללת העכבר - - - - Keyboard battery - סוללת המקלדת - - - - Keyboard and mouse's battery - סוללת המקלדת והעכבר - - - - Camera battery - סוללת המצלמה - - - - Phone battery - סוללת הטלפון - - - - Monitor battery - סוללת המסך - - - - Unknown battery - סוללה בלתי ידועה - - - - BatteryInfoDialog - - - Dialog - תיבת דו־שיח - - - - Battery Info - פרטי סוללה - - - - BatteryInfoFrame - - - Power Management - ניהול צריכת חשמל - - - - Temperature: - טמפרטורה: - - - - Type: - סוג: - - - - State: - מצב: - - - - Energy Full Design: - אנרגיה מלאה להגדרת היצרן: - - - - Energy Full: - אנרגיה מלאה: - - - - Energy Now: - אנרגיה כעת: - - - - Energy rate: - רמת אנרגיה: - - - - Technology: - טכנולוגיה: - - - - Voltage: - מתח: - - - - Vendor: - יצרן: - - - - BatteryWatcher - - - No battery! - אין סוללה! - - - - LXQt could not find data about any battery - monitoring disabled - ל־LXQt אין אפשרות למצוא נתונים על סוללות כלשהן - המעקב מושבת - - - - Power low! - העצמה נמוכה! - - - - Suspending in %n second(s) - - כניסה למצב השהיה בעוד שנייה - כניסה למצב השהיה בעוד %n שניות - כניסה למצב השהיה בעוד %n שניות - כניסה למצב השהיה בעוד %n שניות - - - - - Hibernating in %n second(s) - - כניסה לתרדמת בעוד שנייה - כניסה לתרדמת בעוד %n שניות - כניסה לתרדמת בעוד %n שניות - כניסה לתרדמת בעוד %n שניות - - - - - Shutting down in %n second(s) - - כיבוי בעוד שנייה - כיבוי בעוד %n שניות - כיבוי בעוד %n שניות - כיבוי בעוד %n שניות - - - - - PowerButton - - - Power off key action - פעולת מקש הכיבוי - - - - Suspend key action - פעולת מקש ההשהיה - - - - Hibernate key action - פעולת מקש התרדמת - - - - PowerManagementd - - - Power Management - ניהול צריכת חשמל - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - זו הפעם הראשונה שמנהל צריכת החשמל של LXQt מופעל. -ניתן להגדיר הכול מההגדרות… - - - - Configure... - הגדרה… - - - - TrayIcon - - - Configure - הגדרה - - - - 30 minutes - חצי שעה - - - - 1 hour - שעה - - - - 2 hours - שעתיים - - - - 3 hours - 3 שעות - - - - 4 hours - 4 שעות - - - - Pause idleness checks - השהיית בדיקות חוסר פעילות - - - - - About - על אודות - - - - Disable icon - השבתת סמל - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>מנהל צריכת החשמל שלLXQt</b><br/> - ניהול צריכת חשמל לסביבת שולחן העבודה LXQt</p><p> יוצרים:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - ופעילים נוספים ממיזמי Razor ו־LXQt</p><p> כל הזכויות שמורות &copy; 2012‏-2014</p> - - - - LXQt Power Management info - פרטי צריכת חשמל של LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - ניתן להפעיל (מחדש) את סמל המערכת לניהול צריכת החשמל של LXQt תחת <i>lxqt-config-powermanagement</i> - - - - Configure now - להגדיר כעת - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_hr.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_hr.ts deleted file mode 100644 index 8823d97da4..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_hr.ts +++ /dev/null @@ -1,305 +0,0 @@ - - - - - BatteryHelper - - - Empty - Prazna - - - - Discharging - Pražnjenje - - - - Fully charged - Napunjena - - - - Charging - Punjenje - - - - Lithium ion - Litij-ionska - - - - Lithium polymer - Litij-polimer - - - - Lithium iron phosphate - Litij-željezni fosfat - - - - Lead acid - Olovna kiselina - - - - Nickel cadmium - Nikal-kadmij - - - - Nickel metal hydride - Nikal-metal hidrid - - - - Unknown - Nepoznato - - - - Personal Digital Assistant's battery - Baterija PDA uređaja - - - - Uninterruptible Power Supply's battery - Baterija neprekidnog izvora napajanja - - - - Primary battery - Primarna baterija - - - - Mouse battery - Baterija miša - - - - Keyboard battery - Baterija tipkovnice - - - - Keyboard and mouse's battery - Baterija tipkovnice i miša - - - - Camera battery - Baterija kamere - - - - Phone battery - Baterija telefona - - - - Monitor battery - Baterija monitora - - - - Unknown battery - Nepoznata baterija - - - - BatteryInfoDialog - - - Dialog - Dijalog - - - - Battery Info - Podaci baterije - - - - BatteryInfoFrame - - - Power Management - Upravljanje energijom - - - - Temperature: - Temperatura: - - - - Type: - Vrsta: - - - - State: - Stanje: - - - - Energy Full Design: - Teoretska maksimalna energija: - - - - Energy Full: - Maksimalna energija: - - - - Energy Now: - Aktualna energija: - - - - Energy rate: - Snaga: - - - - Technology: - Tehnologija: - - - - Voltage: - Napon: - - - - Vendor: - Proizvođač: - - - - BatteryWatcher - - - No battery! - Nema baterije! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt nije pronašao podatke baterija – praćenje je deaktivirano - - - - Power low! - Skoro prazna! - - - - Suspending in %n second(s) - - Pripravno stanje za %n sekundu - Pripravno stanje za %n sekunde - Pripravno stanje za %n sekundi - - - - - Hibernating in %n second(s) - - Stanje mirovanja za %n sekundu - Stanje mirovanja za %n sekunde - Stanje mirovanja za %n sekundi - - - - - Shutting down in %n second(s) - - Uređaj se gasi za %n sekundu - Uređaj se gasi za %n sekunde - Uređaj se gasi za %n sekundi - - - - - PowerButton - - - Power off key action - Radnja gumba za gašenje - - - - Suspend key action - Radnja gumba za pripravno stanje - - - - Hibernate key action - Radnja gumba za stanje mirovanja - - - - PowerManagementd - - - Power Management - Upravljanje energijom - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Pokrečeš modul „LXQt upravljanje energijom” po prvi put. -Možeš ga konfigurirati u postavkama … - - - - Configure... - Konfiguriraj … - - - - TrayIcon - - - Configure - Konfiguriraj - - - - - About - Informacije - - - - Disable icon - Deaktiviraj ikonu - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt upravljanje energijom</b><br/> – upravljanje energijom za LXQt okruženje</p><p> Autori:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; – i drugi u projektima Razor i LXQt</p><p> Copyright &copy; 2012. – 2014.</p> - - - - LXQt Power Management info - Informacije o modulu „LXQt upravljanje energijom” - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Ikona za „LXQt upravljanje energijom” u programskoj traci može se (ponovo) aktivirati u <i>lxqt-config-powermanagement</i> - - - - Configure now - Konfiguriraj sada - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_hu.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_hu.ts deleted file mode 100644 index 8659e0f64d..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_hu.ts +++ /dev/null @@ -1,329 +0,0 @@ - - - - - BatteryHelper - - - Empty - Üres - - - - Discharging - Kisütés - - - - Fully charged - Teljesen feltöltve - - - - Charging - Töltés - - - - Lithium ion - Lítiumion - - - - Lithium polymer - Lítium polimer - - - - Lithium iron phosphate - Lítium vas-foszfát - - - - Lead acid - Savas ólom - - - - Nickel cadmium - Nikkel kadmium - - - - Nickel metal hydride - Nikkel fémhibrid - - - - Unknown - Ismeretlen - - - - Personal Digital Assistant's battery - PDA akkumulátor - - - - Uninterruptible Power Supply's battery - Szünetmentes tápegység akkumulátora - - - - Primary battery - Elsődleges akkumulátor - - - - Mouse battery - Egér akkumulátor - - - - Keyboard battery - Billentyűzet akkumulátor - - - - Keyboard and mouse's battery - Billentyűzet és egérakkumulátor - - - - Camera battery - Kamera akkumulátor - - - - Phone battery - Telefon akkumulátor - - - - Monitor battery - Monitor akkumulátor - - - - Unknown battery - Ismeretlen akkumulátor - - - - BatteryInfoDialog - - - Dialog - Párbeszédablak - - - - Battery Info - Akkumulátor információ - - - - BatteryInfoFrame - - - Power Management - Energiakezelés - - - - Temperature: - Hőmérséklet: - - - - Type: - Típus: - - - - State: - Állapot: - - - - Energy Full Design: - Névleges kapacitás: - - - - Energy Full: - Teljes kapacitás: - - - - Energy Now: - Jelenlegi kapacitás: - - - - Energy rate: - Átlagos teljesítmény: - - - - Technology: - Technológia: - - - - Voltage: - Feszültség: - - - - Vendor: - Gyártó: - - - - BatteryWatcher - - - No battery! - Nincs akkumulátor! - - - - LXQt could not find data about any battery - monitoring disabled - Az LXQt nem talált adatokat egyetlen akkumulátorról sem - figyelés letiltva - - - - Power low! - Alacsony feszültség! - - - - Suspending in %n second(s) - - Készenlét %n másodperc múlva - - - - - Hibernating in %n second(s) - - Hibernálás %n másodperc múlva - - - - - Shutting down in %n second(s) - - Leállítás %n másodperc múlva - - - - - PowerButton - - - Power off key action - Kikapcsológomb művelet - - - - Suspend key action - Felfüggesztés gomb művelet - - - - Hibernate key action - Hibernálás gomb művelet - - - - PowerManagementd - - - Power Management - Energiakezelés - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Az LXQt energiakezelő az első alkalommal fut. -A beállításokban konfigurálható... - - - - Configure... - Beállítás... - - - - TrayIcon - - - Configure - Beállítás - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - Névjegy - - - - Disable icon - Ikon letiltása - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt energiakezelés</b><br/> - Energiakezelő az LXQt asztali környezethez</p><p> Szerzők:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - és mások a Razor és LXQt csapatból</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt energiakezelő információ - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Az LXQt energiakezelő tálcaikon (újra)engedélyezhető az <i>lxqt-config-powermanagement</i>ben - - - - Configure now - Beállítás most - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_id.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_id.ts deleted file mode 100644 index 522e113709..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_id.ts +++ /dev/null @@ -1,329 +0,0 @@ - - - - - BatteryHelper - - - Empty - Kosong - - - - Discharging - Pengosongan - - - - Fully charged - Terisi penuh - - - - Charging - Pengisian - - - - Lithium ion - Lithium ion - - - - Lithium polymer - Lithium polimer - - - - Lithium iron phosphate - Lithium besi fosfat - - - - Lead acid - Asam timbal - - - - Nickel cadmium - Nikel kadmium - - - - Nickel metal hydride - Nikel logam hidrida - - - - Unknown - Tidak diketahui - - - - Personal Digital Assistant's battery - Baterai PDA - - - - Uninterruptible Power Supply's battery - Baterai UPS - - - - Primary battery - Baterai utama - - - - Mouse battery - Baterai tetikus - - - - Keyboard battery - Baterai Papan tik - - - - Keyboard and mouse's battery - Baterai papan tik dan tetikus - - - - Camera battery - Baterai kamera - - - - Phone battery - Baterai telepon - - - - Monitor battery - Baterai monitor - - - - Unknown battery - Baterai tidak diketahui - - - - BatteryInfoDialog - - - Dialog - Dialog - - - - Battery Info - Info Baterai - - - - BatteryInfoFrame - - - Power Management - Manajemen Daya - - - - Temperature: - Suhu: - - - - Type: - Tipe: - - - - State: - Keadaan: - - - - Energy Full Design: - Desain Penuh Energi: - - - - Energy Full: - Penuh Energi: - - - - Energy Now: - Energi Sekarang: - - - - Energy rate: - Tingkat energi: - - - - Technology: - Teknologi: - - - - Voltage: - Voltase: - - - - Vendor: - Vendor: - - - - BatteryWatcher - - - No battery! - Tidak ada baterai! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt tidak dapat menemukan data tentang baterai - pemantauan dinonaktifkan - - - - Power low! - Daya lemah! - - - - Suspending in %n second(s) - - Mensuspensi dalam %n detik - - - - - Hibernating in %n second(s) - - Menghibernasi %n detik - - - - - Shutting down in %n second(s) - - Mematikan dalam %n detik - - - - - PowerButton - - - Power off key action - Aksi kunci pematian - - - - Suspend key action - Aksi kunci penghentian - - - - Hibernate key action - Aksi kunci hibernasi - - - - PowerManagementd - - - Power Management - Manajemen Daya - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Anda menjalankan Manajemen Daya LXQt untuk pertama kali. -Anda dapat mengkonfigurasikannya dari pengaturan... - - - - Configure... - Konfigurasi... - - - - TrayIcon - - - Configure - Konfigurasi - - - - 30 minutes - 30 menit - - - - 1 hour - 1 jam - - - - 2 hours - 2 jam - - - - 3 hours - 3 jam - - - - 4 hours - 4 jam - - - - Pause idleness checks - Tunda sementara, pemeriksaan ketidakterpakaian - - - - - About - Tentang - - - - Disable icon - Nonaktifkan ikon - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Manajemen Daya LXQt</b><br/> - Manajemen Daya untuk Lingkungan Desktop LXQt</p><p> Pembuat:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - dan yang lainnya dari proyek Razor dan LXQt</p><p> Hak cipta&copy; 2012-2014</p> - - - - LXQt Power Management info - Info Manajemen Daya LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Ikon tray Manajemen Daya LXQt dapat diaktifkan (ulang) di <i>lxqt-config-powermanagement</i> - - - - Configure now - Konfigurasi sekarang - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_it.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_it.ts deleted file mode 100644 index c39980699e..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_it.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Vuota - - - - Discharging - In fase di scaricamento - - - - Fully charged - Carica completa - - - - Charging - In fase di carica - - - - Lithium ion - Ioni di litio - - - - Lithium polymer - Polimeri di litio - - - - Lithium iron phosphate - Nichel-ferro-fosfato - - - - Lead acid - Acido di piombo - - - - Nickel cadmium - Nichel-cadmio - - - - Nickel metal hydride - Nichel-metallo idruro - - - - Unknown - Sconosciuto - - - - Personal Digital Assistant's battery - Batteria del palmare - - - - Uninterruptible Power Supply's battery - Batteria del gruppo di continuità (UPS) - - - - Primary battery - Batteria principale - - - - Mouse battery - Batteria del mouse - - - - Keyboard battery - Batteria della tastiera - - - - Keyboard and mouse's battery - Batteria della tastiera e del mouse - - - - Camera battery - Batteria della fotocamera - - - - Phone battery - Batteria del telefono - - - - Monitor battery - Batteria del monitor - - - - Unknown battery - Batteria sconosciuta - - - - BatteryInfoDialog - - - Dialog - Dialogo - - - - Battery Info - Informazioni batteria - - - - BatteryInfoFrame - - - Power Management - Gestione energetica - - - - Temperature: - Temperatura: - - - - Type: - Tipo: - - - - State: - Stato: - - - - Energy Full Design: - Capacità costruttiva: - - - - Energy Full: - Piena carica: - - - - Energy Now: - Carica attuale: - - - - Energy rate: - Velocità di carica: - - - - Technology: - Tecnologia: - - - - Voltage: - Voltaggio: - - - - Vendor: - Produttore: - - - - BatteryWatcher - - - No battery! - Nessuna batteria! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt non è in grado di trovare dati sulla batteria - monitoraggio disabilitato - - - - Power low! - Potenza scarsa! - - - - Suspending in %n second(s) - - Sospensione tra %n secondo/i - Sospensione tra %n secondi - - - - - Hibernating in %n second(s) - - Ibernazione tra %n secondo - Ibernazione tra %n secondi - - - - - Shutting down in %n second(s) - - Arresto tra %n secondo/i - Arresto tra %n secondi - - - - - PowerButton - - - Power off key action - Azione per pulsante di accensione - - - - Suspend key action - Azione per pulsante di sospensione - - - - Hibernate key action - Azione per pulsante di ibernazione - - - - PowerManagementd - - - Power Management - Gestione energetica - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Stai eseguendo la gestione energetica di LXQt per la prima volta. -Puoi configurarla dalle impostazioni... - - - - Configure... - Configura... - - - - TrayIcon - - - Configure - Configura - - - - 30 minutes - 30 minuti - - - - 1 hour - 1 ora - - - - 2 hours - 2 ore - - - - 3 hours - 3 ore - - - - 4 hours - 4 ore - - - - Pause idleness checks - Sospendi controllo inattività - - - - - About - Informazioni - - - - Disable icon - Disabilita l'icona - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Gestione energetica di LXQt</b><br/> - Gestione energetica per l'ambiente desktop LXQt</p><p> Autori:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - e altri dai progetti Razor e LXQt</p><p> Copyright &copy; 2012-2018</p> - - - - LXQt Power Management info - Informazioni sulla gestione energetica di LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - L'icona del vassoio di sistema della gestione energetica di LXQt può essere abilitata in <i>lxqt-config-powermanagement</i> - - - - Configure now - Configura ora - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ja.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ja.ts deleted file mode 100644 index 0418e2ee71..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ja.ts +++ /dev/null @@ -1,329 +0,0 @@ - - - - - BatteryHelper - - - Empty - - - - - Discharging - 放電中 - - - - Fully charged - 満充電 - - - - Charging - 充電中 - - - - Lithium ion - リチウムイオン - - - - Lithium polymer - リチウムポリマー - - - - Lithium iron phosphate - リン酸鉄リチウム - - - - Lead acid - 鉛蓄電池 - - - - Nickel cadmium - ニッカド - - - - Nickel metal hydride - ニッケル水素 - - - - Unknown - 不明 - - - - Personal Digital Assistant's battery - 携帯情報端末のバッテリー - - - - Uninterruptible Power Supply's battery - 無停電電源装置のバッテリー - - - - Primary battery - 一次電池 - - - - Mouse battery - マウスのバッテリー - - - - Keyboard battery - キーボードのバッテリー - - - - Keyboard and mouse's battery - キーボードとマウスのバッテリー - - - - Camera battery - カメラのバッテリー - - - - Phone battery - 携帯電話のバッテリー - - - - Monitor battery - モニターのバッテリー - - - - Unknown battery - 不明なデバイスのバッテリー - - - - BatteryInfoDialog - - - Dialog - ダイアログ - - - - Battery Info - バッテリー情報 - - - - BatteryInfoFrame - - - Power Management - 電源管理 - - - - Temperature: - 温度: - - - - Type: - タイプ: - - - - State: - 状態: - - - - Energy Full Design: - 容量の設計値: - - - - Energy Full: - 完全充電の容量: - - - - Energy Now: - 現在の容量: - - - - Energy rate: - エネルギー率: - - - - Technology: - 技術: - - - - Voltage: - 電圧: - - - - Vendor: - ベンダー: - - - - BatteryWatcher - - - No battery! - バッテリーがありません! - - - - LXQt could not find data about any battery - monitoring disabled - バッテリーのデータを見つけられませんので監視機能は無効です - - - - Power low! - 電源が少なくなっています! - - - - Suspending in %n second(s) - - %n 秒でサスペンドします - - - - - Hibernating in %n second(s) - - %n 秒でハイバネートします - - - - - Shutting down in %n second(s) - - %n 秒でシャットダウンします - - - - - PowerButton - - - Power off key action - [電源 OFF]キーの動作 - - - - Suspend key action - [サスペンド]キーの動作 - - - - Hibernate key action - [ハイバネート]キーの動作 - - - - PowerManagementd - - - Power Management - 電源管理 - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - LXQt 電源管理 が初めて実行されました。 -「設定する...」から設定して下さい。 - - - - Configure... - 設定する... - - - - TrayIcon - - - Configure - 設定 - - - - 30 minutes - 30 分 - - - - 1 hour - 1 時間 - - - - 2 hours - 2 時間 - - - - 3 hours - 3 時間 - - - - 4 hours - 4 時間 - - - - Pause idleness checks - アイドル状態のチェックを一時停止 - - - - - About - このアプリケーションについて - - - - Disable icon - トレイのアイコンを非表示にする - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt 電源管理</b><br/> - LXQt デスクトップ環境の電源管理</p><p> 作者:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - そして Razor と LXQt projects の人々</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt 電源管理の情報 - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - LXQt 電源管理のトレイアイコンは、<i>LXQt 電源管理の設定</i> から(再)表示できます - - - - Configure now - 今すぐに設定する - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ko.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ko.ts deleted file mode 100644 index 4be916c73c..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ko.ts +++ /dev/null @@ -1,330 +0,0 @@ - - - - - BatteryHelper - - - Empty - 비어 있음 - - - - Discharging - 방전 - - - - Fully charged - 완전히 충전됨 - - - - Charging - 충전 중 - - - - Lithium ion - 리튬 이온 - - - - Lithium polymer - 리튬 폴리머 - - - - Lithium iron phosphate - 리튬 철 인산염 - - - - Lead acid - 납축 - - - - Nickel cadmium - 니켈 카드뮴 - - - - Nickel metal hydride - 니켈 금속 수소화물 - - - - Unknown - 알 수 없음 - - - - Personal Digital Assistant's battery - 개인용 디지털 어시스턴트의 배터리 - - - - Uninterruptible Power Supply's battery - 무정전 전원 공급 장치의 배터리 - - - - Primary battery - 기본 배터리 - - - - Mouse battery - 마우스 배터리 - - - - Keyboard battery - 키보드 배터리 - - - - Keyboard and mouse's battery - 키보드 및 마우스의 배터리 - - - - Camera battery - 카메라 배터리 - - - - Phone battery - 전화 배터리 - - - - Monitor battery - 모니터 배터리 - - - - Unknown battery - 알 수 없는 배터리 - - - - BatteryInfoDialog - - - Dialog - 대화창 - - - - Battery Info - 배터리 정보 - - - - BatteryInfoFrame - - - Power Management - 전원 관리 - - - - Temperature: - 온도: - - - - Type: - 유형: - - - - State: - 상태: - - - - Energy Full Design: - 최대 용량: - - - - Energy Full: - 전체 용량 : - - - - Energy Now: - 현재 용량: - - - - Energy rate: - 에너지 비율: - - - - Technology: - 기술: - - - - Voltage: - 전압: - - - - Vendor: - 공급업체: - - - - BatteryWatcher - - - No battery! - 배터리가 없습니다! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt가 배터리에 대한 데이터를 찾을 수 없음 - 모니터링 비활성화됨 - - - - Power low! - 전원이 낮습니다! - - - - Suspending in %n second(s) - - %n초 후에 대기 모드 - - - - - Hibernating in %n second(s) - - %n초 후 최대 절전 모드 - - - - - Shutting down in %n second(s) - - %n초 후에 종료 - - - - - PowerButton - - - Power off key action - 전원 끄기 키 동작 - - - - Suspend key action - 대기 모드 키 작업 - - - - Hibernate key action - 최대 절전 모드 키 작업 - - - - PowerManagementd - - - Power Management - 전원 관리 - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - 처음으로 LXQt 전원 관리를 실행하고 있습니다. -설정에서 구성할 수 있습니다... - - - - Configure... - 구성하기... - - - - TrayIcon - - - Configure - 구성하기 - - - - 30 minutes - 30분 - - - - 1 hour - 1시간 - - - - 2 hours - 2시간 - - - - 3 hours - 3시간 - - - - 4 hours - 4시간 - - - - Pause idleness checks - 유휴 상태 검사 일시 중지 - - - - - About - 정보 - - - - Disable icon - 아이콘 사용 안함 - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt 전원 관리</b><br/> - LXQt 데스크탑 환경을 위한 전원 관리</p><p> 작성자:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> - &nbsp; - 그리고 Razor 및 LXQt 프로젝트의 다른 프로젝트들</p><p> Copyright &copy; 2012-2014</p><p> 번역자:<br/> &nbsp; 이정희 <daemul72@gmail.com></p> - - - - LXQt Power Management info - LXQt 전원 관리 정보 - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - LXQt 전원 관리 트레이 아이콘은 <i>lxqt-config-powermanagement</i>에서 (재)활성화할 수 있습니다 - - - - Configure now - 지금 구성하기 - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_lt.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_lt.ts deleted file mode 100644 index 8e540e29eb..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_lt.ts +++ /dev/null @@ -1,335 +0,0 @@ - - - - - BatteryHelper - - - Empty - Tuščia - - - - Discharging - Išsikrauna - - - - Fully charged - Pilnai įkrauta - - - - Charging - Įkraunama - - - - Lithium ion - Ličio jonų - - - - Lithium polymer - Ličio polimerų - - - - Lithium iron phosphate - Ličio geležies fosfato - - - - Lead acid - Rūgštinė baterija - - - - Nickel cadmium - Nikelio kadmio - - - - Nickel metal hydride - Nikelio-metalo hidrido - - - - Unknown - Nežinoma - - - - Personal Digital Assistant's battery - Delninuko baterija - - - - Uninterruptible Power Supply's battery - Nenutrūkstamo maitinimo šaltinio baterija - - - - Primary battery - Pirminė baterija - - - - Mouse battery - Pelės baterija - - - - Keyboard battery - Klaviatūros baterija - - - - Keyboard and mouse's battery - Klaviatūros ir pelės baterija - - - - Camera battery - Kameros baterija - - - - Phone battery - Telefono baterija - - - - Monitor battery - Monitoriaus baterija - - - - Unknown battery - Nežinoma baterija - - - - BatteryInfoDialog - - - Dialog - Dialogas - - - - Battery Info - Baterijos informacija - - - - BatteryInfoFrame - - - Power Management - Maitinimo valdymas - - - - Temperature: - Temperatūra: - - - - Type: - Tipas: - - - - State: - Būsena: - - - - Energy Full Design: - Didžiausia įkrova pagal projektavimą: - - - - Energy Full: - Didžiausia įkrova: - - - - Energy Now: - Dabartinė įkrova: - - - - Energy rate: - Įkrovos galia: - - - - Technology: - Technologija: - - - - Voltage: - Įtampa: - - - - Vendor: - Pardavėjas: - - - - BatteryWatcher - - - No battery! - Nėra baterijos! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt nepavyko rasti duomenų apie jokią bateriją - stebėjimas išjungtas - - - - Power low! - Liko mažai energijos! - - - - Suspending in %n second(s) - - Pristabdoma po %n sekundės - Pristabdoma po %n sekundžių - Pristabdoma po %n sekundžių - - - - - Hibernating in %n second(s) - - Užmigdoma po %n sekundės - Užmigdoma po %n sekundžių - Užmigdoma po %n sekundžių - - - - - Shutting down in %n second(s) - - Išjungiama po %n sekundės - Išjungiama po %n sekundžių - Išjungiama po %n sekundžių - - - - - PowerButton - - - Power off key action - Išjungimo klavišo veiksmas - - - - Suspend key action - Pristabdymo klavišo veiksmas - - - - Hibernate key action - Užmigdymo klavišo veiksmas - - - - PowerManagementd - - - Power Management - Maitinimo valdymas - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Jūs pirmą kartą paleidote LXQt maitinimo tvarkytuvę. -Jūs galite ją konfigūruoti nustatymuose... - - - - Configure... - Konfigūruoti... - - - - TrayIcon - - - Configure - Konfigūruoti - - - - 30 minutes - 30 minučių - - - - 1 hour - 1 valandą - - - - 2 hours - 2 valandas - - - - 3 hours - 3 valandas - - - - 4 hours - 4 valandas - - - - Pause idleness checks - Pristabdyti neveiklumo patikrinimus - - - - - About - Apie - - - - Disable icon - Išjungti piktogramą - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt maitinimo tvarkytuvė</b><br/> - Maitinimo tvarkytuvė, skirta LXQt darbalaukio aplinkai</p><p> Autoriai:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - ir kiti iš Razor ir LXQt projektų</p><p> Autorių teisės &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt maitinimo tvarkytuvės informacija - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - LXQt maitinimo tvarkytuvės dėklo piktograma gali būti (iš naujo) įjungta, pasinaudojus <i>lxqt-config-powermanagement</i> - - - - Configure now - Konfigūruoti dabar - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_nb_NO.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_nb_NO.ts deleted file mode 100644 index c5bf8147fb..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_nb_NO.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Tomt - - - - Discharging - Utlader - - - - Fully charged - Fullt oppladet - - - - Charging - Lader - - - - Lithium ion - - - - - Lithium polymer - - - - - Lithium iron phosphate - Lithium jernfosfat - - - - Lead acid - Blyakkumulator - - - - Nickel cadmium - Nikkel kadmium - - - - Nickel metal hydride - Nickel metallhydrid - - - - Unknown - Ukjent - - - - Personal Digital Assistant's battery - PDAs batteri - - - - Uninterruptible Power Supply's battery - Uavbrytelig strømforsynings batteri - - - - Primary battery - Primærbatteri - - - - Mouse battery - Musbatteri - - - - Keyboard battery - Tastaturbatteri - - - - Keyboard and mouse's battery - Tastaturets og musens batteri - - - - Camera battery - Kamerabatteri - - - - Phone battery - Telefonbatteri - - - - Monitor battery - Skjermbatteri - - - - Unknown battery - Ukjent batteri - - - - BatteryInfoDialog - - - Dialog - - - - - Battery Info - Batteriinfo - - - - BatteryInfoFrame - - - Power Management - Strømstyring - - - - Temperature: - Temperatur: - - - - Type: - - - - - State: - Tilstand: - - - - Energy Full Design: - Designet maks energi: - - - - Energy Full: - Maks energi: - - - - Energy Now: - Energi nå: - - - - Energy rate: - Energirate: - - - - Technology: - Teknologi: - - - - Voltage: - Spenning: - - - - Vendor: - Produsent: - - - - BatteryWatcher - - - No battery! - Ikke noe batteri! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt kunne ikke finne data om noe batteri - styring ble skrudd av - - - - Power low! - Lite strøm! - - - - Suspending in %n second(s) - - Hvile om %n sekund - Hvile om %n sekunder - - - - - Hibernating in %n second(s) - - Dvale om %n sekund - Dvale om %n sekunder - - - - - Shutting down in %n second(s) - - Skrur av om %n sekund - Skrur av om %n sekunder - - - - - PowerButton - - - Power off key action - Handling for på/av-knapp - - - - Suspend key action - Handling for hviletast - - - - Hibernate key action - Handling for dvaletast - - - - PowerManagementd - - - Power Management - Strømstyring - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Du kjører LXQt strømstyring for første gang. -Du kan konfigurere det fra innstillinger... - - - - Configure... - Konfigurer... - - - - TrayIcon - - - Configure - Konfigurer - - - - 30 minutes - 30 minutter - - - - 1 hour - 1 time - - - - 2 hours - 2 timer - - - - 3 hours - 3 timer - - - - 4 hours - 4 timer - - - - Pause idleness checks - Ta pause i lediggangssjekker - - - - - About - Om - - - - Disable icon - Skru av symbol - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt strømstyring</b><br/> - strømstyring for LXQt skrivebordsmiljøet</p><p> Opphavsmenn:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - og andre fra Razor-Qt og LXQt prosjektene</p><p> Opphavsrett &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt strømstyringsinfo - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - LXQt strømstyringssymbolet for systemtrauet kan skrus på (igjen) i <i>LXQt strømstyringsinnstillinger</i> - - - - Configure now - Konfigurer nå - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_nl.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_nl.ts deleted file mode 100644 index daf9d5b44a..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_nl.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Leeg - - - - Discharging - Bezig met ontladen - - - - Fully charged - Volledig opgeladen - - - - Charging - Bezig met opladen - - - - Lithium ion - Lithium-ion - - - - Lithium polymer - Lithium-polymeer - - - - Lithium iron phosphate - Lithium-ijzerfosfaat - - - - Lead acid - Loodzuur - - - - Nickel cadmium - Nikkel-cadmium - - - - Nickel metal hydride - Nikkel-metaalhydride - - - - Unknown - Onbekend - - - - Personal Digital Assistant's battery - PDA-accu - - - - Uninterruptible Power Supply's battery - Accu voor onderbrekingsvrije stroomverzorging (UPS) - - - - Primary battery - Primaire accu - - - - Mouse battery - Muisaccu - - - - Keyboard battery - Toetsenbordaccu - - - - Keyboard and mouse's battery - Muis- en toetsenbordaccu - - - - Camera battery - Camera-accu - - - - Phone battery - Telefoonaccu - - - - Monitor battery - Beeldschermaccu - - - - Unknown battery - Onbekende accu - - - - BatteryInfoDialog - - - Dialog - Dialoogvenster - - - - Battery Info - Accu-informatie - - - - BatteryInfoFrame - - - Power Management - Energiebeheer - - - - Temperature: - Temperatuur: - - - - Type: - Soort: - - - - State: - Status: - - - - Energy Full Design: - Maximale lading volgens berekening: - - - - Energy Full: - Maximale lading: - - - - Energy Now: - Huidige lading: - - - - Energy rate: - Laadsnelheid: - - - - Technology: - Technologie: - - - - Voltage: - Spanning: - - - - Vendor: - Maker: - - - - BatteryWatcher - - - No battery! - Geen accu! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt heeft geen gegevens vinden over een accu gevonden - de monitor is uitgeschakeld - - - - Power low! - Lage accuspanning! - - - - Suspending in %n second(s) - - Pauzestand over %n seconde - Pauzestand over %n seconden - - - - - Hibernating in %n second(s) - - Slaapstand over %n seconde - Slaapstand over %n seconden - - - - - Shutting down in %n second(s) - - Afsluiten over %n seconde - Afsluiten over %n seconden - - - - - PowerButton - - - Power off key action - Afsluitknopactie - - - - Suspend key action - Pauzestandknopactie - - - - Hibernate key action - Slaapstandknopactie - - - - PowerManagementd - - - Power Management - Energiebeheer - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - U voert LXQt-energiebeheer voor de eerste keer uit. -U kunt energiebeheer instellen in de instellingen… - - - - Configure... - Instellen… - - - - TrayIcon - - - Configure - Instellen - - - - 30 minutes - 30 minuten - - - - 1 hour - 1 uur - - - - 2 hours - 2 uur - - - - 3 hours - 3 uur - - - - 4 hours - 4 uur - - - - Pause idleness checks - Inactiviteitscontroles onderbreken - - - - - About - Over - - - - Disable icon - Pictogram verbergen - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt-energiebeheer</b><br/> - Energiebeheer van de LXQt-werkomgeving</p><p> Makers:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - en anderen uit de Razor- en LXQt-projecten</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt-energiebeheerinformatie - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Het systeemvakpictogram van LXQt-energiebeheer kan (opnieuw) worden getoond via <i>lxqt-config-powermanagement</i> - - - - Configure now - Nu instellen - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pl.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pl.ts deleted file mode 100644 index 4470830874..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pl.ts +++ /dev/null @@ -1,335 +0,0 @@ - - - - - BatteryHelper - - - Empty - Pusta - - - - Discharging - Rozładowywanie - - - - Fully charged - W pełni naładowana - - - - Charging - Ładowanie - - - - Lithium ion - Litowo-jonowa - - - - Lithium polymer - Litowo-polimerowa - - - - Lithium iron phosphate - Litowo-żelazowo-fosforanowa - - - - Lead acid - Kwasowo-azotowa - - - - Nickel cadmium - Niklowo-kadmowa - - - - Nickel metal hydride - Wodorowo-niklowa - - - - Unknown - Nieznana - - - - Personal Digital Assistant's battery - Bateria PDA - - - - Uninterruptible Power Supply's battery - Bateria zasilacza awaryjnego - - - - Primary battery - Główna bateria - - - - Mouse battery - Bateria myszy - - - - Keyboard battery - Bateria klawiatury - - - - Keyboard and mouse's battery - Bateria klawiatury i myszy - - - - Camera battery - Bateria kamery - - - - Phone battery - Bateria telefonu - - - - Monitor battery - Bateria monitora - - - - Unknown battery - Nieznana bateria - - - - BatteryInfoDialog - - - Dialog - Okno dialogowe - - - - Battery Info - Informacje o baterii - - - - BatteryInfoFrame - - - Power Management - Zarządzanie zasilaniem - - - - Temperature: - Temperatura: - - - - Type: - Rodzaj: - - - - State: - Stan: - - - - Energy Full Design: - Wskazywana całkowita energia: - - - - Energy Full: - Całkowita energia: - - - - Energy Now: - Energia teraz: - - - - Energy rate: - Wskaźnik energii: - - - - Technology: - Technologia: - - - - Voltage: - Napięcie: - - - - Vendor: - Producent: - - - - BatteryWatcher - - - No battery! - Brak baterii! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt nie znalazł danych o żadnej baterii – monitorowanie wyłączone - - - - Power low! - Niski poziom zasilania! - - - - Suspending in %n second(s) - - Uśpienie nastąpi za %n sekundę - Uśpienie nastąpi za %n sekundy - Uśpienie nastąpi za %n sekund - - - - - Hibernating in %n second(s) - - Hibernacja nastąpi za %n sekundę - Hibernacja nastąpi za %n sekundy - Hibernacja nastąpi za %n sekund - - - - - Shutting down in %n second(s) - - Komputer zostanie wyłączony za %n sekundę - Komputer zostanie wyłączony za %n sekundy - Komputer zostanie wyłączony za %n sekund - - - - - PowerButton - - - Power off key action - - - - - Suspend key action - - - - - Hibernate key action - - - - - PowerManagementd - - - Power Management - Zarządzanie zasilaniem - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Uruchamiasz zarządzanie energią LXQt po raz pierwszy. -Możesz skonfigurować jego ustawienia… - - - - Configure... - Konfiguruj… - - - - TrayIcon - - - Configure - Konfiguruj - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - Info - - - - Disable icon - Wyłącz ikonę - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Zarządzanie energią LXQt</b><br/> - Zarządzanie energią w środowisku LXQt</p><p> Autorzy:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - i inni z projektu Razor i LXQt</p><p> Prawa autorskie &copy; 2012-2014</p> - - - - LXQt Power Management info - Informacje o Zarządzaniu energią LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Ikona w pasku zadań może być włączona ponownie w ustawieniach Zarządzania energią LXQt - - - - Configure now - Konfiguruj teraz - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pt.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pt.ts deleted file mode 100644 index fdf4f8de22..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pt.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Vazia - - - - Discharging - A descarregar - - - - Fully charged - Totalmente carregada - - - - Charging - A carregar - - - - Lithium ion - Ião de lítio - - - - Lithium polymer - Polímero de lítio - - - - Lithium iron phosphate - Fosfato de ferro-lítio - - - - Lead acid - Ácido de chumbo - - - - Nickel cadmium - Níquel-cádmio - - - - Nickel metal hydride - Níquel-hidreto metálico - - - - Unknown - Desconhecido - - - - Personal Digital Assistant's battery - Bateria de PDA - - - - Uninterruptible Power Supply's battery - Bateria de UPS - - - - Primary battery - Bateria principal - - - - Mouse battery - Bateria do rato - - - - Keyboard battery - Bateria do teclado - - - - Keyboard and mouse's battery - Bateria do rato e do teclado - - - - Camera battery - Bateria da câmera - - - - Phone battery - Bateria do telefone - - - - Monitor battery - Bateria do monitor - - - - Unknown battery - Bateria desconhecida - - - - BatteryInfoDialog - - - Dialog - Caixa de diálogo - - - - Battery Info - Informações da bateria - - - - BatteryInfoFrame - - - Power Management - Gestão de energia - - - - Temperature: - Temperatura: - - - - Type: - Tipo: - - - - State: - Estado: - - - - Energy Full Design: - Energia de fábrica: - - - - Energy Full: - Energia máxima: - - - - Energy Now: - Energia atual: - - - - Energy rate: - Taxa de energia: - - - - Technology: - Tecnologia: - - - - Voltage: - Voltagem: - - - - Vendor: - Fabricante: - - - - BatteryWatcher - - - No battery! - Nenhuma bateria! - - - - LXQt could not find data about any battery - monitoring disabled - O LXQt não consegui encontrar qualquer bateria e a monitorização foi desativada - - - - Power low! - Energia baixa! - - - - Suspending in %n second(s) - - Suspensão dentro de %n segundo - Suspensão dentro de %n segundos - - - - - Hibernating in %n second(s) - - Hibernação dentro de %n segundo - Hibernação dentro de %n segundos - - - - - Shutting down in %n second(s) - - Encerramento dentro de %n segundo - Encerramento dentro de %n segundos - - - - - PowerButton - - - Power off key action - Ação da tecla Desligar - - - - Suspend key action - Ação da tecla Suspender - - - - Hibernate key action - Ação da tecla Hibernar - - - - PowerManagementd - - - Power Management - Gestão de energia - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Está a executar a gestão de energia do LXQt pela primeira vez. -Pode configurar o módulo nas definições... - - - - Configure... - Configurar... - - - - TrayIcon - - - Configure - Configurar - - - - 30 minutes - 30 minutos - - - - 1 hour - 1 hora - - - - 2 hours - 2 horas - - - - 3 hours - 3 horas - - - - 4 hours - 4 horas - - - - Pause idleness checks - Pausa de verificação da inatividade - - - - - About - Acerca - - - - Disable icon - Desativar ícone - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Gestão de energia do LXQt</b><br/> - Gestão de energia para o LXQt Desktop Environment</p><p> Autores:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - e mais algumas pessoas das equipas de desenvolvimento do Razor e do LXQt</p><p> Copyright &copy; 2012-2019</p> - - - - LXQt Power Management info - Informações da gestão de energia do LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Pode reativar o ícone da bandeja através do comando <i>lxqt-config-powermanagement</i> - - - - Configure now - Configurar agora - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pt_BR.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pt_BR.ts deleted file mode 100644 index e208438ad9..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_pt_BR.ts +++ /dev/null @@ -1,332 +0,0 @@ - - - - - BatteryHelper - - - Empty - Descarregada - - - - Discharging - Descarregando - - - - Fully charged - Totalmente carregada - - - - Charging - Recarregando - - - - Lithium ion - Íons de lítio - - - - Lithium polymer - Polímero de lítio - - - - Lithium iron phosphate - Fosfato de ferro e lítio - - - - Lead acid - Chumbo-ácido - - - - Nickel cadmium - Níquel-cádmio - - - - Nickel metal hydride - Hidreto metálico de níquel - - - - Unknown - Desconhecido(a) - - - - Personal Digital Assistant's battery - Bateria do PDA - - - - Uninterruptible Power Supply's battery - Bateria do No-break - - - - Primary battery - Bateria principal - - - - Mouse battery - Bateria do mouse - - - - Keyboard battery - Bateria do teclado - - - - Keyboard and mouse's battery - Bateria do mouse e teclado - - - - Camera battery - Bateria da câmera - - - - Phone battery - Bateria do telefone - - - - Monitor battery - Bateria do monitor - - - - Unknown battery - Bateria desconhecida - - - - BatteryInfoDialog - - - Dialog - Diálogo - - - - Battery Info - Informações de bateria - - - - BatteryInfoFrame - - - Power Management - Gerenciamento de energia - - - - Temperature: - Temperatura: - - - - Type: - Tipo: - - - - State: - Estado: - - - - Energy Full Design: - Capacidade de fábrica: - - - - Energy Full: - Energia máxima: - - - - Energy Now: - Energia atual: - - - - Energy rate: - Taxa de energia: - - - - Technology: - Tecnologia: - - - - Voltage: - Tensão elétrica: - - - - Vendor: - Fabricante: - - - - BatteryWatcher - - - No battery! - Sem bateria! - - - - LXQt could not find data about any battery - monitoring disabled - O LXQt não encontrou informações sobre nenhuma bateria - monitoramento desativado - - - - Power low! - Bateria fraca! - - - - Suspending in %n second(s) - - Suspendendo atividades em %n segundo(s) - Suspendendo atividades em %n segundos - - - - - Hibernating in %n second(s) - - Entrando em hibernação dentro de %n segundo(s) - Entrando em hibernação dentro de %n segundos - - - - - Shutting down in %n second(s) - - Desligamento automático em %n segundo(s) - Desligamento automático em %n segundos - - - - - PowerButton - - - Power off key action - Ação do botão desligar - - - - Suspend key action - Ação do botão suspender - - - - Hibernate key action - Ação do botão hibernar - - - - PowerManagementd - - - Power Management - Gerenciamento de energia - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - O Gerenciamento de Energia do LXQt está sendo executado pela primeira vez. -Você pode ajustá-lo como quiser pelo menu de configurações... - - - - Configure... - Configurar... - - - - TrayIcon - - - Configure - Configurar - - - - 30 minutes - 30 minutos - - - - 1 hour - 1hora - - - - 2 hours - 2 horas - - - - 3 hours - 3 horas - - - - 4 hours - 4 horas - - - - Pause idleness checks - Pausar verificações de ociosidade - - - - - About - Sobre - - - - Disable icon - Desativar ícone - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Gerenciamento de Energia do LXQt</b><br/> - Gerenciamento de energia e bateria para o LXQt Desktop Environment</p><p> Autores:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - e outros dos projetos Razor-qt e LXQt</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - Informações sobre o Gerenciamento de Energia do LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - O ícone do Gerenciamento de Energia do LXQt pode ser (re)ativado em <i>lxqt-config-powermanagement</i> - - - - Configure now - Configurar agora - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ru.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ru.ts deleted file mode 100644 index efbfb2f709..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_ru.ts +++ /dev/null @@ -1,335 +0,0 @@ - - - - - BatteryHelper - - - Empty - Пустая - - - - Discharging - Разряжается - - - - Fully charged - Полностью заряжена - - - - Charging - Заряжается - - - - Lithium ion - Литий-ионная - - - - Lithium polymer - Литий-полимерная - - - - Lithium iron phosphate - Литий-железо-фосфатная - - - - Lead acid - Свинцово-кислотная - - - - Nickel cadmium - Никель-кадмиевая - - - - Nickel metal hydride - Никель-метал-гидридная - - - - Unknown - Неизвестно - - - - Personal Digital Assistant's battery - Батарея карманного персонального компьютера - - - - Uninterruptible Power Supply's battery - Батарея источника бесперебойного электропитания - - - - Primary battery - Основная батарея - - - - Mouse battery - Батарея мыши - - - - Keyboard battery - Батарея клавиатуры - - - - Keyboard and mouse's battery - Батарея мыши и клавиатуры - - - - Camera battery - Батарея камеры - - - - Phone battery - Батарея телефона - - - - Monitor battery - Батарея монитора - - - - Unknown battery - Неизвестная батарея - - - - BatteryInfoDialog - - - Dialog - Диалог - - - - Battery Info - Информация о батарее - - - - BatteryInfoFrame - - - Power Management - Управление энергопотреблением - - - - Temperature: - Температура: - - - - Type: - Тип: - - - - State: - Состояние: - - - - Energy Full Design: - Максимальный заряд: - - - - Energy Full: - Полный заряд: - - - - Energy Now: - Заряд сейчас: - - - - Energy rate: - Мощность тока: - - - - Technology: - Технология: - - - - Voltage: - Напряжение: - - - - Vendor: - Производитель: - - - - BatteryWatcher - - - No battery! - Нет батареи! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt не смог найти информацию о какой-либо батарее - наблюдение отменено - - - - Power low! - Низкий заряд! - - - - Suspending in %n second(s) - - Ждущий режим через %n секунду - Ждущий режим через %n секунды - Ждущий режим через %n секунд - - - - - Hibernating in %n second(s) - - Гибернация через %n секунду - Гибернация через %n секунды - Гибернация через %n секунд - - - - - Shutting down in %n second(s) - - Выключение через %n секунду - Выключение через %n секунды - Выключение через %n секунд - - - - - PowerButton - - - Power off key action - Действие кнопки питания - - - - Suspend key action - Действие кнопки сна - - - - Hibernate key action - Действие кнопки «Спящий режим» - - - - PowerManagementd - - - Power Management - Управление энергопотреблением - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Вы запускаете управление энергопотреблением LXQt впервые. -Вы можете изменить конфигурацию в настройках… - - - - Configure... - Настроить… - - - - TrayIcon - - - - About - О программе - - - - Configure - Настроить - - - - 30 minutes - 30 минут - - - - 1 hour - 1 час - - - - 2 hours - 2 часа - - - - 3 hours - 3 часа - - - - 4 hours - 4 часа - - - - Pause idleness checks - Приостановить проверку бездействия - - - - Disable icon - Не показывать значок - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Управление энергопотреблением LXQt</b><br/> - Управление энергопотреблением для окружения рабочего стола LXQt</p><p> Авторы:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - и другие из проектов Razor и LXQt</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - Сведения об управлении энергопотреблением LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Значок в системном лотке для управление энергопотреблением может быть включён в <i>Настройках управления энергопотреблением</i> - - - - Configure now - Настроить сейчас - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_si.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_si.ts deleted file mode 100644 index be3632655c..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_si.ts +++ /dev/null @@ -1,331 +0,0 @@ - - - - - BatteryHelper - - - Empty - - - - - Discharging - - - - - Fully charged - - - - - Charging - - - - - Lithium ion - - - - - Lithium polymer - - - - - Lithium iron phosphate - - - - - Lead acid - - - - - Nickel cadmium - - - - - Nickel metal hydride - - - - - Unknown - - - - - Personal Digital Assistant's battery - - - - - Uninterruptible Power Supply's battery - - - - - Primary battery - - - - - Mouse battery - - - - - Keyboard battery - - - - - Keyboard and mouse's battery - - - - - Camera battery - - - - - Phone battery - - - - - Monitor battery - - - - - Unknown battery - - - - - BatteryInfoDialog - - - Dialog - - - - - Battery Info - - - - - BatteryInfoFrame - - - Power Management - - - - - Temperature: - - - - - Type: - - - - - State: - - - - - Energy Full Design: - - - - - Energy Full: - - - - - Energy Now: - - - - - Energy rate: - - - - - Technology: - - - - - Voltage: - - - - - Vendor: - - - - - BatteryWatcher - - - No battery! - - - - - LXQt could not find data about any battery - monitoring disabled - - - - - Power low! - - - - - Suspending in %n second(s) - - - - - - - - Hibernating in %n second(s) - - - - - - - - Shutting down in %n second(s) - - - - - - - - PowerButton - - - Power off key action - - - - - Suspend key action - - - - - Hibernate key action - - - - - PowerManagementd - - - Power Management - - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - - - - - Configure... - - - - - TrayIcon - - - Configure - - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - - - - - Disable icon - - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - - - - - LXQt Power Management info - - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - - - - - Configure now - - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_sk_SK.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_sk_SK.ts deleted file mode 100644 index 8f01c78e82..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_sk_SK.ts +++ /dev/null @@ -1,335 +0,0 @@ - - - - - BatteryHelper - - - Empty - Takmer vybité - - - - Discharging - Vybíja sa - - - - Fully charged - Úplne nabité - - - - Charging - Nabíja sa - - - - Lithium ion - Lithium ion - - - - Lithium polymer - Lithium polymer - - - - Lithium iron phosphate - Lithium železo fosfát - - - - Lead acid - Olovená - - - - Nickel cadmium - Nikel kadmium - - - - Nickel metal hydride - Nikel metal hybrid - - - - Unknown - Neznáma - - - - Personal Digital Assistant's battery - Batéria osobného digitálneho asistenta (PDA) - - - - Uninterruptible Power Supply's battery - Batéria zdroja neprerušovaného napájania (UPS) - - - - Primary battery - Primárna batéria - - - - Mouse battery - Batéria myši - - - - Keyboard battery - Batéria klávesnice - - - - Keyboard and mouse's battery - Batéria klávesnice a myši - - - - Camera battery - Batéria fotoaparátu/kamery - - - - Phone battery - Batéria telefónu - - - - Monitor battery - Monitorovať batériu - - - - Unknown battery - Neznáme batéria - - - - BatteryInfoDialog - - - Dialog - Dialóg - - - - Battery Info - Informácie o batérii - - - - BatteryInfoFrame - - - Power Management - Správa napájania - - - - Temperature: - Teplota: - - - - Type: - Typ: - - - - State: - Stav: - - - - Energy Full Design: - Kapacita z výroby: - - - - Energy Full: - Zostávajúca kapacita: - - - - Energy Now: - Aktuálne nabitie: - - - - Energy rate: - Intenzita vybíjania: - - - - Technology: - Technológia: - - - - Voltage: - Napätie: - - - - Vendor: - Výrobca: - - - - BatteryWatcher - - - No battery! - Žiadna batéria! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt sa nepodarili nájsť údaje o žiadnej batérii - sledovanie je preto vypnuté - - - - Power low! - Takmer vybité! - - - - Suspending in %n second(s) - - Uspanie do pamäti za %n sekundu - Uspanie do pamäti za %n sekundy - Uspanie do pamäti za %n sekúnd - - - - - Hibernating in %n second(s) - - Uspanie na disk za %n sekundu - Uspanie na disk za %n sekundy - Uspanie na disk za %n sekúnd - - - - - Shutting down in %n second(s) - - Vypnutie za %n sekundu - Vypnutie za %n sekundy - Vypnutie za %n sekúnd - - - - - PowerButton - - - Power off key action - Tlačítko vypnutia - - - - Suspend key action - Tlačítko vypnutia - - - - Hibernate key action - Tlačítko uspania - - - - PowerManagementd - - - Power Management - Správca napájania - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - LXQt správa napájania je spustená prvý krát. -Parametre je možné upraviť v Nastaveniach… - - - - Configure... - Nastaviť… - - - - TrayIcon - - - Configure - Nastaviť - - - - 30 minutes - 30 minút - - - - 1 hour - 1 hodina - - - - 2 hours - 2 hodiny - - - - 3 hours - 3 hodiny - - - - 4 hours - 4 hodiny - - - - Pause idleness checks - Pozastaviť zisťovanie neaktivity - - - - - About - O aplikácii - - - - Disable icon - Nezobrazovať ikonu - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Správa napájania</b><br/> – správa napájania pre pracovné prostredie LXQt</p><p> Autori:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; – a ďalší z projektov Razor a LXQt</p><p> Autorské práva &copy; 2012-2014</p> - - - - LXQt Power Management info - Informácie zo spravy napájania LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Zobrazovanie ikony správy napájania v systémovom panely je možné (znovu) zapnúť v <i>lxqt-config-powermanagement</i> - - - - Configure now - Nastaviť teraz - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_tr.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_tr.ts deleted file mode 100644 index dbcdc8ecbd..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_tr.ts +++ /dev/null @@ -1,329 +0,0 @@ - - - - - BatteryHelper - - - Empty - Boş - - - - Discharging - Boşalıyor - - - - Fully charged - Tamamen doldu - - - - Charging - Doluyor - - - - Lithium ion - Lityum iyon - - - - Lithium polymer - Lityum polimer - - - - Lithium iron phosphate - Lityum demir fosfat - - - - Lead acid - Kurşun asit - - - - Nickel cadmium - Nikel kadmiyum - - - - Nickel metal hydride - Nikel metal hidrid - - - - Unknown - Bilinmeyen - - - - Personal Digital Assistant's battery - Kişisel Dijital Asistan'ın bataryası - - - - Uninterruptible Power Supply's battery - Kesintisiz Güç Kaynağı'nın bataryası - - - - Primary battery - Birincil batarya - - - - Mouse battery - Fare bataryası - - - - Keyboard battery - Klavye batarya - - - - Keyboard and mouse's battery - Klavye ve fare'nin bataryası - - - - Camera battery - Kamera bataryası - - - - Phone battery - Telefon bataryası - - - - Monitor battery - Ekran bataryası - - - - Unknown battery - Bilinmeyen batarya - - - - BatteryInfoDialog - - - Dialog - Pencere - - - - Battery Info - Batarya Bilgisi - - - - BatteryInfoFrame - - - Power Management - Güç Yönetimi - - - - Temperature: - Sıcaklık: - - - - Type: - Tür: - - - - State: - Durum: - - - - Energy Full Design: - Enerji Tam Durumu: - - - - Energy Full: - Tam Enerji: - - - - Energy Now: - Şimdiki Enerji: - - - - Energy rate: - Enerji oranı: - - - - Technology: - Teknoloji: - - - - Voltage: - Gerilim: - - - - Vendor: - Üretici: - - - - BatteryWatcher - - - No battery! - Batarya yok! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt bir batarya verisi bulamadı - izleme iptal edildi - - - - Power low! - Düşük güç! - - - - Suspending in %n second(s) - - %n saniyedir beklemede - - - - - Hibernating in %n second(s) - - %n saniyedir uykuda - - - - - Shutting down in %n second(s) - - %n saniyede kapanıyor - - - - - PowerButton - - - Power off key action - Kapatma tuşu eylemi - - - - Suspend key action - Askıya al tuşu eylemi - - - - Hibernate key action - Uykuya al tuşu eylemi - - - - PowerManagementd - - - Power Management - Güç Yönetimi - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - LXQT Güç Yönetimi'ni ilk defa çalıştırıyorsunuz. -Bunu ayarlardan yapılandırabilirsiniz... - - - - Configure... - Yapılandır... - - - - TrayIcon - - - Configure - Yapılandır - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - Hakkında - - - - Disable icon - Simgeyi etkisizleştir - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt Güç Yönetimi</b><br/> -LXQt Masaüstü Ortamı için Güç Yöneticisi</p><p> Yazarlar:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - ve Razor ve LXQt projelerinden diğerleri</p><p> Telif Hakkı: &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQT Güç Yönetimi bilgisi - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - LXQt Güç Yönetimi sistem çekmecesi simgesi <i>lxqt-config-powermanagement</i>'tan (yeniden) etkinleştirilebilir - - - - Configure now - Şimdi yapılandır - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_uk.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_uk.ts deleted file mode 100644 index de0d4d0477..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_uk.ts +++ /dev/null @@ -1,335 +0,0 @@ - - - - - BatteryHelper - - - Empty - Повністю розряджено - - - - Discharging - Розрядження - - - - Fully charged - Повністю заряджено - - - - Charging - Заряджання - - - - Lithium ion - Літій-іон - - - - Lithium polymer - Літій-полімер - - - - Lithium iron phosphate - Літій фосфат заліза - - - - Lead acid - Свинцево кислотний - - - - Nickel cadmium - Нікель кадмій - - - - Nickel metal hydride - Нікель металогідрат - - - - Unknown - Невідомо - - - - Personal Digital Assistant's battery - Персональний цифровий асистент батареї - - - - Uninterruptible Power Supply's battery - Батарея безперебійного живлення - - - - Primary battery - Основна батарея - - - - Mouse battery - Батарея мишки - - - - Keyboard battery - Батарея клавіатури - - - - Keyboard and mouse's battery - Батарея клавіатури і мишки - - - - Camera battery - Батарея камери - - - - Phone battery - Батарея телефону - - - - Monitor battery - Батарея монітору - - - - Unknown battery - Невідома батарея - - - - BatteryInfoDialog - - - Dialog - Діалог - - - - Battery Info - Інформація про батарею - - - - BatteryInfoFrame - - - Power Management - Менеджер живлення - - - - Temperature: - Температура: - - - - Type: - Тип: - - - - State: - Стан: - - - - Energy Full Design: - Повний профіль заряду: - - - - Energy Full: - Повний заряд: - - - - Energy Now: - Заряд зараз: - - - - Energy rate: - Оцінка потужності: - - - - Technology: - Технологія: - - - - Voltage: - Напруга: - - - - Vendor: - Виробник: - - - - BatteryWatcher - - - No battery! - Немає батареї! - - - - LXQt could not find data about any battery - monitoring disabled - LXQT не в змозі знайти дані про жодну з батарей - спостереження вимкнене - - - - Power low! - Низький заряд! - - - - Suspending in %n second(s) - - Засинання через %n секунду - Засинання через %n секунди - Засинання через %n секунд - - - - - Hibernating in %n second(s) - - Гібернація через %n секунду - Гібернація через %n секунди - Гібернація через %n секунд - - - - - Shutting down in %n second(s) - - Вимикання через %n секунду - Вимикання через %n секунди - Вимикання через %n секунд - - - - - PowerButton - - - Power off key action - Дія клавіші живлення - - - - Suspend key action - Дія клавіші призупинення - - - - Hibernate key action - Дія клавіші режиму сну - - - - PowerManagementd - - - Power Management - Менеджер живлення - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Ви запустили менеджер живлення LXQT вперше. -Його можна сконфігурувати, використовуючи налаштування... - - - - Configure... - Налаштування... - - - - TrayIcon - - - Configure - Налаштування - - - - 30 minutes - 30 хвилин - - - - 1 hour - 1 година - - - - 2 hours - 2 години - - - - 3 hours - 3 години - - - - 4 hours - 4 години - - - - Pause idleness checks - Призупинити перевірку бездіяльності - - - - - About - Про - - - - Disable icon - Вимкнути піктограму - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Менеджер живлення LXQt</b><br/> - Менеджер живлення для середовища стільниці LXQt</p><p> Автори:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - та інші з проектів Razor і LXQt</p><p> Всі права застережено &copy; 2012-2014</p> - - - - LXQt Power Management info - Інформація про менеджер живлення LXQT - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Піктограму системного лотка менеджера живлення LXQT можна вимкнути в програмі <i>lxqt-config-powermanagement</i> - - - - Configure now - Налаштувати зараз - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_vi.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_vi.ts deleted file mode 100644 index 9c0f2d452e..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_vi.ts +++ /dev/null @@ -1,329 +0,0 @@ - - - - - BatteryHelper - - - Empty - Trống - - - - Discharging - Đang xả pin - - - - Fully charged - Sạc đầy - - - - Charging - Đang sạc - - - - Lithium ion - Lithium ion - - - - Lithium polymer - Lithium polymer - - - - Lithium iron phosphate - Lithium sắt phosphate - - - - Lead acid - Axít chì - - - - Nickel cadmium - Nickel cadmium - - - - Nickel metal hydride - Hydride kim loại nickel - - - - Unknown - Không rõ - - - - Personal Digital Assistant's battery - Pin Trợ lí Kĩ thuật số Cá nhân - - - - Uninterruptible Power Supply's battery - Pin Nguồn cung Năng lượng Không ngắt quãng - - - - Primary battery - Pin chính - - - - Mouse battery - Pin chuột - - - - Keyboard battery - Pin bàn phím - - - - Keyboard and mouse's battery - Pin bàn phím và chuột - - - - Camera battery - Pin camera - - - - Phone battery - Pin điện thoại - - - - Monitor battery - Pin màn hình - - - - Unknown battery - Pin không rõ - - - - BatteryInfoDialog - - - Dialog - Hộp thoại - - - - Battery Info - Thông tin Pin - - - - BatteryInfoFrame - - - Power Management - Quản lí Năng lượng - - - - Temperature: - Nhiệt độ: - - - - Type: - Loại: - - - - State: - Tình trạng: - - - - Energy Full Design: - Thiết kế Năng lượng Đầy đủ: - - - - Energy Full: - Năng lượng Đầy: - - - - Energy Now: - Năng lượng Hiện tại: - - - - Energy rate: - Tỉ lệ năng lượng: - - - - Technology: - Công nghệ: - - - - Voltage: - Mức vôn: - - - - Vendor: - Hãng: - - - - BatteryWatcher - - - No battery! - Không có pin! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt không thể tìm thấy được dữ liệu về bất kì pin nào - theo dõi đã bị tắt - - - - Power low! - Pin yếu! - - - - Suspending in %n second(s) - - Tạm ngưng trong %n giây - - - - - Hibernating in %n second(s) - - Ngủ đông trong %n giây - - - - - Shutting down in %n second(s) - - Tắt máy trong %n giây - - - - - PowerButton - - - Power off key action - Hành động phím tắt nguồn - - - - Suspend key action - Hành động phím tạm ngưng - - - - Hibernate key action - Hành động phím ngủ đông - - - - PowerManagementd - - - Power Management - Quản lí Năng lượng - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - Bạn đang chạy Quản lí Năng lượng LXQt lần đầu tiên. -Bạn có thể tùy chỉnh nó trong cài đặt... - - - - Configure... - Tùy chỉnh... - - - - TrayIcon - - - Configure - Tùy chỉnh - - - - 30 minutes - - - - - 1 hour - - - - - 2 hours - - - - - 3 hours - - - - - 4 hours - - - - - Pause idleness checks - - - - - - About - Về - - - - Disable icon - Tắt biểu tượng - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>Quản lí Năng lượng LXQt </b><br/> - Quản lí Năng lượng cho Mội trường Desktop LXQt</p><p> Tác giả:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - và số khác từ dự án Razor và LXQt</p><p> Copyright &copy; 2012-2014</p> - - - - LXQt Power Management info - Thông tin Quản lí Năng lượng LXQt - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - Biểu tượng khay hệ thống Quản lí Năng lượng LXQt có thể được bật (lại) trong <i>lxqt-config-powermanagement</i> - - - - Configure now - Tùy chỉnh ngay bây giờ - - - diff --git a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_zh_CN.ts b/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_zh_CN.ts deleted file mode 100644 index 354205ed01..0000000000 --- a/LibLXQT/ARM Power Management/src/translations/lxqt-powermanagement_zh_CN.ts +++ /dev/null @@ -1,329 +0,0 @@ - - - - - BatteryHelper - - - Empty - - - - - Discharging - 正在放电 - - - - Fully charged - 已充满电 - - - - Charging - 正在充电 - - - - Lithium ion - 锂离子 - - - - Lithium polymer - 锂聚合物 - - - - Lithium iron phosphate - 磷酸铁锂 - - - - Lead acid - 铅酸 - - - - Nickel cadmium - 镍镉 - - - - Nickel metal hydride - 镍氢 - - - - Unknown - 未知 - - - - Personal Digital Assistant's battery - PDA 电池 - - - - Uninterruptible Power Supply's battery - UPS 电池 - - - - Primary battery - 主电池 - - - - Mouse battery - 鼠标电池 - - - - Keyboard battery - 键盘电池 - - - - Keyboard and mouse's battery - 键盘与鼠标电池 - - - - Camera battery - 照相机电池 - - - - Phone battery - 手机电池 - - - - Monitor battery - 监视器电池 - - - - Unknown battery - 未知电池 - - - - BatteryInfoDialog - - - Dialog - 对话框 - - - - Battery Info - 电池信息 - - - - BatteryInfoFrame - - - Power Management - 电源管理 - - - - Temperature: - 温度: - - - - Type: - 类型: - - - - State: - 状态: - - - - Energy Full Design: - 最大容量: - - - - Energy Full: - 完全容量: - - - - Energy Now: - 现在容量: - - - - Energy rate: - 容量率: - - - - Technology: - 技术: - - - - Voltage: - 电压: - - - - Vendor: - 供应商: - - - - BatteryWatcher - - - No battery! - 没有电池! - - - - LXQt could not find data about any battery - monitoring disabled - LXQt 找不到任何关于电池的数据 - 监视已关闭 - - - - Power low! - 电量不足! - - - - Suspending in %n second(s) - - %n 秒后挂起 - - - - - Hibernating in %n second(s) - - %n 秒后休眠 - - - - - Shutting down in %n second(s) - - %n 秒后关机 - - - - - PowerButton - - - Power off key action - 关闭电源按键操作 - - - - Suspend key action - 暂停的按键操作 - - - - Hibernate key action - 休眠的按键操作 - - - - PowerManagementd - - - Power Management - 电源管理 - - - - You are running LXQt Power Management for the first time. -You can configure it from settings... - 这是您第一次使用 LXQt 电源管理器 -您可以从设置配置... - - - - Configure... - 配置... - - - - TrayIcon - - - Configure - 配置 - - - - 30 minutes - 30分钟 - - - - 1 hour - 1小时 - - - - 2 hours - 2小时 - - - - 3 hours - 3小时 - - - - 4 hours - 4小时 - - - - Pause idleness checks - 暂停空闲检查 - - - - - About - 关于 - - - - Disable icon - 关闭图标 - - - - <p> <b>LXQt Power Management</b><br/> - Power Management for the LXQt Desktop Environment</p><p> Authors:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - and others from the Razor and LXQt projects</p><p> Copyright &copy; 2012-2014</p> - <p> <b>LXQt 电源管理器</b><br/> - LXQt 桌面环境的电源管理器</p><p> 作者:<br/> &nbsp; Christian Surlykke, Alec Moskvin<br/> &nbsp; - 及其他来自 Razor 和 LXQt 项目的贡献者</p><p> 版权所有 &copy; 2012-2014</p> - - - - LXQt Power Management info - LXQt 电源管理器信息 - - - - The LXQt Power Management tray icon can be (re)enabled in <i>lxqt-config-powermanagement</i> - LXQt 电源管理器的通知图标可以在<i>lxqt-config-powermanagement</i>中开启 - - - - Configure now - 现在配置 - - - diff --git a/LibLXQT/ARM Power Management/src/trayicon.cpp b/LibLXQT/ARM Power Management/src/trayicon.cpp deleted file mode 100644 index 9186004ef6..0000000000 --- a/LibLXQT/ARM Power Management/src/trayicon.cpp +++ /dev/null @@ -1,252 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2011 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "trayicon.h" -#include "batteryhelper.h" -#include "../config/powermanagementsettings.h" - -#include -#include - -TrayIcon::TrayIcon(Solid::Battery *battery, QObject *parent) - : QSystemTrayIcon(parent), - mBattery(battery), - mIconProducer(battery), - mContextMenu(), - mHasPauseEmblem(false) -{ - connect(mBattery, &Solid::Battery::chargePercentChanged, this, &TrayIcon::updateTooltip); - connect(mBattery, &Solid::Battery::chargeStateChanged, this, &TrayIcon::updateTooltip); - updateTooltip(); - - connect(&mIconProducer, &IconProducer::iconChanged, this, &TrayIcon::iconChanged); - iconChanged(); - - connect(this, &TrayIcon::activated, this, &TrayIcon::onActivated); - - mContextMenu.addAction(XdgIcon::fromTheme(QStringLiteral("configure")), tr("Configure"), - this, &TrayIcon::onConfigureTriggered); - - // pause actions - mPauseActions = new QActionGroup(this); - mPauseActions->setExclusionPolicy(QActionGroup::ExclusionPolicy::ExclusiveOptional); - connect(mPauseActions, &QActionGroup::triggered, this, &TrayIcon::onPauseTriggered); - - QAction *a = new QAction(tr("30 minutes"), mPauseActions); - a->setCheckable(true); - a->setData(PAUSE::Half); - - a = new QAction(tr("1 hour"), mPauseActions); - a->setCheckable(true); - a->setData(PAUSE::One); - - a = new QAction(tr("2 hours"), mPauseActions); - a->setCheckable(true); - a->setData(PAUSE::Two); - - a = new QAction(tr("3 hours"), mPauseActions); - a->setCheckable(true); - a->setData(PAUSE::Three); - - a = new QAction(tr("4 hours"), mPauseActions); - a->setCheckable(true); - a->setData(PAUSE::Four); - - QMenu *pauseMenu = mContextMenu.addMenu(XdgIcon::fromTheme(QStringLiteral("media-playback-pause")), - tr("Pause idleness checks")); - pauseMenu->addActions(mPauseActions->actions()); - - mContextMenu.addSeparator(); - - mContextMenu.addAction(XdgIcon::fromTheme(QStringLiteral("help-about")), tr("About"), - this, &TrayIcon::onAboutTriggered); - mContextMenu.addAction(XdgIcon::fromTheme(QStringLiteral("edit-delete")), tr("Disable icon"), - this, &TrayIcon::onDisableIconTriggered); - setContextMenu(&mContextMenu); -} - -TrayIcon::~TrayIcon() -{ -} - -void TrayIcon::iconChanged() -{ - mHasPauseEmblem = PowerManagementSettings().isIdlenessWatcherPaused(); - setIcon(mHasPauseEmblem ? emblemizedIcon() : mIconProducer.mIcon); -} - -QIcon TrayIcon::emblemizedIcon() -{ - static const QString pause_emblem = QL1S( - "\n" - "\n" - "\n" - "" - ); - - const QSize icnSize(200, 200); // NOTE: QSystemTrayIcon::geometry() gives an empty rectangle - QPixmap icnPix = mIconProducer.mIcon.pixmap(icnSize); - const qreal pixelRatio = icnPix.devicePixelRatio(); - const QSize icnPixSize((QSizeF(icnSize) * pixelRatio).toSize()); - - // first get the emblem pixmap - const QString cacheStr = QString::number(icnPixSize.width()) - + QString::number(icnPixSize.height()); - QPixmap emblemPix; - if (!QPixmapCache::find(cacheStr, &emblemPix)) - { - QSvgRenderer render(pause_emblem.toLocal8Bit()); - emblemPix = QPixmap(icnPixSize / 2); - emblemPix.fill(Qt::transparent); - emblemPix.setDevicePixelRatio(pixelRatio); - QPainter p(&emblemPix); - render.render(&p); - QPixmapCache::insert(cacheStr, emblemPix); - } - - // add the emblem to the icon - QPixmap pix = QPixmap(icnPixSize); - pix.fill(Qt::transparent); - pix.setDevicePixelRatio(pixelRatio); - QPainter painter(&pix); - painter.drawPixmap(0, 0, icnPix); - const int offset = icnSize.width() / 2; - painter.drawPixmap(offset, offset, emblemPix); // bottom right - - return QIcon(pix); -} - -void TrayIcon::updateTooltip() -{ - QString tooltip = BatteryHelper::stateToString(mBattery->chargeState()); - tooltip += QString::fromLatin1(" (%1 %)").arg(mBattery->chargePercent()); - setToolTip(tooltip); -} - -void TrayIcon::onConfigureTriggered() -{ - QProcess::startDetached(QL1S("lxqt-config-powermanagement"), QStringList()); -} - -void TrayIcon::onPauseTriggered(QAction *action) -{ - emit pauseChanged(!action->isChecked() ? PAUSE::None - : static_cast(action->data().toInt())); -} - -void TrayIcon::onAboutTriggered() -{ - QMessageBox::about(nullptr, - tr("About"), - tr( "

" - " LXQt Power Management
" - " - Power Management for the LXQt Desktop Environment" - "

" - "

" - " Authors:
" - "   Christian Surlykke, Alec Moskvin
" - "   - and others from the Razor and LXQt projects" - "

" - "

" - " Copyright © 2012-2014" - "

" - )); -} - - -void TrayIcon::onDisableIconTriggered() -{ - auto notification = new LXQt::Notification{tr("LXQt Power Management info"), nullptr}; - notification->setBody(tr("The LXQt Power Management tray icon can be (re)enabled in lxqt-config-powermanagement")); - notification->setIcon(QSL("preferences-system-power-management")); - notification->setActions({tr("Configure now")}); - notification->setUrgencyHint(LXQt::Notification::UrgencyLow); - connect(notification, &LXQt::Notification::actionActivated, [notification] { notification->close(); QProcess::startDetached(QL1S("lxqt-config-powermanagement"), QStringList()); }); - connect(notification, &LXQt::Notification::notificationClosed, notification, &QObject::deleteLater); - notification->update(); - - PowerManagementSettings().setShowIcon(false); -} - -void TrayIcon::onActivated(QSystemTrayIcon::ActivationReason reason) -{ - //qDebug() << "onActivated" << reason; - if (Trigger == reason) emit toggleShowInfo(); -} - -void TrayIcon::setPause(PAUSE duration) -{ - // add/remove the pause emblem and correct the checked action if needed - QAction *checked = mPauseActions->checkedAction(); - if (duration == PAUSE::None) - { - PowerManagementSettings().setIdlenessWatcherPaused(false); - if (mHasPauseEmblem) - iconChanged(); // removes the pause emblem - if (checked != nullptr) - checked->setChecked(false); - } - else - { - PowerManagementSettings().setIdlenessWatcherPaused(true); - if (!mHasPauseEmblem) - iconChanged(); // adds the pause emblem - if (checked == nullptr || checked->data().toInt() != duration) - { - const auto actions = mPauseActions->actions(); - for (const auto &a : actions) - { - if (a->data().toInt() == duration) - { - a->setChecked(true); - break; - } - } - } - } -} - -// static -int TrayIcon::getPauseInterval(PAUSE duration) -{ - // multiplied by 30 minutes. - return duration * 1800 * 1000; -} - diff --git a/LibLXQT/ARM Power Management/src/trayicon.h b/LibLXQT/ARM Power Management/src/trayicon.h deleted file mode 100644 index cb4dffc26b..0000000000 --- a/LibLXQT/ARM Power Management/src/trayicon.h +++ /dev/null @@ -1,84 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2011 Razor team - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef TRAYICON_H -#define TRAYICON_H - -#include -#include -#include - -#include "iconproducer.h" -#include "../config/powermanagementsettings.h" - -class TrayIcon : public QSystemTrayIcon -{ - Q_OBJECT - -public: - enum PAUSE { - None = 0, - Half = 1, - One = 2, // two halves - Two = 4, - Three = 6, - Four = 8 - }; - - TrayIcon(Solid::Battery *battery, QObject *parent = nullptr); - ~TrayIcon() override; - - static int getPauseInterval(PAUSE duration); - - void setPause(PAUSE duration); - -signals: - void toggleShowInfo(); - void pauseChanged(PAUSE duration); - -public slots: - void iconChanged(); - void updateTooltip(); - -private slots: - void onConfigureTriggered(); - void onPauseTriggered(QAction *action); - void onAboutTriggered(); - void onDisableIconTriggered(); - void onActivated(QSystemTrayIcon::ActivationReason reason); - -private: - QIcon emblemizedIcon(); - - Solid::Battery *mBattery; - IconProducer mIconProducer; - QMenu mContextMenu; - QActionGroup *mPauseActions; - bool mHasPauseEmblem; -}; - -#endif // TRAYICON_H diff --git a/LibLXQT/ARM Power Management/src/watcher.cpp b/LibLXQT/ARM Power Management/src/watcher.cpp deleted file mode 100644 index 882d173182..0000000000 --- a/LibLXQT/ARM Power Management/src/watcher.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * - * Authors: - * Christian Surlykke - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include "../config/powermanagementsettings.h" -#include "watcher.h" - -Watcher::Watcher(QObject *parent) : - QObject(parent), - mScreenSaver(this) -{ -} - -Watcher::~Watcher() -{ -} - -void Watcher::doAction(int action) -{ - // if (action == -1) { } - if (action == -2) - { - mScreenSaver.lockScreen(); - } - else if (action >= 0) - mPower.doAction((LXQt::Power::Action) action); - - emit done(); -} diff --git a/LibLXQT/ARM Power Management/src/watcher.h b/LibLXQT/ARM Power Management/src/watcher.h deleted file mode 100644 index 1edb234fb1..0000000000 --- a/LibLXQT/ARM Power Management/src/watcher.h +++ /dev/null @@ -1,36 +0,0 @@ -/* -* Copyright (c) 2014,2015 Christian Surlykke, Paulo Lieuthier -* -* This file is part of the LXQt project. -* It is distributed under the LGPL 2.1 or later license. -* Please refer to the LICENSE file for a copy of the license. -*/ - -#ifndef WATCHER_H -#define WATCHER_H - -#include -#include -#include -#include - -class Watcher : public QObject -{ - Q_OBJECT - -public: - Watcher(QObject *parent = nullptr); - ~Watcher() override; - -protected: - void doAction(int action); - -signals: - void done(); - -private: - LXQt::Power mPower; - LXQt::ScreenSaver mScreenSaver; -}; - -#endif // WATCHER_H diff --git a/LibLXQT/AUTHORS b/LibLXQT/AUTHORS deleted file mode 100644 index 837c309e1c..0000000000 --- a/LibLXQT/AUTHORS +++ /dev/null @@ -1,13 +0,0 @@ -Library Optimizer: - Scare Crowe of Qortal: https://qortal.org - -Upstream Authors: - LXQt team: https://lxqt-project.org - Razor team: http://razor-qt.org - -Copyright: - Copyright (c) 2010-2012 Razor team - Copyright (c) 2012-2018 LXQt team - -License: LGPL-2.1+ -The full text of the LGPL-2.1+ licenses can be found in the 'COPYING' file. diff --git a/LibLXQT/CHANGELOG b/LibLXQT/CHANGELOG deleted file mode 100644 index 03bd714486..0000000000 --- a/LibLXQT/CHANGELOG +++ /dev/null @@ -1,639 +0,0 @@ -liblxqt-0.17.0 / 2021-04-15 -=========================== - * Used Qt5.15's Qt::SplitBehavior. - * Fixed dbus errors with invalid QVariant data sent over it. - * Made GlobalSettings public (exported symbols) in lxqtsettings. - * Modernized some headers. - * Modernize the trivial destructors. - * Used "handle quit signals" constructor in lxqtsingleapplication. - * Replaced the deprecated constructor of QWheelEvent. - -liblxqt-0.16.0 / 2020-11-01 -=========================== - * Use QFlags default constructor - * Added an action for showing LXQt leave dialog (to be used when the power button is pressed). - * Don't use deprecated QProcess methods. - -liblxqt-0.15.1 / 2020-05-28 -=========================== - * Bumped version to 0.15.1. - * Removed dead codes. - * Removed Xdg Dirs Fallback workaround. - * Let Qt handle dialog position. - * Prevent crash when closing screen saver error message. - -liblxqt-0.15.0 / 2020-04-22 -=========================== - * Bumped version to 0.15.0. - * Fixed licenses. - * Removed message handler from lxqtapplication. - * Set default button to Yes in leave dialogs. - * C++11 code updates. - * Used braced initializer list in returns. - * Allow spacing to be added between items in GridLayout. - * Set size hint of selection widget correctly. - * Make macOS build possible. - * Fixed compilation error on the Hurd. - * Fixed error messages for screensavers. - * Fixed the wrong arguments in dbusCall. - * Allow custom lock command in lxqtscreensaver. - * Improved error messages in lxqtscreensaver. - * Fixed LinuxBackend backlightChanged signal. - * Remove deprecated QDesktopWidget. - * Remove (duplicated) string casts definitions. - * Don't use Qt keywords "emit", "signal" and "slot" (they may collide with glib). - * Fixed memory leak in backlight brightness driver. - * lxqtnotification: async API for querying serverInfo. - -liblxqt-0.14.1 / 2019-02-24 -=========================== - - * Bumped version to 0.14.1 - * Enable/disable a standard button if it exists. This is needed for adding - Apply button later because Apply button should be enabled/disabled - appropriately. - * Updated translations - * Note for packagers: liblxqt now depend on libqtxdg 3.3.1 - -liblxqt-0.14.0 / 2019-01-25 -=========================== - - * Implementation fixed: - - Added missing text color of our HTML delegate - - Use the new signal and slot syntax - - Don't use automatic string conversions - - lxqtbacklight: centralize fopen() and perform path handling with length checks - - lxqtbacklight: apply maximum string length to fscanf to prevent overflow - - lxqtbacklight: removed useless commented out code - - lxqtbacklight: constified char *driver, where appropriate - - lxqtbacklight: centralized error output on empty backlight dir - - lxqtbacklight: fix and improve command line parameter handling - - lxqtbacklight: only pass basename into open_driver_file() - - lxqt-backlight: Simplify string construction - - lxqthtmldelegate: Position, alignment and size fixes for HTML delegate - - lxqtpageselectwidget: Fix config dialog cell height - - lxqtpageselectwidget: Fixed config dialog select widget cells - * Improved cmake scripting - - Set cmake_minimum_required to 3.1.0 - - Removed locale compile definitons - * Moved translations from lxqt-l10n back to liblxqt - - Removed obsolete translation fuctionality - - Added translation promo in README.md - * Translation updates - -liblxqt-0.13.0 / 2018-05-21 -=========================== - - * Bump minor version to 13 and fix the comment - * Don't find packages quietly - * Use PolkitQt5-1 policy files install directory - * build: Don't use hardcoded /usr/share path - * Normalize backlight value - * lxqtbacklight: Remove not used code - * CMake: Prevent in-source builds - * lxqtbacklight: Fix a FTBFS in superbuild mode - * blacklight power control has been added. - * Backlight::isBacklightAvailable returns false if the screen is turned off. - * Back light control added. - * Adds a ConfigDialogCommandLineOptions class - * ConfigDialog: Adds the ability to select the shown page by name - * ConfigDialog: Use d-pointer design pattern - * Fixed project uris to https://lxqt.org - * Fixed some mentions of lxde - * Make lxqt globals a public header - * Adds Qt Strings abbreviations - * lxqtpower: Add support for turning monitor(s) off - * Use qAsConst() - * Drop foreach use - * cmake: Handle CMP0071 - -0.12.0 / 2017-10-21 -=================== - - * Release 0.12.0: Update changelog - * Bump minimum qtxdg version to 3.1.0 - * Don't export github templates - * Bump version and needed versions to the final values - * lxqtpower: Allow disabling of lxqt-session provider - * Drops Qt5Core_VERSION_STRING - * HtmlDelegate: Fix sizeHint() computation - * Add some comments about the meaning of versions - * Move LXQt version back to liblxqt - * Fixes (#118) - * lxqtapplication: Avoid wrong signal handling - * Removes unneeded semicolon in namespace definition - * Fix format conversions [-Wformat-pedantic] warnings - * Suppress compiler warnings about unused function parameters - * Removes extra semicolons in Qt's Q macros - * Translator: Prefer XDG_DATA_DIRS over compiled in path - * Help the compiler optimizing loops - * Use const variables where possible - * Update AUTHORS - -0.11.1 / 2017-01-01 -=================== - - * Release 0.11.1: Update changelog - * Bump needed build tools version (#113) - * build: Enable/disable WITH_XDG_DIRS_FALLBACK based on Qt version (#111) - * Updates lxqt-build-tools required version - * Adds a CMake minimum version requirement to the -config.cmake - * Refactors superbuild support - * Adds PROJECT_NAME to the build with Qt version message - * Pack target_compile_definitions() and target_include_directories() - * Adds PROJECT_NAME to the build with Qt version message - * Pack target_compile_definitions() and target_include_directories() - * Use the LXQtConfigVars module - * Make liblxqt depend on lxqt-build-tools - * Use the lxqt-build-tools LXQtCreatePortableHeaders - * Use the new LXQt Build Tools package - * Sets a minimum Qt5Xdg required version - * Adds minimum Qt version requirement (5.4.2) - * Remove cpack (#107) - -0.11.0 / 2016-09-24 -=================== - - * Release 0.11.0: Add changelog - * Bump version ot 0.11.0 (#105) - * Settings: Make use of reverse_iterator conditional - * Application: Add include - * Settings: Add "homemade" XDG_CONFIG_DIRS support - * Settings: unify duplicated code - * Add README.md - * translations: Change default translations repository - * Update DBus Notify method annotation name - * Fix lupdate warning missing Q_OBJECT macro - * Replaces deprecated QStyleOptionViewItemV4 - * Don't lock the screen when it's already locked. - * lxqtscreensaver: Makes it a opaque pointer class - * GridLayout: Store current animation flag - * lxqtgridlayout: Move private class definition - * HtmlDelegate: Take layoutDirection into account - * GridLayout: Take layoutDirection into account - * application: Correct signal handling & clean-up (#72) - * lxqtpower: Removes unused stuff - * SingleApplication: Only create an DBus adaptor when needed - * NotificationPrivate: Fixes programming typo - * Don't set icon theme name - * configdialog: Update icons in ThemeChanged event - * lxqtpower: Add suspend and hibernate to ConsoleKit2 provider - * LXQtTranslateTs.cmake: Enable PULL_TRANSLATIONS by default - * LXQtTranslateTs.cmake: Use/update template in remote repo - * .gitignore: Cleanup - * build: Use external translations - * ts-files removal (#90) - * GridLayout: Fix memory leak - * translations: Fix external translations logic - * translations: Add external translations support - * configdialog: Fix icon bar sizing - * configdialog: fix size of PageSelectWidget (#83) - * Use const references with the foreach iterator - * SettingsCache: Improve performance - * Print warning messages when using the fallback Icon Theme - * Use LXQT_DATA_DIR for fallback icon theme search path - * Sets Oxygen as the only fallback icon theme - * Adds CMAKE_INSTALL_PREFIX to the LXQt Theme search paths - * LXQtCompilerSettings: Add QT_USE_QSTRINGBUILDER to the compile definitions - * SingleApplication: Use QCoreApplication::exit() instead of ::exit() - * bump year - * TranslateDesktopTs: Adds UPDATE_OPTIONS options - * TranslateDesktop: Remove lupdate absolute option - * TranslateDesktop: Use -a switch in grep commands - * LXQtTheme: Remove (outdated) "singleclick" qss assembly - * settings: Upgrade emitting of "changed" signals - * SingleApplication: Call also QWidget::show on activate - * Updated Russian translation Removed ru_RU file - * Use QString() instead of "" - * Use CMAKE_INSTALL_FULL_DATAROOTDIR - * Add LXQT_GRAPHICS_DIR directory definition - * lxqt-config: Correct escaping while setting variables - * CMake: Removes artifact - * Adds FindXdgUserDirs CMake find_package module - * Italian translation update - -0.10.0 / 2015-11-02 -=================== - - * Release 0.10.0 - * Update translations - * Fix mixed indents - * Fix license file - * Revert "Lock screen on suspend and hibernate" - * gridlayout: Use linear animation - * gridlayout: Add occupied geometry info - * gridlayout: Fix setting geometry info - * gridlayout: Add animated move support - * license fix for AUTHORS - * config dialog: Protect against null pages add. - * pluginTranslation: removed using QStringLiteral as it was causing SEGFAULT in static finalization time - * pluginTranslation: add some symbol for referencing (for file to be not stripped out in static linking time) - * Adds "automatic" plugin translations loader support - * Warn missing xscreensaver in a non-blocking way - * Fix typos in translations/liblxqt_fr_FR.ts - * Removed country variant, improved and corrected italian translation - * Update lxqtpower.h - * Lock screen on suspend and hibernate - * licensefix for lxqttranslator.cpp - * Fix typos in comments in lxqtsingleapplicatoin.h - * Rename LxQt to LXQt everywhere - * Update Greek (el) translation Remove country variant in language code - * Handles CMake policy CMP0063 - * Adds an lxqt_enable_target_exceptions() CMake function - * Adds LXQtCompilerSettings CMake module - * Removes Cannot open qss file - * LXQtCreatePkgConfigFile.cmake: Makes install COMPONENT configurable - * LXQtTranslateTs.cmake Adds install COMPONENT option - * Adds Runtime install COMPONENT - * fix build with qt 5.5 - * Fixes an SuperBuild/NormalBuild FTBFS - * CMake: Use CMAKE_AUTOUIC, drop qt5_wrap() - * CMake: Quote variables - * CMake: Removes unused variables - * configdialog: Sets the page layout margin to 0 - * LxQt::Application: unix signal handling support & (optional) quit handling - * Removes LIB_INSTALL_DIR CACHE PATH variable - * Removes deprecated documentation - * Use relative paths in install DESTINATION - * Marks link libraries as PUBLIC - * Use target_compile_definitions() instead of add_definitions() - * Make Release the default build type - * Simplifies build type matching - * lxqt-config.cmake.in: Use find_dependency() - * Updates the build system to the Targets infrastructure - * Removes .tx transaction dir artifact - * Sort .desktop translations. Fix typos in the comments. Remove local dir artifact. - * Updated template and german translation after moving about dialog. - * pkg-config: Adds Qt5Xdg to the required dependencies - * Updates lxqt_create_pkgconfig_file() - * Remove trailing whitespaces - * Stops using Qt5Xdg dropped stuff - * Adds LXQT_DATA_DIR configuration variable - * Sort screen saver error messages - * Updates translations - * Moves the about dialog to lxqt-about - * debug: showing qDebug()/qWarning() only in "debug" build - * LxQtTheme: removed superfluous warning (can't occure) - * debug: strip debug messages in "release" build - * Remove AddPluginDialog as it is no longer used - * Hungarian translation update - * Method to change buttons in the buttonbar of ConfigDialog has been added. - * gridlayout: avoid array out of bounds for misused sizes configuration - * gridlayout: correctly recover from wrong minSize setting - * gridlayout: avoid empty margins when stretching is active - * lxqtpower: prefer systemd as a power provider - * ConfigDialog: allow changing page by QWidget* - * Add KDevelop4 project type to .gitignore - * addplugindialog: added managing button - * require c++11 support - * addplugindialog: support for managing plugins - * Updated german translation. - * addplugindialog: corrected <> -> "" in include - * addplugindialog: remember list position - * Prepends an '/' to LXQT_RELATIVE_SHARE_TRANSLATIONS_DIR - * Removes misleading "Qt translations not found!" warning - -0.9.0 / 2015-02-07 -================== - - * Release 0.9.0 - * - Remove KF5 from prefix. This will fix compilation when KDE framework headers are not in standard paths. - * Enhance the panel Add Plugin Dialog - * Portuguese update - * Workaround Qt 5.4 issue: Re-add a config file to the file watcher if it's already deleted to get proper change notifications. - * Update Japanese translation. - * i18n/i10n: Updates documentation and behavior - * remove lxqtleave from liblxqt - * lxqt_translate_desktop: pass -h instead of --no-filename to grep which is compatible with Busybox - * Add Portuguese for actions .desktop files - * add executable to handle leave actions - * Revert 34232018eb. Fixes #430. - * Update Japanese translation. - * lxqt_translate_desktop: Updates code to cope with the cmake-policy CMP0054 - * german translation - * Fix ConsoleKit powerprovicer to handle everything but logout - * - Use simple approach to data dir. Current setup of code not allows both qt4 and qt5 cohexists, and data files are same for both libraries. If a different data dir is required for specifics reason, is possible to set in cmake run -DLXQT_LIBRARY_NAME:STRING="string" - * remove not needed whitespaces - * Adds StartOptions to the SingleApplication class - * Adds the LxQt::SingleApplication class. - * CMakeLists.txt maintenaince - * Fixes yet another translations install dir mistake - * Get rid of USE_QT5 in lxqt-config.cmake - * Fixes translations install dir - * Use the new LXQtTranslate modules. - * Fixes Qt5LinguistToolsMacros file extension bug - * Copied Qt5LinguistToolsMacros.cmake - * Removes cmake commented code - * Removes duplicates add_definitions() - * Removes lxqt_translate_desktop() from the _use.cnake - * Adds Qt5TranslationLoader cmake module - * Fix HtmlDelegate and move it to its own file. Also get rid of X11 on CMakeLists.txt. - * Delete XfitMan class. Fixes lxde/lxde-qt#226 - * Don't update (extract) translations by default. - * Includes all LXQt translation modules - * Adds automatic translations loaders for LXQt libs and apps - * Adds LXQtTranslateDesktop module - * Adds the LXQtranslateTs cmake module - * Update Russian translation - * Drop support for Qt4 in code - * Clean up CMakeLists.txt and drop Qt 4 support - * Add myself to the authors list - * Use QString default constructor instead of "" - -0.8.0 / 2014-10-13 -================== - - * Release v0.8.0 - * Adds a translation loader for plugins - * Adds Qt5 automatic load of self translations - * Updates translations installation and search paths - * Mark translations as loaded for the English locale - * Updates translations - * Generate source.ts when updating translations - * Don't translate uic generated files - * Fixes another QTranslator related memory leak - * Simplify translate() code - * Fixes an memory leak that occurs when no translation is found - * Fixes lxde/lxde-qt#140 and lxde/lxqt-panel#54 - * Stop creating unused QTranslator instances. - * Fix top-to-bottom layout x-coord calculation - * Fix broken *.ts files and update to the latest strings. - * Replace LXDE-Qt with LXQt. - * Add -locations absolute option to lupdate so our *.ts files can contain informations about the source lines. - * Fix incorrect namespace in the *.ts files. - * Add code to update the *.ts files when the UPDATE_TRANSLATIONS option is turned on. - * Fix context names which uses C++ namespaces in all of the *.ts files. - * Add support for getting the hints' flags of a window - * Skip leave confirmation dialogs depending on session settings - * remove magic from cmake. USE_QT5 should be the only trigger - * Use the "new" CMake FIND_PACKAGE case policy - * Add include(${QTXDG_USE_FILE}) to Qt5 also. - * Use the "new" CMake FIND_PACKAGE case policy - * Adds missing libqtxdg dependency - * Don't allow #include - * Updates the Qt4 and Qt5 library names and related stuff - * Use the same header namespace everywhere - * Don't use undefined variables - * Find liblxqt dependencies automatically - * Removes another duplicated installation of a file - * Removes duplicate installation of a file - * Fixes extra misleading slashes in path names - * Cleans commented unneeded stuff - * Fix a typo in variable name - * Update liblxqt_pl_PL.ts - * Fix broken build of qt4 version - * Use more portable Qt and qtxdg header names - * Use newer version of cmake 2.8.9 - * Detect the path of qmake correctly for Qt5. - * Fix internal include - * Fix after merging from master, by removing dupplicated items - * Merge branch 'master' of https://github.com/lxde/liblxqt into qt5 - * Update qt5 porting - * Update Turkish tranlations - * Set include dirs properly. - * Install pkgconfig file to /usr/local/libdata/pkgconfig when FreeBSD is detected. - * Set link directories properly - * Use cmake export functionality. - * Qt5 support (step 1) - * Intree build - -0.7.0 / 2014-05-07 -================== - - * Release 0.7.0 - -0.6.99 / 2014-05-01 -=================== - - * Release 0.6.99 (0.7.0pre alpha) - * Update the About dialog information - * Update AUTHORS and COPYING - * Add CPack rules for creating tarball - * Fix incorrect arguments passing to logind - * Don't append library suffix to library path and use it by default - * CMakeLists.txt: Adds quotes to the lib string - * Respect standard LIB_INSTALL_DIR - * Reformats CMakeLists.txt to fit in an 80x24 terminal - * Removes blank lines - * Properly format about author dialog links - * Removed CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR usages from translatorsinfo/CMakeLists.txt - * Retain old CMAKE_CXX_FLAGS while adding visibility stuff. Add -Wl,-no-undefined -Wall flags to ensure correctness. - * Add missing file. - * Use gcc visibility feature to decrease number of exported symbols to half. - * Use the correct updated org.freedesktop.Notifications.xml file from razor-resources. - * Restore previous XfitMan::moveWindowToDesktop() due to regression bugs. - * Add setIconGeometry(), getShowingDesktop(), setShowingDesktop(), and getWMState() to Xfitman. - * Fix renaming bugs, replacing lxqt-qt with lxde-qt - * Finish the crazy razor=>lxqt renaming tasks. - * Add logout support for lxsession. - * Rename razor to lxqt in settings - * find themes when they are located in /usr/local/... - * Revert "header fix" - * header fix - * Add proper namespace to signal parameters due to the limitation of Qt moc system. - * Rename razor to lxqt and fix XdgDir header inclusion. - * Add missing namespace for LxQt::PowerManager. - * Fix namespace for LxQt::xFitMan() to avoid undefined reference when linking with liblxqt. - * The Translatator class added, all translations moved to /usr//share/lxde/transalations - * Descriptions for translators - * Razor-qt => LXDE-Qt on about dialog - * Simplify translations script - * Simplify translations script - * All public files has lxqt prefix - * XfitMan => LxQt::XfitMan - * ScreenSaver => LxQt::ScreenSaver - * RotatedWidget => LxQt::RotatedWidget - * Razorsettings => LxQt::Settings - * RazorPluginInfo => LxQt::PluginInfo - * RazorNotification => LxQt::Notification - * RazorGridLayout => LxQt::GridLayout - * RazorAutostartEntry => LxQt::AutostartEntry - * RazorApplication => LxQt::Application - * ProgramFinder=>LxQt::ProgramFinder - * RazorConfigDialog=>LxQt::ConfigDialog - * Libtranslate => LxQt::LibTranslate - * TranslatorsInfo => LxQt::TranslatorsInfo - * Small code refactoring in the LxQt::Power - * AddPluginDialog => LxQt::AddPluginDialog - * RazorAboutDlg => LxQt::AboutDialog - * RazorPower => LxQt::Power - * Build errors, wrong include paths. - * Cmake find_package files - * Fix broken CMakeLists.txt and make the lib compile again. - * Make liblxqt (original librazorqt) compiles independently. - * Add COPYING and AUTHORS files - * Fix for Issue #571 [quicklaunch plugin] - * Renames the "Add plugin" button to "Add Widget" - * Removes hardcoded "Add plugin" window title - * razorqt-desktop: Unify plugins and widgets names. Closes #447 - * More verbose constants - * Type sign fixed - * No dependencies on STL - * Typo fixed - * Issue #605 fixed. Double rendering removed - * Theme change autodetection - * Mouse event transparency is controllable in rotated widget - * Old files removed - * Rotated widget transits some mouse events - * Helper functions added to Rotated widget - * Rotated widget requires content - * Rotated widget added - * libraries: Removes unneeded include(RazorLibSuffix) - * Initial version of Razor Screenlocker - * ProgramFinder: a set of functions to check if programs are installed - * issue #473: move count/active text into item header - * initial implementation for #473 Highlight installed plugins. Now it needs to be "designed" - * Change "leave"-button in razor-lightdm-greeter to a menu button. Fix #323 - * Fix typos - * Add RazorGridLayout::setCellXXXWidth, RazorGridLayout::setCellXXXHeight and RazorGridLayout::setCellFixedXXX, functions - * Fix for Issues #564 "new panel: cfg "Line size" can be set to 10px but the value is not accepted" #563 "new panel: vertical mode makes panel too lerge (width)" - * Add moveItem method to RazorGridLayout - * Close Issue #541 - * Close Issue #541 - * RazorGridLayout handle new item incorrectlly - * Fix translators' webpage links - * Update layout when plugin shows. - * Improved razorpanellayout and new razorgridlayout. - * Add autostart entry API into the library - * xfitman: try to get window title even harder - * New panel layout and many changes - * Improve icons handling. - * Added missing license header in the technicalinfo - * Make it possible to load translations for multiple libraries - * About dialog: Reword authors tab - * Added "Copy to clipboard" button to razor-about->technical information. - * Don't "fail" when a dbus call returns no value - * Trtanslations - * Razor-panel: New plugin API - * Simplify code in the PowerManager - * Do not display non-urgent notifications in fallback mode - * razor-power: add systemd support - * Change license for xfitman - * BSD does not handle the way with two consecutive slashes. - * Translations updated - * Translations updated - * first part of fixes based on Coverity Scan (code static analysis) - * Fix components missing translations - * razor-about: Authors text changed - * Translations - * Delete bad en_GB translations - * Update translations - * Minor fixes - * Translations updated - * Removed line num from TS files. - * Translators info & refactoring of the About dialog - * Replace

tag with newlines since it's not valid notification markup - * Add a fallback provider for those without UPower/CK - * Don't write on every RazorSettings initialization - * Translations - * Fixed librazorqt.qm directory - * Translations for librazorqt - * fixed #412 Panel plugin configuration is broken - * optional debugging when there is RAZOR_DEBUG env.var. set - * fix for infinite event loop on panel start in power manager when there is no DBUS/notificationd running. The QMessageBox should not be displayed on init. - * fixed #349 RazorSettings settingsChanged signal is not emitted - * razor-desktop reworked to enable future features and fix RTTI related crashes. - * Update libraries/razorqt/screensaver.cpp - * Sort plugins in the "Add plugin dialog" - * Updated ts.src files - * part of #329: on-click on notification launces default action or it tries to find appropariate window to raise; xfitman method renamed + one new - * extended "razor-about" implementation. Resolves #253 - * Add capabilities and server information functions - * Improve RazorNotification docs - * Add Hints support - * notifications: vrious fixes; more options (hardcoded values removed); layouting - * notifications: razorapplication used (theming); qtxdg used; spec icon loading implemented - * Implement Actions and add some more functions - * Implement new RazorNotification class - * Remove RazorNotification classes (no license/copyright) - * Ts.src files updated. - * Language name zh_CN.GB2312 braked cmake process. - * Translations updated - * Split sessionconfigwindow and remove old module config - * fixed #284 qmmp its not registered in window list panel and properly fixed #81 Qlipper should not appear in Task Manager - * fixed #277 cmake installs private class - * Small improvement to dialog icon sizing - * Don't reset when pressing Enter - * reduce error messages when there is no session running in razor-power - * QDbusError canot be print out on Ubuntu version of qt - * notification client library uses a QMessageBox failback message when it's not able to send a dbus message - * fixed #147 razorpower: things to implement - notifications - * default arguments for notification client lib - * Fix default wallpaper loading - * GUI for change razor theme. - * Moving qtservice to libraries - * Stylesheets are not always applied. - * Typos in code. Thanks Aaron Lewis. * In razor-runner , providers item: title() was typed as tile() * For RazorSettings class , settingsChanged() was typed as settigsChanged() - * RazorSettings not read global settings. - * Changing notification ui. Adding default notitifaction icon. Embedding icons in notification - * Proper default values - * Proper id number assigned to notifications Properly remove notification by quint32 id - * Remove custom settings, use razor ones - * Adding razor-config-notificationd - * Moving notification client library to razorqt - * Don't try to print in color if it's not a terminal - * Use QSS for setting single-click mode - * Refactor desktop config to use RazorConfigDialog - * Revert "Global shortcuts now based on PSI code." - * Global shortcuts now based on PSI code - * better path for logging in DEBUG mode - * fix for theme loading when there is no theme specified in config - * Added localizedValue() in RazorSettings - * Fix: wrong path for debug log - * Config coresponds XDG directory specification - * Transifex desktop: sr_BA.ts should be a local - * strongly enhances debugging - * Transifex desktop: local translations - * Transifex desktop: Translations pulled - * fixed #218 Use /session.log instead of ~/.razor-session.log - * Icons for the desktop menu - * Add Traditional Chinese Translations - * Translations update - * Added support for the online translation service. www.transifex.net - * RazorApplication class implemented; all modules ported to this class - * Serbian translation files - * Greek translation by iosifidis - * Added danish translations - * Russian translation - * Fix for issue #100 - * Fix for issue #100 - * fix #169: italian translation - * Lock the screen when "Lock Screen" is selected - * Update icons change when theme changes - * Add function to use alternative icons - * Env variables for plugins dirs RAZORQT_DESKTOP_PLUGINS_DIR & RAZORQT_DESKTOP_PLUGINS_SO_DIR RAZORQT_PANEL_PLUGINS_DIR & RAZORQT_PANEL_PLUGINS_SO_DIR - * Create a "standardized" configuration dialog - * Relicense razorqtlib - * XdgAutoStart rewriten (lgpl2+) - * Fix gmail.ru -> gmail.com - * Issue#147 add return value to provide a valuable feedback to user - * menus are adopted to the new backends; old code removed; check for running razor-session to allow/disallow "logout" item - * Czech translations (cs_CZ) - * New power engine & razor-power program - * Make XDG autostart fully editable - * unneeded code removed - * Update german [de] translation - * Let XdgAutoStart return Hidden files, and save modified files - * Correct the XdgAutoStart behavior - * SVK translation finalized - * Replaces return"" by return QString() - * Initial german [de] translation - * Fix issue #116 - * License audit - * implemented #70: pkg-config for libs - * Add Chinese(simplified) translation files. - * License audit - * razorqt: add find_package(X11) as ${X11_X11_LIB} is used - * Add Slovak (sk) translation - * Typo in russian translation - * Czech translations (cs_CZ) - * A-MeGo Theme - * fix for crashes when there is no upower - * fix for powermanager. These dbus calls are pain... - * New doxygen ifrastructure - * power manager: list actions only if is user allowed to call it - * fixed warning: The Free Software Foundation address in this file seems to be outdated - * devel-docs generated in CMAKE_BINARY_DIR/docs includig dummy index.html - * missing translations in CMakeLists - * XdgDesktopFile is implicitly shared - * huge refactoring of the libraries build organization diff --git a/LibLXQT/CMakeLists.txt b/LibLXQT/CMakeLists.txt deleted file mode 100644 index 18f3c78a6d..0000000000 --- a/LibLXQT/CMakeLists.txt +++ /dev/null @@ -1,412 +0,0 @@ -cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) -# CMP0000: Call the cmake_minimum_required() command at the beginning of the top-level -# CMakeLists.txt file even before calling the project() command. -# The cmake_minimum_required(VERSION) command implicitly invokes the cmake_policy(VERSION) -# command to specify that the current project code is written for the given range of CMake -# versions. -project(liblxqt) - - -set(LXQTBT_MINIMUM_VERSION "0.9.0") -set(KF5_MINIMUM_VERSION "5.36.0") -set(QT_MINIMUM_VERSION "5.15.0") -set(QTXDG_MINIMUM_VERSION "3.7.0") - -# Major LXQt Version, belong to all components -set(LXQT_MAJOR_VERSION 0) -# Minor LXQt Version, belong to all components -set(LXQT_MINOR_VERSION 17) -# -# Patch Version, belong *only* to the component -# LXQt is 0.13 - liblxqt is at patch version 0 -# The official LXQt version will follow liblxqt. -# -# In a perfect world all components would have the same major- and minor- and -# patch-version as liblxqt - in real life it will be fine if every component -# has it's own patch version within a major/minor life cyle. -# -set(LXQT_PATCH_VERSION 0) -set(LXQT_VERSION ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_PATCH_VERSION}) - - -option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF) -option(BUILD_BACKLIGHT_LINUX_BACKEND "Build the Linux backend for the backlight" ON) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) -set(CMAKE_POSITION_INDEPENDENT_CODE ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTOUIC ON) - -find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED) -find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Widgets DBus LinguistTools) -find_package(Qt5Xdg ${QTXDG_MINIMUM_VERSION} REQUIRED) -find_package(KF5WindowSystem ${KF5_MINIMUM_VERSION} REQUIRED) -if (BUILD_BACKLIGHT_LINUX_BACKEND) - find_package(PolkitQt5-1 REQUIRED) -endif (BUILD_BACKLIGHT_LINUX_BACKEND) -if (NOT APPLE) - find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED X11Extras) - find_package(X11 REQUIRED) -endif() -message(STATUS "Building ${PROJECT_NAME} with Qt ${Qt5Core_VERSION}") - -include(CMakePackageConfigHelpers) -include(GNUInstallDirs) # Standard directories for installation - -if (BUILD_BACKLIGHT_LINUX_BACKEND) - add_subdirectory(lxqtbacklight/linux_backend/driver) - add_definitions(-DUSE_BACKLIGHT_LINUX_BACKEND) -endif (BUILD_BACKLIGHT_LINUX_BACKEND) - -set(LXQT_PKG_CONFIG_DESCRIPTION "Shared library for LXQt applications") - -set(PUB_HDRS - lxqthtmldelegate.h - lxqtsettings.h - lxqtplugininfo.h - lxqtpowermanager.h - lxqtapplication.h - lxqtsingleapplication.h - lxqttranslator.h - lxqtprogramfinder.h - - configdialog/lxqtconfigdialog.h - configdialog/lxqtconfigdialogcmdlineoptions.h - configdialog/lxqtpageselectwidget.h - - lxqtpower/lxqtpower.h - lxqtnotification.h - lxqtautostartentry.h - lxqtgridlayout.h - lxqtrotatedwidget.h - lxqtglobals.h - lxqtbacklight.h - #lxqtbacklight/virtual_backend.h - #lxqtbacklight/linux_backend/linuxbackend.h -) - -if (NOT APPLE) - list (APPEND PUB_HDRS - lxqtscreensaver.h - ) -endif (NOT APPLE) - -set(PUBLIC_CLASSES - HtmlDelegate - Settings - PluginInfo - PowerManager - Application - SingleApplication - Translator - ProgramFinder - - ConfigDialog - ConfigDialogCmdLineOptions - PageSelectWidget - - Power - Notification - AutostartEntry - GridLayout - RotatedWidget - Globals - Backlight -) -if (NOT APPLE) - list (APPEND PUBLIC_CLASSES - ScreenSaver - ) -endif (NOT APPLE) - -set(SRCS - lxqthtmldelegate.cpp - lxqtplugininfo.cpp - lxqtpowermanager.cpp - lxqtsettings.cpp - lxqtapplication.cpp - lxqtsingleapplication.cpp - lxqttranslator.cpp - lxqtprogramfinder.cpp - - configdialog/lxqtconfigdialog.cpp - configdialog/lxqtconfigdialogcmdlineoptions.cpp - configdialog/lxqtpageselectwidget.cpp - - lxqtpower/lxqtpower.cpp - lxqtpower/lxqtpowerproviders.cpp - lxqtautostartentry.cpp - lxqtnotification.cpp - lxqtgridlayout.cpp - lxqtrotatedwidget.cpp - lxqtbacklight.cpp - lxqtbacklight/virtual_backend.cpp -) - -if (NOT APPLE) - list (APPEND SRCS - lxqtscreensaver.cpp - ) -endif (NOT APPLE) - -if (BUILD_BACKLIGHT_LINUX_BACKEND) - list (APPEND SRCS - lxqtbacklight/linux_backend/linuxbackend.cpp - ) -endif (BUILD_BACKLIGHT_LINUX_BACKEND) - -set(MOCS - lxqthtmldelegate.h - lxqtpowermanager.h - lxqtsettings.h - lxqtapplication.h - lxqtbacklight.h - - configdialog/lxqtconfigdialog.h - configdialog/lxqtconfigdialog_p.h - configdialog/lxqtpageselectwidget.h - - lxqtnotification.h - lxqtnotification_p.h - lxqtpower/lxqtpower.h - lxqtpower/lxqtpowerproviders.h - lxqtgridlayout.h - lxqtrotatedwidget.h - lxqtbacklight/virtual_backend.h -) - -if (NOT APPLE) - list (APPEND MOCS - lxqtscreensaver.h - ) -endif (NOT APPLE) - -if (BUILD_BACKLIGHT_LINUX_BACKEND) - list (APPEND SRCS - lxqtbacklight/linux_backend/linuxbackend.h - ) -endif (BUILD_BACKLIGHT_LINUX_BACKEND) - -set(FORMS - configdialog/lxqtconfigdialog.ui -) - -set(POLKIT_FILES - "${CMAKE_CURRENT_BINARY_DIR}/org.lxqt.backlight.pkexec.policy" -) - -# Build Polkit file -configure_file ( polkit/org.lxqt.backlight.pkexec.policy.in "${CMAKE_CURRENT_BINARY_DIR}/org.lxqt.backlight.pkexec.policy" ) - -file(GLOB LXQT_CONFIG_FILES resources/*.conf) - -QT5_ADD_DBUS_INTERFACE(DBUS_INTERFACE_SRCS - dbus/org.freedesktop.Notifications.xml - notifications_interface -) - -QT5_ADD_DBUS_ADAPTOR(DBUS_ADAPTOR_SRCS - dbus/org.lxqt.SingleApplication.xml - lxqtsingleapplication.h LXQt::SingleApplication -) - -set_property(SOURCE ${DBUS_INTERFACE_SRCS} ${DBUS_ADAPTOR_SRCS} PROPERTY SKIP_AUTOGEN ON) -list(APPEND SRCS "${DBUS_INTERFACE_SRCS}" "${DBUS_ADAPTOR_SRCS}") - -# KF5WindowSystem is missing here. KF5WindowSystem doesn't provide an .pc file. -set(LXQT_PKG_CONFIG_REQUIRES "Qt5Xdg >= ${QTXDG_MINIMUM_VERSION}, Qt5Widgets >= ${QT_MINIMUM_VERSION}, Qt5Xml >= ${QT_MINIMUM_VERSION}, Qt5DBus >= ${QT_MINIMUM_VERSION}") - -if (NOT APPLE) - set(LXQT_PKG_CONFIG_REQUIRES "${LXQT_PKG_CONFIG_REQUIRES}, Qt5X11Extras >= ${QT_MINIMUM_VERSION}") -endif (NOT APPLE) - - -# Standard directories for installation -include(LXQtPreventInSourceBuilds) -include(LXQtCompilerSettings NO_POLICY_SCOPE) -include(LXQtCreatePkgConfigFile) -include(LXQtCreatePortableHeaders) -include(LXQtConfigVars) - -set(LXQT_INTREE_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/include") - -set(LXQT_INSTALL_INCLUDE_DIR "${CMAKE_INSTALL_FULL_INCLUDEDIR}/${LXQT_LIBRARY_NAME}") -set(LXQT_INSTALL_CMAKE_DIR "${CMAKE_INSTALL_FULL_DATAROOTDIR}/cmake") - - -## Translations -include(LXQtTranslateTs) - -lxqt_translate_ts(QM_FILES - UPDATE_TRANSLATIONS - ${UPDATE_TRANSLATIONS} - SOURCES - ${SRCS} - ${FORMS} - INSTALL_DIR - "${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}" -) - -message(STATUS "") -message(STATUS "liblxqt version: ${LXQT_VERSION}") -message(STATUS "") - - -# Copy public headers -foreach(h ${PUB_HDRS}) - get_filename_component(bh ${h} NAME) - configure_file(${h} "${LXQT_INTREE_INCLUDE_DIR}/LXQt/${bh}" COPYONLY) -endforeach() - -# Create the portable headers -lxqt_create_portable_headers(INTREE_PORTABLE_HEADERS - NAME_PREFIX "lxqt" - OUTPUT_DIR "${LXQT_INTREE_INCLUDE_DIR}/LXQt" - HEADER_NAMES ${PUBLIC_CLASSES} -) - -#check_portable_headers(H_FILES ${PUB_HDRS} LINKS "${INTREE_PORTABLE_HEADERS}") - -#************************************************ -# Create in-tree build infrastructure -#************************************************ -set(CFG_LXQT_TARGETS_FILE "${LXQT_INTREE_TARGETS_FILE}") - -configure_package_config_file( - "${CMAKE_CURRENT_SOURCE_DIR}/cmake/lxqt-config.cmake.in" - "${CMAKE_BINARY_DIR}/${LXQT_LIBRARY_NAME}-config.cmake" - INSTALL_DESTINATION "neverland" # required, altough we don't install it -) - -#************************************************ -# Create installable build infrastructure -#************************************************ -set(CFG_LXQT_TARGETS_FILE "${LXQT_INSTALL_CMAKE_DIR}/${LXQT_LIBRARY_NAME}/${LXQT_LIBRARY_NAME}-targets.cmake") - -configure_package_config_file( - "${CMAKE_CURRENT_SOURCE_DIR}/cmake/lxqt-config.cmake.in" - "${CMAKE_CURRENT_BINARY_DIR}/install/${LXQT_LIBRARY_NAME}-config.cmake" - INSTALL_DESTINATION "${LXQT_INSTALL_CMAKE_DIR}/${LXQT_LIBRARY_NAME}" -) - -write_basic_package_version_file( - "${CMAKE_BINARY_DIR}/${LXQT_LIBRARY_NAME}-config-version.cmake" - VERSION ${LXQT_VERSION} - COMPATIBILITY AnyNewerVersion -) - -install(FILES - "${CMAKE_CURRENT_BINARY_DIR}/install/${LXQT_LIBRARY_NAME}-config.cmake" - "${CMAKE_BINARY_DIR}/${LXQT_LIBRARY_NAME}-config-version.cmake" - DESTINATION "${LXQT_INSTALL_CMAKE_DIR}/${LXQT_LIBRARY_NAME}" - COMPONENT Devel -) - -install(EXPORT - ${LXQT_LIBRARY_NAME}-targets - DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/${LXQT_LIBRARY_NAME}" - COMPONENT Devel -) - -add_library(${LXQT_LIBRARY_NAME} - SHARED ${PUB_HDRS} - ${SRCS} - ${dbus_generated} - ${UIS} ${MOCS} - ${QM_FILES} - ${QRC_CXX_SOURCES} - -) - -target_link_libraries(${LXQT_LIBRARY_NAME} - PUBLIC - KF5::WindowSystem - Qt5::Widgets - Qt5::DBus - Qt5Xdg -) - -if (NOT APPLE) - target_link_libraries(${LXQT_LIBRARY_NAME} - PUBLIC - Qt5::X11Extras - PRIVATE - ${X11_Xscreensaver_LIB} - ${X11_X11_LIB} - ) -endif (NOT APPLE) - -set_target_properties(${LXQT_LIBRARY_NAME} PROPERTIES - VERSION ${LXQT_VERSION} - SOVERSION ${LXQT_MAJOR_VERSION} -) - -target_compile_definitions(${LXQT_LIBRARY_NAME} - PRIVATE - "LXQT_RELATIVE_SHARE_DIR=\"${LXQT_RELATIVE_SHARE_DIR}\"" - "LXQT_SHARE_DIR=\"${LXQT_SHARE_DIR}\"" - "LXQT_RELATIVE_SHARE_TRANSLATIONS_DIR=\"${LXQT_RELATIVE_TRANSLATIONS_DIR}\"" - "LXQT_SHARE_TRANSLATIONS_DIR=\"${LXQT_TRANSLATIONS_DIR}\"" - "LXQT_GRAPHICS_DIR=\"${LXQT_GRAPHICS_DIR}\"" - "LXQT_ETC_XDG_DIR=\"${LXQT_ETC_XDG_DIR}\"" - "LXQT_DATA_DIR=\"${LXQT_DATA_DIR}\"" - "LXQT_INSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\"" - "LXQT_VERSION=\"${LXQT_VERSION}\"" - "COMPILE_LIBLXQT" - "$<$:QT_NO_DEBUG_OUTPUT>" - "$<$:QT_NO_WARNING_OUTPUT>" - "QT_NO_KEYWORDS" -) - -target_include_directories(${LXQT_LIBRARY_NAME} - INTERFACE - "$" - "$" - "$" - "$" -) - -install(TARGETS - ${LXQT_LIBRARY_NAME} - DESTINATION "${CMAKE_INSTALL_LIBDIR}" - EXPORT ${LXQT_LIBRARY_NAME}-targets - LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" - COMPONENT Runtime -) - -install(FILES - ${PUB_HDRS} - DESTINATION "${LXQT_INSTALL_INCLUDE_DIR}/LXQt" - COMPONENT Devel -) - -install(FILES - ${INTREE_PORTABLE_HEADERS} - DESTINATION "${LXQT_INSTALL_INCLUDE_DIR}/LXQt" - COMPONENT Devel -) - -install(FILES ${LXQT_CONFIG_FILES} - DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/lxqt" - COMPONENT Runtime -) - -if (BUILD_BACKLIGHT_LINUX_BACKEND) - install(FILES ${POLKIT_FILES} DESTINATION "${POLKITQT-1_POLICY_FILES_INSTALL_DIR}") -endif (BUILD_BACKLIGHT_LINUX_BACKEND) - -#************************************************ -# Create and install pkgconfig file -#************************************************ -lxqt_create_pkgconfig_file( - PACKAGE_NAME ${LXQT_LIBRARY_NAME} - DESCRIPTIVE_NAME ${LXQT_LIBRARY_NAME} - DESCRIPTION ${LXQT_PKG_CONFIG_DESCRIPTION} - INCLUDEDIRS ${LXQT_LIBRARY_NAME} - LIBS ${LXQT_LIBRARY_NAME} - REQUIRES ${LXQT_PKG_CONFIG_REQUIRES} - VERSION ${LXQT_VERSION} - INSTALL -) -#************************************************ diff --git a/LibLXQT/COPYING b/LibLXQT/COPYING deleted file mode 100644 index 20fb9c7da2..0000000000 --- a/LibLXQT/COPYING +++ /dev/null @@ -1,458 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS diff --git a/LibLXQT/README.md b/LibLXQT/README.md deleted file mode 100644 index f04cca786d..0000000000 --- a/LibLXQT/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# liblxqt tuned for Sinclair Desktop - -## Overview - -`liblxqt` represents the core library of LXQt providing essential functionality -needed by nearly all of its components. This package is meant for Sinclar only - -## Installation - -### Sources - -Its runtime dependencies are libxss, KWindowSystem, qtbase, qtx11extras and -[libqtxdg](https://github.com/lxqt/libqtxdg). -Additional build dependencies are CMake and optionally Git to pull latest VCS -checkouts. The localization files were outsourced to repository -[lxqt-l10n](https://github.com/lxqt/lxqt-l10n) so the corresponding dependencies -are needed, too. Please refer to this repository's `README.md` for further -information. - -Code configuration is handled by CMake. CMake variable `CMAKE_INSTALL_PREFIX` -will normally have to be set to `/usr`, depending on the way library paths are -dealt with on 64bit systems variables like `CMAKE_INSTALL_LIBDIR` may have to be -set as well. - -To build run `make`, to install `make install` which accepts variable `DESTDIR` -as usual. - -### Binary packages - -The library is provided by all major Linux distributions like Arch Linux, Debian, -Fedora and openSUSE. Just use your package manager to search for string `liblxqt`. - - -### Translation - -Translations can be done in [LXQt-Weblate](https://translate.lxqt-project.org/projects/lxqt-desktop/liblxqt/) - - -Translation status diff --git a/LibLXQT/cmake/lxqt-config.cmake.in b/LibLXQT/cmake/lxqt-config.cmake.in deleted file mode 100644 index 25eaf61860..0000000000 --- a/LibLXQT/cmake/lxqt-config.cmake.in +++ /dev/null @@ -1,39 +0,0 @@ -# - Finds the lxqt package - -@PACKAGE_INIT@ - -if (CMAKE_VERSION VERSION_LESS 3.0.2) - message(FATAL_ERROR \"@PROJECT_NAME@ requires at least CMake version 3.0.2\") -endif() - -include(CMakeFindDependencyMacro) - -find_dependency(Qt5Widgets @QT_MINIMUM_VERSION@) -find_dependency(Qt5DBus @QT_MINIMUM_VERSION@) -find_dependency(Qt5LinguistTools @QT_MINIMUM_VERSION@) -find_dependency(Qt5Xdg @QTXDG_MINIMUM_VERSION@) -find_dependency(KF5WindowSystem) -find_dependency(lxqt-build-tools @LXQTBT_MINIMUM_VERSION@) -if (NOT APPLE) - find_dependency(Qt5X11Extras @QT_MINIMUM_VERSION@) -endif (NOT APPLE) -include(LXQtConfigVars) - - -# - Set version informations -set(LXQT_MAJOR_VERSION "@LXQT_MAJOR_VERSION@") -set(LXQT_MINOR_VERSION "@LXQT_MINOR_VERSION@") -set(LXQT_PATCH_VERSION "@LXQT_PATCH_VERSION@") -set(LXQT_VERSION "@LXQT_VERSION@") - -add_definitions("-DLXQT_MAJOR_VERSION=\"${LXQT_MAJOR_VERSION}\"") -add_definitions("-DLXQT_MINOR_VERSION=\"${LXQT_MINOR_VERSION}\"") -add_definitions("-DLXQT_PATCH_VERSION=\"${LXQT_PATCH_VERSION}\"") -add_definitions("-DLXQT_VERSION=\"${LXQT_VERSION}\"") - -if (NOT TARGET @LXQT_LIBRARY_NAME@) - if (POLICY CMP0024) - cmake_policy(SET CMP0024 NEW) - endif() - include("${CMAKE_CURRENT_LIST_DIR}/lxqt-targets.cmake") -endif() diff --git a/LibLXQT/configdialog/lxqtconfigdialog.cpp b/LibLXQT/configdialog/lxqtconfigdialog.cpp deleted file mode 100644 index 625270ae4f..0000000000 --- a/LibLXQT/configdialog/lxqtconfigdialog.cpp +++ /dev/null @@ -1,192 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2012 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "lxqtconfigdialog.h" -#include "lxqtconfigdialog_p.h" -#include "ui_lxqtconfigdialog.h" - -#include -#include - -#include "lxqtsettings.h" - -using namespace LXQt; - -ConfigDialogPrivate::ConfigDialogPrivate(ConfigDialog *q, Settings *settings) - : q_ptr(q), - mCache(new SettingsCache(settings)), - ui(new Ui::ConfigDialog) -{ - init(); -} - -ConfigDialogPrivate::~ConfigDialogPrivate() -{ - delete ui; - delete mCache; -} - -void ConfigDialogPrivate::init() -{ - Q_Q(ConfigDialog); - ui->setupUi(q); - - QObject::connect(ui->buttons, &QDialogButtonBox::clicked, - [=](QAbstractButton* button) { dialogButtonsAction(button); } - ); - - ui->moduleList->setVisible(false); - const QList buttons = ui->buttons->findChildren(); - for(QPushButton* button : buttons) - button->setAutoDefault(false); -} - -void ConfigDialogPrivate::dialogButtonsAction(QAbstractButton* button) -{ - Q_Q(ConfigDialog); - QDialogButtonBox::StandardButton standardButton = ui->buttons->standardButton(button); - Q_EMIT q->clicked(standardButton); - if (standardButton == QDialogButtonBox::Reset) - { - mCache->loadToSettings(); - Q_EMIT q->reset(); - } - else if(standardButton == QDialogButtonBox::Close) - { - q->close(); - } -} - -void ConfigDialogPrivate::updateIcons() -{ - Q_Q(ConfigDialog); - for (int ix = 0; ix < mIcons.size(); ix++) - ui->moduleList->item(ix)->setIcon(XdgIcon::fromTheme(mIcons.at(ix))); - q->update(); -} - -ConfigDialog::ConfigDialog(const QString& title, Settings* settings, QWidget* parent) : - QDialog(parent), - mSettings(settings), - d_ptr(new ConfigDialogPrivate(this, settings)) -{ - setWindowTitle(title); -} - -void ConfigDialog::setButtons(QDialogButtonBox::StandardButtons buttons) -{ - Q_D(ConfigDialog); - d->ui->buttons->setStandardButtons(buttons); - const QList b = d->ui->buttons->findChildren(); - for(QPushButton* button : b) - button->setAutoDefault(false); -} - -void ConfigDialog::enableButton(QDialogButtonBox::StandardButton which, bool enable) -{ - Q_D(ConfigDialog); - if (QPushButton* pb = d->ui->buttons->button(which)) - pb->setEnabled(enable); -} - -void ConfigDialog::addPage(QWidget* page, const QString& name, const QString& iconName) -{ - addPage(page, name, QStringList() << iconName); -} - -void ConfigDialog::addPage(QWidget* page, const QString& name, const QStringList& iconNames) -{ - Q_D(ConfigDialog); - Q_ASSERT(page); - if (!page) - { - return; - } - - /* We set the layout margin to 0. In the default configuration, one page - * only, it aligns buttons with the page. In multi-page it saves a little - * bit of space, without clutter. - */ - if (page->layout()) - { - page->layout()->setMargin(0); - } - - QStringList icons = QStringList(iconNames) << QL1S("application-x-executable"); - new QListWidgetItem(XdgIcon::fromTheme(icons), name, d->ui->moduleList); - d->mIcons.append(icons); - d->ui->stackedWidget->addWidget(page); - d->mPages[name] = page; - if(d->ui->stackedWidget->count() > 1) - { - d->ui->moduleList->setVisible(true); - d->ui->moduleList->setCurrentRow(0); - d->mMaxSize = QSize(qMax(page->geometry().width() + d->ui->moduleList->geometry().width(), - d->mMaxSize.width()), - qMax(page->geometry().height() + d->ui->buttons->geometry().height(), - d->mMaxSize.height())); - } - else - { - d->mMaxSize = page->geometry().size(); - } - resize(d->mMaxSize); -} - -void ConfigDialog::showPage(QWidget* page) -{ - Q_D(ConfigDialog); - int index = d->ui->stackedWidget->indexOf(page); - if (index < 0) - return; - - d->ui->stackedWidget->setCurrentIndex(index); - d->ui->moduleList->setCurrentRow(index); -} - -void ConfigDialog::showPage(const QString &name) -{ - Q_D(ConfigDialog); - if (d->mPages.contains(name)) - showPage(d->mPages.value(name)); - else - qWarning("ConfigDialog::showPage: Invalid page name (%s)", name.toLocal8Bit().constData()); -} - -bool ConfigDialog::event(QEvent * event) -{ - Q_D(ConfigDialog); - if (QEvent::ThemeChange == event->type()) - d->updateIcons(); - return QDialog::event(event); -} - -void ConfigDialog::closeEvent(QCloseEvent* event) -{ - Q_UNUSED(event) - Q_EMIT save(); - mSettings->sync(); -} - -ConfigDialog::~ConfigDialog() = default; diff --git a/LibLXQT/configdialog/lxqtconfigdialog.h b/LibLXQT/configdialog/lxqtconfigdialog.h deleted file mode 100644 index 4829f31ca1..0000000000 --- a/LibLXQT/configdialog/lxqtconfigdialog.h +++ /dev/null @@ -1,113 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2012 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTCONFIGDIALOG_H -#define LXQTCONFIGDIALOG_H - -#include -#include -#include -#include -#include "lxqtglobals.h" - -namespace Ui { -class ConfigDialog; -} - -namespace LXQt -{ -class Settings; -class ConfigDialogPrivate; - -class LXQT_API ConfigDialog : public QDialog -{ - Q_OBJECT - Q_DECLARE_PRIVATE(ConfigDialog) - -public: - explicit ConfigDialog(const QString& title, Settings* settings, QWidget* parent = nullptr); - - ~ConfigDialog() override; - - /*! - * Sets buttons in button bar - */ - void setButtons(QDialogButtonBox::StandardButtons buttons); - - /*! - * Enable/disable a standard button if it exists - */ - void enableButton(QDialogButtonBox::StandardButton which, bool enable); - - /*! - * Add a page to the configure dialog - */ - void addPage(QWidget* page, const QString& name, const QString& iconName = QLatin1String("application-x-executable")); - - /*! - * Add a page to the configure dialog, attempting several alternative icons to find one in the theme - */ - void addPage(QWidget* page, const QString& name, const QStringList& iconNames); - - /*! - * Show page containing the widget in parameter - */ - void showPage(QWidget *page); - - /*! - * \brief Shows the given page - * \param name The page to be shown. - */ - void showPage(const QString &name); - -Q_SIGNALS: - /*! - * This signal is emitted when the user pressed the "Reset" button. - * Settings should be re-read and the widgets should be set accordingly. - */ - void reset(); - - /*! - * This is emitted whenever the window is closed and settings need to be saved. - * It is only necessary if additional actions need to be performed - Settings are handled automatically. - */ - void save(); - - /*! - * This is emitted when some button in the buttonbar is clicked. - */ - void clicked(QDialogButtonBox::StandardButton); - -protected: - Settings* mSettings; - bool event(QEvent * event) override; - void closeEvent(QCloseEvent* event) override; - -private: - Q_DISABLE_COPY(ConfigDialog) - QScopedPointer const d_ptr; -}; - -} // namespace LXQt -#endif // LXQTCONFIGDIALOG_H diff --git a/LibLXQT/configdialog/lxqtconfigdialog.ui b/LibLXQT/configdialog/lxqtconfigdialog.ui deleted file mode 100644 index a1bfbdfc5d..0000000000 --- a/LibLXQT/configdialog/lxqtconfigdialog.ui +++ /dev/null @@ -1,84 +0,0 @@ - - - ConfigDialog - - - - 0 - 0 - 272 - 231 - - - - Dialog - - - - - - - - Qt::ScrollBarAlwaysOff - - - QAbstractScrollArea::AdjustToContents - - - - - - - - - -1 - - - - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Close|QDialogButtonBox::Reset - - - - - - - - LXQt::PageSelectWidget - QListWidget -

configdialog/lxqtpageselectwidget.h
- - - - moduleList - buttons - - - - - moduleList - currentRowChanged(int) - stackedWidget - setCurrentIndex(int) - - - 150 - 123 - - - 344 - 117 - - - - - diff --git a/LibLXQT/configdialog/lxqtconfigdialog_p.h b/LibLXQT/configdialog/lxqtconfigdialog_p.h deleted file mode 100644 index 7673f36346..0000000000 --- a/LibLXQT/configdialog/lxqtconfigdialog_p.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2012 Alec Moskvin - * Copyright (C) 2018 Luís Pereira - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - */ - -#ifndef LXQTCONFIGDIALOG_P_H -#define LXQTCONFIGDIALOG_P_H - -#include -#include -#include -#include - -namespace Ui { -class ConfigDialog; -} - -class QAbstractButton; -namespace LXQt -{ - -class ConfigDialog; -class Settings; -class SettingsCache; - -class Q_DECL_HIDDEN ConfigDialogPrivate -{ - Q_DECLARE_PUBLIC(ConfigDialog) - ConfigDialog* const q_ptr; - -public: - ConfigDialogPrivate(ConfigDialog *q, Settings* settings); - ~ConfigDialogPrivate(); - - void init(); - void dialogButtonsAction(QAbstractButton* button); - void updateIcons(); - - SettingsCache* mCache; - QList mIcons; - QSize mMaxSize; - Ui::ConfigDialog* ui; - QHash mPages; -}; - -} // namespace LXQt - -#endif // LXQTCONFIGDIALOG_P_H diff --git a/LibLXQT/configdialog/lxqtconfigdialogcmdlineoptions.cpp b/LibLXQT/configdialog/lxqtconfigdialogcmdlineoptions.cpp deleted file mode 100644 index 8a2f7892d6..0000000000 --- a/LibLXQT/configdialog/lxqtconfigdialogcmdlineoptions.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/* - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2018 Luís Pereira - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - */ - -#include "lxqtconfigdialogcmdlineoptions.h" - -#include - -namespace LXQt { - -class Q_DECL_HIDDEN ConfigDialogCmdLineOptionsPrivate { -public: - QString mPage; -}; - -ConfigDialogCmdLineOptions::ConfigDialogCmdLineOptions() - : d(new ConfigDialogCmdLineOptionsPrivate) -{ -} - -ConfigDialogCmdLineOptions::~ConfigDialogCmdLineOptions() = default; - -bool ConfigDialogCmdLineOptions::setCommandLine(QCommandLineParser *parser) -{ - Q_ASSERT(parser); - if (!parser) - return false; - - return parser->addOption(QCommandLineOption{QStringList{QL1S("s"), QL1S("show-page")}, QCoreApplication::tr("Choose the page to be shown."), QL1S("name")}); -} - -void ConfigDialogCmdLineOptions::process(QCommandLineParser &parser) -{ - if (parser.isSet(QL1S("show-page"))) { - d->mPage = parser.value(QL1S("show-page")); - } -} - -QString ConfigDialogCmdLineOptions::page() const -{ - return d->mPage; -} - -} // LXQt namespace diff --git a/LibLXQT/configdialog/lxqtconfigdialogcmdlineoptions.h b/LibLXQT/configdialog/lxqtconfigdialogcmdlineoptions.h deleted file mode 100644 index 04c5ab4ccc..0000000000 --- a/LibLXQT/configdialog/lxqtconfigdialogcmdlineoptions.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2018 Luís Pereira - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - */ - -#ifndef LXQTCONFIGDIALOGCMDLINEOPTIONS_H -#define LXQTCONFIGDIALOGCMDLINEOPTIONS_H - -#include "lxqtglobals.h" - -#include -#include - -class QCommandLineParser; - -namespace LXQt { - -class ConfigDialogCmdLineOptionsPrivate; - -class LXQT_API ConfigDialogCmdLineOptions -{ -public: - ConfigDialogCmdLineOptions(); - ~ConfigDialogCmdLineOptions(); - - bool setCommandLine(QCommandLineParser *parser); - void process(QCommandLineParser &parser); - - QString page() const; - -private: - Q_DISABLE_COPY(ConfigDialogCmdLineOptions) - QScopedPointer const d; -}; - -} // LXQt namespace - -#endif // LXQTCONFIGDIALOGCMDLINEOPTIONS_H diff --git a/LibLXQT/configdialog/lxqtpageselectwidget.cpp b/LibLXQT/configdialog/lxqtpageselectwidget.cpp deleted file mode 100644 index c51d3a2de5..0000000000 --- a/LibLXQT/configdialog/lxqtpageselectwidget.cpp +++ /dev/null @@ -1,193 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#include "lxqtpageselectwidget.h" -#include -#include -#include -#include -#include - -using namespace LXQt; - -class PageSelectWidgetItemDelegate: public QStyledItemDelegate -{ -public: - explicit PageSelectWidgetItemDelegate(PageSelectWidget *parent = nullptr); - QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override; - -private: - PageSelectWidget* mView; -}; - - -/************************************************ - - ************************************************/ -PageSelectWidgetItemDelegate::PageSelectWidgetItemDelegate(PageSelectWidget *parent): - QStyledItemDelegate(parent), - mView(parent) -{ -} - - -/************************************************ - - ************************************************/ -QSize PageSelectWidgetItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const -{ - QVariant value = index.data(Qt::SizeHintRole); - if (value.isValid()) - return qvariant_cast(value); - - //all items should have unified width - - QStyleOptionViewItem opt = option; - initStyleOption(&opt, index); - const QWidget *widget = option.widget; - QStyle *style = widget ? widget->style() : QApplication::style(); - QSize size = style->sizeFromContents(QStyle::CT_ItemViewItem, &opt, QSize(), widget); - //NOTE: this margin logic follows code in QCommonStylePrivate::viewItemLayout() - const int margin = style->pixelMetric(QStyle::PM_FocusFrameHMargin, &option, option.widget) + 1; - - // Find the extra vertical gap by subtracting the height of the text when wrapped within - // the default size from the height of the text when wrapped within our max. width. - const QRect R1 = mView->fontMetrics().boundingRect(QRect(0, 0, size.width() - 2 * margin, 0), - Qt::AlignLeft | Qt::TextWordWrap, opt.text); - const QRect R2 = mView->fontMetrics().boundingRect(QRect(0, 0, mView->getWrappedTextWidth(), 0), - Qt::AlignLeft | Qt::TextWordWrap, opt.text); - // compensate for the vertical gap - size.rheight() -= qAbs(R1.height() - R2.height()); - - //considering the icon size too - size.setWidth(qMax(mView->maxTextWidth(), option.decorationSize.width())); - // adding the margin is good but not necessary because it is already added - size.rwidth() += 2 * margin; - size.rheight() += margin; // only at the bottom - - return size; -} - - - -/************************************************ - - ************************************************/ -PageSelectWidget::PageSelectWidget(QWidget *parent) : - QListWidget(parent) - , mMaxTextWidth(0) -{ - mWrappedTextWidth = fontMetrics().averageCharWidth() * 13; // max. 13 characters - - setSelectionRectVisible(false); - setViewMode(IconMode); - setSpacing(2); - setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Expanding); - setWordWrap(true); - setDragEnabled(NoDragDrop); - setEditTriggers(NoEditTriggers); - setTextElideMode(Qt::ElideNone); - setContentsMargins(0, 0, 0, 0); - - setItemDelegate(new PageSelectWidgetItemDelegate(this)); - connect(model(), &QAbstractItemModel::rowsInserted, this, &PageSelectWidget::updateMaxTextWidth); - connect(model(), &QAbstractItemModel::rowsRemoved, this, &PageSelectWidget::updateMaxTextWidth); - connect(model(), &QAbstractItemModel::dataChanged, this, &PageSelectWidget::updateMaxTextWidth); -} - - -/************************************************ - - ************************************************/ -PageSelectWidget::~PageSelectWidget() = default; - -/************************************************ - - ************************************************/ -int PageSelectWidget::maxTextWidth() const -{ - return mMaxTextWidth; -} - -/************************************************ - - ************************************************/ -QSize PageSelectWidget::viewportSizeHint() const -{ - const int spacing2 = spacing() * 2; - QSize size{sizeHintForColumn(0) + spacing2, (sizeHintForRow(0) + spacing2) * count()}; - auto vScrollbar = verticalScrollBar(); - if (vScrollbar - && vScrollbar->isVisible() - && !vScrollbar->style()->styleHint(QStyle::SH_ScrollBar_Transient, nullptr, vScrollbar)) - { - size.rwidth() += verticalScrollBar()->sizeHint().width(); - } - return size; -} - -/************************************************ - - ************************************************/ -QSize PageSelectWidget::sizeHint() const -{ - const int f = 2 * frameWidth(); - return viewportSizeHint() + QSize(f, f); -} - -/************************************************ - - ************************************************/ -QSize PageSelectWidget::minimumSizeHint() const -{ - return QSize{0, 0}; -} - -/************************************************ - - ************************************************/ -void PageSelectWidget::updateMaxTextWidth() -{ - for(int i = count() - 1; 0 <= i; --i) - { - const QRect r = fontMetrics().boundingRect(QRect(0, 0, mWrappedTextWidth, 0), - Qt::AlignLeft | Qt::TextWordWrap, item(i)->text()); - mMaxTextWidth = qMax(mMaxTextWidth, r.width()); - } -} - -/************************************************ - - ************************************************/ -bool PageSelectWidget::event(QEvent * event) -{ - if (QEvent::StyleChange == event->type()) - updateMaxTextWidth(); - - return QListWidget::event(event); -} diff --git a/LibLXQT/configdialog/lxqtpageselectwidget.h b/LibLXQT/configdialog/lxqtpageselectwidget.h deleted file mode 100644 index 52fcf3920b..0000000000 --- a/LibLXQT/configdialog/lxqtpageselectwidget.h +++ /dev/null @@ -1,65 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#ifndef LXQTPAGESELECTWIDGET_H -#define LXQTPAGESELECTWIDGET_H - -#include "lxqtglobals.h" -#include - -namespace LXQt -{ - -class LXQT_API PageSelectWidget : public QListWidget -{ - Q_OBJECT -public: - explicit PageSelectWidget(QWidget *parent = nullptr); - ~PageSelectWidget() override; - int maxTextWidth() const; - bool event(QEvent * event) override; - - int getWrappedTextWidth() const { - return mWrappedTextWidth; - } - -protected: - QSize viewportSizeHint() const override; - QSize sizeHint() const override; - QSize minimumSizeHint() const override; - -protected Q_SLOTS: - void updateMaxTextWidth(); - -private: - int mMaxTextWidth; - int mWrappedTextWidth; -}; - -} // namespace LXQt -#endif // PAGESELECTWIDGET_H diff --git a/LibLXQT/dbus/org.freedesktop.Notifications.xml b/LibLXQT/dbus/org.freedesktop.Notifications.xml deleted file mode 100644 index 5cf538e1a0..0000000000 --- a/LibLXQT/dbus/org.freedesktop.Notifications.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/LibLXQT/dbus/org.lxqt.SingleApplication.xml b/LibLXQT/dbus/org.lxqt.SingleApplication.xml deleted file mode 100644 index f580356fa6..0000000000 --- a/LibLXQT/dbus/org.lxqt.SingleApplication.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/LibLXQT/liblxqt.doxygen b/LibLXQT/liblxqt.doxygen deleted file mode 100644 index d3fa7f7db9..0000000000 --- a/LibLXQT/liblxqt.doxygen +++ /dev/null @@ -1,4 +0,0 @@ -/*! \mainpage A minimal shared library for LXQt DE. - -liblxqt containing shared classes for LXQt developed by LXQt team and contributors. -*/ diff --git a/LibLXQT/lxqtapplication.cpp b/LibLXQT/lxqtapplication.cpp deleted file mode 100644 index da164d8ddd..0000000000 --- a/LibLXQT/lxqtapplication.cpp +++ /dev/null @@ -1,152 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012-2013 Razor team - * Authors: - * Petr Vanek - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include - -#include "lxqtapplication.h" -#include "lxqtsettings.h" - -#include - -using namespace LXQt; - -#define COLOR_DEBUG "\033[32;2m" -#define COLOR_WARN "\033[33;2m" -#define COLOR_CRITICAL "\033[31;1m" -#define COLOR_FATAL "\033[33;1m" -#define COLOR_RESET "\033[0m" - -#define QAPP_NAME qApp ? qApp->objectName().toUtf8().constData() : "" - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -Application::Application(int &argc, char** argv) - : QApplication(argc, argv) -{ - setWindowIcon(QIcon(QFile::decodeName(LXQT_GRAPHICS_DIR) + QL1S("/lxqt_logo.png"))); - connect(Settings::globalSettings(), &GlobalSettings::lxqtThemeChanged, this, &Application::updateTheme); - updateTheme(); -} - -Application::Application(int &argc, char** argv, bool handleQuitSignals) - : Application(argc, argv) -{ - if (handleQuitSignals) - { - QList signo_list = {SIGINT, SIGTERM, SIGHUP}; - connect(this, &Application::unixSignal, [this, signo_list] (int signo) - { - if (signo_list.contains(signo)) - quit(); - }); - listenToUnixSignals(signo_list); - } -} - -void Application::updateTheme() -{ - const QString styleSheetKey = QFileInfo(applicationFilePath()).fileName(); - setStyleSheet(lxqtTheme.qss(styleSheetKey)); - Q_EMIT themeChanged(); -} - -namespace -{ - class SignalHandler - { - public: - static void signalHandler(int signo) - { - const int ret = write(instance->mSignalSock[0], &signo, sizeof (int)); - if (sizeof (int) != ret) - qCritical("unable to write into socketpair: %s", strerror(errno)); - } - - public: - template - SignalHandler(Application * app, Lambda signalEmitter) - : mSignalSock{-1, -1} - { - if (0 != socketpair(AF_UNIX, SOCK_STREAM, 0, mSignalSock)) - { - qCritical("unable to create socketpair for correct signal handling: %s", strerror(errno)); - return; - } - - mNotifier.reset(new QSocketNotifier(mSignalSock[1], QSocketNotifier::Read)); - QObject::connect(mNotifier.data(), &QSocketNotifier::activated, app, [this, signalEmitter] { - int signo = 0; - int ret = read(mSignalSock[1], &signo, sizeof (int)); - if (sizeof (int) != ret) - qCritical("unable to read signal from socketpair, %s", strerror(errno)); - signalEmitter(signo); - }); - } - - ~SignalHandler() - { - close(mSignalSock[0]); - close(mSignalSock[1]); - } - - void listenToSignals(QList const & signoList) - { - struct sigaction sa; - sa.sa_handler = signalHandler; - sigemptyset(&sa.sa_mask); - sa.sa_flags = 0; - for (auto const & signo : signoList) - sigaction(signo, &sa, nullptr); - } - - public: - static QScopedPointer instance; - - private: - int mSignalSock[2]; - QScopedPointer mNotifier; - }; - - QScopedPointer SignalHandler::instance; -} - -void Application::listenToUnixSignals(QList const & signoList) -{ - static QScopedPointer signal_notifier; - - if (SignalHandler::instance.isNull()) - SignalHandler::instance.reset(new SignalHandler{this, [this] (int signo) { Q_EMIT unixSignal(signo); }}); - SignalHandler::instance->listenToSignals(signoList); -} diff --git a/LibLXQT/lxqtapplication.h b/LibLXQT/lxqtapplication.h deleted file mode 100644 index 6d751755d2..0000000000 --- a/LibLXQT/lxqtapplication.h +++ /dev/null @@ -1,85 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012-2013 Razor team - * Authors: - * Petr Vanek - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTAPPLICATION_H -#define LXQTAPPLICATION_H - -#include -#include -#include "lxqtglobals.h" - -namespace LXQt -{ - -/*! \brief LXQt wrapper around QApplication. - * It loads various LXQt related stuff by default (window icon, icon theme...) - * - * \note This wrapper is intended to be used only inside LXQt project. Using it - * in external application will automatically require linking to various - * LXQt libraries. - * - */ -class LXQT_API Application : public QApplication -{ - Q_OBJECT - -public: - /*! Construct a LXQt application object. - * \param argc standard argc as in QApplication - * \param argv standard argv as in QApplication - */ - Application(int &argc, char **argv); - /*! Construct a LXQt application object. - * \param argc standard argc as in QApplication - * \param argv standard argv as in QApplication - * \param handleQuitSignals flag if signals SIGINT, SIGTERM, SIGHUP should be handled internaly (\sa quit() application) - */ - Application(int &argc, char **argv, bool handleQuitSignals); - ~Application() override {} - /*! Install UNIX signal handler for signals defined in \param signalList - * Upon receiving of any of this signals the \sa unixSignal signal is emitted - */ - void listenToUnixSignals(QList const & signolList); - -private Q_SLOTS: - void updateTheme(); - -Q_SIGNALS: - void themeChanged(); - /*! Signal is emitted upon receival of registered unix signal - * \param signo the received unix signal number - */ - void unixSignal(int signo); -}; - -#if defined(lxqtApp) -#undef lxqtApp -#endif -#define lxqtApp (static_cast(qApp)) - -} // namespace LXQt -#endif // LXQTAPPLICATION_H diff --git a/LibLXQT/lxqtautostartentry.cpp b/LibLXQT/lxqtautostartentry.cpp deleted file mode 100644 index ae6e7b38a9..0000000000 --- a/LibLXQT/lxqtautostartentry.cpp +++ /dev/null @@ -1,130 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2012 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "lxqtautostartentry.h" -#include - -#include -#include - -using namespace LXQt; - -AutostartEntry::AutostartEntry() : - mLocalState(StateNone), mSystem(false) -{ -} - -AutostartEntry::AutostartEntry(const QString& name): - mLocalState(StateNone), mSystem(false) -{ - const QStringList& dirs = XdgDirs::autostartDirs(); - for (const QString& dir : dirs) - { - const QString path = QString::fromLatin1("%1/%2").arg(dir, name); - if (QFile(path).exists()) - { - mSystemFile.load(path); - mSystem = true; - break; - } - } - - const QString path = QString::fromLatin1("%1/%2").arg(XdgDirs::autostartHome(), name); - if (QFile(path).exists()) - { - mLocalFile.load(path); - mLocalState = StateExists; - } -} - -void AutostartEntry::setFile(const XdgDesktopFile& file) -{ - const bool local = isLocal(); - if (mSystem && local && file == mSystemFile) - { - removeLocal(); - } - else - { - if (local) - mLocalState = StateModified; - else - mLocalState = StateTransient; - mLocalFile = file; - } -} - -bool AutostartEntry::removeLocal() -{ - if (!isLocal()) - return false; - - if (mLocalState == StateTransient) - mLocalState = StateNone; - else - mLocalState = StateDeleted; - - return !mSystem; -} - -const XdgDesktopFile& AutostartEntry::file() const -{ - return isLocal() ? mLocalFile : mSystemFile; -} - -QString AutostartEntry::name() const -{ - return QFileInfo(file().fileName()).fileName(); -} - -void AutostartEntry::setEnabled(bool enable) -{ - XdgDesktopFile f = file(); - if (enable) - f.removeEntry(QL1S("Hidden")); - else - f.setValue(QL1S("Hidden"), true); - - setFile(f); -} - -bool AutostartEntry::isEnabled() const -{ - return !isEmpty() && !file().value(QL1S("Hidden"), false).toBool(); -} - -bool AutostartEntry::commit() -{ - if (mLocalState == StateDeleted) - { - mLocalState = StateNone; - return QFile::remove(mLocalFile.fileName()); - } - else if (mLocalState == StateModified || mLocalState == StateTransient) - { - mLocalState = StateExists; - return mLocalFile.save(XdgAutoStart::localPath(mLocalFile)); - } - return true; -} diff --git a/LibLXQT/lxqtautostartentry.h b/LibLXQT/lxqtautostartentry.h deleted file mode 100644 index 6624689e27..0000000000 --- a/LibLXQT/lxqtautostartentry.h +++ /dev/null @@ -1,114 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2012 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTAUTOSTARTENTRY_H -#define LXQTAUTOSTARTENTRY_H - -#include "lxqtglobals.h" -#include - -namespace LXQt -{ - -/*! \brief The AutostartEntry class provides an interface for staging configuration of individual -autostart items. All changes are made in memory until commit() is called. - - - "system" file refers to a read-only file in /etc/xdg/autostart (or a directory in $XDG_CONFIG_DIRS) - - "local" file refers to the file in user's ~/.config/autostart (or in $XDG_CONFIG_HOME/autostart) - -When a "local" file has the same name as the "system" file, the local one overrides it. This class -tries to ensure that the "local" file is deleted if it's identical to the "system" file. -*/ -class LXQT_API AutostartEntry -{ -public: - /*! Constructs an AutostartEntry object for a specific entry. - * \param name The name of the autostart desktop file (e.g. "lxqt-panel.desktop") - */ - AutostartEntry(const QString& name); - - //! \brief Default constructor - AutostartEntry(); - - //! Destructor - virtual ~AutostartEntry() { } - - //! Returns the "active" desktop file - const XdgDesktopFile& file() const; - - //! Returns the name of the autostart entry (e.g. "lxqt-panel.desktop") - QString name() const; - - /*! Sets to the specified desktop file. Use this to make modifications. - * \param file The desktop file - */ - void setFile(const XdgDesktopFile& file); - - /*! Sets whether the item auto-starts - * \param enable When false, sets the "Hidden" key which will prevent the item from starting - */ - void setEnabled(bool enable); - - //! Returns true if the item will auto-start - bool isEnabled() const; - - /*! Returns true if the entry does not exist, and the object carries no useful information - * and can be ignored/deleted. - */ - bool isEmpty() const { return !mSystem && mLocalState == StateNone; } - - /*! Write any changes to disk - * \return true on success - */ - bool commit(); - -protected: - //! Returns true if the user's "local" version exists - bool isLocal() const { return mLocalState != StateNone && mLocalState != StateDeleted; } - - /*! Removes the user's "local" version of the file, reverting to system defaults - * \return true if there is no "system" version left (i.e. the entry was entirely deleted) - */ - bool removeLocal(); - - //! \brief a read-only file in /etc/xdg/autostart (or a directory in $XDG_CONFIG_DIRS) - XdgDesktopFile mSystemFile; - - //! \brief the file in user's ~/.config/autostart (or in $XDG_CONFIG_HOME/autostart) - XdgDesktopFile mLocalFile; - - //! State of the "local" file - enum ItemState - { - StateNone, //! does not exist at all - StateDeleted, //! needs to be deleted from disk - StateTransient, //! does not yet exist on disk - StateModified, //! exists on disk and is modified - StateExists //! exists on disk and unmodified - } mLocalState; - bool mSystem; //! true if the "system" file exists -}; - -} // namespace LXQt -#endif // LXQTAUTOSTARTENTRY_H diff --git a/LibLXQT/lxqtbacklight.cpp b/LibLXQT/lxqtbacklight.cpp deleted file mode 100644 index 40e787117c..0000000000 --- a/LibLXQT/lxqtbacklight.cpp +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2016 P.L. Lucas - * - * 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 2 - * of the License, or (at your option) 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, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ - -#include "lxqtbacklight.h" -#include "lxqtbacklight/virtual_backend.h" -#ifdef USE_BACKLIGHT_LINUX_BACKEND - #include "lxqtbacklight/linux_backend/linuxbackend.h" -#endif - -namespace LXQt { - -Backlight::Backlight(QObject *parent):QObject(parent) -{ -#ifdef USE_BACKLIGHT_LINUX_BACKEND - m_backend = (VirtualBackEnd *) new LinuxBackend(this); -#else - m_backend = new VirtualBackEnd(this); -#endif - connect(m_backend, &VirtualBackEnd::backlightChanged, this, &Backlight::backlightChangedSlot); -} - -Backlight::~Backlight() -{ - delete m_backend; -} - -int Backlight::getBacklight() -{ - return m_backend->getBacklight(); -} - -int Backlight::getMaxBacklight() -{ - return m_backend->getMaxBacklight(); -} - -bool Backlight::isBacklightAvailable() -{ - return m_backend->isBacklightAvailable(); -} - -bool Backlight::isBacklightOff() -{ - return m_backend->isBacklightOff(); -} - -void Backlight::setBacklight(int value) -{ - m_backend->setBacklight(value); -} - -void Backlight::backlightChangedSlot(int value) -{ - Q_EMIT backlightChanged(value); -} - -} // namespace LXQt diff --git a/LibLXQT/lxqtbacklight.h b/LibLXQT/lxqtbacklight.h deleted file mode 100644 index 2641010115..0000000000 --- a/LibLXQT/lxqtbacklight.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2016 P.L. Lucas - * - * 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 2 - * of the License, or (at your option) 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, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ -#ifndef __Backlight_H__ -#define __Backlight_H__ - -#include -#include "lxqtglobals.h" - -namespace LXQt -{ -class VirtualBackEnd; - -class LXQT_API Backlight : public QObject -{ -Q_OBJECT - -public: - Backlight(QObject *parent = nullptr); - ~Backlight() override; - - bool isBacklightAvailable(); - bool isBacklightOff(); - /**Sets backlight level. - * @param value backlight level. Negative values turn off backlight. - */ - void setBacklight(int value); - int getBacklight(); - int getMaxBacklight(); - -Q_SIGNALS: - void backlightChanged(int value); - -private Q_SLOTS: - void backlightChangedSlot(int value); - -private: - VirtualBackEnd *m_backend; -}; - -} // namespace LXQt - -#endif // __Backlight_H__ diff --git a/LibLXQT/lxqtbacklight/linux_backend/driver/CMakeLists.txt b/LibLXQT/lxqtbacklight/linux_backend/driver/CMakeLists.txt deleted file mode 100644 index 997444328d..0000000000 --- a/LibLXQT/lxqtbacklight/linux_backend/driver/CMakeLists.txt +++ /dev/null @@ -1,16 +0,0 @@ -project(lxqt-backlight_backend) - -set(C_FILES - lxqtbacklight_backend.c -) - -include_directories( - ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_BINARY_DIR} -) - -add_executable(${PROJECT_NAME} - ${C_FILES} -) - -install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin) diff --git a/LibLXQT/lxqtbacklight/linux_backend/driver/libbacklight_backend.c b/LibLXQT/lxqtbacklight/linux_backend/driver/libbacklight_backend.c deleted file mode 100644 index 12827067cd..0000000000 --- a/LibLXQT/lxqtbacklight/linux_backend/driver/libbacklight_backend.c +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright (C) 2016 P.L. Lucas - * - * 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 2 - * of the License, or (at your option) 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, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ - -/******************************************************************************** - * This library uses Linux /sys/class/backlight files to read and change the - * backlight level. - * - * If screen backlight can be controlled, the Linux kernel will show inside - * /sys/class/backlight directory one or more directories. Each directory has - * got the following files: - * /sys/class/backlight/driver/max_brightness - * /sys/class/backlight/driver/actual_brightness - * /sys/class/backlight/driver/brightness - * /sys/class/backlight/driver/type - * /sys/class/backlight/driver/bl_power - * - * The "max_brightness" file contains the maximum value that can be set to the - * backlight level. - * - * In "brightness" file you can write the value of backlight and the Linux - * kernel will set that value. - * - * The "bl_power" controls if backlight is turn on (0) or turn off (>0). - * - * You must read actual backlight level from "actual_brightness" file. Never - * read the backlight level from "brightness" file. - * - * The "type" file is the type of control and it can be: - * firmware - * platform - * raw - * The firmware control should be preferred to platform control. The platform - * control should be preferred to raw control. - * If there are several directories in /sys/class/backlight/, you should use - * the directory which its "type" file has got the "firmware" value. - * - * In order to write in /sys/class/backlight/driver/brightness file root - * permissions are needed. This library calls to a command line tool called - * "lxqtbacklight_backend". "lxqtbacklight_backend" has a policy in Polkit - * in order to write in /sys/class/backlight/driver/brightness file. - *******************************************************************************/ - -#include -#include -#include -#include -#include -#include -#include - -#include "libbacklight_backend.h" - -#define True 1 -#define False 0 - -static FILE* open_driver_file(const char *file, const char *driver, const char *mode); -static int read_backlight(const char *driver); -static int read_max_backlight(const char *driver); -static int read_bl_power(const char *driver); -static const char *sysfs_backlight_dir = "/sys/class/backlight"; - -int lxqt_backlight_backend_get() -{ - char *driver = lxqt_backlight_backend_get_driver(); - if( driver == NULL ) { - return -1; - } - int value = read_backlight(driver); - free(driver); - return value; -} - -int lxqt_backlight_backend_get_max() -{ - char *driver = lxqt_backlight_backend_get_driver(); - if( driver == NULL ) { - return -1; - } - int value = read_max_backlight(driver); - int bl_power = read_bl_power(driver); - free(driver); - return bl_power==0 ? value : -1; -} - -FILE *lxqt_backlight_backend_get_write_stream() -{ - FILE *stream = popen("pkexec lxqt-backlight_backend --stdin", "w"); - return stream; -} - -int lxqt_backlight_is_backlight_off() -{ - char *driver = lxqt_backlight_backend_get_driver(); - if( driver == NULL ) { - return -1; - } - int bl_power = read_bl_power(driver); - free(driver); - return bl_power; -} - -static int read_int(const char *file, const char *driver) -{ - FILE *in = open_driver_file(file, driver, "r"); - if( in == NULL ) { - return -1; - } - int value; - int ok = fscanf(in, "%d", &value); - fclose(in); - if( ok == EOF ) { - value = 0; - } - return value; -} - -static FILE* open_driver_file(const char *file, const char *driver, const char *mode) -{ - char path[PATH_MAX]; - int res; - - res = snprintf(path, PATH_MAX, "%s/%s/%s", sysfs_backlight_dir, driver, file); - - if( res <= 0 || res >= PATH_MAX ) { - path[0] = '\0'; - return NULL; - } - - FILE *ret = fopen(path, mode); - - if( ret == NULL ) { - fprintf(stderr, "Couldn't open %s: %s\n", path, strerror(errno)); - } - - return ret; -} - -static int read_backlight(const char *driver) -{ - return read_int("actual_brightness", driver); -} - -static int read_max_backlight(const char *driver) -{ - return read_int("max_brightness", driver); -} - -static int read_bl_power(const char *driver) -{ - return read_int("bl_power", driver); -} - -typedef enum {FIRMWARE, PLATFORM, RAW, OTHER, N_BACKLIGHT} BackligthTypes; - -char *lxqt_backlight_backend_get_driver() -{ - DIR *dirp; - struct dirent *dp; - - char *drivers[N_BACKLIGHT]; - char *driver; - int n; - char type[1024]; - - for(n=0;nd_name, ".") || !strcmp(dp->d_name, "..") ) - continue; - driver = dp->d_name; - FILE *in = open_driver_file("type", driver, "r"); - if( in == NULL ) - continue; - // the maximum field width does not include '\0'! - int ok = fscanf(in, "%1023s", type); - fclose(in); - if( ok != EOF ) { - // firmware control should be preferred to platform control should be preferred to raw control. - if( ! strcmp("firmware", type) ) { - drivers[FIRMWARE] = strdup(driver); - break; - } else if( ! strcmp("platform", type) ) - drivers[PLATFORM] = strdup(driver); - else if( ! strcmp("raw", type) ) - drivers[RAW] = strdup(driver); - else // Only, firmware, platform and raw are defined, but... - drivers[OTHER] = strdup(driver); - } - } - } while (dp != NULL); - - closedir(dirp); - - if (errno != 0) { - fprintf(stderr, "Error reading directory %s: %s\n", sysfs_backlight_dir, strerror(errno)); - } - - driver = NULL; - for(n=0;n - -/**Returns actual value of backlight. - * -1 will be returned if backlight can not be changed. - */ -int lxqt_backlight_backend_get(); - -/**Returns maximum value of backlight. - * -1 will be returned if backlight can not be changed. - */ -int lxqt_backlight_backend_get_max(); - -/**Returns a FILE pointer to stream which can be used to write values - * of backlight. - * int max_backlight = lxqt_backlight_backend_get_max(); - * if(max_backlight<0) - * return; // Backlight can not be controlled. - * FILE *fout = lxqt_backlight_backend_write_stream(); - * fprintf(fout, "%d\n", 3); - * fflush(fout); - * // ... Do something ... - * fprintf(fout, "%d\n", 7); - * fclose(fout); - * Under Qt you can use QTextStream class: - * FILE *fout = lxqt_backlight_backend_write_stream(); - * QTextStream backlightStream(fout); - * backlightStream << 3 << endl; - */ -FILE *lxqt_backlight_backend_get_write_stream(); - -/**Returns if backlight power is turned off. - * @ return 0 backlight off, bigger then 0 backlight on. - */ -int lxqt_backlight_is_backlight_off(); - -/**Returns the driver. Backlight values are read from /sys/class/backlight/driver/. - * Example: - * char *driver = lxqt_backlight_backend_get_driver(); - * printf("%s\n", driver); - * free(driver); - */ -char *lxqt_backlight_backend_get_driver(); - -#ifdef __cplusplus -} -#endif - - -#endif \ No newline at end of file diff --git a/LibLXQT/lxqtbacklight/linux_backend/driver/lxqtbacklight_backend.c b/LibLXQT/lxqtbacklight/linux_backend/driver/lxqtbacklight_backend.c deleted file mode 100644 index b32159aa58..0000000000 --- a/LibLXQT/lxqtbacklight/linux_backend/driver/lxqtbacklight_backend.c +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright (C) 2016 P.L. Lucas - * - * 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 2 - * of the License, or (at your option) 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, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ - -#include -#include -#include -#include -#include -#include -#include - -#include "libbacklight_backend.h" -#include "libbacklight_backend.c" - -#define True 1 -#define False 0 - -/**bl_power turn off or turn on backlight. - * @param driver is the driver to use - * @param value 0 turns on backlight, 4 turns off backlight - */ -static void set_bl_power(const char *driver, int value) -{ - FILE *out = open_driver_file("bl_power", driver, "w"); - if( out != NULL ) { - fprintf(out, "%d", value); - fclose(out); - } -} - - -static void set_backlight(const char *driver, int value) -{ - if(value>0) { - FILE *out = open_driver_file("brightness", driver, "w"); - if( out != NULL ) { - fprintf(out, "%d", value); - fclose(out); - } - if(read_bl_power(driver) > 0) - set_bl_power(driver, 0); - } else { - set_bl_power(driver, 4); - } -} - -static char *get_driver() -{ - return lxqt_backlight_backend_get_driver(); -} - - -static void show_blacklight() -{ - char *driver = get_driver(); - if( driver == NULL ) { - return; - } - int max_value = read_max_backlight(driver); - int actual = read_backlight(driver); - printf("%s %d %d\n", driver, max_value, actual); - free(driver); -} - -static void change_blacklight(int value, int percent_ok) -{ - char *driver = get_driver(); - if( driver == NULL ) { - return; - } - int max_value = read_max_backlight(driver); - if(percent_ok) { - value = (float)(max_value*value)/100.0; - if( value == 0 ) { - // avoid switching off backlight but support zero as lowest value - value = 1; - } - } - if(value<=max_value && value>0) { - set_backlight(driver, value); - } - free(driver); -} - -static void increases_blacklight() -{ - char *driver = get_driver(); - if( driver == NULL ) { - return; - } - int max_value = read_max_backlight(driver); - int actual = read_backlight(driver); - int incr = max_value/10; - if( incr == 0 ) - incr = 1; - int value = actual + incr; - if( value > max_value) - value = max_value; - if(value0) { - set_backlight(driver, value); - } - free(driver); -} - -static void decreases_blacklight() -{ - char *driver = get_driver(); - if( driver == NULL ) { - return; - } - int max_value = read_max_backlight(driver); - int actual = read_backlight(driver); - int decr = max_value/10; - if( decr == 0 ) - decr = 1; - int value = actual - decr; - if( value <= 0 ) - value = 1; - if(value 0 && value <= max_value) { - set_backlight(driver, value); - } - } - free(driver); -} - -static void help(char *argv0) -{ - printf("%s [backlight-level [ %% ]] [--help]\n" - "--help Shows this message.\n" - "--show Shows actual brightness level.\n" - "--inc Increases actual brightness level.\n" - "--dec Decreases actual brightness level.\n" - "--stdin Read backlight value from stdin\n" - "backlight-level Sets backlight\n" - "backlight-level %% Sets backlight from 1%% to 100%%\n" - "This tool changes screen backlight.\n" - "Example:\n" - "%s 10 %% Sets backlight level until 10%%.\n" - , argv0, argv0 - ); -} - - -int main(int argc, char *argv[]) -{ - int value = -1, value_percent_ok = False; - int n; - for(n=1; n -#include - -namespace LXQt { - -LinuxBackend::LinuxBackend(QObject *parent):VirtualBackEnd(parent) -{ - maxBacklight = lxqt_backlight_backend_get_max(); - backlightStream = NULL; - if( isBacklightAvailable() ) { - char *driver = lxqt_backlight_backend_get_driver(); - fileSystemWatcher = new QFileSystemWatcher(this); - fileSystemWatcher->addPath(QString::fromLatin1("/sys/class/backlight/%1/actual_brightness").arg(QL1S(driver))); - fileSystemWatcher->addPath(QString::fromLatin1("/sys/class/backlight/%1/brightness").arg(QL1S(driver))); - fileSystemWatcher->addPath(QString::fromLatin1("/sys/class/backlight/%1/bl_power").arg(QL1S(driver))); - free(driver); - actualBacklight = lxqt_backlight_backend_get(); - connect(fileSystemWatcher, &QFileSystemWatcher::fileChanged, - this, &LinuxBackend::fileSystemChanged); - } -} - -LinuxBackend::~LinuxBackend() -{ - closeBacklightStream(); -} - -int LinuxBackend::getBacklight() -{ - actualBacklight = lxqt_backlight_backend_get(); - return actualBacklight; -} - -int LinuxBackend::getMaxBacklight() -{ - return maxBacklight; -} - -bool LinuxBackend::isBacklightAvailable() -{ - return maxBacklight > 0; -} - -bool LinuxBackend::isBacklightOff() -{ - return lxqt_backlight_is_backlight_off() > 0; -} - -void LinuxBackend::setBacklight(int value) -{ - if( ! isBacklightAvailable() ) - return; - if( backlightStream == NULL ) { - backlightStream = lxqt_backlight_backend_get_write_stream(); - if( backlightStream != NULL ) { - // Close stream after 60 seconds - QTimer::singleShot(60000, this, SLOT(closeBacklightStream())); - } - } - if( backlightStream != NULL ) { - // normalize the value (to work around an issue in QSlider) - value = qBound(0, value, maxBacklight); - fprintf(backlightStream, "%d\n", value); - fflush(backlightStream); - } -} - -void LinuxBackend::closeBacklightStream() -{ - if( backlightStream != NULL ) { - fclose(backlightStream); - backlightStream = NULL; - } -} - -void LinuxBackend::fileSystemChanged(const QString & /*path*/) -{ - int value = actualBacklight; - if( value != getBacklight() ) { - Q_EMIT backlightChanged(actualBacklight); - } -} - -} // namespace LXQt diff --git a/LibLXQT/lxqtbacklight/linux_backend/linuxbackend.h b/LibLXQT/lxqtbacklight/linux_backend/linuxbackend.h deleted file mode 100644 index aae6ff229d..0000000000 --- a/LibLXQT/lxqtbacklight/linux_backend/linuxbackend.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2016 P.L. Lucas - * - * 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 2 - * of the License, or (at your option) 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, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ -#ifndef __LinuxBackend_H__ -#define __LinuxBackend_H__ - -#include "../virtual_backend.h" -#include -#include - -namespace LXQt -{ - -class LinuxBackend:public VirtualBackEnd -{ -Q_OBJECT - -public: - LinuxBackend(QObject *parent = nullptr); - ~LinuxBackend() override; - - bool isBacklightAvailable() override; - bool isBacklightOff() override; - void setBacklight(int value) override; - int getBacklight() override; - int getMaxBacklight() override; - -private Q_SLOTS: - void closeBacklightStream(); - void fileSystemChanged(const QString & path); - -private: - int maxBacklight; - int actualBacklight; - QFileSystemWatcher *fileSystemWatcher; - FILE *backlightStream; -}; - -} // namespace LXQt - -#endif // __LinuxBackend_H__ diff --git a/LibLXQT/lxqtbacklight/virtual_backend.cpp b/LibLXQT/lxqtbacklight/virtual_backend.cpp deleted file mode 100644 index 0248dc1f54..0000000000 --- a/LibLXQT/lxqtbacklight/virtual_backend.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2018 P.L. Lucas - * - * 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 2 - * of the License, or (at your option) 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, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "virtual_backend.h" - -namespace LXQt { - -VirtualBackEnd::VirtualBackEnd(QObject *parent):QObject(parent) -{ -} - -bool VirtualBackEnd::isBacklightAvailable() -{ - return false; -} - -bool VirtualBackEnd::isBacklightOff() -{ - return false; -} - -void VirtualBackEnd::setBacklight(int /*value*/) -{ -} - -int VirtualBackEnd::getBacklight() -{ - return -1; -} - -int VirtualBackEnd::getMaxBacklight() -{ - return -1; -} - -} // namespace LXQt \ No newline at end of file diff --git a/LibLXQT/lxqtbacklight/virtual_backend.h b/LibLXQT/lxqtbacklight/virtual_backend.h deleted file mode 100644 index d36a0abb37..0000000000 --- a/LibLXQT/lxqtbacklight/virtual_backend.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2016 P.L. Lucas - * - * 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 2 - * of the License, or (at your option) 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, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -*/ -#ifndef __VirtualBackend_H__ -#define __VirtualBackend_H__ - -#include -#include "lxqtglobals.h" - -namespace LXQt -{ - -class LXQT_API VirtualBackEnd:public QObject -{ -Q_OBJECT - -public: - VirtualBackEnd(QObject *parent = nullptr); - - virtual bool isBacklightAvailable(); - virtual bool isBacklightOff(); - virtual void setBacklight(int value); - virtual int getBacklight(); - virtual int getMaxBacklight(); - -Q_SIGNALS: - void backlightChanged(int value); -}; - -} // namespace LXQt - -#endif // __VirtualBackend_H__ diff --git a/LibLXQT/lxqtglobals.h b/LibLXQT/lxqtglobals.h deleted file mode 100644 index 7bd7025522..0000000000 --- a/LibLXQT/lxqtglobals.h +++ /dev/null @@ -1,55 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2013 - LXQt team - * Authors: - * Hong Jen Yee (PCMan) - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef _LXQT_GLOBALS_H_ -#define _LXQT_GLOBALS_H_ - -#include - -#ifdef COMPILE_LIBLXQT -#define LXQT_API Q_DECL_EXPORT -#else -#define LXQT_API Q_DECL_IMPORT -#endif - -#ifndef QL1S -#define QL1S(x) QLatin1String(x) -#endif - -#ifndef QL1C -#define QL1C(x) QLatin1Char(x) -#endif - -#ifndef QSL -#define QSL(x) QStringLiteral(x) -#endif - -#ifndef QBAL -#define QBAL(x) QByteArrayLiteral(x) -#endif - -#endif // _LXQT_GLOBALS_H_ diff --git a/LibLXQT/lxqtgridlayout.cpp b/LibLXQT/lxqtgridlayout.cpp deleted file mode 100644 index 09b54bd589..0000000000 --- a/LibLXQT/lxqtgridlayout.cpp +++ /dev/null @@ -1,712 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Alexander Sokoloff - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#include "lxqtgridlayout.h" -#include -#include -#include -#include - -using namespace LXQt; - -class LXQt::GridLayoutPrivate -{ -public: - GridLayoutPrivate(); - ~GridLayoutPrivate(); - - QList mItems; - int mRowCount; - int mColumnCount; - GridLayout::Direction mDirection; - - bool mIsValid; - QSize mCellSizeHint; - QSize mCellMaxSize; - int mVisibleCount; - GridLayout::Stretch mStretch; - bool mAnimate; - int mAnimatedItems; //!< counter of currently animated items - - - void updateCache(); - int rows() const; - int cols() const; - void setItemGeometry(QLayoutItem * item, QRect const & geometry); - QSize mPrefCellMinSize; - QSize mPrefCellMaxSize; - QRect mOccupiedGeometry; -}; - -namespace -{ - class ItemMoveAnimation : public QVariantAnimation - { - public: - static void animate(QLayoutItem * item, QRect const & geometry, LXQt::GridLayoutPrivate * layout) - { - ItemMoveAnimation* animation = new ItemMoveAnimation(item); - animation->setStartValue(item->geometry()); - animation->setEndValue(geometry); - ++layout->mAnimatedItems; - connect(animation, &QAbstractAnimation::finished, [layout] { --layout->mAnimatedItems; Q_ASSERT(0 <= layout->mAnimatedItems); }); - animation->start(DeleteWhenStopped); - } - - ItemMoveAnimation(QLayoutItem *item) - : mItem(item) - { - setDuration(150); - } - - void updateCurrentValue(const QVariant ¤t) override - { - mItem->setGeometry(current.toRect()); - } - - private: - QLayoutItem* mItem; - - }; -} - - -/************************************************ - - ************************************************/ -GridLayoutPrivate::GridLayoutPrivate() -{ - mColumnCount = 0; - mRowCount = 0; - mDirection = GridLayout::LeftToRight; - mIsValid = false; - mVisibleCount = 0; - mStretch = GridLayout::StretchHorizontal | GridLayout::StretchVertical; - mAnimate = false; - mAnimatedItems = 0; - mPrefCellMinSize = QSize(0,0); - mPrefCellMaxSize = QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX); -} - -/************************************************ - - ************************************************/ -GridLayoutPrivate::~GridLayoutPrivate() -{ - qDeleteAll(mItems); -} - - -/************************************************ - - ************************************************/ -void GridLayoutPrivate::updateCache() -{ - mCellSizeHint = QSize(0, 0); - mCellMaxSize = QSize(0, 0); - mVisibleCount = 0; - - const int N = mItems.count(); - for (int i=0; i < N; ++i) - { - QLayoutItem *item = mItems.at(i); - if (!item->widget() || item->widget()->isHidden()) - continue; - - int h = qBound(item->minimumSize().height(), - item->sizeHint().height(), - item->maximumSize().height()); - - int w = qBound(item->minimumSize().width(), - item->sizeHint().width(), - item->maximumSize().width()); - - mCellSizeHint.rheight() = qMax(mCellSizeHint.height(), h); - mCellSizeHint.rwidth() = qMax(mCellSizeHint.width(), w); - - mCellMaxSize.rheight() = qMax(mCellMaxSize.height(), item->maximumSize().height()); - mCellMaxSize.rwidth() = qMax(mCellMaxSize.width(), item->maximumSize().width()); - mVisibleCount++; - -#if 0 - qDebug() << "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"; - qDebug() << "item.min" << item->minimumSize().width(); - qDebug() << "item.sz " << item->sizeHint().width(); - qDebug() << "item.max" << item->maximumSize().width(); - qDebug() << "w h" << w << h; - qDebug() << "wid.sizeHint" << item->widget()->sizeHint(); - qDebug() << "mCellSizeHint:" << mCellSizeHint; - qDebug() << "mCellMaxSize: " << mCellMaxSize; - qDebug() << "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"; -#endif - - } - mCellSizeHint.rwidth() = qBound(mPrefCellMinSize.width(), mCellSizeHint.width(), mPrefCellMaxSize.width()); - mCellSizeHint.rheight()= qBound(mPrefCellMinSize.height(), mCellSizeHint.height(), mPrefCellMaxSize.height()); - mIsValid = !mCellSizeHint.isEmpty(); -} - - -/************************************************ - - ************************************************/ -int GridLayoutPrivate::rows() const -{ - if (mRowCount) - return mRowCount; - - if (!mColumnCount) - return 1; - - return ceil(mVisibleCount * 1.0 / mColumnCount); -} - - -/************************************************ - - ************************************************/ -int GridLayoutPrivate::cols() const -{ - if (mColumnCount) - return mColumnCount; - - int rows = mRowCount; - if (!rows) - rows = 1; - - return ceil(mVisibleCount * 1.0 / rows); -} - -void GridLayoutPrivate::setItemGeometry(QLayoutItem * item, QRect const & geometry) -{ - mOccupiedGeometry |= geometry; - if (mAnimate) - { - ItemMoveAnimation::animate(item, geometry, this); - } else - { - item->setGeometry(geometry); - } -} - - -/************************************************ - - ************************************************/ -GridLayout::GridLayout(QWidget *parent): - QLayout(parent), - d_ptr(new GridLayoutPrivate()) -{ - // no space between items by default - setSpacing(0); -} - - -/************************************************ - - ************************************************/ -GridLayout::~GridLayout() -{ - delete d_ptr; -} - - -/************************************************ - - ************************************************/ -void GridLayout::addItem(QLayoutItem *item) -{ - d_ptr->mItems.append(item); -} - - -/************************************************ - - ************************************************/ -QLayoutItem *GridLayout::itemAt(int index) const -{ - Q_D(const GridLayout); - if (index < 0 || index >= d->mItems.count()) - return nullptr; - - return d->mItems.at(index); -} - - -/************************************************ - - ************************************************/ -QLayoutItem *GridLayout::takeAt(int index) -{ - Q_D(GridLayout); - if (index < 0 || index >= d->mItems.count()) - return nullptr; - - QLayoutItem *item = d->mItems.takeAt(index); - return item; -} - - -/************************************************ - - ************************************************/ -int GridLayout::count() const -{ - Q_D(const GridLayout); - return d->mItems.count(); -} - - -/************************************************ - - ************************************************/ -void GridLayout::invalidate() -{ - Q_D(GridLayout); - d->mIsValid = false; - QLayout::invalidate(); -} - - -/************************************************ - - ************************************************/ -int GridLayout::rowCount() const -{ - Q_D(const GridLayout); - return d->mRowCount; -} - - -/************************************************ - - ************************************************/ -void GridLayout::setRowCount(int value) -{ - Q_D(GridLayout); - if (d->mRowCount != value) - { - d->mRowCount = value; - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -int GridLayout::columnCount() const -{ - Q_D(const GridLayout); - return d->mColumnCount; -} - - -/************************************************ - - ************************************************/ -void GridLayout::setColumnCount(int value) -{ - Q_D(GridLayout); - if (d->mColumnCount != value) - { - d->mColumnCount = value; - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -GridLayout::Direction GridLayout::direction() const -{ - Q_D(const GridLayout); - return d->mDirection; -} - - -/************************************************ - - ************************************************/ -void GridLayout::setDirection(GridLayout::Direction value) -{ - Q_D(GridLayout); - if (d->mDirection != value) - { - d->mDirection = value; - invalidate(); - } -} - -/************************************************ - - ************************************************/ -GridLayout::Stretch GridLayout::stretch() const -{ - Q_D(const GridLayout); - return d->mStretch; -} - -/************************************************ - - ************************************************/ -void GridLayout::setStretch(Stretch value) -{ - Q_D(GridLayout); - if (d->mStretch != value) - { - d->mStretch = value; - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -void GridLayout::moveItem(int from, int to, bool withAnimation /*= false*/) -{ - Q_D(GridLayout); - d->mAnimate = withAnimation; - d->mItems.move(from, to); - invalidate(); -} - - -/************************************************ - - ************************************************/ -bool GridLayout::animatedMoveInProgress() const -{ - Q_D(const GridLayout); - return 0 < d->mAnimatedItems; -} - - -/************************************************ - - ************************************************/ -QSize GridLayout::cellMinimumSize() const -{ - Q_D(const GridLayout); - return d->mPrefCellMinSize; -} - - -/************************************************ - - ************************************************/ -void GridLayout::setCellMinimumSize(QSize minSize) -{ - Q_D(GridLayout); - if (d->mPrefCellMinSize != minSize) - { - d->mPrefCellMinSize = minSize; - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -void GridLayout::setCellMinimumHeight(int value) -{ - Q_D(GridLayout); - if (d->mPrefCellMinSize.height() != value) - { - d->mPrefCellMinSize.setHeight(value); - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -void GridLayout::setCellMinimumWidth(int value) -{ - Q_D(GridLayout); - if (d->mPrefCellMinSize.width() != value) - { - d->mPrefCellMinSize.setWidth(value); - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -QSize GridLayout::cellMaximumSize() const -{ - Q_D(const GridLayout); - return d->mPrefCellMaxSize; -} - - -/************************************************ - - ************************************************/ -void GridLayout::setCellMaximumSize(QSize maxSize) -{ - Q_D(GridLayout); - if (d->mPrefCellMaxSize != maxSize) - { - d->mPrefCellMaxSize = maxSize; - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -void GridLayout::setCellMaximumHeight(int value) -{ - Q_D(GridLayout); - if (d->mPrefCellMaxSize.height() != value) - { - d->mPrefCellMaxSize.setHeight(value); - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -void GridLayout::setCellMaximumWidth(int value) -{ - Q_D(GridLayout); - if (d->mPrefCellMaxSize.width() != value) - { - d->mPrefCellMaxSize.setWidth(value); - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -void GridLayout::setCellFixedSize(QSize size) -{ - Q_D(GridLayout); - if (d->mPrefCellMinSize != size || - d->mPrefCellMaxSize != size) - { - d->mPrefCellMinSize = size; - d->mPrefCellMaxSize = size; - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -void GridLayout::setCellFixedHeight(int value) -{ - Q_D(GridLayout); - if (d->mPrefCellMinSize.height() != value || - d->mPrefCellMaxSize.height() != value) - { - d->mPrefCellMinSize.setHeight(value); - d->mPrefCellMaxSize.setHeight(value); - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -void GridLayout::setCellFixedWidth(int value) -{ - Q_D(GridLayout); - if (d->mPrefCellMinSize.width() != value || - d->mPrefCellMaxSize.width() != value) - { - d->mPrefCellMinSize.setWidth(value); - d->mPrefCellMaxSize.setWidth(value); - invalidate(); - } -} - - -/************************************************ - - ************************************************/ -QSize GridLayout::sizeHint() const -{ - Q_D(const GridLayout); - - if (!d->mIsValid) - const_cast(d)->updateCache(); - - if (d->mVisibleCount == 0) - return {0, 0}; - - const int sp = spacing(); - return {d->cols() * (d->mCellSizeHint.width() + sp) - sp, - d->rows() * (d->mCellSizeHint.height() + sp) - sp}; -} - - -/************************************************ - - ************************************************/ -void GridLayout::setGeometry(const QRect &geometry) -{ - Q_D(GridLayout); - - const bool visual_h_reversed = parentWidget() && parentWidget()->isRightToLeft(); - - QLayout::setGeometry(geometry); - const QPoint occupied_start = visual_h_reversed ? geometry.topRight() : geometry.topLeft(); - d->mOccupiedGeometry.setTopLeft(occupied_start); - d->mOccupiedGeometry.setBottomRight(occupied_start); - - if (!d->mIsValid) - d->updateCache(); - - int y = geometry.top(); - int x = geometry.left(); - - // For historical reasons QRect::right returns left() + width() - 1 - // and QRect::bottom() returns top() + height() - 1; - // So we use left() + height() and top() + height() - // - // http://qt-project.org/doc/qt-4.8/qrect.html - - const int maxX = geometry.left() + geometry.width(); - const int maxY = geometry.top() + geometry.height(); - - const bool stretch_h = d->mStretch.testFlag(StretchHorizontal); - const bool stretch_v = d->mStretch.testFlag(StretchVertical); - const int sp = spacing(); - - const int cols = d->cols(); - int itemWidth = 0; - int widthRemain = 0; - if (stretch_h && 0 < cols) - { - itemWidth = qMin((geometry.width() + sp) / cols - sp, d->mCellMaxSize.width()); - widthRemain = (geometry.width() + sp) % cols; - } - else - { - itemWidth = d->mCellSizeHint.width(); - } - itemWidth = qBound(qMin(d->mPrefCellMinSize.width(), maxX), itemWidth, d->mPrefCellMaxSize.width()); - - const int rows = d->rows(); - int itemHeight = 0; - int heightRemain = 0; - if (stretch_v && 0 < rows) - { - itemHeight = qMin((geometry.height() + sp) / rows - sp, d->mCellMaxSize.height()); - heightRemain = (geometry.height() + sp) % rows; - } - else - { - itemHeight = d->mCellSizeHint.height(); - } - itemHeight = qBound(qMin(d->mPrefCellMinSize.height(), maxY), itemHeight, d->mPrefCellMaxSize.height()); - -#if 0 - qDebug() << "** GridLayout::setGeometry *******************************"; - qDebug() << "Geometry:" << geometry; - qDebug() << "CellSize:" << d->mCellSizeHint; - qDebug() << "Constraints:" << "min" << d->mPrefCellMinSize << "max" << d->mPrefCellMaxSize; - qDebug() << "Count" << count(); - qDebug() << "Cols:" << d->cols() << "(" << d->mColumnCount << ")"; - qDebug() << "Rows:" << d->rows() << "(" << d->mRowCount << ")"; - qDebug() << "Stretch:" << "h:" << (d->mStretch.testFlag(StretchHorizontal)) << " v:" << (d->mStretch.testFlag(StretchVertical)); - qDebug() << "Item:" << "h:" << itemHeight << " w:" << itemWidth; -#endif - - int remain_height = heightRemain; - int remain_width = widthRemain; - if (d->mDirection == LeftToRight) - { - int height = itemHeight + (0 < remain_height-- ? 1 : 0); - for (QLayoutItem *item : qAsConst(d->mItems)) - { - if (!item->widget() || item->widget()->isHidden()) - continue; - int width = itemWidth + (0 < remain_width-- ? 1 : 0); - - if (x + width > maxX) - { - x = geometry.left(); - y += height + sp; - - height = itemHeight + (0 < remain_height-- ? 1 : 0); - remain_width = widthRemain; - } - - const int left = visual_h_reversed ? geometry.left() + geometry.right() - x - width + 1 : x; - d->setItemGeometry(item, QRect(left, y, width, height)); - x += width + sp; - } - } - else - { - int width = itemWidth + (0 < remain_width-- ? 1 : 0); - for (QLayoutItem *item : qAsConst(d->mItems)) - { - if (!item->widget() || item->widget()->isHidden()) - continue; - int height = itemHeight + (0 < remain_height-- ? 1 : 0); - - if (y + height > maxY) - { - y = geometry.top(); - x += width + sp; - - width = itemWidth + (0 < remain_width-- ? 1 : 0); - remain_height = heightRemain; - } - const int left = visual_h_reversed ? geometry.left() + geometry.right() - x - width + 1 : x; - d->setItemGeometry(item, QRect(left, y, width, height)); - y += height + sp; - } - } - d->mAnimate = false; -} - -/************************************************ - - ************************************************/ -QRect GridLayout::occupiedGeometry() const -{ - return d_func()->mOccupiedGeometry; -} diff --git a/LibLXQT/lxqtgridlayout.h b/LibLXQT/lxqtgridlayout.h deleted file mode 100644 index 9d822825fb..0000000000 --- a/LibLXQT/lxqtgridlayout.h +++ /dev/null @@ -1,245 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2012 Razor team - * Authors: - * Alexander Sokoloff - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#ifndef LXQTGRIDLAYOUT_H -#define LXQTGRIDLAYOUT_H - -#include -#include "lxqtglobals.h" -#include - - -namespace LXQt -{ - -class GridLayoutPrivate; - -/** - The GridLayout class lays out widgets in a grid. - **/ -class LXQT_API GridLayout: public QLayout -{ - Q_OBJECT -public: - /** - This enum type is used to describe direction for this grid. - **/ - enum Direction - { - LeftToRight, ///< The items are first laid out horizontally and then vertically. - TopToBottom ///< The items are first laid out vertically and then horizontally. - }; - - /** - This enum type is used to describe stretch. It contains one horizontal - and one vertical flags that can be combined to produce the required effect. - */ - enum StretchFlag - { - NoStretch = 0, ///< No justifies items - StretchHorizontal = 1, ///< Justifies items in the available horizontal space - StretchVertical = 2 ///< Justifies items in the available vertical space - }; - Q_DECLARE_FLAGS(Stretch, StretchFlag) - - - - /** - Constructs a new GridLayout with parent widget, parent. - The layout has one row and zero column initially, and will - expand to left when new items are inserted. - **/ - explicit GridLayout(QWidget *parent = nullptr); - - /** - Destroys the grid layout. The layout's widgets aren't destroyed. - **/ - ~GridLayout() override; - - void addItem(QLayoutItem *item) override; - QLayoutItem *itemAt(int index) const override; - QLayoutItem *takeAt(int index) override; - int count() const override; - void invalidate() override; - - QSize sizeHint() const override; - void setGeometry(const QRect &geometry) override; - QRect occupiedGeometry() const; - - - /** - Returns the number of rows in this grid. - **/ - int rowCount() const; - - /** - Sets the number of rows in this grid. If value is 0, then rows - count will calculated automatically when new items are inserted. - - In the most cases you should to set fixed number for one thing, - or for rows, or for columns. - - \sa GridLayout::setColumnCount - **/ - void setRowCount(int value); - - - /** - Returns the number of columns in this grid. - **/ - int columnCount() const; - - /** - Sets the number of columns in this grid. If value is 0, then columns - count will calculated automatically when new items are inserted. - - In the most cases you should to set fixed number for one thing, - or for rows, or for columns. - - \sa GridLayout::setRowCount - **/ - void setColumnCount(int value); - - - /** - Returns the alignment of this grid. - - \sa GridLayout::Direction - **/ - Direction direction() const; - - /** - Sets the direction for this grid. - - \sa GridLayout::Direction - **/ - void setDirection(Direction value); - - /** - Returns the stretch flags of this grid. - - \sa GridLayout::StretchFlag - **/ - Stretch stretch() const; - - /** - Sets the stretch flags for this grid. - - \sa GridLayout::StretchFlag - **/ - void setStretch(Stretch value); - - /** - Moves the item at index position \param from to index position \param to. - If \param withAnimation set the reordering will be animated - **/ - void moveItem(int from, int to, bool withAnimation = false); - - /** - Checks if layout is currently animated after the \sa moveItem() - invocation. - **/ - bool animatedMoveInProgress() const; - - /** - Returns the cells' minimum size. - By default, this property contains a size with zero width and height. - **/ - QSize cellMinimumSize() const; - - /** - Sets the minimum size of all cells to minSize pixels. - **/ - void setCellMinimumSize(QSize minSize); - - /** - Sets the minimum height of the cells to value without - changing the width. Provided for convenience. - **/ - void setCellMinimumHeight(int value); - - /** - Sets the minimum width of the cells to value without - changing the heights. Provided for convenience. - **/ - void setCellMinimumWidth(int value); - - - - /** - Returns the cells' maximum size. - By default, this property contains a size with zero width and height. - **/ - QSize cellMaximumSize() const; - - /** - Sets the maximum size of all cells to maxSize pixels. - **/ - void setCellMaximumSize(QSize maxSize); - - /** - Sets the maximum height of the cells to value without - changing the width. Provided for convenience. - **/ - void setCellMaximumHeight(int value); - - /** - Sets the maximum width of the cells to value without - changing the heights. Provided for convenience. - **/ - void setCellMaximumWidth(int value); - - - - /** - Sets both the minimum and maximum sizes of the cells to size, - thereby preventing it from ever growing or shrinking. - **/ - void setCellFixedSize(QSize size); - - /** - Sets both the minimum and maximum height of the cells to value without - changing the width. Provided for convenience. - **/ - void setCellFixedHeight(int value); - - /** - Sets both the minimum and maximum width of the cells to value without - changing the heights. Provided for convenience. - **/ - void setCellFixedWidth(int value); - -private: - GridLayoutPrivate* const d_ptr; - Q_DECLARE_PRIVATE(GridLayout) -}; - -Q_DECLARE_OPERATORS_FOR_FLAGS(GridLayout::Stretch) - -} // namespace LXQt -#endif // LXQTGRIDLAYOUT_H diff --git a/LibLXQT/lxqthtmldelegate.cpp b/LibLXQT/lxqthtmldelegate.cpp deleted file mode 100644 index 89da228624..0000000000 --- a/LibLXQT/lxqthtmldelegate.cpp +++ /dev/null @@ -1,137 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * Paulo Lieuthier - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "lxqthtmldelegate.h" -#include -#include -#include - -using namespace LXQt; - - -HtmlDelegate::HtmlDelegate(const QSize iconSize, QObject* parent) : - QStyledItemDelegate(parent), - mIconSize(iconSize) -{ -} - -HtmlDelegate::~HtmlDelegate() = default; - -/************************************************ - - ************************************************/ -void HtmlDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - if (!index.isValid()) - return; - - QStyleOptionViewItem options = option; - initStyleOption(&options, index); - const bool is_right_to_left = Qt::RightToLeft == options.direction; - - painter->save(); - - QTextDocument doc; - doc.setHtml(options.text); - QIcon icon = options.icon; - - // icon size - const QSize iconSize = icon.actualSize(mIconSize); - // center the icon vertically - QRect iconRect = QRect(8, qMax(options.rect.height() - iconSize.height(), 0) / 2, - iconSize.width(), iconSize.height()); - if (is_right_to_left) - { - iconRect.moveLeft(options.rect.left() + options.rect.right() - iconRect.x() - iconRect.width() + 1); - } - - // set doc size - // NOTE: Qt has a bug, because of which HTML tags are included in QTextDocument::setTextWidth() - // when the text is set by QTextDocument::setHtml(). - // As a result, the text height may be a little greater than needed. - doc.setTextWidth(options.rect.width() - iconRect.width() - 8 - 8); // 8-px icon-text spacing - - // draw the item's panel - const QWidget* widget = option.widget; - QStyle* style = widget ? widget->style() : QApplication::style(); - style->drawPrimitive(QStyle::PE_PanelItemViewItem, &options, painter, widget); - - // paint icon - painter->translate(options.rect.left(), options.rect.top()); - icon.paint(painter, iconRect); - - // center the text vertically - painter->translate(0, qMax(static_cast(options.rect.height()) - doc.size().height(), 0.0) / 2.0); - - if (!is_right_to_left) - { - // shift text right to make icon visible - painter->translate((iconRect.right() + 1) + 8, 0); - } - const QRect clip(0, 0, options.rect.width() - iconRect.width() - 8, options.rect.height()); - painter->setClipRect(clip); - - // set text colors - QAbstractTextDocumentLayout::PaintContext ctx; - QPalette::ColorGroup colorGroup = (option.state & QStyle::State_Active) ? QPalette::Active : QPalette::Inactive; - if (option.state & QStyle::State_Selected) // selected items - ctx.palette.setColor(QPalette::Text, option.palette.color(colorGroup, QPalette::HighlightedText)); - else // ordinary items and those with an alternate base color (there is no alternate text color) - ctx.palette.setColor(QPalette::Text, option.palette.color(colorGroup, QPalette::Text)); - - ctx.clip = clip; - doc.documentLayout()->draw(painter, ctx); - - painter->restore(); -} - - -/************************************************ - - ************************************************/ -QSize HtmlDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - QStyleOptionViewItem options = option; - initStyleOption(&options, index); - - const QSize iconSize = options.icon.actualSize(mIconSize); - // 8-px left, top and bottom margins for the icon - const QRect iconRect = QRect(8, 8, iconSize.width(), iconSize.height()); - const int w = options.rect.width(); - - QTextDocument doc; - doc.setHtml(options.text); - - if (w > 0) - doc.setTextWidth(static_cast(w - (iconRect.right() + 1) - 8)); // 8-px icon-text spacing - else - doc.adjustSize(); - return {w > 0 ? w : iconRect.width() + 8 + qRound(doc.size().width()) + 8, - qMax(qRound(doc.size().height() + 8), // 4-px top/bottom text spacing - iconSize.height() + 16)}; -} diff --git a/LibLXQT/lxqthtmldelegate.h b/LibLXQT/lxqthtmldelegate.h deleted file mode 100644 index 5eba3db163..0000000000 --- a/LibLXQT/lxqthtmldelegate.h +++ /dev/null @@ -1,57 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * Paulo Lieuthier - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTHTMLDELEGATE_H -#define LXQTHTMLDELEGATE_H - -#include -#include -#include "lxqtglobals.h" - -namespace LXQt -{ - -class LXQT_API HtmlDelegate : public QStyledItemDelegate -{ - Q_OBJECT - -public: - explicit HtmlDelegate(const QSize iconSize, QObject* parent = nullptr); - ~HtmlDelegate() override; - - void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override; - - QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const override; - -private: - QSize mIconSize; -}; - -} - -#endif diff --git a/LibLXQT/lxqtnotification.cpp b/LibLXQT/lxqtnotification.cpp deleted file mode 100644 index 947ce56b72..0000000000 --- a/LibLXQT/lxqtnotification.cpp +++ /dev/null @@ -1,254 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2012 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "lxqtnotification.h" -#include "lxqtnotification_p.h" -#include -#include - -using namespace LXQt; - -Notification::Notification(const QString& summary, QObject* parent) : - QObject(parent), - d_ptr(new NotificationPrivate(summary, this)) -{ -} - -Notification::~Notification() -{ - Q_D(Notification); - delete d; -} - -void Notification::update() -{ - Q_D(Notification); - d->update(); -} - -void Notification::close() -{ - Q_D(Notification); - d->close(); -} - -void Notification::setSummary(const QString& summary) -{ - Q_D(Notification); - d->mSummary = summary; -} - -void Notification::setBody(const QString& body) -{ - Q_D(Notification); - d->mBody = body; -} - -void Notification::setIcon(const QString& iconName) -{ - Q_D(Notification); - d->mIconName = iconName; -} - -void Notification::setActions(const QStringList& actions, int defaultAction) -{ - Q_D(Notification); - d->setActions(actions, defaultAction); -} - -void Notification::setTimeout(int timeout) -{ - Q_D(Notification); - d->mTimeout = timeout; -} - -void Notification::setHint(const QString& hintName, const QVariant& value) -{ - Q_D(Notification); - d->mHints.insert(hintName, value); -} - -void Notification::setUrgencyHint(Urgency urgency) -{ - Q_D(Notification); - d->mHints.insert(QL1S("urgency"), qvariant_cast(urgency)); -} - -void Notification::clearHints() -{ - Q_D(Notification); - d->mHints.clear(); -} - -QStringList Notification::getCapabilities() -{ - Q_D(Notification); - return d->mInterface->GetCapabilities().value(); -} - -const Notification::ServerInfo Notification::serverInfo() -{ - Q_D(Notification); - return d->serverInfo(); -} - -void Notification::queryServerInfo() -{ - Q_D(Notification); - d->queryServerInfo(/*async=*/true); -} - -void Notification::notify(const QString& summary, const QString& body, const QString& iconName) -{ - Notification notification(summary); - notification.setBody(body); - notification.setIcon(iconName); - notification.update(); -} - -bool NotificationPrivate::sIsServerInfoQuried = 0; -Notification::ServerInfo NotificationPrivate::sServerInfo; - -NotificationPrivate::NotificationPrivate(const QString& summary, Notification* parent) : - mId(0), - mSummary(summary), - mTimeout(-1), - q_ptr(parent) -{ - mInterface = new OrgFreedesktopNotificationsInterface(QL1S("org.freedesktop.Notifications"), - QL1S("/org/freedesktop/Notifications"), - QDBusConnection::sessionBus(), this); - connect(mInterface, &OrgFreedesktopNotificationsInterface::NotificationClosed, - this, &NotificationPrivate::notificationClosed); - connect(mInterface, &OrgFreedesktopNotificationsInterface::ActionInvoked, - this, &NotificationPrivate::handleAction); -} - -NotificationPrivate::~NotificationPrivate() = default; - -void NotificationPrivate::update() -{ - QDBusPendingReply reply = mInterface->Notify(qAppName(), mId, mIconName, mSummary, mBody, mActions, mHints, mTimeout); - reply.waitForFinished(); - if (!reply.isError()) - { - mId = reply.value(); - } - else - { - if (mHints.contains(QL1S("urgency")) && mHints.value(QL1S("urgency")).toInt() != Notification::UrgencyLow) - QMessageBox::information(nullptr, tr("Notifications Fallback"), mSummary + QL1S(" \n\n ") + mBody); - } -} - - -void NotificationPrivate::setActions(QStringList actions, int defaultAction) -{ - mActions.clear(); - mDefaultAction = defaultAction; - const int N = actions.size(); - for (int ix = 0; ix < N; ix++) - { - if (ix == defaultAction) - mActions.append(QL1S("default")); - else - mActions.append(QString::number(ix)); - mActions.append(actions[ix]); - } -} - -const Notification::ServerInfo NotificationPrivate::serverInfo() -{ - if (!sIsServerInfoQuried) { - queryServerInfo (/*async=*/false); - } - - return sServerInfo; -} - -void NotificationPrivate::queryServerInfo(bool async) -{ - QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(mInterface->GetServerInformation(), this); - - connect(watcher, &QDBusPendingCallWatcher::finished, [this](QDBusPendingCallWatcher* callWatcher) { - Q_Q(Notification); - QDBusPendingReply reply = *callWatcher; - - if (!reply.isError()) { - sServerInfo.name = reply.argumentAt<0>(); - sServerInfo.vendor = reply.argumentAt<1>(); - sServerInfo.version = reply.argumentAt<2>(); - sServerInfo.specVersion = reply.argumentAt<3>(); - } else { - // server either responds something strange or nothing; assume it's malfunctioning - sServerInfo.name.clear(); - sServerInfo.vendor.clear(); - sServerInfo.version.clear(); - sServerInfo.specVersion.clear(); - } - sIsServerInfoQuried = true; - Q_EMIT q->serverInfoReady(); - sender()->deleteLater(); - }); - - if (!async) { - QEventLoop loop; - connect(watcher, &QDBusPendingCallWatcher::finished, &loop, &QEventLoop::quit); - loop.exec(); - } -} - -void NotificationPrivate::handleAction(uint id, const QString& key) -{ - if (id != mId) - return; - - Q_Q(Notification); - qDebug() << "action invoked:" << key; - bool ok = true; - int keyId; - if (key == QL1S("default")) - keyId = mDefaultAction; - else - keyId = key.toInt(&ok); - - if (ok && keyId >= 0) - Q_EMIT q->actionActivated(keyId); -} - -void NotificationPrivate::close() -{ - mInterface->CloseNotification(mId); - mId = 0; -} - -void NotificationPrivate::notificationClosed(uint id, uint reason) -{ - Q_Q(Notification); - if (id != 0 && id == mId) - { - mId = 0; - } - Q_EMIT q->notificationClosed(Notification::CloseReason(reason)); -} diff --git a/LibLXQT/lxqtnotification.h b/LibLXQT/lxqtnotification.h deleted file mode 100644 index 0e2ecf9bef..0000000000 --- a/LibLXQT/lxqtnotification.h +++ /dev/null @@ -1,211 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2012 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTNOTIFICATION_H -#define LXQTNOTIFICATION_H - -#include -#include -#include "lxqtglobals.h" - -namespace LXQt -{ - -class NotificationPrivate; - -/** - * \brief Libnotify-style desktop notifications - * - * Spec: http://developer.gnome.org/notification-spec - */ -class LXQT_API Notification : public QObject -{ - Q_OBJECT -public: - /*! - * \brief Notification is an object that represents a single notification. - * \param summary Summary text briefly describing the notification (required by the spec) - */ - Notification(const QString& summary = QString(), QObject* parent = nullptr); - ~Notification() override; - - enum CloseReason - { - //! The notification expired. - Expired = 1, - //! The notification was dismissed by the user. - Dismissed = 2, - //! The notification was closed by a call to close(). - ForceClosed = 3, - //! Undefined/reserved reasons. - Unknown = 4 - }; - - enum Urgency - { - UrgencyLow = 0, - UrgencyNormal = 1, - UrgencyCritical = 2 - }; - - struct ServerInfo - { - //! The product name of the server. - QString name; - //! The vendor name. For example, "lxqt.org" - QString vendor; - //! The server's version number. - QString version; - //! The specification version the server is compliant with. - QString specVersion; - }; - - /*! - * \brief Set the summary text briefly describing the notification - */ - void setSummary(const QString& summary); - - /*! - * \brief Set the detailed body text - */ - void setBody(const QString& body); - - /*! - * \brief Set an icon to display - * \param iconName Name of the icon - */ - void setIcon(const QString& iconName); - - /*! - * \brief Set action buttons for the notification. Whenever an action is - * activated, the actionActivated() signal is emitted with the list - * index of the activated action. - * \param actions List of action button titles - * \param defaultAction Index of the default action which gets activated - * when the notification body is clicked - * \sa actionActivated() - */ - void setActions(const QStringList& actions, int defaultAction = -1); - - /*! - * \brief Set the timeout for the notification - * \param timeout Milliseconds for timeout, or zero to never time out. - */ - void setTimeout(int timeout); - - /*! - * \brief Set notification hint. - * \note For description of Hints, see http://developer.gnome.org/notification-spec/#hints - * \note For D-Bus-to-Qt mappings, see https://qt-project.org/doc/qdbustypesystem.html - * \param hint Hint name - * \param value The hint data - */ - void setHint(const QString& hint, const QVariant& value); - - /*! - * \brief Set the "urgency" hint - * \param urgency - */ - void setUrgencyHint(Urgency urgency); - - /*! - * \brief Remove all hints that were set - * \sa setHint() - */ - void clearHints(); - - /*! - * \brief returns a list of optional capabilities supported by the server. - * For the list, see http://developer.gnome.org/notification-spec/#commands - */ - QStringList getCapabilities(); - - /*! - * \brief Returns information about the notifications server - * \note This call may block for up to 25s (default dbus timeout) if the notification server - * is not running and the info wasn't previously queried. - * \sa queryServerInfo() - */ - const ServerInfo serverInfo(); - - /*! - * \brief Performs an asyncronous query of the notifications server information. - * Use serverInfoReady signal to get notified (no pun intended) when the - * info will be received. - * \sa serverInfo() - * \sa serverInfoReady() - */ - void queryServerInfo(); - - /*! - * \brief Convenience function to create and display a notification for the most common - * cases. For anything more complex, create a Notification object, set the - * desired properties and call update(). (That's what this does internally.) - * \sa Notification() - */ - static void notify(const QString& summary, - const QString& body = QString(), - const QString& iconName = QString() - ); - -public Q_SLOTS: - /*! - * \brief Display the notification or update it if it's already visible - */ - void update(); - - /*! - * \brief Causes a notification to be forcefully closed and removed from the user's view. - * It can be used, for example, in the event that what the notification pertains to - * is no longer relevant, or to cancel a notification with no expiration time. - */ - void close(); - -Q_SIGNALS: - /*! - * \brief Emitted when the notification is closed - * \param reason How notification was closed - */ - void notificationClosed(LXQt::Notification::CloseReason reason); - - /*! - * \brief Emitted when an action button is activated. - * \param actionNumber Index of the actions array for the activated button. - * \sa setActions() - */ - void actionActivated(int actionNumber); - - /*! - * \brief Emitted when queried server info is received - * \sa queryServerInfo() - */ - void serverInfoReady(); - -private: - Q_DECLARE_PRIVATE(Notification) - NotificationPrivate* const d_ptr; -}; - -} // namespace LXQt -#endif // LXQTNOTIFICATION_H diff --git a/LibLXQT/lxqtnotification_p.h b/LibLXQT/lxqtnotification_p.h deleted file mode 100644 index 617390801a..0000000000 --- a/LibLXQT/lxqtnotification_p.h +++ /dev/null @@ -1,71 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2012 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTNOTIFICATION_P_H -#define LXQTNOTIFICATION_P_H - -#include "lxqtnotification.h" -#include "notifications_interface.h" - -namespace LXQt -{ - -class NotificationPrivate : public QObject -{ - Q_OBJECT -public: - NotificationPrivate(const QString& summary, Notification* parent); - ~NotificationPrivate() override; - - void update(); - void close(); - void setActions(QStringList actions, int defaultAction); - const Notification::ServerInfo serverInfo(); - void queryServerInfo(bool async=1); - -public Q_SLOTS: - void handleAction(uint id, const QString& key); - void notificationClosed(uint, uint); - -private: - OrgFreedesktopNotificationsInterface* mInterface; - uint mId; - - QString mSummary; - QString mBody; - QString mIconName; - QStringList mActions; - QVariantMap mHints; - int mDefaultAction; - int mTimeout; - - static Notification::ServerInfo sServerInfo; - static bool sIsServerInfoQuried; - - Notification* const q_ptr; - Q_DECLARE_PUBLIC(Notification) -}; - -} // namespace LXQt -#endif // LXQTNOTIFICATION_P_H diff --git a/LibLXQT/lxqtplugininfo.cpp b/LibLXQT/lxqtplugininfo.cpp deleted file mode 100644 index c2aa368ddb..0000000000 --- a/LibLXQT/lxqtplugininfo.cpp +++ /dev/null @@ -1,180 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#include "lxqtplugininfo.h" -#include -#include -#include -#include -#include -#include -#include -#include - -using namespace LXQt; - -/************************************************ - - ************************************************/ -PluginInfo::PluginInfo(): - XdgDesktopFile() -{ - -} - - -/************************************************ - - ************************************************/ -bool PluginInfo::load(const QString& fileName) -{ - XdgDesktopFile::load(fileName); - mId = QFileInfo(fileName).completeBaseName(); - return isValid(); -} - - -/************************************************ - - ************************************************/ -bool PluginInfo::isValid() const -{ - return XdgDesktopFile::isValid(); -} - - -/************************************************ - - ************************************************/ -QLibrary* PluginInfo::loadLibrary(const QString& libDir) const -{ - const QFileInfo fi = QFileInfo(fileName()); - const QString path = fi.canonicalPath(); - const QString baseName = value(QL1S("X-LXQt-Library"), fi.completeBaseName()).toString(); - - const QString soPath = QDir(libDir).filePath(QString::fromLatin1("lib%2.so").arg(baseName)); - QLibrary* library = new QLibrary(soPath); - - if (!library->load()) - { - qWarning() << QString::fromLatin1("Can't load plugin lib \"%1\"").arg(soPath) << library->errorString(); - delete library; - return nullptr; - } - - const QString locale = QLocale::system().name(); - QTranslator* translator = new QTranslator(library); - - translator->load(QString::fromLatin1("%1/%2/%2_%3.qm").arg(path, baseName, locale)); - qApp->installTranslator(translator); - - return library; -} - - -/************************************************ - - ************************************************/ -PluginInfoList PluginInfo::search(const QStringList& desktopFilesDirs, const QString& serviceType, const QString& nameFilter) -{ - QList res; - QSet processed; - - for (const QString &desktopFilesDir : desktopFilesDirs) - { - const QDir dir(desktopFilesDir); - const QFileInfoList files = dir.entryInfoList(QStringList(nameFilter), QDir::Files | QDir::Readable); - for (const QFileInfo &file : files) - { - if (processed.contains(file.fileName())) - continue; - - processed << file.fileName(); - - PluginInfo item; - item.load(file.canonicalFilePath()); - - if (item.isValid() && item.serviceType() == serviceType) - res.append(item); - } - } - return res; -} - - -/************************************************ - - ************************************************/ -PluginInfoList PluginInfo::search(const QString& desktopFilesDir, const QString& serviceType, const QString& nameFilter) -{ - return search(QStringList(desktopFilesDir), serviceType, nameFilter); -} - - -/************************************************ - - ************************************************/ -QDebug operator<<(QDebug dbg, const LXQt::PluginInfo &pluginInfo) -{ - dbg.nospace() << QString::fromLatin1("%1").arg(pluginInfo.id()); - return dbg.space(); -} - - -/************************************************ - - ************************************************/ -QDebug operator<<(QDebug dbg, const LXQt::PluginInfo * const pluginInfo) -{ - return operator<<(std::move(dbg), *pluginInfo); -} - - -/************************************************ - - ************************************************/ -QDebug operator<<(QDebug dbg, const PluginInfoList& list) -{ - dbg.nospace() << QL1C('('); - for (int i=0; i - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#ifndef LXQTPLUGININFO_H -#define LXQTPLUGININFO_H - -#include -#include - -#include -#include -#include -#include "lxqtglobals.h" - -#include - -class QLibrary; - -namespace LXQt -{ - -/*! -Every plugin needs a .desktop file that describes it. The basename of this file must -be same as the basename of the plugin library. - -lxqtpanel_clock2.desktop file - -[Desktop Entry] - Type=Service - ServiceTypes=LXQtPanel/Plugin - Name=Clock - Comment=Clock and calendar - -PluginInfo class gives the interface for reading the values from the plugin .desktop file. -This is a pure virtual class, you must implement libraryDir(), translationDir(), and instance() methods. -*/ -class LXQT_API PluginInfo: public XdgDesktopFile -{ -public: - /// Constructs a PluginInfo object for accessing the info stored in the .desktop file. - explicit PluginInfo(); - - //! Reimplemented from XdgDesktopFile. - bool load(const QString& fileName) override; - - - //! Reimplemented from XdgDesktopFile. - //PluginInfo& operator=(const PluginInfo& other); - - - //! Returns identification string of this plugin, identified plugin type. Now id is part of the filename. - QString id() const { return mId; } - - //! This function is provided for convenience. It's equivalent to calling value("ServiceTypes").toString(). - QString serviceType() const { return value(QL1S("ServiceTypes")).toString(); } - - //! Reimplemented from XdgDesktopFile. - virtual bool isValid() const; - - /*! Loads the library and returns QLibrary object if the library was loaded successfully; otherwise returns 0. - @parm libDir directory where placed the plugin .so file. */ - QLibrary* loadLibrary(const QString& libDir) const; - - - /*! Returns a list of PluginInfo objects for the matched files in the directories. - @param desktopFilesDirs - scanned directories names. - @param serviceType - type of the plugin, for example "LXQtPanel/Plugin". - @param nameFilter - wildcard filter that understands * and ? wildcards. - - If the same filename is located under multiple directories only the first file should be used. - */ - static QList search(const QStringList& desktopFilesDirs, const QString& serviceType, const QString& nameFilter = QLatin1String("*")); - - /// This function is provided for convenience. It's equivalent to new calling search(QString(desktopFilesDir), serviceType, nameFilter) - static QList search(const QString& desktopFilesDir, const QString& serviceType, const QString& nameFilter = QLatin1String("*")); - -private: - QString mId; -}; - -typedef QList PluginInfoList; - -} // namespace LXQt - -QDebug operator<<(QDebug dbg, const LXQt::PluginInfo& pi); -QDebug operator<<(QDebug dbg, const LXQt::PluginInfo* const pi); - -QDebug operator<<(QDebug dbg, const LXQt::PluginInfoList& list); -QDebug operator<<(QDebug dbg, const LXQt::PluginInfoList* const pluginInfoList); - -#endif // LXQTPLUGININFO_H diff --git a/LibLXQT/lxqtpower/lxqtpower.cpp b/LibLXQT/lxqtpower/lxqtpower.cpp deleted file mode 100644 index a0fbf8c745..0000000000 --- a/LibLXQT/lxqtpower/lxqtpower.cpp +++ /dev/null @@ -1,98 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#include "lxqtpower.h" -#include "lxqtpowerproviders.h" -#include -#include - -using namespace LXQt; - -Power::Power(bool useLxqtSessionProvider, QObject * parent /*= nullptr*/) : - QObject(parent) -{ - mProviders.append(new CustomProvider(this)); - if (useLxqtSessionProvider) - mProviders.append(new LXQtProvider(this)); - mProviders.append(new SystemdProvider(this)); - mProviders.append(new UPowerProvider(this)); - mProviders.append(new ConsoleKitProvider(this)); - mProviders.append(new LxSessionProvider(this)); -} - -Power::Power(QObject * parent /*= nullptr*/) - : Power(true, parent) -{ -} - - -Power::~Power() = default; - - -bool Power::canAction(Power::Action action) const -{ - for(const PowerProvider* provider : qAsConst(mProviders)) - { - if (provider->canAction(action)) - return true; - } - - return false; -} - - -bool Power::doAction(Power::Action action) -{ - for(PowerProvider* provider : qAsConst(mProviders)) - { - if (provider->canAction(action) && - provider->doAction(action) - ) - { - return true; - } - } - return false; -} - - -bool Power::canLogout() const { return canAction(PowerLogout); } -bool Power::canHibernate() const { return canAction(PowerHibernate); } -bool Power::canReboot() const { return canAction(PowerReboot); } -bool Power::canShutdown() const { return canAction(PowerShutdown); } -bool Power::canSuspend() const { return canAction(PowerSuspend); } -bool Power::canMonitorOff() const { return canAction(PowerMonitorOff); } -bool Power::canShowLeaveDialog() const { return canAction(PowerShowLeaveDialog); } - -bool Power::logout() { return doAction(PowerLogout); } -bool Power::hibernate() { return doAction(PowerHibernate); } -bool Power::reboot() { return doAction(PowerReboot); } -bool Power::shutdown() { return doAction(PowerShutdown); } -bool Power::suspend() { return doAction(PowerSuspend); } -bool Power::monitorOff() { return doAction(PowerMonitorOff); } -bool Power::showLeaveDialog() { return doAction(PowerShowLeaveDialog); } diff --git a/LibLXQT/lxqtpower/lxqtpower.h b/LibLXQT/lxqtpower/lxqtpower.h deleted file mode 100644 index 01d337250f..0000000000 --- a/LibLXQT/lxqtpower/lxqtpower.h +++ /dev/null @@ -1,129 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#ifndef LXQTPOWER_H -#define LXQTPOWER_H - -#include -#include -#include "lxqtglobals.h" - -namespace LXQt -{ - - -class PowerProvider; - -/*! Power class provides an interface to control system-wide power and session management. - It allows logout from the user session, hibernate, reboot, shutdown and suspend computer. - This is a wrapper class. All the real work is done in the PowerWorker classes. -*/ -class LXQT_API Power : public QObject -{ - Q_OBJECT -public: - /// Power can perform next actions: - enum Action{ - PowerLogout, /// Close the current user session. - PowerHibernate, /// Hibernate the comupter - PowerReboot, /// Reboot the computer - PowerShutdown, /// Shutdown the computer - PowerSuspend, /// Suspend the computer - PowerMonitorOff, /// Turn off the monitor(s) - PowerShowLeaveDialog /// Show the lxqt-leave dialog - }; - - /*! - * Constructs the Power object. - * \param useLxqtSessionProvider indicates if the DBus methods - * provided by lxqt-session should be considered. This is useful to - * avoid recursion if the lxqt-session wants to provide some of the - * methods by itself with internal use of this object. - */ - explicit Power(bool useLxqtSessionProvider, QObject *parent = nullptr); - /// Constructs a Power with using the lxqt-session provider. - explicit Power(QObject *parent = nullptr); - - /// Destroys the object. - ~Power() override; - - /// Returns true if the Power can perform action. - bool canAction(Action action) const; - - //! This function is provided for convenience. It's equivalent to calling canAction(PowerLogout). - bool canLogout() const; - - //! This function is provided for convenience. It's equivalent to calling canAction(PowerHibernate). - bool canHibernate() const; - - //! This function is provided for convenience. It's equivalent to calling canAction(PowerReboot). - bool canReboot() const; - - //! This function is provided for convenience. It's equivalent to calling canAction(PowerShutdown). - bool canShutdown() const; - - //! This function is provided for convenience. It's equivalent to calling canAction(PowerSuspend). - bool canSuspend() const; - - //! This function is provided for convenience. It's equivalent to calling canAction(PowerMonitorOff). - bool canMonitorOff() const; - - //! This function is provided for convenience. It's equivalent to calling canAction(PowerShowLeaveDialog). - bool canShowLeaveDialog() const; - -public Q_SLOTS: - /// Performs the requested action. - bool doAction(Action action); - - //! This function is provided for convenience. It's equivalent to calling doAction(PowerLogout). - bool logout(); - - //! This function is provided for convenience. It's equivalent to calling doAction(PowerHibernate). - bool hibernate(); - - //! This function is provided for convenience. It's equivalent to calling doAction(PowerReboot). - bool reboot(); - - //! This function is provided for convenience. It's equivalent to calling doAction(PowerShutdown). - bool shutdown(); - - //! This function is provided for convenience. It's equivalent to calling doAction(PowerSuspend). - bool suspend(); - - //! This function is provided for convenience. It's equivalent to calling doAction(PowerMonitorOff). - bool monitorOff(); - - //! This function is provided for convenience. It's equivalent to calling doAction(PowerShowLeaveDialog). - bool showLeaveDialog(); - -private: - QList mProviders; -}; - -} // namespace LXQt -#endif // LXQTPOWER_H diff --git a/LibLXQT/lxqtpower/lxqtpowerproviders.cpp b/LibLXQT/lxqtpower/lxqtpowerproviders.cpp deleted file mode 100644 index 4f6aa4c230..0000000000 --- a/LibLXQT/lxqtpower/lxqtpowerproviders.cpp +++ /dev/null @@ -1,696 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * Petr Vanek - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#include "lxqtpowerproviders.h" -#include -#include -#include -#include "lxqtnotification.h" -#include // for kill() - -#define UPOWER_SERVICE "org.freedesktop.UPower" -#define UPOWER_PATH "/org/freedesktop/UPower" -#define UPOWER_INTERFACE UPOWER_SERVICE - -#define CONSOLEKIT_SERVICE "org.freedesktop.ConsoleKit" -#define CONSOLEKIT_PATH "/org/freedesktop/ConsoleKit/Manager" -#define CONSOLEKIT_INTERFACE "org.freedesktop.ConsoleKit.Manager" - -#define SYSTEMD_SERVICE "org.freedesktop.login1" -#define SYSTEMD_PATH "/org/freedesktop/login1" -#define SYSTEMD_INTERFACE "org.freedesktop.login1.Manager" - -#define LXQT_SERVICE "org.lxqt.session" -#define LXQT_PATH "/LXQtSession" -#define LXQT_INTERFACE "org.lxqt.session" - -#define PROPERTIES_INTERFACE "org.freedesktop.DBus.Properties" - -using namespace LXQt; - -/************************************************ - Helper func - ************************************************/ -void printDBusMsg(const QDBusMessage &msg) -{ - qWarning() << "** Dbus error **************************"; - qWarning() << "Error name " << msg.errorName(); - qWarning() << "Error msg " << msg.errorMessage(); - qWarning() << "****************************************"; -} - - -/************************************************ - Helper func - ************************************************/ -static bool dbusCall(const QString &service, - const QString &path, - const QString &interface, - const QDBusConnection &connection, - const QString & method, - PowerProvider::DbusErrorCheck errorCheck = PowerProvider::CheckDBUS - ) -{ - QDBusInterface dbus(service, path, interface, connection); - if (!dbus.isValid()) - { - qWarning() << "dbusCall: QDBusInterface is invalid" << service << path << interface << method; - if (errorCheck == PowerProvider::CheckDBUS) - { - Notification::notify( - QObject::tr("Power Manager Error"), - QObject::tr("QDBusInterface is invalid") + QL1S("\n\n") + service + QL1C(' ') + path + QL1C(' ') + interface + QL1C(' ') + method, - QL1S("lxqt-logo.png")); - } - return false; - } - - QDBusMessage msg = dbus.call(method); - - if (!msg.errorName().isEmpty()) - { - printDBusMsg(msg); - if (errorCheck == PowerProvider::CheckDBUS) - { - Notification::notify( - QObject::tr("Power Manager Error (D-BUS call)"), - msg.errorName() + QL1S("\n\n") + msg.errorMessage(), - QL1S("lxqt-logo.png")); - } - } - - // If the method no returns value, we believe that it was successful. - return msg.arguments().isEmpty() || - msg.arguments().constFirst().isNull() || - msg.arguments().constFirst().toBool(); -} - -/************************************************ - Helper func - - Just like dbusCall(), except that systemd - returns a string instead of a bool, and it takes - an "interactivity boolean" as an argument. - ************************************************/ -static bool dbusCallSystemd(const QString &service, - const QString &path, - const QString &interface, - const QDBusConnection &connection, - const QString &method, - bool needBoolArg, - PowerProvider::DbusErrorCheck errorCheck = PowerProvider::CheckDBUS - ) -{ - QDBusInterface dbus(service, path, interface, connection); - if (!dbus.isValid()) - { - qWarning() << "dbusCall: QDBusInterface is invalid" << service << path << interface << method; - if (errorCheck == PowerProvider::CheckDBUS) - { - Notification::notify( - QObject::tr("Power Manager Error"), - QObject::tr("QDBusInterface is invalid") + QL1S("\n\n") + service + QL1C(' ') + path + QL1C(' ')+ interface + QL1C(' ') + method, - QL1S("lxqt-logo.png")); - } - return false; - } - - QDBusMessage msg = needBoolArg ? dbus.call(method, QVariant(true)) : dbus.call(method); - - if (!msg.errorName().isEmpty()) - { - printDBusMsg(msg); - if (errorCheck == PowerProvider::CheckDBUS) - { - Notification::notify( - QObject::tr("Power Manager Error (D-BUS call)"), - msg.errorName() + QL1S("\n\n") + msg.errorMessage(), - QL1S("lxqt-logo.png")); - } - } - - // If the method no returns value, we believe that it was successful. - if (msg.arguments().isEmpty() || msg.arguments().constFirst().isNull()) - return true; - - QString response = msg.arguments().constFirst().toString(); - qDebug() << "systemd:" << method << "=" << response; - return response == QL1S("yes") || response == QL1S("challenge"); -} - - -/************************************************ - Helper func - ************************************************/ -bool dbusGetProperty(const QString &service, - const QString &path, - const QString &interface, - const QDBusConnection &connection, - const QString & property - ) -{ - QDBusInterface dbus(service, path, interface, connection); - if (!dbus.isValid()) - { - qWarning() << "dbusGetProperty: QDBusInterface is invalid" << service << path << interface << property; -// Notification::notify(QObject::tr("LXQt Power Manager"), -// "lxqt-logo.png", -// QObject::tr("Power Manager Error"), -// QObject::tr("QDBusInterface is invalid")+ "\n\n" + service +" " + path +" " + interface +" " + property); - - return false; - } - - QDBusMessage msg = dbus.call(QL1S("Get"), dbus.interface(), property); - - if (!msg.errorName().isEmpty()) - { - printDBusMsg(msg); -// Notification::notify(QObject::tr("LXQt Power Manager"), -// "lxqt-logo.png", -// QObject::tr("Power Manager Error (Get Property)"), -// msg.errorName() + "\n\n" + msg.errorMessage()); - } - - return !msg.arguments().isEmpty() && - msg.arguments().constFirst().value().variant().toBool(); -} - - - - -/************************************************ - PowerProvider - ************************************************/ -PowerProvider::PowerProvider(QObject *parent): - QObject(parent) -{ -} - - -PowerProvider::~PowerProvider() = default; - - - -/************************************************ - UPowerProvider - ************************************************/ -UPowerProvider::UPowerProvider(QObject *parent): - PowerProvider(parent) -{ -} - - -UPowerProvider::~UPowerProvider() = default; - - -bool UPowerProvider::canAction(Power::Action action) const -{ - QString command; - QString property; - switch (action) - { - case Power::PowerHibernate: - property = QL1S("CanHibernate"); - command = QL1S("HibernateAllowed"); - break; - - case Power::PowerSuspend: - property = QL1S("CanSuspend"); - command = QL1S("SuspendAllowed"); - break; - - default: - return false; - } - - return dbusGetProperty( // Whether the system is able to hibernate. - QL1S(UPOWER_SERVICE), - QL1S(UPOWER_PATH), - QL1S(PROPERTIES_INTERFACE), - QDBusConnection::systemBus(), - property - ) - && - dbusCall( // Check if the caller has (or can get) the PolicyKit privilege to call command. - QL1S(UPOWER_SERVICE), - QL1S(UPOWER_PATH), - QL1S(UPOWER_INTERFACE), - QDBusConnection::systemBus(), - command, - // canAction should be always silent because it can freeze - // g_main_context_iteration Qt event loop in QMessageBox - // on panel startup if there is no DBUS running. - PowerProvider::DontCheckDBUS - ); -} - - -bool UPowerProvider::doAction(Power::Action action) -{ - QString command; - - switch (action) - { - case Power::PowerHibernate: - command = QL1S("Hibernate"); - break; - - case Power::PowerSuspend: - command = QL1S("Suspend"); - break; - - default: - return false; - } - - - return dbusCall(QL1S(UPOWER_SERVICE), - QL1S(UPOWER_PATH), - QL1S(UPOWER_INTERFACE), - QDBusConnection::systemBus(), - command ); -} - - - -/************************************************ - ConsoleKitProvider - ************************************************/ -ConsoleKitProvider::ConsoleKitProvider(QObject *parent): - PowerProvider(parent) -{ -} - - -ConsoleKitProvider::~ConsoleKitProvider() = default; - - -bool ConsoleKitProvider::canAction(Power::Action action) const -{ - QString command; - switch (action) - { - case Power::PowerReboot: - command = QL1S("CanReboot"); - break; - - case Power::PowerShutdown: - command = QL1S("CanPowerOff"); - break; - - case Power::PowerHibernate: - command = QL1S("CanHibernate"); - break; - - case Power::PowerSuspend: - command = QL1S("CanSuspend"); - break; - - default: - return false; - } - - return dbusCallSystemd(QL1S(CONSOLEKIT_SERVICE), - QL1S(CONSOLEKIT_PATH), - QL1S(CONSOLEKIT_INTERFACE), - QDBusConnection::systemBus(), - command, - false, - // canAction should be always silent because it can freeze - // g_main_context_iteration Qt event loop in QMessageBox - // on panel startup if there is no DBUS running. - PowerProvider::DontCheckDBUS - ); -} - - -bool ConsoleKitProvider::doAction(Power::Action action) -{ - QString command; - switch (action) - { - case Power::PowerReboot: - command = QL1S("Reboot"); - break; - - case Power::PowerShutdown: - command = QL1S("PowerOff"); - break; - - case Power::PowerHibernate: - command = QL1S("Hibernate"); - break; - - case Power::PowerSuspend: - command = QL1S("Suspend"); - break; - - default: - return false; - } - - return dbusCallSystemd(QL1S(CONSOLEKIT_SERVICE), - QL1S(CONSOLEKIT_PATH), - QL1S(CONSOLEKIT_INTERFACE), - QDBusConnection::systemBus(), - command, - true - ); -} - -/************************************************ - SystemdProvider - - http://www.freedesktop.org/wiki/Software/systemd/logind - ************************************************/ - -SystemdProvider::SystemdProvider(QObject *parent): - PowerProvider(parent) -{ -} - - -SystemdProvider::~SystemdProvider() = default; - - -bool SystemdProvider::canAction(Power::Action action) const -{ - QString command; - - switch (action) - { - case Power::PowerReboot: - command = QL1S("CanReboot"); - break; - - case Power::PowerShutdown: - command = QL1S("CanPowerOff"); - break; - - case Power::PowerSuspend: - command = QL1S("CanSuspend"); - break; - - case Power::PowerHibernate: - command = QL1S("CanHibernate"); - break; - - default: - return false; - } - - return dbusCallSystemd(QL1S(SYSTEMD_SERVICE), - QL1S(SYSTEMD_PATH), - QL1S(SYSTEMD_INTERFACE), - QDBusConnection::systemBus(), - command, - false, - // canAction should be always silent because it can freeze - // g_main_context_iteration Qt event loop in QMessageBox - // on panel startup if there is no DBUS running. - PowerProvider::DontCheckDBUS - ); -} - - -bool SystemdProvider::doAction(Power::Action action) -{ - QString command; - - switch (action) - { - case Power::PowerReboot: - command = QL1S("Reboot"); - break; - - case Power::PowerShutdown: - command = QL1S("PowerOff"); - break; - - case Power::PowerSuspend: - command = QL1S("Suspend"); - break; - - case Power::PowerHibernate: - command = QL1S("Hibernate"); - break; - - default: - return false; - } - - return dbusCallSystemd(QL1S(SYSTEMD_SERVICE), - QL1S(SYSTEMD_PATH), - QL1S(SYSTEMD_INTERFACE), - QDBusConnection::systemBus(), - command, - true - ); -} - - -/************************************************ - LXQtProvider - ************************************************/ -LXQtProvider::LXQtProvider(QObject *parent): - PowerProvider(parent) -{ -} - - -LXQtProvider::~LXQtProvider() = default; - - -bool LXQtProvider::canAction(Power::Action action) const -{ - QString command; - switch (action) - { - case Power::PowerLogout: - command = QL1S("canLogout"); - break; - case Power::PowerReboot: - command = QL1S("canReboot"); - break; - case Power::PowerShutdown: - command = QL1S("canPowerOff"); - break; - default: - return false; - } - - // there can be case when lxqtsession-session does not run - return dbusCall(QL1S(LXQT_SERVICE), QL1S(LXQT_PATH), QL1S(LXQT_INTERFACE), - QDBusConnection::sessionBus(), command, - PowerProvider::DontCheckDBUS); -} - - -bool LXQtProvider::doAction(Power::Action action) -{ - QString command; - switch (action) - { - case Power::PowerLogout: - command = QL1S("logout"); - break; - case Power::PowerReboot: - command = QL1S("reboot"); - break; - case Power::PowerShutdown: - command = QL1S("powerOff"); - break; - default: - return false; - } - - return dbusCall(QL1S(LXQT_SERVICE), - QL1S(LXQT_PATH), - QL1S(LXQT_INTERFACE), - QDBusConnection::sessionBus(), - command - ); -} - -/************************************************ - LxSessionProvider - ************************************************/ -LxSessionProvider::LxSessionProvider(QObject *parent): - PowerProvider(parent) -{ - pid = (Q_PID)qgetenv("_LXSESSION_PID").toLong(); -} - - -LxSessionProvider::~LxSessionProvider() = default; - - -bool LxSessionProvider::canAction(Power::Action action) const -{ - switch (action) - { - case Power::PowerLogout: - return pid != 0; - default: - return false; - } -} - - -bool LxSessionProvider::doAction(Power::Action action) -{ - switch (action) - { - case Power::PowerLogout: - if(pid) - ::kill(pid, SIGTERM); - break; - default: - return false; - } - - return true; -} - - -/************************************************ - HalProvider - ************************************************/ -HalProvider::HalProvider(QObject *parent): - PowerProvider(parent) -{ -} - - -HalProvider::~HalProvider() = default; - - -bool HalProvider::canAction(Power::Action action) const -{ - Q_UNUSED(action) - return false; -} - - -bool HalProvider::doAction(Power::Action action) -{ - Q_UNUSED(action) - return false; -} - - -/************************************************ - CustomProvider - ************************************************/ -CustomProvider::CustomProvider(QObject *parent): - PowerProvider(parent), - mSettings(QL1S("power")) -{ -} - -CustomProvider::~CustomProvider() = default; - -bool CustomProvider::canAction(Power::Action action) const -{ - switch (action) - { - case Power::PowerShutdown: - return mSettings.contains(QL1S("shutdownCommand")); - - case Power::PowerReboot: - return mSettings.contains(QL1S("rebootCommand")); - - case Power::PowerHibernate: - return mSettings.contains(QL1S("hibernateCommand")); - - case Power::PowerSuspend: - return mSettings.contains(QL1S("suspendCommand")); - - case Power::PowerLogout: - return mSettings.contains(QL1S("logoutCommand")); - - case Power::PowerMonitorOff: - return mSettings.contains(QL1S("monitorOffCommand")); - - case Power::PowerShowLeaveDialog: - return mSettings.contains(QL1S("showLeaveDialogCommand")); - - default: - return false; - } -} - -bool CustomProvider::doAction(Power::Action action) -{ - QString command; - - switch(action) - { - case Power::PowerShutdown: - command = mSettings.value(QL1S("shutdownCommand")).toString(); - break; - - case Power::PowerReboot: - command = mSettings.value(QL1S("rebootCommand")).toString(); - break; - - case Power::PowerHibernate: - command = mSettings.value(QL1S("hibernateCommand")).toString(); - break; - - case Power::PowerSuspend: - command = mSettings.value(QL1S("suspendCommand")).toString(); - break; - - case Power::PowerLogout: - command = mSettings.value(QL1S("logoutCommand")).toString(); - break; - - case Power::PowerMonitorOff: - command = mSettings.value(QL1S("monitorOffCommand")).toString(); - break; - - case Power::PowerShowLeaveDialog: - command = mSettings.value(QL1S("showLeaveDialogCommand")).toString(); - break; - - default: - return false; - } - - QStringList args = QProcess::splitCommand(command); - if (args.isEmpty()) - return false; - - QProcess process; - process.setProgram(args.takeFirst()); - process.setArguments(args); - return process.startDetached(); -} diff --git a/LibLXQT/lxqtpower/lxqtpowerproviders.h b/LibLXQT/lxqtpower/lxqtpowerproviders.h deleted file mode 100644 index 5d5554d507..0000000000 --- a/LibLXQT/lxqtpower/lxqtpowerproviders.h +++ /dev/null @@ -1,159 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#ifndef LXQTPOWER_PROVIDERS_H -#define LXQTPOWER_PROVIDERS_H - -#include -#include -#include "lxqtpower.h" -#include // for PID_T - -namespace LXQt -{ - - -class PowerProvider: public QObject -{ - Q_OBJECT -public: - - enum DbusErrorCheck { - CheckDBUS, - DontCheckDBUS - }; - - explicit PowerProvider(QObject *parent = nullptr); - ~PowerProvider() override; - - /*! Returns true if the Power can perform action. - This is a pure virtual function, and must be reimplemented in subclasses. */ - virtual bool canAction(Power::Action action) const = 0 ; - -public Q_SLOTS: - /*! Performs the requested action. - This is a pure virtual function, and must be reimplemented in subclasses. */ - virtual bool doAction(Power::Action action) = 0; -}; - - -class UPowerProvider: public PowerProvider -{ - Q_OBJECT -public: - UPowerProvider(QObject *parent = nullptr); - ~UPowerProvider() override; - bool canAction(Power::Action action) const override; - -public Q_SLOTS: - bool doAction(Power::Action action) override; -}; - - -class ConsoleKitProvider: public PowerProvider -{ - Q_OBJECT -public: - ConsoleKitProvider(QObject *parent = nullptr); - ~ConsoleKitProvider() override; - bool canAction(Power::Action action) const override; - -public Q_SLOTS: - bool doAction(Power::Action action) override; -}; - - -class SystemdProvider: public PowerProvider -{ - Q_OBJECT -public: - SystemdProvider(QObject *parent = nullptr); - ~SystemdProvider() override; - bool canAction(Power::Action action) const override; - -public Q_SLOTS: - bool doAction(Power::Action action) override; -}; - - -class LXQtProvider: public PowerProvider -{ - Q_OBJECT -public: - LXQtProvider(QObject *parent = nullptr); - ~LXQtProvider() override; - bool canAction(Power::Action action) const override; - -public Q_SLOTS: - bool doAction(Power::Action action) override; -}; - -class LxSessionProvider: public PowerProvider -{ - Q_OBJECT -public: - LxSessionProvider(QObject *parent = nullptr); - ~LxSessionProvider() override; - bool canAction(Power::Action action) const override; - -public Q_SLOTS: - bool doAction(Power::Action action) override; -private: - Q_PID pid; -}; - -class HalProvider: public PowerProvider -{ - Q_OBJECT -public: - HalProvider(QObject *parent = nullptr); - ~HalProvider() override; - bool canAction(Power::Action action) const override; - -public Q_SLOTS: - bool doAction(Power::Action action) override; -}; - - -class CustomProvider: public PowerProvider -{ - Q_OBJECT -public: - CustomProvider(QObject *parent = nullptr); - ~CustomProvider() override; - bool canAction(Power::Action action) const override; - -public Q_SLOTS: - bool doAction(Power::Action action) override; - -private: - Settings mSettings; -}; - -} // namespace LXQt -#endif // LXQTPOWER_PROVIDERS_H diff --git a/LibLXQT/lxqtpowermanager.cpp b/LibLXQT/lxqtpowermanager.cpp deleted file mode 100644 index 0687476de6..0000000000 --- a/LibLXQT/lxqtpowermanager.cpp +++ /dev/null @@ -1,205 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Petr Vanek - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "lxqtpowermanager.h" -#include "lxqtpower/lxqtpower.h" -#include -#include -#include -#include -#include -#include -#include "lxqttranslator.h" -#include "lxqtglobals.h" -#include "lxqtsettings.h" -#include - -namespace LXQt { - -class LXQT_API MessageBox: public QMessageBox -{ - Q_DECLARE_TR_FUNCTIONS(LXQt::MessageBox) - -public: - explicit MessageBox(QWidget *parent = nullptr): QMessageBox(parent) {} - - static QWidget *parentWidget() - { - const QWidgetList widgets = QApplication::topLevelWidgets(); - - if (widgets.count()) - return widgets.at(0); - else - return nullptr; - } - - static bool question(const QString& title, const QString& text) - { - MessageBox msgBox(parentWidget()); - msgBox.setWindowTitle(title); - msgBox.setText(text); - msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); - msgBox.setDefaultButton(QMessageBox::Yes); - - return (msgBox.exec() == QMessageBox::Yes); - } - - - static void warning(const QString& title, const QString& text) - { - Q_UNUSED(title) - Q_UNUSED(text) - QMessageBox::warning(parentWidget(), tr("LXQt Power Manager Error"), tr("Hibernate failed.")); - } -}; - -PowerManager::PowerManager(QObject * parent, bool skipWarning) - : QObject(parent), - m_skipWarning(skipWarning) -{ - m_power = new Power(this); -// connect(m_power, SIGNAL(suspendFail()), this, SLOT(suspendFailed())); -// connect(m_power, SIGNAL(hibernateFail()), this, SLOT(hibernateFailed())); -// connect(m_power, SIGNAL(monitoring(const QString &)), -// this, SLOT(monitoring(const QString&))); - - QString sessionConfig(QFile::decodeName(qgetenv("LXQT_SESSION_CONFIG"))); - Settings settings(sessionConfig.isEmpty() ? QL1S("session") : sessionConfig); - m_skipWarning = settings.value(QL1S("leave_confirmation")).toBool() ? false : true; -} - -PowerManager::~PowerManager() -{ -// delete m_power; -} - -QList PowerManager::availableActions() -{ - QList ret; - QAction * act; - - // TODO/FIXME: icons - if (m_power->canHibernate()) - { - act = new QAction(XdgIcon::fromTheme(QL1S("system-suspend-hibernate")), tr("Hibernate"), this); - connect(act, &QAction::triggered, this, &PowerManager::hibernate); - ret.append(act); - } - - if (m_power->canSuspend()) - { - act = new QAction(XdgIcon::fromTheme(QL1S("system-suspend")), tr("Suspend"), this); - connect(act, &QAction::triggered, this, &PowerManager::suspend); - ret.append(act); - } - - if (m_power->canReboot()) - { - act = new QAction(XdgIcon::fromTheme(QL1S("system-reboot")), tr("Reboot"), this); - connect(act, &QAction::triggered, this, &PowerManager::reboot); - ret.append(act); - } - - if (m_power->canShutdown()) - { - act = new QAction(XdgIcon::fromTheme(QL1S("system-shutdown")), tr("Shutdown"), this); - connect(act, &QAction::triggered, this, &PowerManager::shutdown); - ret.append(act); - } - - if (m_power->canLogout()) - { - act = new QAction(XdgIcon::fromTheme(QL1S("system-log-out")), tr("Logout"), this); - connect(act, &QAction::triggered, this, &PowerManager::logout); - ret.append(act); - } - - return ret; -} - - -void PowerManager::suspend() -{ - if (m_skipWarning || - MessageBox::question(tr("LXQt Session Suspend"), - tr("Do you want to really suspend your computer?

Suspends the computer into a low power state. System state is not preserved if the power is lost."))) - { - m_power->suspend(); - } -} - -void PowerManager::hibernate() -{ - if (m_skipWarning || - MessageBox::question(tr("LXQt Session Hibernate"), - tr("Do you want to really hibernate your computer?

Hibernates the computer into a low power state. System state is preserved if the power is lost."))) - { - m_power->hibernate(); - } -} - -void PowerManager::reboot() -{ - if (m_skipWarning || - MessageBox::question(tr("LXQt Session Reboot"), - tr("Do you want to really restart your computer? All unsaved work will be lost..."))) - { - m_power->reboot(); - } -} - -void PowerManager::shutdown() -{ - if (m_skipWarning || - MessageBox::question(tr("LXQt Session Shutdown"), - tr("Do you want to really switch off your computer? All unsaved work will be lost..."))) - { - m_power->shutdown(); - } -} - -void PowerManager::logout() -{ - if (m_skipWarning || - MessageBox::question(tr("LXQt Session Logout"), - tr("Do you want to really logout? All unsaved work will be lost..."))) - { - m_power->logout(); - } -} - -void PowerManager::hibernateFailed() -{ - MessageBox::warning(tr("LXQt Power Manager Error"), tr("Hibernate failed.")); -} - -void PowerManager::suspendFailed() -{ - MessageBox::warning(tr("LXQt Power Manager Error"), tr("Suspend failed.")); -} - -} // namespace LXQt diff --git a/LibLXQT/lxqtpowermanager.h b/LibLXQT/lxqtpowermanager.h deleted file mode 100644 index 347f72c976..0000000000 --- a/LibLXQT/lxqtpowermanager.h +++ /dev/null @@ -1,73 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Petr Vanek - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTPOWERMANAGER_H -#define LXQTPOWERMANAGER_H - -#include -#include -#include "lxqtglobals.h" - -namespace LXQt -{ -class Power; - -/*! QAction centric menu aware wrapper around lxqtpower -*/ -class LXQT_API PowerManager : public QObject -{ - Q_OBJECT - -public: - PowerManager(QObject * parent, bool skipWarning = false); - ~PowerManager() override; - QList availableActions(); - -public Q_SLOTS: - // power management - void suspend(); - void hibernate(); - void reboot(); - void shutdown(); - // lxqt session - void logout(); - -public: - bool skipWarning() const { return m_skipWarning; } - -private: - LXQt::Power * m_power; - bool m_skipWarning; - -private Q_SLOTS: - void hibernateFailed(); - void suspendFailed(); -}; - -} // namespace LXQt - -#endif // LXQTPOWERMANAGER_H diff --git a/LibLXQT/lxqtprogramfinder.cpp b/LibLXQT/lxqtprogramfinder.cpp deleted file mode 100644 index ddb8f1968a..0000000000 --- a/LibLXQT/lxqtprogramfinder.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2013 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "lxqtprogramfinder.h" -#include -#include -#include - -using namespace LXQt; - -LXQT_API bool ProgramFinder::programExists(const QString& command) -{ - const QString program = programName(command); - if (program[0] == QL1C('/')) - { - QFileInfo fi(program); - return fi.isExecutable() && fi.isFile(); - } - - const QString path = QFile::decodeName(qgetenv("PATH")); - const QStringList dirs = path.split(QL1C(':'), Qt::SkipEmptyParts); - for (const QString& dirName : dirs) - { - const QFileInfo fi(QDir(dirName), program); - if (fi.isExecutable() && fi.isFile()) - return true; - } - return false; -} - -LXQT_API QStringList ProgramFinder::findPrograms(const QStringList& commands) -{ - QStringList availPrograms; - for (const QString& program : commands) - if (programExists(program)) - availPrograms.append(program); - return availPrograms; -} - -LXQT_API QString ProgramFinder::programName(const QString& command) -{ - wordexp_t we; - if (wordexp(command.toLocal8Bit().constData(), &we, WRDE_NOCMD) == 0) - if (we.we_wordc > 0) - return QString::fromLocal8Bit(we.we_wordv[0]); - return QString(); -} diff --git a/LibLXQT/lxqtprogramfinder.h b/LibLXQT/lxqtprogramfinder.h deleted file mode 100644 index f4c63d5d00..0000000000 --- a/LibLXQT/lxqtprogramfinder.h +++ /dev/null @@ -1,61 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright (C) 2013 Alec Moskvin - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTPROGRAMFINDER_H -#define LXQTPROGRAMFINDER_H - -#include -#include "lxqtglobals.h" - -namespace LXQt -{ - -namespace ProgramFinder -{ - /*! - * \brief programExists Checks if the program needed to execute the given - * command is installed - * \param command - * \return True if the program exists - */ - LXQT_API bool programExists(const QString& command); - - /*! - * \brief findPrograms Filters a list of commands (with arguments) based on - * which programs are installed - * \param commands Commands to check - * \return List of commands which are installed - */ - LXQT_API QStringList findPrograms(const QStringList& commands); - - /*! - * \brief programName Returns the program name given a command - * \param command - * \return - */ - LXQT_API QString programName(const QString& command); -} - -} // namespace LXQt -#endif // LXQTPROGRAMFINDER_H diff --git a/LibLXQT/lxqtrotatedwidget.cpp b/LibLXQT/lxqtrotatedwidget.cpp deleted file mode 100644 index da8e99c622..0000000000 --- a/LibLXQT/lxqtrotatedwidget.cpp +++ /dev/null @@ -1,326 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2013 Razor team - * Authors: - * Kuzma Shapran - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#include "lxqtrotatedwidget.h" - -#include -#include - -#include - -#include - -#ifndef QT_NO_WHEELEVENT -#include -#endif - -#include - -using namespace LXQt; - -RotatedWidget::RotatedWidget(QWidget &content, QWidget *parent, Qt::WindowFlags f) - : QWidget(parent, f) - , mContent(&content) - , mOrigin(Qt::TopLeftCorner) - , mTransferMousePressEvent(false) - , mTransferMouseReleaseEvent(false) - , mTransferMouseDoubleClickEvent(false) - , mTransferMouseMoveEvent(false) -#ifndef QT_NO_WHEELEVENT - , mTransferWheelEvent(false) -#endif - , mTransferEnterEvent(false) - , mTransferLeaveEvent(false) -{ - mContent->setParent(this); -} - -Qt::Corner RotatedWidget::origin() const -{ - return mOrigin; -} - -void RotatedWidget::setOrigin(Qt::Corner newOrigin) -{ - if (mOrigin != newOrigin) - { - if (mOrigin == Qt::TopLeftCorner) - mContent->hide(); - - mOrigin = newOrigin; - adjustContentSize(); - update(); - - if (mOrigin == Qt::TopLeftCorner) - mContent->show(); - } -} - -QWidget * RotatedWidget::content() const -{ - return mContent; -} - -void RotatedWidget::adjustContentSize() -{ - mContent->adjustSize(); - - const QSize before = size(); - - adjustSize(); - - if (before != size()) - updateGeometry(); -} - -QSize RotatedWidget::adjustedSize(QSize size) const -{ - switch (mOrigin) - { - case Qt::TopLeftCorner: - case Qt::BottomRightCorner: - break; - - case Qt::TopRightCorner: - case Qt::BottomLeftCorner: - size.transpose(); - break; - } - - return size; -} - -QPointF RotatedWidget::adjustedPoint(QPointF point) const -{ - switch (mOrigin) - { - case Qt::TopLeftCorner: - case Qt::BottomRightCorner: - break; - - case Qt::TopRightCorner: - case Qt::BottomLeftCorner: - point = QPointF(point.y(), point.x()); - break; - } - - return point; -} - -QSize RotatedWidget::minimumSizeHint() const -{ - return adjustedSize(mContent->minimumSizeHint()); -} - -QSize RotatedWidget::sizeHint() const -{ - return adjustedSize(mContent->sizeHint()); -} - -void RotatedWidget::paintEvent(QPaintEvent */*event*/) -{ - if (mOrigin == Qt::TopLeftCorner) - return; - - const QSize sz = mContent->size(); - - QPainter painter(this); - - QTransform transform; - QPoint originPoint; - switch (mOrigin) - { - case Qt::TopLeftCorner: -// transform.rotate(0.0); -// originPoint = QPoint(0.0, 0.0); - break; - - case Qt::TopRightCorner: - transform.rotate(90.0); - originPoint = QPoint(0.0, -sz.height()); - break; - - case Qt::BottomRightCorner: - transform.rotate(180.0); - originPoint = QPoint(-sz.width(), -sz.height()); - break; - - case Qt::BottomLeftCorner: - transform.rotate(270.0); - originPoint = QPoint(-sz.width(), 0.0); - break; - } - painter.setTransform(transform); - mContent->render(&painter, originPoint, QRegion(), RenderFlags(DrawChildren)); -} - -void RotatedWidget::mousePressEvent(QMouseEvent *event) -{ - if (!mTransferMousePressEvent) - { - event->ignore(); - return; - } - - static bool cascadeCall = false; - if (cascadeCall) - return; - cascadeCall = true; - - QMouseEvent contentEvent(event->type(), adjustedPoint(event->pos()), event->globalPos(), event->button(), event->buttons(), event->modifiers()); - QApplication::sendEvent(mContent, &contentEvent); - - cascadeCall = false; -} - -void RotatedWidget::mouseReleaseEvent(QMouseEvent *event) -{ - if (!mTransferMouseReleaseEvent) - { - event->ignore(); - return; - } - - static bool cascadeCall = false; - if (cascadeCall) - return; - cascadeCall = true; - - QMouseEvent contentEvent(event->type(), adjustedPoint(event->pos()), event->globalPos(), event->button(), event->buttons(), event->modifiers()); - QApplication::sendEvent(mContent, &contentEvent); - - cascadeCall = false; -} - -void RotatedWidget::mouseDoubleClickEvent(QMouseEvent *event) -{ - if (!mTransferMouseDoubleClickEvent) - { - event->ignore(); - return; - } - - static bool cascadeCall = false; - if (cascadeCall) - return; - cascadeCall = true; - - QMouseEvent contentEvent(event->type(), adjustedPoint(event->pos()), event->globalPos(), event->button(), event->buttons(), event->modifiers()); - QApplication::sendEvent(mContent, &contentEvent); - - cascadeCall = false; -} - -void RotatedWidget::mouseMoveEvent(QMouseEvent *event) -{ - if (!mTransferMouseMoveEvent) - { - event->ignore(); - return; - } - - static bool cascadeCall = false; - if (cascadeCall) - return; - cascadeCall = true; - - QMouseEvent contentEvent(event->type(), adjustedPoint(event->pos()), event->globalPos(), event->button(), event->buttons(), event->modifiers()); - QApplication::sendEvent(mContent, &contentEvent); - - cascadeCall = false; -} - -#ifndef QT_NO_WHEELEVENT -void RotatedWidget::wheelEvent(QWheelEvent *event) -{ - if (!mTransferWheelEvent) - { - event->ignore(); - return; - } - - static bool cascadeCall = false; - if (cascadeCall) - return; - cascadeCall = true; - - QWheelEvent contentEvent(adjustedPoint(event->position()), event->globalPosition(), event->pixelDelta(), event->angleDelta(), event->buttons(), event->modifiers(), event->phase(), false); - QApplication::sendEvent(mContent, &contentEvent); - - cascadeCall = false; -} -#endif - -void RotatedWidget::enterEvent(QEvent *event) -{ - if (!mTransferEnterEvent) - { - event->ignore(); - return; - } - - static bool cascadeCall = false; - if (cascadeCall) - return; - cascadeCall = true; - - QApplication::sendEvent(mContent, event); - - cascadeCall = false; -} - -void RotatedWidget::leaveEvent(QEvent *event) -{ - if (!mTransferLeaveEvent) - { - event->ignore(); - return; - } - - static bool cascadeCall = false; - if (cascadeCall) - return; - cascadeCall = true; - - QApplication::sendEvent(mContent, event); - - cascadeCall = false; -} - -void RotatedWidget::resizeEvent(QResizeEvent *event) -{ - static bool cascadeCall = false; - if (cascadeCall) - return; - cascadeCall = true; - - QResizeEvent contentEvent(adjustedSize(event->size()), adjustedSize(event->oldSize())); - QApplication::sendEvent(mContent, &contentEvent); - - cascadeCall = false; -} diff --git a/LibLXQT/lxqtrotatedwidget.h b/LibLXQT/lxqtrotatedwidget.h deleted file mode 100644 index 7acb1182c5..0000000000 --- a/LibLXQT/lxqtrotatedwidget.h +++ /dev/null @@ -1,126 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2013 Razor team - * Authors: - * Kuzma Shapran - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTROTATED_WIDGET_H -#define LXQTROTATED_WIDGET_H - -#include -#include "lxqtglobals.h" - -namespace LXQt -{ - -class LXQT_API RotatedWidget: public QWidget -{ - Q_OBJECT - - Q_PROPERTY(Qt::Corner origin READ origin WRITE setOrigin) - - Q_PROPERTY(bool transferMousePressEvent READ transferMousePressEvent WRITE setTransferMousePressEvent) - Q_PROPERTY(bool transferMouseReleaseEvent READ transferMouseReleaseEvent WRITE setTransferMouseReleaseEvent) - Q_PROPERTY(bool transferMouseDoubleClickEvent READ transferMouseDoubleClickEvent WRITE setTransferMouseDoubleClickEvent) - Q_PROPERTY(bool transferMouseMoveEvent READ transferMouseMoveEvent WRITE setTransferMouseMoveEvent) -#ifndef QT_NO_WHEELEVENT - Q_PROPERTY(bool transferWheelEvent READ transferWheelEvent WRITE setTransferWheelEvent) -#endif - - Q_PROPERTY(bool transferEnterEvent READ transferEnterEvent WRITE setTransferEnterEvent) - Q_PROPERTY(bool transferLeaveEvent READ transferLeaveEvent WRITE setTransferLeaveEvent) - -public: - explicit RotatedWidget(QWidget &content, QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); - - Qt::Corner origin() const; - void setOrigin(Qt::Corner); - - QWidget * content() const; - - void adjustContentSize(); - - QSize minimumSizeHint() const override; - QSize sizeHint() const override; - - QSize adjustedSize(QSize) const; - QPointF adjustedPoint(QPointF) const; - - - bool transferMousePressEvent() const { return mTransferMousePressEvent; } - void setTransferMousePressEvent(bool value) { mTransferMousePressEvent = value; } - - bool transferMouseReleaseEvent() const { return mTransferMouseReleaseEvent; } - void setTransferMouseReleaseEvent(bool value) { mTransferMouseReleaseEvent = value; } - - bool transferMouseDoubleClickEvent() const { return mTransferMouseDoubleClickEvent; } - void setTransferMouseDoubleClickEvent(bool value) { mTransferMouseDoubleClickEvent = value; } - - bool transferMouseMoveEvent() const { return mTransferMouseMoveEvent; } - void setTransferMouseMoveEvent(bool value) { mTransferMouseMoveEvent = value; } - -#ifndef QT_NO_WHEELEVENT - bool transferWheelEvent() const { return mTransferWheelEvent; } - void setTransferWheelEvent(bool value) { mTransferWheelEvent = value; } -#endif - - bool transferEnterEvent() const { return mTransferEnterEvent; } - void setTransferEnterEvent(bool value) { mTransferEnterEvent = value; } - - bool transferLeaveEvent() const { return mTransferLeaveEvent; } - void setTransferLeaveEvent(bool value) { mTransferLeaveEvent = value; } - -protected: - void paintEvent(QPaintEvent *) override; - - // Transition event handlers - void mousePressEvent(QMouseEvent *) override; - void mouseReleaseEvent(QMouseEvent *) override; - void mouseDoubleClickEvent(QMouseEvent *) override; - void mouseMoveEvent(QMouseEvent *) override; -#ifndef QT_NO_WHEELEVENT - void wheelEvent(QWheelEvent *) override; -#endif - void enterEvent(QEvent *) override; - void leaveEvent(QEvent *) override; - - void resizeEvent(QResizeEvent *) override; - -private: - QWidget *mContent; - Qt::Corner mOrigin; - - bool mTransferMousePressEvent; - bool mTransferMouseReleaseEvent; - bool mTransferMouseDoubleClickEvent; - bool mTransferMouseMoveEvent; -#ifndef QT_NO_WHEELEVENT - bool mTransferWheelEvent; -#endif - bool mTransferEnterEvent; - bool mTransferLeaveEvent; -}; - -} // namespace LXQt -#endif // LXQTROTATEDWIDGET_H diff --git a/LibLXQT/lxqtscreensaver.cpp b/LibLXQT/lxqtscreensaver.cpp deleted file mode 100644 index 7801921167..0000000000 --- a/LibLXQT/lxqtscreensaver.cpp +++ /dev/null @@ -1,266 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Petr Vanek - * Copyright (c) 2016 Luís Pereira - * Copyright (c) 2012 The Chromium Authors. All rights reserved. - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include -#include -#include "lxqtscreensaver.h" -#include "lxqttranslator.h" - -#include - -#include -#include -#include -#include -#include -#include // for Q_DECLARE_TR_FUNCTIONS -#include -#include - -#include - -// Avoid polluting everything with X11/Xlib.h: -typedef struct _XDisplay Display; - -typedef unsigned long XAtom; -typedef unsigned long XID; - -extern "C" { -int XFree(void*); -} - -template -struct XObjectDeleter { - inline void operator()(void* ptr) const { F(static_cast(ptr)); } -}; - -template > -using XScopedPtr = std::unique_ptr; - - -namespace LXQt { - -static bool GetProperty(XID window, const std::string& property_name, long max_length, - Atom* type, int* format, unsigned long* num_items, - unsigned char** property); - - -static bool GetIntArrayProperty(XID window, - const std::string& property_name, - std::vector* value); - - -static bool GetProperty(XID window, const std::string& property_name, long max_length, - Atom* type, int* format, unsigned long* num_items, - unsigned char** property) -{ - Atom property_atom = XInternAtom(QX11Info::display(), property_name.c_str(), false); - unsigned long remaining_bytes = 0; - return XGetWindowProperty(QX11Info::display(), - window, - property_atom, - 0, // offset into property data to read - max_length, // max length to get - False, // deleted - AnyPropertyType, - type, - format, - num_items, - &remaining_bytes, - property); -} - -static bool GetIntArrayProperty(XID window, - const std::string& property_name, - std::vector* value) -{ - Atom type = None; - int format = 0; // size in bits of each item in 'property' - unsigned long num_items = 0; - unsigned char* properties = nullptr; - - int result = GetProperty(window, property_name, - (~0L), // (all of them) - &type, &format, &num_items, &properties); - XScopedPtr scoped_properties(properties); - if (result != Success) - return false; - - if (format != 32) - return false; - - long* int_properties = reinterpret_cast(properties); - value->clear(); - for (unsigned long i = 0; i < num_items; ++i) - { - value->push_back(static_cast(int_properties[i])); - } - return true; -} - -class ScreenSaverPrivate -{ - Q_DECLARE_TR_FUNCTIONS(LXQt::ScreenSaver) - Q_DECLARE_PUBLIC(ScreenSaver) - ScreenSaver* const q_ptr; - -public: - ScreenSaverPrivate(ScreenSaver *q) : q_ptr(q) { - QSettings settings(QSettings::UserScope, QLatin1String("lxqt"), QLatin1String("lxqt")); - - settings.beginGroup(QLatin1String("Screensaver")); - lock_command = settings.value(QLatin1String("lock_command"), QLatin1String("xdg-screensaver lock")).toString(); - settings.endGroup(); - } - - void reportLockProcessError(); - void _l_lockProcess_finished(int, QProcess::ExitStatus); - void _l_lockProcess_errorOccurred(QProcess::ProcessError); - bool isScreenSaverLocked(); - - QPointer m_lockProcess; - - QString lock_command; -}; - -void ScreenSaverPrivate::reportLockProcessError() -{ - QMessageBox box; - box.setIcon(QMessageBox::Warning); - box.setWindowTitle(tr("Screen Saver Error")); - QString message; - // contains() instead of startsWith() as the command might be "env FOO=bar xdg-screensaver lock" - // (e.g., overwrite $XDG_CURRENT_DESKTOP for some different behaviors) - if (lock_command.contains(QLatin1String("xdg-screensaver"))) { - message = tr("Failed to run \"%1\". " - "Ensure you have a locker/screensaver compatible with xdg-screensaver installed and running." - ); - } else { - message = tr("Failed to run \"%1\". " - "Ensure the specified locker/screensaver is installed and running." - ); - } - box.setText(message.arg(lock_command)); - box.exec(); -} - -void ScreenSaverPrivate::_l_lockProcess_finished(int err, QProcess::ExitStatus status) -{ - Q_UNUSED(status) - Q_Q(ScreenSaver); - if (err == 0) - Q_EMIT q->activated(); - else - { - reportLockProcessError(); - } - - Q_EMIT q->done(); -} - -void ScreenSaverPrivate::_l_lockProcess_errorOccurred(QProcess::ProcessError) -{ - reportLockProcessError(); -} - -bool ScreenSaverPrivate::isScreenSaverLocked() -{ - XScreenSaverInfo *info = nullptr; - Display *display = QX11Info::display(); - XID window = DefaultRootWindow(display); - info = XScreenSaverAllocInfo(); - - XScreenSaverQueryInfo(QX11Info::display(), window, info); - const int state = info->state; - XFree(info); - if (state == ScreenSaverOn) - return true; - - // Ironically, xscreensaver does not conform to the XScreenSaver protocol, so - // info.state == ScreenSaverOff or info.state == ScreenSaverDisabled does not - // necessarily mean that a screensaver is not active, so add a special check - // for xscreensaver. - XAtom lock_atom = XInternAtom(display, "LOCK", false); - std::vector atom_properties; - if (GetIntArrayProperty(window, "_SCREENSAVER_STATUS", &atom_properties) && - atom_properties.size() > 0) - { - if (atom_properties[0] == static_cast(lock_atom)) - return true; - } - - return false; -} - -ScreenSaver::ScreenSaver(QObject * parent) - : QObject(parent), - d_ptr(new ScreenSaverPrivate(this)) -{ - Q_D(ScreenSaver); - d->m_lockProcess = new QProcess(this); - connect(d->m_lockProcess, QOverload::of(&QProcess::finished), - [=](int exitCode, QProcess::ExitStatus exitStatus){ d->_l_lockProcess_finished(exitCode, exitStatus); }); - connect(d->m_lockProcess, &QProcess::errorOccurred, - [=](QProcess::ProcessError error) { d->_l_lockProcess_errorOccurred(error); }); -} - -ScreenSaver::~ScreenSaver() -{ - delete d_ptr; -} - -QList ScreenSaver::availableActions() -{ - QList ret; - QAction * act; - - act = new QAction(XdgIcon::fromTheme(QL1S("system-lock-screen"), QL1S("lock")), tr("Lock Screen"), this); - connect(act, &QAction::triggered, this, &ScreenSaver::lockScreen); - ret.append(act); - - return ret; -} - -void ScreenSaver::lockScreen() -{ - Q_D(ScreenSaver); - if (!d->isScreenSaverLocked()) { - QStringList args = QProcess::splitCommand(d->lock_command); - if (args.isEmpty()) { - qWarning() << Q_FUNC_INFO << "Empty screen lock_command"; - return; - } - const QString program = args.takeFirst(); - d->m_lockProcess->start(program, args, QIODevice::ReadWrite); - } -} - -} // namespace LXQt - -#include "moc_lxqtscreensaver.cpp" diff --git a/LibLXQT/lxqtscreensaver.h b/LibLXQT/lxqtscreensaver.h deleted file mode 100644 index 404aaea7ed..0000000000 --- a/LibLXQT/lxqtscreensaver.h +++ /dev/null @@ -1,66 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Petr Vanek - * - * Copyright (c) 2016 Luís Pereira - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef SCREENSAVER_H -#define SCREENSAVER_H - -#include "lxqtglobals.h" -#include -#include - -namespace LXQt -{ - -class ScreenSaverPrivate; - -class LXQT_API ScreenSaver : public QObject -{ - Q_OBJECT - Q_DECLARE_PRIVATE(ScreenSaver) - Q_DISABLE_COPY(ScreenSaver) - -public: - ScreenSaver(QObject * parent=nullptr); - ~ScreenSaver() override; - - QList availableActions(); - -Q_SIGNALS: - void activated(); - void done(); -public Q_SLOTS: - void lockScreen(); - -private: - ScreenSaverPrivate* const d_ptr; -}; - -} // namespace LXQt -#endif - diff --git a/LibLXQT/lxqtsettings.cpp b/LibLXQT/lxqtsettings.cpp deleted file mode 100644 index 2037929874..0000000000 --- a/LibLXQT/lxqtsettings.cpp +++ /dev/null @@ -1,709 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * Petr Vanek - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "lxqtsettings.h" -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -using namespace LXQt; - -class LXQt::SettingsPrivate -{ -public: - SettingsPrivate(Settings* parent): - mFileChangeTimer(0), - mAppChangeTimer(0), - mAddWatchTimer(0), - mParent(parent) - { - // HACK: we need to ensure that the user (~/.config/lxqt/.conf) - // exists to have functional mWatcher - if (!mParent->contains(QL1S("__userfile__"))) - { - mParent->setValue(QL1S("__userfile__"), true); - mParent->sync(); - } - mWatcher.addPath(mParent->fileName()); - QObject::connect(&(mWatcher), &QFileSystemWatcher::fileChanged, mParent, &Settings::_fileChanged); - } - - QString localizedKey(const QString& key) const; - - QFileSystemWatcher mWatcher; - int mFileChangeTimer; - int mAppChangeTimer; - int mAddWatchTimer; - -private: - Settings* mParent; -}; - - -LXQtTheme* LXQtTheme::mInstance = nullptr; - -class LXQt::LXQtThemeData: public QSharedData { -public: - LXQtThemeData(): mValid(false) {} - QString loadQss(const QString& qssFile) const; - QString findTheme(const QString &themeName); - - QString mName; - QString mPath; - QString mPreviewImg; - bool mValid; - -}; - - -class LXQt::GlobalSettingsPrivate -{ -public: - GlobalSettingsPrivate(GlobalSettings *parent): - mParent(parent), - mThemeUpdated(0ull) - { - - } - - GlobalSettings *mParent; - QString mIconTheme; - QString mLXQtTheme; - qlonglong mThemeUpdated; - -}; - - -/************************************************ - - ************************************************/ -Settings::Settings(const QString& module, QObject* parent) : - QSettings(QL1S("lxqt"), module, parent), - d_ptr(new SettingsPrivate(this)) -{ -} - - -/************************************************ - - ************************************************/ -Settings::Settings(const QString &fileName, QSettings::Format format, QObject *parent): - QSettings(fileName, format, parent), - d_ptr(new SettingsPrivate(this)) -{ -} - - -/************************************************ - - ************************************************/ -Settings::Settings(const QSettings* parentSettings, const QString& subGroup, QObject* parent): - QSettings(parentSettings->organizationName(), parentSettings->applicationName(), parent), - d_ptr(new SettingsPrivate(this)) -{ - beginGroup(subGroup); -} - - -/************************************************ - - ************************************************/ -Settings::Settings(const QSettings& parentSettings, const QString& subGroup, QObject* parent): - QSettings(parentSettings.organizationName(), parentSettings.applicationName(), parent), - d_ptr(new SettingsPrivate(this)) -{ - beginGroup(subGroup); -} - - -/************************************************ - - ************************************************/ -Settings::~Settings() -{ - // because in the Settings::Settings(const QString& module, QObject* parent) - // constructor there is no beginGroup() called... - if (!group().isEmpty()) - endGroup(); - - delete d_ptr; -} - -bool Settings::event(QEvent *event) -{ - if (event->type() == QEvent::UpdateRequest) - { - // delay the settingsChanged* signal emitting for: - // - checking in _fileChanged - // - merging emitting the signals - if(d_ptr->mAppChangeTimer) - killTimer(d_ptr->mAppChangeTimer); - d_ptr->mAppChangeTimer = startTimer(100); - } - else if (event->type() == QEvent::Timer) - { - const int timer = static_cast(event)->timerId(); - killTimer(timer); - if (timer == d_ptr->mFileChangeTimer) - { - d_ptr->mFileChangeTimer = 0; - fileChanged(); // invoke the real fileChanged() handler. - } else if (timer == d_ptr->mAppChangeTimer) - { - d_ptr->mAppChangeTimer = 0; - // do emit the signals - Q_EMIT settingsChangedByApp(); - Q_EMIT settingsChanged(); - } else if (timer == d_ptr->mAddWatchTimer) - { - d_ptr->mAddWatchTimer = 0; - //try to re-add filename for watching - addWatchedFile(fileName()); - } - } - - return QSettings::event(event); -} - -void Settings::fileChanged() -{ - sync(); - Q_EMIT settingsChangedFromExternal(); - Q_EMIT settingsChanged(); -} - -void Settings::_fileChanged(const QString& path) -{ - // check if the file isn't changed by our logic - // FIXME: this is poor implementation; should we rather compute some hash of values if changed by external? - if (0 == d_ptr->mAppChangeTimer) - { - // delay the change notification for 100 ms to avoid - // unnecessary repeated loading of the same config file if - // the file is changed for several times rapidly. - if(d_ptr->mFileChangeTimer) - killTimer(d_ptr->mFileChangeTimer); - d_ptr->mFileChangeTimer = startTimer(1000); - } - - addWatchedFile(path); -} - -void Settings::addWatchedFile(QString const & path) -{ - // D*mn! yet another Qt 5.4 regression!!! - // See the bug report: https://github.com/lxqt/lxqt/issues/441 - // Since Qt 5.4, QSettings uses QSaveFile to save the config files. - // https://github.com/qtproject/qtbase/commit/8d15068911d7c0ba05732e2796aaa7a90e34a6a1#diff-e691c0405f02f3478f4f50a27bdaecde - // QSaveFile will save the content to a new temp file, and replace the old file later. - // Hence the existing config file is not changed. Instead, it's deleted and then replaced. - // This new behaviour unfortunately breaks QFileSystemWatcher. - // After file deletion, we can no longer receive any new change notifications. - // The most ridiculous thing is, QFileSystemWatcher does not provide a - // way for us to know if a file is deleted. WT*? - // Luckily, I found a workaround: If the file path no longer exists - // in the watcher's files(), this file is deleted. - if(!d_ptr->mWatcher.files().contains(path)) - // in some situations adding fails because of non-existing file (e.g. editting file in external program) - if (!d_ptr->mWatcher.addPath(path) && 0 == d_ptr->mAddWatchTimer) - d_ptr->mAddWatchTimer = startTimer(100); - -} - - -/************************************************ - - ************************************************/ -const GlobalSettings *Settings::globalSettings() -{ - static QMutex mutex; - static GlobalSettings *instance = nullptr; - if (!instance) - { - mutex.lock(); - - if (!instance) - instance = new GlobalSettings(); - - mutex.unlock(); - } - - return instance; -} - - -/************************************************ - LC_MESSAGES value Possible keys in order of matching - lang_COUNTRY@MODIFIER lang_COUNTRY@MODIFIER, lang_COUNTRY, lang@MODIFIER, lang, - default value - lang_COUNTRY lang_COUNTRY, lang, default value - lang@MODIFIER lang@MODIFIER, lang, default value - lang lang, default value - ************************************************/ -QString SettingsPrivate::localizedKey(const QString& key) const -{ - - QString lang = QString::fromLocal8Bit(qgetenv("LC_MESSAGES")); - - if (lang.isEmpty()) - lang = QString::fromLocal8Bit(qgetenv("LC_ALL")); - - if (lang.isEmpty()) - lang = QString::fromLocal8Bit(qgetenv("LANG")); - - - QString modifier = lang.section(QL1C('@'), 1); - if (!modifier.isEmpty()) - lang.truncate(lang.length() - modifier.length() - 1); - - QString encoding = lang.section(QL1C('.'), 1); - if (!encoding.isEmpty()) - lang.truncate(lang.length() - encoding.length() - 1); - - - QString country = lang.section(QL1C('_'), 1); - if (!country.isEmpty()) - lang.truncate(lang.length() - country.length() - 1); - - - - //qDebug() << "LC_MESSAGES: " << getenv("LC_MESSAGES"); - //qDebug() << "Lang:" << lang; - //qDebug() << "Country:" << country; - //qDebug() << "Encoding:" << encoding; - //qDebug() << "Modifier:" << modifier; - - if (!modifier.isEmpty() && !country.isEmpty()) - { - QString k = QString::fromLatin1("%1[%2_%3@%4]").arg(key, lang, country, modifier); - //qDebug() << "\t try " << k << mParent->contains(k); - if (mParent->contains(k)) - return k; - } - - if (!country.isEmpty()) - { - QString k = QString::fromLatin1("%1[%2_%3]").arg(key, lang, country); - //qDebug() << "\t try " << k << mParent->contains(k); - if (mParent->contains(k)) - return k; - } - - if (!modifier.isEmpty()) - { - QString k = QString::fromLatin1("%1[%2@%3]").arg(key, lang, modifier); - //qDebug() << "\t try " << k << mParent->contains(k); - if (mParent->contains(k)) - return k; - } - - QString k = QString::fromLatin1("%1[%2]").arg(key, lang); - //qDebug() << "\t try " << k << mParent->contains(k); - if (mParent->contains(k)) - return k; - - - //qDebug() << "\t try " << key << mParent->contains(key); - return key; -} - -/************************************************ - - ************************************************/ -QVariant Settings::localizedValue(const QString& key, const QVariant& defaultValue) const -{ - Q_D(const Settings); - return value(d->localizedKey(key), defaultValue); -} - - -/************************************************ - - ************************************************/ -void Settings::setLocalizedValue(const QString &key, const QVariant &value) -{ - Q_D(const Settings); - setValue(d->localizedKey(key), value); -} - - -/************************************************ - - ************************************************/ -LXQtTheme::LXQtTheme(): - d(new LXQtThemeData) -{ -} - - -/************************************************ - - ************************************************/ -LXQtTheme::LXQtTheme(const QString &path): - d(new LXQtThemeData) -{ - if (path.isEmpty()) - return; - - QFileInfo fi(path); - if (fi.isAbsolute()) - { - d->mPath = path; - d->mName = fi.fileName(); - d->mValid = fi.isDir(); - } - else - { - d->mName = path; - d->mPath = d->findTheme(path); - d->mValid = !(d->mPath.isEmpty()); - } - - if (QDir(path).exists(QL1S("preview.png"))) - d->mPreviewImg = path + QL1S("/preview.png"); -} - - -/************************************************ - - ************************************************/ -QString LXQtThemeData::findTheme(const QString &themeName) -{ - if (themeName.isEmpty()) - return QString(); - - QStringList paths; - QLatin1String fallback(LXQT_INSTALL_PREFIX); - - paths << XdgDirs::dataHome(false); - paths << XdgDirs::dataDirs(); - - if (!paths.contains(fallback)) - paths << fallback; - - for(const QString &path : qAsConst(paths)) - { - QDir dir(QString::fromLatin1("%1/lxqt/themes/%2").arg(path, themeName)); - if (dir.isReadable()) - return dir.absolutePath(); - } - - return QString(); -} - - -/************************************************ - - ************************************************/ -LXQtTheme::LXQtTheme(const LXQtTheme &other): - d(other.d) -{ -} - - -/************************************************ - - ************************************************/ -LXQtTheme::~LXQtTheme() = default; - - -/************************************************ - - ************************************************/ -LXQtTheme& LXQtTheme::operator=(const LXQtTheme &other) -{ - if (this != &other) - d = other.d; - - return *this; -} - - -/************************************************ - - ************************************************/ -bool LXQtTheme::isValid() const -{ - return d->mValid; -} - - -/************************************************ - - ************************************************/ -QString LXQtTheme::name() const -{ - return d->mName; -} - -/************************************************ - - ************************************************/ -QString LXQtTheme::path() const -{ - return d->mPath; -} - - -/************************************************ - - ************************************************/ -QString LXQtTheme::previewImage() const -{ - return d->mPreviewImg; -} - - -/************************************************ - - ************************************************/ -QString LXQtTheme::qss(const QString& module) const -{ - return d->loadQss(QStringLiteral("%1/%2.qss").arg(d->mPath, module)); -} - - -/************************************************ - - ************************************************/ -QString LXQtThemeData::loadQss(const QString& qssFile) const -{ - QFile f(qssFile); - if (! f.open(QIODevice::ReadOnly | QIODevice::Text)) - { - return QString(); - } - - QString qss = QString::fromLocal8Bit(f.readAll()); - f.close(); - - if (qss.isEmpty()) - return QString(); - - // handle relative paths - QString qssDir = QFileInfo(qssFile).canonicalPath(); - qss.replace(QRegExp(QL1S("url.[ \\t\\s]*"), Qt::CaseInsensitive, QRegExp::RegExp2), QL1S("url(") + qssDir + QL1C('/')); - - return qss; -} - - -/************************************************ - - ************************************************/ -QString LXQtTheme::desktopBackground(int screen) const -{ - QString wallpaperCfgFileName = QString::fromLatin1("%1/wallpaper.cfg").arg(d->mPath); - - if (wallpaperCfgFileName.isEmpty()) - return QString(); - - QSettings s(wallpaperCfgFileName, QSettings::IniFormat); - QString themeDir = QFileInfo(wallpaperCfgFileName).absolutePath(); - // There is something strange... If I remove next line the wallpapers array is not found... - s.childKeys(); - s.beginReadArray(QL1S("wallpapers")); - - s.setArrayIndex(screen - 1); - if (s.contains(QL1S("file"))) - return QString::fromLatin1("%1/%2").arg(themeDir, s.value(QL1S("file")).toString()); - - s.setArrayIndex(0); - if (s.contains(QL1S("file"))) - return QString::fromLatin1("%1/%2").arg(themeDir, s.value(QL1S("file")).toString()); - - return QString(); -} - - -/************************************************ - - ************************************************/ -const LXQtTheme &LXQtTheme::currentTheme() -{ - static LXQtTheme theme; - QString name = Settings::globalSettings()->value(QL1S("theme")).toString(); - if (theme.name() != name) - { - theme = LXQtTheme(name); - } - return theme; -} - - -/************************************************ - - ************************************************/ -QList LXQtTheme::allThemes() -{ - QList ret; - QSet processed; - - QStringList paths; - paths << XdgDirs::dataHome(false); - paths << XdgDirs::dataDirs(); - - for(const QString &path : qAsConst(paths)) - { - QDir dir(QString::fromLatin1("%1/lxqt/themes").arg(path)); - const QFileInfoList dirs = dir.entryInfoList(QDir::AllDirs | QDir::NoDotAndDotDot); - - for(const QFileInfo &dir : dirs) - { - if (!processed.contains(dir.fileName()) && - QDir(dir.absoluteFilePath()).exists(QL1S("lxqt-panel.qss"))) - { - processed << dir.fileName(); - ret << LXQtTheme(dir.absoluteFilePath()); - } - - } - } - - return ret; -} - - -/************************************************ - - ************************************************/ -SettingsCache::SettingsCache(QSettings &settings) : - mSettings(settings) -{ - loadFromSettings(); -} - - -/************************************************ - - ************************************************/ -SettingsCache::SettingsCache(QSettings *settings) : - mSettings(*settings) -{ - loadFromSettings(); -} - - -/************************************************ - - ************************************************/ -void SettingsCache::loadFromSettings() -{ - const QStringList keys = mSettings.allKeys(); - - const int N = keys.size(); - for (int i = 0; i < N; ++i) { - mCache.insert(keys.at(i), mSettings.value(keys.at(i))); - } -} - - -/************************************************ - - ************************************************/ -void SettingsCache::loadToSettings() -{ - QHash::const_iterator i = mCache.constBegin(); - - while(i != mCache.constEnd()) - { - mSettings.setValue(i.key(), i.value()); - ++i; - } - - mSettings.sync(); -} - - -/************************************************ - - ************************************************/ -GlobalSettings::GlobalSettings(): - Settings(QL1S("lxqt")), - d_ptr(new GlobalSettingsPrivate(this)) -{ - if (value(QL1S("icon_theme")).toString().isEmpty()) - { - qWarning() << QString::fromLatin1("Icon Theme not set. Fallbacking to Oxygen, if installed"); - const QString fallback(QLatin1String("oxygen")); - - const QDir dir(QLatin1String(LXQT_DATA_DIR) + QLatin1String("/icons")); - if (dir.exists(fallback)) - { - setValue(QL1S("icon_theme"), fallback); - sync(); - } - else - { - qWarning() << QString::fromLatin1("Fallback Icon Theme (Oxygen) not found"); - } - } - - fileChanged(); -} - -GlobalSettings::~GlobalSettings() -{ - delete d_ptr; -} - - -/************************************************ - - ************************************************/ -void GlobalSettings::fileChanged() -{ - Q_D(GlobalSettings); - sync(); - - - QString it = value(QL1S("icon_theme")).toString(); - if (d->mIconTheme != it) - { - Q_EMIT iconThemeChanged(); - } - - QString rt = value(QL1S("theme")).toString(); - qlonglong themeUpdated = value(QL1S("__theme_updated__")).toLongLong(); - if ((d->mLXQtTheme != rt) || (d->mThemeUpdated != themeUpdated)) - { - d->mLXQtTheme = rt; - Q_EMIT lxqtThemeChanged(); - } - - Q_EMIT settingsChangedFromExternal(); - Q_EMIT settingsChanged(); -} - diff --git a/LibLXQT/lxqtsettings.h b/LibLXQT/lxqtsettings.h deleted file mode 100644 index cffdbeb3ba..0000000000 --- a/LibLXQT/lxqtsettings.h +++ /dev/null @@ -1,217 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2010-2011 Razor team - * Authors: - * Alexander Sokoloff - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - - -#ifndef LXQTSETTINGS_H -#define LXQTSETTINGS_H - -#include -#include -#include -#include "lxqtglobals.h" - -class QEvent; - -namespace LXQt -{ - -class SettingsPrivate; -class GlobalSettings; - -/*! \brief User settings handling */ -class LXQT_API Settings : public QSettings -{ - Q_OBJECT -public: - - /*! \brief Constructs a Settings object for accessing settings of the module called module, and with parent parent. - Settings can be accessed using the standard interface provided by QSettings, but it also provides some convenience functions and signals. - - \param module a base name of the config file. It's a name without - the extension. For example: if you want to open settings for - panel create it as Settings("panel"). - The function will create all parent directories necessary to create - the file. - \param parent It's no need to delete this class manually if it's set. - */ - explicit Settings(const QString& module, QObject* parent = nullptr); - //explicit Settings(QObject* parent=0); - explicit Settings(const QSettings* parentSettings, const QString& subGroup, QObject* parent=nullptr); - explicit Settings(const QSettings& parentSettings, const QString& subGroup, QObject* parent=nullptr); - Settings(const QString &fileName, QSettings::Format format, QObject *parent = nullptr); - ~Settings() override; - - static const GlobalSettings *globalSettings(); - - - /*! Returns the localized value for key. In the desktop file keys may be postfixed by [LOCALE]. If the - localized value doesn't exist, returns non lokalized value. If non localized value doesn't exist, returns defaultValue. - LOCALE must be of the form lang_COUNTRY.ENCODING@MODIFIER, where _COUNTRY, .ENCODING, and @MODIFIER may be omitted. - - If no default value is specified, a default QVariant is returned. */ - QVariant localizedValue(const QString& key, const QVariant& defaultValue = QVariant()) const; - - /*! Sets the value of setting key to value. If a localized version of the key already exists, the previous value is - overwritten. Otherwise, it overwrites the the un-localized version. */ - void setLocalizedValue(const QString &key, const QVariant &value); - -Q_SIGNALS: - /*! /brief signal for backward compatibility (emitted whenever settingsChangedFromExternal() or settingsChangedByApp() is emitted) - */ - void settingsChanged(); - /*! /brief signal emitted when the settings file is changed by external application - */ - void settingsChangedFromExternal(); - /*! /brief signal emitted when any setting is changed by this object - */ - void settingsChangedByApp(); - -protected: - bool event(QEvent *event) override; - -protected Q_SLOTS: - /*! Called when the config file is changed */ - virtual void fileChanged(); - -private Q_SLOTS: - void _fileChanged(const QString& path); - -private: - void addWatchedFile(QString const & path); - -private: - Q_DISABLE_COPY(Settings) - - SettingsPrivate* const d_ptr; - Q_DECLARE_PRIVATE(Settings) -}; - - -class LXQtThemeData; - -/*! \brief QSS theme handling */ -class LXQT_API LXQtTheme -{ -public: - /// Constructs a null theme. - LXQtTheme(); - - /*! Constructs an theme from the dir with the given path. If path not absolute - (i.e. the theme name only) the relevant dir must be found relative to the - $XDG_DATA_HOME + $XDG_DATA_DIRS directories. */ - LXQtTheme(const QString &path); - - /// Constructs a copy of other. This is very fast. - LXQtTheme(const LXQtTheme &other); - - LXQtTheme& operator=(const LXQtTheme &other); - ~LXQtTheme(); - - /// Returns the name of the theme. - QString name() const; - - QString path() const; - - QString previewImage() const; - - /// Returns true if this theme is valid; otherwise returns false. - bool isValid() const; - - /*! \brief Returns StyleSheet text (not file name, but real text) of the module called module. - Paths in url() C/QSS functions are parsed to be real values for the theme, - relative to full path - */ - QString qss(const QString& module) const; - - /*! \brief A full path to image used as a wallpaper - \param screen is an ID of the screen like in Qt. -1 means default (any) screen. - Any other value greater than -1 is the exact screen (in dualhead). - In themes the index starts from 1 (ix 1 means 1st screen). - \retval QString a file name (including path). - */ - QString desktopBackground(int screen=-1) const; - - /// Returns the current lxqt theme. - static const LXQtTheme ¤tTheme(); - - /// Returns the all themes found in the system. - static QList allThemes(); - -private: - static LXQtTheme* mInstance; - QSharedDataPointer d; -}; - -/*! -A global pointer referring to the unique LXQtTheme object. -It is equivalent to the pointer returned by the LXQtTheme::instance() function. -Only one theme object can be created. !*/ - -#define lxqtTheme LXQtTheme::currentTheme() - - -class LXQT_API SettingsCache -{ -public: - explicit SettingsCache(QSettings &settings); - explicit SettingsCache(QSettings *settings); - virtual ~SettingsCache() {} - - void loadFromSettings(); - void loadToSettings(); - -private: - QSettings &mSettings; - QHash mCache; -}; - -class GlobalSettingsPrivate; - -class LXQT_API GlobalSettings : public Settings -{ - Q_OBJECT -public: - GlobalSettings(); - ~GlobalSettings() override; - -Q_SIGNALS: - /// Signal emitted when the icon theme has changed. - void iconThemeChanged(); - - /// Signal emitted when the lxqt theme has changed. - void lxqtThemeChanged(); - -protected Q_SLOTS: - void fileChanged() override; - -private: - GlobalSettingsPrivate* const d_ptr; - Q_DECLARE_PRIVATE(GlobalSettings) -}; - -} // namespace LXQt -#endif // LXQTSETTINGS_H diff --git a/LibLXQT/lxqtsingleapplication.cpp b/LibLXQT/lxqtsingleapplication.cpp deleted file mode 100644 index dac9ba8630..0000000000 --- a/LibLXQT/lxqtsingleapplication.cpp +++ /dev/null @@ -1,108 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2014 LXQt team - * Authors: - * Luís Pereira - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "lxqtsingleapplication.h" -#include "singleapplicationadaptor.h" -#include -#include -#include -#include -#include - -using namespace LXQt; - -SingleApplication::SingleApplication(int &argc, char **argv, StartOptions options) - : Application(argc, argv, true), - mActivationWindow(nullptr) -{ - QString service = - QString::fromLatin1("org.lxqt.%1").arg(QApplication::applicationName()); - - QDBusConnection bus = QDBusConnection::sessionBus(); - - if (!bus.isConnected()) { - QLatin1String errorMessage("Can't connect to the D-Bus session bus\n" - "Make sure the D-Bus daemon is running"); - - /* ExitOnDBusFailure is the default. Any value other than - NoExitOnDBusFailure will be taken as ExitOnDBusFailure (the default). - */ - if (options == NoExitOnDBusFailure) { - qDebug() << Q_FUNC_INFO << errorMessage; - return; - } else { - qCritical() << Q_FUNC_INFO << errorMessage; - QTimer::singleShot(0, [this] { exit(1); }); - } - } - - bool registered = (bus.registerService(service) == - QDBusConnectionInterface::ServiceRegistered); - if (registered) { // We are the primary instance - SingleApplicationAdaptor *mAdaptor = new SingleApplicationAdaptor(this); - QLatin1String objectPath("/"); - bus.registerObject(objectPath, mAdaptor, - QDBusConnection::ExportAllSlots); - } else { // We are the second outstance - QDBusMessage msg = QDBusMessage::createMethodCall(service, - QStringLiteral("/"), - QStringLiteral("org.lxqt.SingleApplication"), - QStringLiteral("activateWindow")); - QDBusConnection::sessionBus().send(msg); - - QTimer::singleShot(0, [this] { exit(0); }); - } -} - -SingleApplication::~SingleApplication() = default; - -void SingleApplication::setActivationWindow(QWidget *w) -{ - mActivationWindow = w; -} - -QWidget *SingleApplication::activationWindow() const -{ - return mActivationWindow; -} - -void SingleApplication::activateWindow() -{ - if (mActivationWindow) { - mActivationWindow->show(); - WId window = mActivationWindow->effectiveWinId(); - - KWindowInfo info(window, KWindowSystem::WMDesktop); - int windowDesktop = info.desktop(); - - if (windowDesktop != KWindowSystem::currentDesktop()) - KWindowSystem::setCurrentDesktop(windowDesktop); - KWindowSystem::activateWindow(window); - } else { - qDebug() << Q_FUNC_INFO << "activationWindow not set or null"; - } -} diff --git a/LibLXQT/lxqtsingleapplication.h b/LibLXQT/lxqtsingleapplication.h deleted file mode 100644 index 489cea8a42..0000000000 --- a/LibLXQT/lxqtsingleapplication.h +++ /dev/null @@ -1,158 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2014 LXQt team - * Authors: - * Luís Pereira - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTSINGLEAPPLICATION_H -#define LXQTSINGLEAPPLICATION_H - -#include "lxqtapplication.h" - -class QWidget; - -namespace LXQt { - -/*! \class SingleApplication - * \brief The SingleApplication class provides an single instance Application. - * - * This class allows the user to create applications where only one instance - * is allowed to be running at an given time. If the user tries to launch - * another instance, the already running instance will be activated instead. - * - * The user has to set the activation window with setActivationWindow. If it - * doesn't the second instance will quietly exit without activating the first - * instance window. In any case only one instance is allowed. - * - * These classes depend on D-Bus and KF5::WindowSystem - * - * \code - * - * // Original code - * int main(int argc, char **argv) - * { - * LXQt::Application app(argc, argv); - * - * MainWidget w; - * w.show(); - * - * return app.exec(); - * } - * - * // Using the library - * int main(int argc, char **argv) - * { - * LXQt::SingleApplication app(argc, argv); - * - * MainWidget w; - * app.setActivationWindow(&w); - * w.show(); - * - * return app.exec(); - * } - * \endcode - * \sa SingleApplication - */ - -class LXQT_API SingleApplication : public Application { - Q_OBJECT - -public: - /*! - * \brief Options to control the D-Bus failure related application behaviour - * - * By default (ExitOnDBusFailure) if an instance can't connect to the D-Bus - * session bus, that instance calls ::exit(1). Not even the first instance - * will run. Connecting to the D-Bus session bus is an condition to - * guarantee that only one instance will run. - * - * If an user wants to allow an application to run without D-Bus, it must - * use the NoExitOnDBusFailure option. - * - * ExitOnDBusFailure is the default. - */ - enum StartOptions { - /** Exit if the connection to the D-Bus session bus fails. - * It's the default - */ - ExitOnDBusFailure, - /** Don't exit if the connection to the D-Bus session bus fails.*/ - NoExitOnDBusFailure - }; - Q_ENUM(StartOptions) - - /*! - * \brief Construct a LXQt SingleApplication object. - * \param argc standard argc as in QApplication - * \param argv standard argv as in QApplication - * \param options Control the on D-Bus failure application behaviour - * - * \sa StartOptions. - */ - SingleApplication(int &argc, char **argv, StartOptions options = ExitOnDBusFailure); - ~SingleApplication() override; - - /*! - * \brief Sets the activation window. - * \param w activation window. - * - * Sets the activation window of this application to w. The activation - * window is the widget that will be activated by \a activateWindow(). - * - * \sa activationWindow() \sa activateWindow(); - */ - void setActivationWindow(QWidget *w); - - /*! - * \brief Gets the current activation window. - * \return The current activation window. - * - * \sa setActivationWindow(); - */ - QWidget *activationWindow() const; - -public Q_SLOTS: - /*! - * \brief Activates this application activation window. - * - * Changes to the desktop where this applications is. It then de-minimizes, - * raises and activates the application's activation window. - * If no activation window has been set, this function does nothing. - * - * \sa setActivationWindow(); - */ - void activateWindow(); - -private: - QWidget *mActivationWindow; -}; - -#if defined(lxqtSingleApp) -#undef lxqtSingleApp -#endif -#define lxqtSingleApp (static_cast(qApp)) - -} // namespace LXQt - -#endif // LXQTSINGLEAPPLICATION_H diff --git a/LibLXQT/lxqttranslator.cpp b/LibLXQT/lxqttranslator.cpp deleted file mode 100644 index 710f8891c8..0000000000 --- a/LibLXQT/lxqttranslator.cpp +++ /dev/null @@ -1,186 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2013 LXQt team - * Authors: - * Alexander Sokoloff - Luís Pereira - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#include "lxqttranslator.h" -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -using namespace LXQt; - -bool translate(const QString &name, const QString &owner = QString()); -/************************************************ - - ************************************************/ -QStringList *getSearchPaths() -{ - static QStringList *searchPath = nullptr; - - if (searchPath == nullptr) - { - searchPath = new QStringList(); - *searchPath << XdgDirs::dataDirs(QL1C('/') + QL1S(LXQT_RELATIVE_SHARE_TRANSLATIONS_DIR)); - *searchPath << QL1S(LXQT_SHARE_TRANSLATIONS_DIR); - searchPath->removeDuplicates(); - } - - return searchPath; -} - - -/************************************************ - - ************************************************/ -QStringList LXQt::Translator::translationSearchPaths() -{ - return *(getSearchPaths()); -} - - -/************************************************ - - ************************************************/ -void Translator::setTranslationSearchPaths(const QStringList &paths) -{ - QStringList *p = getSearchPaths(); - p->clear(); - *p << paths; -} - - -/************************************************ - - ************************************************/ -bool translate(const QString &name, const QString &owner) -{ - const QString locale = QLocale::system().name(); - QTranslator *appTranslator = new QTranslator(qApp); - - QStringList *paths = getSearchPaths(); - for(const QString &path : qAsConst(*paths)) - { - QStringList subPaths; - - if (!owner.isEmpty()) - { - subPaths << path + QL1C('/') + owner + QL1C('/') + name; - } - else - { - subPaths << path + QL1C('/') + name; - subPaths << path; - } - - for(const QString &p : qAsConst(subPaths)) - { - if (appTranslator->load(name + QL1C('_') + locale, p)) - { - QCoreApplication::installTranslator(appTranslator); - return true; - } - else if (locale == QLatin1String("C") || - locale.startsWith(QLatin1String("en"))) - { - // English is the default. Even if there isn't an translation - // file, we return true. It's translated anyway. - delete appTranslator; - return true; - } - } - } - - // If we got here, no translation was loaded. appTranslator has no use. - delete appTranslator; - return false; -} - - -/************************************************ - - ************************************************/ -bool Translator::translateApplication(const QString &applicationName) -{ - const QString locale = QLocale::system().name(); - QTranslator *qtTranslator = new QTranslator(qApp); - - if (qtTranslator->load(QL1S("qt_") + locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) - { - qApp->installTranslator(qtTranslator); - } - else - { - delete qtTranslator; - } - - if (!applicationName.isEmpty()) - return translate(applicationName); - else - return translate(QFileInfo(QCoreApplication::applicationFilePath()).baseName()); -} - - -/************************************************ - - ************************************************/ -bool Translator::translateLibrary(const QString &libraryName) -{ - static QSet loadedLibs; - - if (loadedLibs.contains(libraryName)) - return true; - - loadedLibs.insert(libraryName); - - return translate(libraryName); -} - -bool Translator::translatePlugin(const QString &pluginName, const QString& type) -{ - static QSet loadedPlugins; - - const QString fullName = type % QL1C('/') % pluginName; - if (loadedPlugins.contains(fullName)) - return true; - - loadedPlugins.insert(pluginName); - return translate(pluginName, type); -} - -static void loadSelfTranslation() -{ - Translator::translateLibrary(QLatin1String("liblxqt")); -} - -Q_COREAPP_STARTUP_FUNCTION(loadSelfTranslation) diff --git a/LibLXQT/lxqttranslator.h b/LibLXQT/lxqttranslator.h deleted file mode 100644 index 3d4605eaaa..0000000000 --- a/LibLXQT/lxqttranslator.h +++ /dev/null @@ -1,72 +0,0 @@ -/* BEGIN_COMMON_COPYRIGHT_HEADER - * (c)LGPL2+ - * - * LXQt - a lightweight, Qt based, desktop toolset - * https://lxqt.org - * - * Copyright: 2013 LXQt team - * Authors: - * Alexander Sokoloff - Luís Pereira - * - * This program or library is free software; you can redistribute it - * and/or modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * END_COMMON_COPYRIGHT_HEADER */ - -#ifndef LXQTTRANSLATOR_H -#define LXQTTRANSLATOR_H - -#include -#include "lxqtglobals.h" - -namespace LXQt -{ -/** - The Translator class provides internationalization support for application and librarioes. - **/ -class LXQT_API Translator -{ -public: - /** - Returns a list of paths that the application will search translations files. - **/ - static QStringList translationSearchPaths(); - - /** - Sets the list of directories to search translations. All existing paths - will be deleted and the path list will consist of the paths given in paths. - **/ - static void setTranslationSearchPaths(const QStringList &paths); - - /** - Loads translations for application. If applicationName is not specified, - then basename of QCoreApplication::applicationFilePath() is used. - Returns true if the translation is successfully loaded; otherwise returns false. - **/ - static bool translateApplication(const QString &applicationName = QString()); - - /** - Loads translations for application. If applicationName is not specified, - then basename of QCoreApplication::applicationFilePath() is used. - Returns true if the translation is successfully loaded; otherwise returns false. - **/ - static bool translateLibrary(const QString &libraryName = QString()); - - static bool translatePlugin(const QString &pluginName, const QString& type); -}; - -} // namespace LXQt -#endif // LXQTTRANSLATOR_H diff --git a/LibLXQT/polkit/org.lxqt.backlight.pkexec.policy.in b/LibLXQT/polkit/org.lxqt.backlight.pkexec.policy.in deleted file mode 100644 index bf07b6ca63..0000000000 --- a/LibLXQT/polkit/org.lxqt.backlight.pkexec.policy.in +++ /dev/null @@ -1,15 +0,0 @@ - - - - Authentication is required to Change Brightness - battery - - no - no - yes - - ${CMAKE_INSTALL_PREFIX}/bin/lxqt-backlight_backend - - diff --git a/LibLXQT/resources/power.conf b/LibLXQT/resources/power.conf deleted file mode 100644 index 17339aeb42..0000000000 --- a/LibLXQT/resources/power.conf +++ /dev/null @@ -1,3 +0,0 @@ -[General] -monitorOffCommand=xset dpms force off -showLeaveDialogCommand=lxqt-leave diff --git a/LibLXQT/translations/lxqt-powermanagement.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement.desktop.yaml deleted file mode 100644 index b00fa5668f..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Power Management" diff --git a/LibLXQT/translations/lxqt-powermanagement_bg.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_bg.desktop.yaml deleted file mode 100644 index d3a69db82c..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_bg.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Управление на захранването" diff --git a/LibLXQT/translations/lxqt-powermanagement_cs.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_cs.desktop.yaml deleted file mode 100644 index ed4fe946d2..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_cs.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Správa napájení" diff --git a/LibLXQT/translations/lxqt-powermanagement_da.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_da.desktop.yaml deleted file mode 100644 index 9dfdd262a6..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_da.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Strømstyring" diff --git a/LibLXQT/translations/lxqt-powermanagement_de.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_de.desktop.yaml deleted file mode 100644 index a8136e8d79..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_de.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "LXQt-Energieverwaltung" diff --git a/LibLXQT/translations/lxqt-powermanagement_el.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_el.desktop.yaml deleted file mode 100644 index 0e47a741cb..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_el.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Διαχείριση ενέργειας" diff --git a/LibLXQT/translations/lxqt-powermanagement_es.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_es.desktop.yaml deleted file mode 100644 index bd03a454d0..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_es.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Gestión de energía" diff --git a/LibLXQT/translations/lxqt-powermanagement_et.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_et.desktop.yaml deleted file mode 100644 index 5cf2dd28a3..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_et.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Toitehaldus" diff --git a/LibLXQT/translations/lxqt-powermanagement_fr.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_fr.desktop.yaml deleted file mode 100644 index 6bd6057b88..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_fr.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Gestion de l'énergie" diff --git a/LibLXQT/translations/lxqt-powermanagement_he.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_he.desktop.yaml deleted file mode 100644 index 951010d2e1..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_he.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "ניהול צריכת חשמל" diff --git a/LibLXQT/translations/lxqt-powermanagement_hr.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_hr.desktop.yaml deleted file mode 100644 index 800fb3b7ba..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_hr.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Upravljanje energijom" diff --git a/LibLXQT/translations/lxqt-powermanagement_hu.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_hu.desktop.yaml deleted file mode 100644 index 8426df0a17..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_hu.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Energiakezelés" diff --git a/LibLXQT/translations/lxqt-powermanagement_it.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_it.desktop.yaml deleted file mode 100644 index ef443fb61c..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_it.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Gestore energia" diff --git a/LibLXQT/translations/lxqt-powermanagement_ja.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_ja.desktop.yaml deleted file mode 100644 index 0e4beb5371..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_ja.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "電源管理" diff --git a/LibLXQT/translations/lxqt-powermanagement_ko.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_ko.desktop.yaml deleted file mode 100644 index bd6cda0a46..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_ko.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "전원 관리" diff --git a/LibLXQT/translations/lxqt-powermanagement_lt.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_lt.desktop.yaml deleted file mode 100644 index f0534779f4..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_lt.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Maitinimo valdymas" diff --git a/LibLXQT/translations/lxqt-powermanagement_nb_NO.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_nb_NO.desktop.yaml deleted file mode 100644 index 9dfdd262a6..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_nb_NO.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Strømstyring" diff --git a/LibLXQT/translations/lxqt-powermanagement_nl.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_nl.desktop.yaml deleted file mode 100644 index fbaa7d0b78..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_nl.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Energiebeheer" diff --git a/LibLXQT/translations/lxqt-powermanagement_pl.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_pl.desktop.yaml deleted file mode 100644 index 7d459cc8c5..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_pl.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Zarządzanie energią" diff --git a/LibLXQT/translations/lxqt-powermanagement_pt.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_pt.desktop.yaml deleted file mode 100644 index 9f642319b1..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_pt.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Gestor de energia do LXQt" diff --git a/LibLXQT/translations/lxqt-powermanagement_ru.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_ru.desktop.yaml deleted file mode 100644 index 51c1423adc..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_ru.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Управление энергопотреблением" diff --git a/LibLXQT/translations/lxqt-powermanagement_si.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_si.desktop.yaml deleted file mode 100644 index e24c9e48a4..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_si.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "" diff --git a/LibLXQT/translations/lxqt-powermanagement_sk.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_sk.desktop.yaml deleted file mode 100644 index 113325212e..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_sk.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Správa napájania" diff --git a/LibLXQT/translations/lxqt-powermanagement_tr.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_tr.desktop.yaml deleted file mode 100644 index 47c313fbcf..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_tr.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Güç Yönetimi" diff --git a/LibLXQT/translations/lxqt-powermanagement_uk.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_uk.desktop.yaml deleted file mode 100644 index dbad8a72cf..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_uk.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Менеджер живлення" diff --git a/LibLXQT/translations/lxqt-powermanagement_vi.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_vi.desktop.yaml deleted file mode 100644 index a716298794..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_vi.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "Quản lí Năng lượng" diff --git a/LibLXQT/translations/lxqt-powermanagement_zh_CN.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_zh_CN.desktop.yaml deleted file mode 100644 index 493f8c243d..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_zh_CN.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "电源管理" diff --git a/LibLXQT/translations/lxqt-powermanagement_zh_TW.desktop.yaml b/LibLXQT/translations/lxqt-powermanagement_zh_TW.desktop.yaml deleted file mode 100644 index 0e4beb5371..0000000000 --- a/LibLXQT/translations/lxqt-powermanagement_zh_TW.desktop.yaml +++ /dev/null @@ -1 +0,0 @@ -Desktop Entry/Name: "電源管理"