diff --git a/src/effects/CMakeLists.txt b/src/effects/CMakeLists.txt index 108153eee4..8960cdf004 100644 --- a/src/effects/CMakeLists.txt +++ b/src/effects/CMakeLists.txt @@ -3,6 +3,11 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kwin_effects\" -DEFFECT_BUILTINS) include_directories(${KWin_SOURCE_DIR}/src) # for xcbutils.h +function(kwin_add_effect_config name) + list(REMOVE_ITEM ARGV ${name}) + kcoreaddons_add_plugin(${name} INSTALL_NAMESPACE "kwin/effects/configs" SOURCES ${ARGV}) +endfunction() + if (CMAKE_CROSSCOMPILING) if (NOT KWIN_HOST_TOOLING) message(FATAL_ERROR "Please provide the path to a native build and pass -DKWIN_HOST_TOOLING=path") diff --git a/src/effects/blur/CMakeLists.txt b/src/effects/blur/CMakeLists.txt index 7c93c3b8f5..2b4e41a2e4 100644 --- a/src/effects/blur/CMakeLists.txt +++ b/src/effects/blur/CMakeLists.txt @@ -19,7 +19,7 @@ set(kwin_blur_config_SRCS blur_config.cpp) ki18n_wrap_ui(kwin_blur_config_SRCS blur_config.ui) kconfig_add_kcfg_files(kwin_blur_config_SRCS blurconfig.kcfgc) -add_library(kwin_blur_config MODULE ${kwin_blur_config_SRCS}) +kwin_add_effect_config(kwin_blur_config ${kwin_blur_config_SRCS}) target_link_libraries(kwin_blur_config KF5::ConfigWidgets @@ -27,12 +27,3 @@ target_link_libraries(kwin_blur_config Qt::DBus KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_blur_config blur_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_blur_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/blur/blur_config.cpp b/src/effects/blur/blur_config.cpp index ebb4584d62..bff3aedf30 100644 --- a/src/effects/blur/blur_config.cpp +++ b/src/effects/blur/blur_config.cpp @@ -13,9 +13,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(BlurEffectConfigFactory, - "blur_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::BlurEffectConfig) namespace KWin { diff --git a/src/effects/blur/blur_config.desktop b/src/effects/blur/blur_config.desktop deleted file mode 100644 index a1a3665572..0000000000 --- a/src/effects/blur/blur_config.desktop +++ /dev/null @@ -1,89 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_blur_config -X-KDE-ParentComponents=blur - -Name=Blur -Name[af]=Blur -Name[ar]=غشاوة -Name[az]=Yayğınlıq -Name[be]=Blur -Name[bg]=Замъгляване -Name[bn]=ব্লার -Name[bn_IN]=Blur (ব্লার) -Name[bs]=Zamućenje -Name[ca]=Difuminat -Name[ca@valencia]=Difuminat -Name[cs]=Rozostření -Name[csb]=Rozmazóné -Name[da]=Slør -Name[de]=Verwischen -Name[el]=Θόλωμα -Name[en_GB]=Blur -Name[eo]=Malklarigi -Name[es]=Desenfocar -Name[et]=Hägu -Name[eu]=Lausotu -Name[fa]=محو -Name[fi]=Sumennus -Name[fr]=Flou -Name[fy]=Ferfagje -Name[ga]=Blur -Name[gl]=Desenfocar -Name[gu]=ઝાંખું -Name[he]=טשטוש -Name[hi]=धुंधला करें -Name[hne]=धुंधला करव -Name[hr]=Mrlja -Name[hsb]=Młowojty -Name[hu]=Elmosódás -Name[ia]=Obscura (Blur) -Name[id]=Buram -Name[is]=Móða -Name[it]=Sfocatura -Name[ja]=ぼかし -Name[kk]=Бұлдыр -Name[km]=ព្រិល​ -Name[kn]=ಮಾಸಲುಗೊಳಿಸು (ಬ್ಲರ್) -Name[ko]=흐리게 -Name[ku]=Blur -Name[lt]=Suliejimas -Name[lv]=Aizmiglot -Name[mai]=धुंधला करू -Name[mk]=Заматување -Name[ml]=മങ്ങിയതാക്കുക -Name[mr]=पुसट -Name[nb]=Slør -Name[nds]=Verwischen -Name[ne]=धब्बा -Name[nl]=Vervagen -Name[nn]=Uklar -Name[pa]=ਧੁੰਦਲਾ -Name[pl]=Rozmycie -Name[pt]=BlueFish -Name[pt_BR]=Borrar -Name[ro]=Estompare -Name[ru]=Размытие -Name[se]=Seagas -Name[si]=අපැහැදිලි කිරීම -Name[sk]=Rozmazať -Name[sl]=Zabriši -Name[sr]=Замућење -Name[sr@ijekavian]=Замућење -Name[sr@ijekavianlatin]=Zamućenje -Name[sr@latin]=Zamućenje -Name[sv]=Oskärpa -Name[ta]=மங்கலாக -Name[te]=బ్లర్ -Name[th]=ทำให้ไม่ชัดเจน -Name[tr]=Bulanıklaştırma -Name[ug]=گۇڭگا -Name[uk]=Розмивання -Name[vi]=Mờ -Name[wa]=Flou -Name[x-test]=xxBlurxx -Name[zh_CN]=窗口背景虚化 -Name[zh_TW]=模糊 - diff --git a/src/effects/desktopgrid/CMakeLists.txt b/src/effects/desktopgrid/CMakeLists.txt index d31fa7d8e6..5890633872 100644 --- a/src/effects/desktopgrid/CMakeLists.txt +++ b/src/effects/desktopgrid/CMakeLists.txt @@ -19,7 +19,7 @@ set(kwin_desktopgrid_config_SRCS desktopgrid_config.cpp) ki18n_wrap_ui(kwin_desktopgrid_config_SRCS desktopgrid_config.ui) kconfig_add_kcfg_files(kwin_desktopgrid_config_SRCS desktopgridconfig.kcfgc) -add_library(kwin_desktopgrid_config MODULE ${kwin_desktopgrid_config_SRCS}) +kwin_add_effect_config(kwin_desktopgrid_config ${kwin_desktopgrid_config_SRCS}) target_link_libraries(kwin_desktopgrid_config KF5::Completion @@ -31,12 +31,3 @@ target_link_libraries(kwin_desktopgrid_config kwineffects KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_desktopgrid_config desktopgrid_config.desktop SERVICE_TYPES kcmodule.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_desktopgrid_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/desktopgrid/desktopgrid_config.cpp b/src/effects/desktopgrid/desktopgrid_config.cpp index a8e823786c..44edf7938e 100644 --- a/src/effects/desktopgrid/desktopgrid_config.cpp +++ b/src/effects/desktopgrid/desktopgrid_config.cpp @@ -25,9 +25,7 @@ #include -K_PLUGIN_FACTORY_WITH_JSON(DesktopGridEffectConfigFactory, - "desktopgrid_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::DesktopGridEffectConfig) namespace KWin { diff --git a/src/effects/desktopgrid/desktopgrid_config.desktop b/src/effects/desktopgrid/desktopgrid_config.desktop deleted file mode 100644 index eee097ef75..0000000000 --- a/src/effects/desktopgrid/desktopgrid_config.desktop +++ /dev/null @@ -1,85 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_desktopgrid_config -X-KDE-ParentComponents=desktopgrid - -Name=Desktop Grid -Name[af]=Werkskerm rooster -Name[ar]=شبكة سطح المكتب -Name[az]=Bütün İş Masaları -Name[be]=Сетка на працоўны стол -Name[be@latin]=Rabočaja sietka -Name[bg]=Мрежест работен плот -Name[bn]=ডেস্কটপ গ্রিড -Name[bs]=Mreža površi -Name[ca]=Quadrícula de l'escriptori -Name[ca@valencia]=Quadrícula de l'escriptori -Name[cs]=Mřížka plochy -Name[da]=Skrivebordsgitter -Name[de]=Arbeitsflächen-Umschalter (Raster) -Name[el]=Κάνναβος επιφάνειας εργασίας -Name[en_GB]=Desktop Grid -Name[eo]=Labortabla krado -Name[es]=Rejilla del escritorio -Name[et]=Töölauavõrgustik -Name[eu]=Mahaigain sareta -Name[fa]=توری رومیزی -Name[fi]=Työpöydän ruudukko -Name[fr]=Bureau en grille -Name[fy]=Buroblêd roaster -Name[ga]=Greille na nDeasc -Name[gl]=Grade do escritorio -Name[gu]=ડેસ્કટોપ જાળી -Name[he]=רשת שולחנות עבודה -Name[hi]=डेस्कटॉप ग्रिड -Name[hne]=डेस्कटाप ग्रिड -Name[hr]=Mreža radne površine -Name[hu]=Asztalrács -Name[ia]=Grillia de scriptorio -Name[id]=Kisi Desktop -Name[is]=Skjáborðsmöskvi -Name[it]=Griglia dei Desktop -Name[ja]=デスクトップグリッド -Name[kk]=Үстел торы -Name[km]=ក្រឡា​ចត្រង្គ​ផ្ទៃ​តុ​ -Name[kn]=ಗಣಕತೆರೆ ಚೌಕಳಿ -Name[ko]=바탕 화면 모눈 -Name[lt]=Darbalaukio tinklelis -Name[lv]=Darbvirsmas režģis -Name[mai]=डेस्कटाप ग्रिड -Name[mk]=Мрежа на раб. површина -Name[ml]=പണിയറക്കള്ളികള്‍ -Name[mr]=डेस्कटॉप जाळे -Name[nb]=Skrivebordsrutenett -Name[nds]=Schriefdisch-Gadder -Name[ne]=डेस्कटप ग्रिड -Name[nl]=Bureaubladraster -Name[nn]=Skrivebordsoversikt -Name[pa]=ਡੈਸਕਟਾਪ ਗਰਿੱਡ -Name[pl]=Siatka pulpitu -Name[pt]=Grelha de Ecrãs -Name[pt_BR]=Grade de áreas de trabalho -Name[ro]=Grilă birou -Name[ru]=Все рабочие столы -Name[se]=Čállinbeavderuvttodat -Name[si]=වැඩතල ජාලය -Name[sk]=Plochy v mriežke -Name[sl]=Mreža namizij -Name[sr]=Мрежа површи -Name[sr@ijekavian]=Мрежа површи -Name[sr@ijekavianlatin]=Mreža površi -Name[sr@latin]=Mreža površi -Name[sv]=Skrivbordsrutnät -Name[ta]=மேல்மேசை கிரிட் -Name[te]=డెస్‍క్ టాప్ గ్రిడ్ -Name[th]=พื้นที่ทำงานเป็นตาราง -Name[tr]=Masaüstü Izgarası -Name[ug]=ئۈستەلئۈستى سېتكىسى -Name[uk]=Таблиця стільниць -Name[vi]=Lưới bàn làm việc -Name[wa]=Glindisse do scribanne -Name[x-test]=xxDesktop Gridxx -Name[zh_CN]=虚拟桌面平铺网格 -Name[zh_TW]=桌面格 diff --git a/src/effects/diminactive/CMakeLists.txt b/src/effects/diminactive/CMakeLists.txt index 4411a76fa2..bd265103c7 100644 --- a/src/effects/diminactive/CMakeLists.txt +++ b/src/effects/diminactive/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_diminactive_config_SRCS diminactive_config.cpp) ki18n_wrap_ui(kwin_diminactive_config_SRCS diminactive_config.ui) kconfig_add_kcfg_files(kwin_diminactive_config_SRCS diminactiveconfig.kcfgc) -add_library(kwin_diminactive_config MODULE ${kwin_diminactive_config_SRCS}) +kwin_add_effect_config(kwin_diminactive_config ${kwin_diminactive_config_SRCS}) target_link_libraries(kwin_diminactive_config KF5::ConfigWidgets @@ -26,12 +26,3 @@ target_link_libraries(kwin_diminactive_config Qt::DBus KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_diminactive_config diminactive_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_diminactive_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/diminactive/diminactive_config.cpp b/src/effects/diminactive/diminactive_config.cpp index 979cbcbbb5..45dbb0e82c 100644 --- a/src/effects/diminactive/diminactive_config.cpp +++ b/src/effects/diminactive/diminactive_config.cpp @@ -19,9 +19,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(DimInactiveEffectConfigFactory, - "diminactive_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::DimInactiveEffectConfig) namespace KWin { diff --git a/src/effects/diminactive/diminactive_config.desktop b/src/effects/diminactive/diminactive_config.desktop deleted file mode 100644 index d435f15ec4..0000000000 --- a/src/effects/diminactive/diminactive_config.desktop +++ /dev/null @@ -1,81 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_diminactive_config -X-KDE-ParentComponents=diminactive - -Name=Dim Inactive -Name[af]=Verdof wanneer onaktief -Name[ar]=تعتيم الخامل -Name[az]=Qeyri-aktiv pəncərələrin tutqunlaşması -Name[bg]=Затъмняване на неактивния -Name[bs]=Prigušeni neaktivni -Name[ca]=Enfosqueix les inactives -Name[ca@valencia]=Enfosqueix les inactives -Name[cs]=Ztmavit neaktivní -Name[da]=Gør inaktiv mat -Name[de]=Inaktive abdunkeln -Name[el]=Σκίαση ανενεργού -Name[en_GB]=Dim Inactive -Name[eo]=Malheligi neaktivajn -Name[es]=Oscurecer inactiva -Name[et]=Tuhm mitteaktiivne -Name[eu]=Ilundu inaktiboak -Name[fi]=Passiivisen himmennys -Name[fr]=Estompe les inactifs -Name[fy]=Net aktive dimme -Name[ga]=Dorchaigh Fuinneoga Neamhghníomhacha -Name[gl]=Escurecer as inactivas -Name[gu]=અસક્રિય ઝાંખી -Name[he]=עמעום חלונות לא פעילים -Name[hi]=असक्रिय मंद करें -Name[hne]=असक्रिय मंद करव -Name[hr]=Priguši neaktivno -Name[hu]=Inaktív ablakok kiszürkítése -Name[ia]=Dim Inactive -Name[id]=Dim Inactive -Name[is]=Dimma óvirka -Name[it]=Scurisci le inattive -Name[ja]=非アクティブを暗く -Name[kk]=Белсенді еместі күңгірттеу -Name[km]=បន្ថយ​ពន្លឺ​នៅពេល​អសកម្ម -Name[kn]=ನಿಷ್ಕ್ರಿಯವಾದದ್ದನ್ನು ಮಂಕಾಗಿಸು -Name[ko]=비활성 창 어둡게 -Name[lt]=Pasyviųjų pritemdymas -Name[lv]=Tumšināt neaktīvos -Name[mai]=असक्रिय मंद करू -Name[mk]=Затемни неактивни -Name[ml]=നിര്‍ജ്ജീവമായവ മറയ്ക്കുക -Name[mr]=निष्क्रिय गडद करा -Name[nb]=Mørklegg inaktive -Name[nds]=Nich aktive bedüüstern -Name[ne]=मलिन असक्रियता -Name[nl]=Inactief dimmen -Name[nn]=Mørklegg inaktive vindauge -Name[pa]=Dim ਨਾ-ਸਰਗਰਮ -Name[pl]=Przyciemnienie nieaktywnych -Name[pt]=Escurecer as Inactivas -Name[pt_BR]=Escurecer inativas -Name[ro]=Împăienjenire inactive -Name[ru]=Затемнение неактивных окон -Name[se]=Sevnjodahte ii-aktiivalaš lasiid -Name[si]=අක්‍රීය අඳුරු කරන්න -Name[sk]=Stmaviť neaktívne -Name[sl]=Potemni nedejavno -Name[sr]=Пригушени неактивни -Name[sr@ijekavian]=Пригушени неактивни -Name[sr@ijekavianlatin]=Prigušeni neaktivni -Name[sr@latin]=Prigušeni neaktivni -Name[sv]=Dämpa inaktiva -Name[ta]=Dim Inactive -Name[te]=Dim క్రియాహీనం -Name[th]=ลดความสว่างตัวที่ไม่ได้ใช้ -Name[tr]=Pasifleri Koyulaştır -Name[ug]=تۇتۇق ئاكتىپسىز -Name[uk]=Затемнення неактивних -Name[vi]=Làm tối bất hoạt -Name[wa]=Fé pus noer l' essocté -Name[x-test]=xxDim Inactivexx -Name[zh_CN]=非活动窗口变暗 -Name[zh_TW]=Dim Inactive diff --git a/src/effects/glide/CMakeLists.txt b/src/effects/glide/CMakeLists.txt index 2636591b7b..89974c834d 100644 --- a/src/effects/glide/CMakeLists.txt +++ b/src/effects/glide/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_glide_config_SRCS glide_config.cpp) ki18n_wrap_ui(kwin_glide_config_SRCS glide_config.ui) kconfig_add_kcfg_files(kwin_glide_config_SRCS glideconfig.kcfgc) -add_library(kwin_glide_config MODULE ${kwin_glide_config_SRCS}) +kwin_add_effect_config(kwin_glide_config ${kwin_glide_config_SRCS}) target_link_libraries(kwin_glide_config KF5::ConfigWidgets @@ -26,13 +26,3 @@ target_link_libraries(kwin_glide_config Qt::DBus KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_glide_config glide_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_glide_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) - diff --git a/src/effects/glide/glide_config.cpp b/src/effects/glide/glide_config.cpp index 7b54cee3b3..07f8d869fa 100644 --- a/src/effects/glide/glide_config.cpp +++ b/src/effects/glide/glide_config.cpp @@ -14,9 +14,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(GlideEffectConfigFactory, - "glide_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::GlideEffectConfig) namespace KWin { diff --git a/src/effects/glide/glide_config.desktop b/src/effects/glide/glide_config.desktop deleted file mode 100644 index 381d671af5..0000000000 --- a/src/effects/glide/glide_config.desktop +++ /dev/null @@ -1,69 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_glide_config -X-KDE-ParentComponents=glide - -Name=Glide -Name[ar]=الطيران -Name[az]=Sürüşmə -Name[bg]=Приплъзване -Name[bs]=Uletanje -Name[ca]=Lliscament -Name[ca@valencia]=Lliscament -Name[cs]=Klouzání -Name[da]=Svæv -Name[de]=Gleiten -Name[el]=Ολίσθηση -Name[en_GB]=Glide -Name[es]=Glide -Name[et]=Liuglemine -Name[eu]=Irristatzea -Name[fi]=Ikkunaliuku -Name[fr]=Glisser -Name[ga]=Sleamhnaigh -Name[gl]=Deslizamento -Name[he]=גלישה -Name[hi]=ग्लाइड -Name[hr]=Klizanje -Name[hu]=Siklás -Name[ia]=Glissa -Name[id]=Luncuran -Name[is]=Svífa -Name[it]=Plana -Name[ja]=グライド -Name[kk]=Сырғанау -Name[km]=សំកាំង -Name[kn]=ಜಾರು -Name[ko]=글라이드 -Name[lt]=Sklandymas -Name[lv]=Slīdēt -Name[mr]=घसरणे -Name[nb]=Skyv -Name[nds]=Glieden -Name[nl]=Schuiven -Name[nn]=Skliding -Name[pa]=ਗਲਾਈਡ -Name[pl]=Obracanie na zawiasie -Name[pt]=Deslizar -Name[pt_BR]=Deslizar -Name[ro]=Scurgere -Name[ru]=Скольжение -Name[si]=ලිස්සන්න -Name[sk]=Kĺzať -Name[sl]=Drsenje -Name[sr]=Улетање -Name[sr@ijekavian]=Улетање -Name[sr@ijekavianlatin]=Uletanje -Name[sr@latin]=Uletanje -Name[sv]=Glid -Name[th]=ร่อนหน้าต่าง -Name[tr]=Kaydır -Name[ug]=سىيرىل -Name[uk]=Плин -Name[vi]=Lướt -Name[wa]=Ridaedje -Name[x-test]=xxGlidexx -Name[zh_CN]=滑翔动效 -Name[zh_TW]=滑動 diff --git a/src/effects/invert/CMakeLists.txt b/src/effects/invert/CMakeLists.txt index a2992adc50..25a56e8753 100644 --- a/src/effects/invert/CMakeLists.txt +++ b/src/effects/invert/CMakeLists.txt @@ -12,7 +12,7 @@ kwin4_add_effect_module(kwin4_effect_invert ${invert_SOURCES}) # Config set(kwin_invert_config_SRCS invert_config.cpp) -add_library(kwin_invert_config MODULE ${kwin_invert_config_SRCS}) +kwin_add_effect_config(kwin_invert_config ${kwin_invert_config_SRCS}) target_link_libraries(kwin_invert_config KF5::ConfigWidgets @@ -21,12 +21,3 @@ target_link_libraries(kwin_invert_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_invert_config invert_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_invert_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/invert/invert_config.cpp b/src/effects/invert/invert_config.cpp index 334721ffad..8076e4772e 100644 --- a/src/effects/invert/invert_config.cpp +++ b/src/effects/invert/invert_config.cpp @@ -21,9 +21,7 @@ #include -K_PLUGIN_FACTORY_WITH_JSON(InvertEffectConfigFactory, - "invert_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::InvertEffectConfig) namespace KWin { diff --git a/src/effects/invert/invert_config.desktop b/src/effects/invert/invert_config.desktop deleted file mode 100644 index 916a84162a..0000000000 --- a/src/effects/invert/invert_config.desktop +++ /dev/null @@ -1,90 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_invert_config -X-KDE-ParentComponents=invert - -Name=Invert -Name[af]=Keer om -Name[ar]=اعكس -Name[az]=Neqativ -Name[be]=Інвертаваць -Name[be@latin]=Invercyja -Name[bg]=Обръщане на цвета -Name[bs]=Izvrtanje -Name[ca]=Inverteix -Name[ca@valencia]=Inverteix -Name[cs]=Invertovat -Name[csb]=Inwertëje -Name[da]=Invertér -Name[de]=Invertieren -Name[el]=Αντιστροφή -Name[en_GB]=Invert -Name[eo]=Inversigi -Name[es]=Invertir -Name[et]=Teistpidi -Name[eu]=Alderantzikatu -Name[fa]=وارونه -Name[fi]=Käänteiset värit -Name[fr]=Inverse -Name[fy]=Omdraaie -Name[ga]=Invert -Name[gl]=Inverter -Name[gu]=ઉલ્ટું -Name[he]=היפוך צבעים -Name[hi]=उलटें -Name[hne]=उलटव -Name[hr]=Izokretanje -Name[hu]=Invertálás -Name[ia]=Inverte -Name[id]=Kebalikan -Name[is]=Umhverfa -Name[it]=Inverti -Name[ja]=色調反転 -Name[kk]=Терістеу -Name[km]=ដាក់​បញ្ច្រាស -Name[kn]=ವಿಲೋಮಗೊಳಿಸು (ಇನ್ವರ್ಟ್) -Name[ko]=반전 -Name[ku]=Vajî -Name[lt]=Invertavimas -Name[lv]=Invertēt -Name[mai]=उनटू -Name[mk]=Инвертирање -Name[ml]=വര്‍ണ്ണങ്ങളെ തലതിരിക്കുക -Name[mr]=उलट -Name[nb]=Snu om -Name[nds]=Ümdreihen -Name[ne]=उल्टाउनुहोस् -Name[nl]=Omkeren -Name[nn]=Snu fargane -Name[oc]=Enversar -Name[pa]=ਉਲਟ -Name[pl]=Odwróć -Name[pt]=Inverter -Name[pt_BR]=Inverter -Name[ro]=Inversare -Name[ru]=Инверсия -Name[se]=Jorgalahte -Name[si]=යටිකුරු කිරීම -Name[sk]=Invertovať -Name[sl]=Obrni -Name[sr]=Извртање -Name[sr@ijekavian]=Извртање -Name[sr@ijekavianlatin]=Izvrtanje -Name[sr@latin]=Izvrtanje -Name[sv]=Invertera -Name[ta]=திருப்பு -Name[te]=ఇన్వర్‍ట్ -Name[th]=กลับค่าสี -Name[tr]=Negatifleştir -Name[ug]=ئەكسى رەڭگە ئالماشتۇر -Name[uk]=Інверсія -Name[uz]=Teskari -Name[uz@cyrillic]=Тескари -Name[vi]=Đảo -Name[wa]=Å rvier -Name[x-test]=xxInvertxx -Name[zh_CN]=颜色反相 -Name[zh_TW]=反轉 - diff --git a/src/effects/lookingglass/CMakeLists.txt b/src/effects/lookingglass/CMakeLists.txt index 035b310309..47d9d9ae47 100644 --- a/src/effects/lookingglass/CMakeLists.txt +++ b/src/effects/lookingglass/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_lookingglass_config_SRCS lookingglass_config.cpp) ki18n_wrap_ui(kwin_lookingglass_config_SRCS lookingglass_config.ui) kconfig_add_kcfg_files(kwin_lookingglass_config_SRCS lookingglassconfig.kcfgc) -add_library(kwin_lookingglass_config MODULE ${kwin_lookingglass_config_SRCS}) +kwin_add_effect_config(kwin_lookingglass_config ${kwin_lookingglass_config_SRCS}) target_link_libraries(kwin_lookingglass_config KF5::ConfigWidgets @@ -27,12 +27,3 @@ target_link_libraries(kwin_lookingglass_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_lookingglass_config lookingglass_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_lookingglass_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/lookingglass/lookingglass_config.cpp b/src/effects/lookingglass/lookingglass_config.cpp index ae8df244eb..278090a1c0 100644 --- a/src/effects/lookingglass/lookingglass_config.cpp +++ b/src/effects/lookingglass/lookingglass_config.cpp @@ -27,9 +27,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(LookingGlassEffectConfigFactory, - "lookingglass_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::LookingGlassEffectConfig) namespace KWin { diff --git a/src/effects/lookingglass/lookingglass_config.desktop b/src/effects/lookingglass/lookingglass_config.desktop deleted file mode 100644 index 601c460ad6..0000000000 --- a/src/effects/lookingglass/lookingglass_config.desktop +++ /dev/null @@ -1,83 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_lookingglass_config -X-KDE-ParentComponents=lookingglass - -Name=Looking Glass -Name[af]=Vergrootglas -Name[ar]=عدسة عين السمكة -Name[az]=Linza -Name[be@latin]=Looking Glass -Name[bg]=Лупа -Name[bs]=Lupa -Name[ca]=Aspecte de vidre -Name[ca@valencia]=Aspecte de vidre -Name[cs]=Lupa -Name[csb]=Lupa -Name[da]=Kikkert -Name[de]=Bildschirmlupe -Name[el]=Μεγεθυντικός φακός -Name[en_GB]=Looking Glass -Name[eo]=Looking Glass -Name[es]=Espejo -Name[et]=Suurendusklaas -Name[eu]=Pantaila-lupa -Name[fi]=Suurennuslasi -Name[fr]=Loupe -Name[fy]=Looking Glass -Name[ga]=Looking Glass -Name[gl]=Espello -Name[gu]=જોવાનો કાચ -Name[he]=משקף -Name[hi]=लुकिंग ग्लास -Name[hne]=लुकिंग ग्लास -Name[hr]=Povećalo -Name[hu]=Nagyító -Name[ia]=Looking Glass -Name[id]=Kaca Pembesar -Name[is]=Spegilgler -Name[it]=Specchio -Name[ja]=拡大鏡 -Name[kk]=Лупа -Name[km]=កញ្ចក់​មើល -Name[kn]=ಲುಕಿಂಗ್ ಗ್ಲಾಸ್ -Name[ko]=들여다보는 돋보기 -Name[lt]=Veidrodis -Name[lv]=Skatāmais stikls -Name[mai]=लुकिंग ग्लास -Name[mk]=Лупа -Name[ml]=മായകണ്ണാടി. -Name[mr]=भिंग दृश्य -Name[nb]=Looking Glass -Name[nds]=Kiekglas -Name[ne]=हेर्ने ऐना -Name[nl]=Vergrootglas -Name[nn]=Forstørringsglas -Name[pa]=ਸ਼ੀਸ਼ੇ ਵਰਗਾ -Name[pl]=Lupa -Name[pt]=Aparência de Vidro -Name[pt_BR]=Espelho -Name[ro]=Lentilă -Name[ru]=Линза -Name[se]=Stuoridanláse -Name[si]=වීදුරු ලෙස පෙනෙන -Name[sk]=Šošovka -Name[sl]=Povečevalno steklo -Name[sr]=Лупа -Name[sr@ijekavian]=Лупа -Name[sr@ijekavianlatin]=Lupa -Name[sr@latin]=Lupa -Name[sv]=Förstoringsglas -Name[ta]=Looking Glass -Name[te]=లుకింగ్ గ్లాస్ -Name[th]=เลนส์ตาปลา -Name[tr]=Büyüteç -Name[ug]=كۆزىتىش ئەينەك -Name[uk]=Збільшувальне скло -Name[vi]=Kính lúp -Name[wa]=Berikes -Name[x-test]=xxLooking Glassxx -Name[zh_CN]=放大镜 (鱼眼) -Name[zh_TW]=鏡射 diff --git a/src/effects/magiclamp/CMakeLists.txt b/src/effects/magiclamp/CMakeLists.txt index 03c4e3f2b5..1d9686f21d 100644 --- a/src/effects/magiclamp/CMakeLists.txt +++ b/src/effects/magiclamp/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_magiclamp_config_SRCS magiclamp_config.cpp) ki18n_wrap_ui(kwin_magiclamp_config_SRCS magiclamp_config.ui) kconfig_add_kcfg_files(kwin_magiclamp_config_SRCS magiclampconfig.kcfgc) -add_library(kwin_magiclamp_config MODULE ${kwin_magiclamp_config_SRCS}) +kwin_add_effect_config(kwin_magiclamp_config ${kwin_magiclamp_config_SRCS}) target_link_libraries(kwin_magiclamp_config KF5::ConfigWidgets @@ -26,12 +26,3 @@ target_link_libraries(kwin_magiclamp_config Qt::DBus KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_magiclamp_config magiclamp_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_magiclamp_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/magiclamp/magiclamp_config.cpp b/src/effects/magiclamp/magiclamp_config.cpp index 834ec79bc6..de5f6a6de6 100644 --- a/src/effects/magiclamp/magiclamp_config.cpp +++ b/src/effects/magiclamp/magiclamp_config.cpp @@ -19,9 +19,7 @@ #include -K_PLUGIN_FACTORY_WITH_JSON(MagicLampEffectConfigFactory, - "magiclamp_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::MagicLampEffectConfig) namespace KWin { diff --git a/src/effects/magiclamp/magiclamp_config.desktop b/src/effects/magiclamp/magiclamp_config.desktop deleted file mode 100644 index 203302e8a9..0000000000 --- a/src/effects/magiclamp/magiclamp_config.desktop +++ /dev/null @@ -1,80 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_magiclamp_config -X-KDE-ParentComponents=magiclamp - -Name=Magic Lamp -Name[ar]=المصباح السحري -Name[ast]=Llámpara máxica -Name[az]=Sehirli Lampa -Name[be@latin]=Mahičnaja lampa -Name[bg]=Вълшебна лампа -Name[bs]=Magična lampa -Name[ca]=Làmpada màgica -Name[ca@valencia]=Làmpada màgica -Name[cs]=Magická lampa -Name[da]=Magisk lampe -Name[de]=Wunderlampe -Name[el]=Μαγικό λυχνάρι -Name[en_GB]=Magic Lamp -Name[eo]=Magia Lampo -Name[es]=Lámpara mágica -Name[et]=Imelamp -Name[eu]=Lanpara magikoa -Name[fi]=Taikalamppu -Name[fr]=Lampe Magique -Name[fy]=Magyske lamp -Name[ga]=Lampa Draíochtach -Name[gl]=Lámpada máxica -Name[gu]=જાદુઇ દિવો -Name[he]=מנורת קסמים -Name[hi]=जादुई बल्ब -Name[hne]=मैजिक लेम्प -Name[hr]=Čarobna svjetiljka -Name[hu]=Varázslámpa -Name[ia]=Lampa Magic -Name[id]=Lampu Ajaib -Name[is]=Töfralampi -Name[it]=Lampada magica -Name[ja]=魔法のランプ -Name[kk]=Сиқырлы шырақ -Name[km]=អំពូល​មន្តអាគមន៍ -Name[kn]=ಮಾಂತ್ರಿಕ ದೀಪ -Name[ko]=요술 램프 -Name[lt]=Magiška lempa -Name[lv]=Maģiskā lampa -Name[mai]=जादुइ चिराग -Name[mk]=Магична ламба -Name[ml]=മാന്ത്രിക വിളക്ക് -Name[mr]=जादुई दिवा -Name[nb]=Magic Lamp -Name[nds]=Töverlamp -Name[nl]=Magische lamp -Name[nn]=Magisk lampe -Name[pa]=ਮੈਜਿਕ ਲੈਂਪ -Name[pl]=Magiczna lampa -Name[pt]=Lâmpada Mágica -Name[pt_BR]=Lâmpada mágica -Name[ro]=Lampă fermecată -Name[ru]=Волшебная лампа -Name[si]=මැජික් ලාම්පුව -Name[sk]=Magická lampa -Name[sl]=Čarobna svetilka -Name[sr]=Магична лампа -Name[sr@ijekavian]=Магична лампа -Name[sr@ijekavianlatin]=Magična lampa -Name[sr@latin]=Magična lampa -Name[sv]=Magisk lanterna -Name[ta]=Magic Lamp -Name[te]=మాజిక్ లాంప్ -Name[th]=ตะเกียงวิเศษ -Name[tr]=Sihirli Lamba -Name[ug]=سېھىرلىك چىراغ -Name[uk]=Чарівна лампа -Name[vi]=Đèn thần -Name[wa]=Madjike lampe -Name[x-test]=xxMagic Lampxx -Name[zh_CN]=最小化过渡动画 (神灯) -Name[zh_TW]=魔法燈 diff --git a/src/effects/magnifier/CMakeLists.txt b/src/effects/magnifier/CMakeLists.txt index 945561ed92..9e28cf13b4 100644 --- a/src/effects/magnifier/CMakeLists.txt +++ b/src/effects/magnifier/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_magnifier_config_SRCS magnifier_config.cpp) ki18n_wrap_ui(kwin_magnifier_config_SRCS magnifier_config.ui) kconfig_add_kcfg_files(kwin_magnifier_config_SRCS magnifierconfig.kcfgc) -add_library(kwin_magnifier_config MODULE ${kwin_magnifier_config_SRCS}) +kwin_add_effect_config(kwin_magnifier_config ${kwin_magnifier_config_SRCS}) target_link_libraries(kwin_magnifier_config KF5::ConfigWidgets @@ -27,12 +27,3 @@ target_link_libraries(kwin_magnifier_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_magnifier_config magnifier_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_magnifier_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/magnifier/magnifier_config.cpp b/src/effects/magnifier/magnifier_config.cpp index e366efb6ff..fac4def0e7 100644 --- a/src/effects/magnifier/magnifier_config.cpp +++ b/src/effects/magnifier/magnifier_config.cpp @@ -26,9 +26,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(MagnifierEffectConfigFactory, - "magnifier_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::MagnifierEffectConfig) namespace KWin { diff --git a/src/effects/magnifier/magnifier_config.desktop b/src/effects/magnifier/magnifier_config.desktop deleted file mode 100644 index 6647c7640c..0000000000 --- a/src/effects/magnifier/magnifier_config.desktop +++ /dev/null @@ -1,90 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_magnifier_config -X-KDE-ParentComponents=magnifier - -Name=Magnifier -Name[af]=Vergroter -Name[ar]=المكبّر -Name[az]=Lupa -Name[be]=Павелічальная лупа -Name[be@latin]=Lupa -Name[bg]=Увеличител -Name[bn]=ম্যাগনিফায়ার -Name[bs]=Uveličavač -Name[ca]=Lupa -Name[ca@valencia]=Lupa -Name[cs]=Lupa -Name[csb]=Zwikszanié -Name[da]=Forstørrelsesglas -Name[de]=Lupe -Name[el]=Μεγεθυντής -Name[en_GB]=Magnifier -Name[eo]=Pligrandigilo -Name[es]=Lupa -Name[et]=Suurendaja -Name[eu]=Lupa -Name[fa]=ذره‌بین -Name[fi]=Suurennuslasi -Name[fr]=Loupe -Name[fy]=Fergrutter -Name[ga]=Formhéadaitheoir -Name[gl]=Lupa -Name[gu]=મોટું કરનાર -Name[he]=זכוכית מגדלת -Name[hi]=आतिशी शीशा -Name[hne]=आतिसी सीसा -Name[hr]=Povećalo -Name[hu]=Nagyító -Name[ia]=Aggranditor -Name[id]=Suryakanta -Name[is]=Stækkunargler -Name[it]=Lente d'ingrandimento -Name[ja]=虫めがね -Name[kk]=Ұлғайтқыш -Name[km]=X Magnifier -Name[kn]=ವರ್ಧಕ (ಮಸೂರ) -Name[ko]=돋보기 -Name[ku]=Mezinker -Name[lt]=Didinamasis stiklas -Name[lv]=Palielinātājs -Name[mai]=आवर्धक -Name[mk]=Лупа -Name[ml]=ഭൂതകണ്ണാടി -Name[mr]=वर्धक -Name[nb]=Lupe -Name[nds]=Kiekglas -Name[ne]=परिमार्जक -Name[nl]=Vergrootglas -Name[nn]=Forstørr skjermdel -Name[oc]=Lópia -Name[pa]=ਵੱਡਦਰਸ਼ੀ -Name[pl]=Powiększenie -Name[pt]=Lupa -Name[pt_BR]=Lente de aumento -Name[ro]=Lupă -Name[ru]=Лупа -Name[se]=Stuorideaddji -Name[si]=විශාලකය -Name[sk]=Lupa -Name[sl]=Povečevalnik -Name[sr]=Увеличавач -Name[sr@ijekavian]=Увеличавач -Name[sr@ijekavianlatin]=Uveličavač -Name[sr@latin]=Uveličavač -Name[sv]=Förstoringsglas -Name[ta]=பெரிதாக்கி -Name[te]=మాగ్నిఫైర్ -Name[th]=แว่นขยาย -Name[tr]=Büyüteç -Name[ug]=چوڭايتقۇچ -Name[uk]=Лупа -Name[uz]=Kattalashtiruvchi -Name[uz@cyrillic]=Катталаштирувчи -Name[vi]=Trình phóng đại -Name[wa]=Magnifieu -Name[x-test]=xxMagnifierxx -Name[zh_CN]=放大镜 (方形) -Name[zh_TW]=放大鏡 diff --git a/src/effects/mouseclick/CMakeLists.txt b/src/effects/mouseclick/CMakeLists.txt index 628e4aed63..736fc11a6a 100644 --- a/src/effects/mouseclick/CMakeLists.txt +++ b/src/effects/mouseclick/CMakeLists.txt @@ -19,7 +19,7 @@ set(kwin_mouseclick_config_SRCS mouseclick_config.cpp) ki18n_wrap_ui(kwin_mouseclick_config_SRCS mouseclick_config.ui) kconfig_add_kcfg_files(kwin_mouseclick_config_SRCS mouseclickconfig.kcfgc) -add_library(kwin_mouseclick_config MODULE ${kwin_mouseclick_config_SRCS}) +kwin_add_effect_config(kwin_mouseclick_config ${kwin_mouseclick_config_SRCS}) target_link_libraries(kwin_mouseclick_config KF5::ConfigWidgets @@ -28,12 +28,3 @@ target_link_libraries(kwin_mouseclick_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_mouseclick_config mouseclick_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_mouseclick_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/mouseclick/mouseclick_config.cpp b/src/effects/mouseclick/mouseclick_config.cpp index 40a7ba8934..de34182947 100644 --- a/src/effects/mouseclick/mouseclick_config.cpp +++ b/src/effects/mouseclick/mouseclick_config.cpp @@ -23,9 +23,7 @@ #include -K_PLUGIN_FACTORY_WITH_JSON(MouseClickEffectConfigFactory, - "mouseclick_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::MouseClickEffectConfig) namespace KWin { diff --git a/src/effects/mouseclick/mouseclick_config.desktop b/src/effects/mouseclick/mouseclick_config.desktop deleted file mode 100644 index 8538ee4400..0000000000 --- a/src/effects/mouseclick/mouseclick_config.desktop +++ /dev/null @@ -1,59 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_mouseclick_config -X-KDE-ParentComponents=mouseclick - -Name=Mouse Click Animation -Name[ar]=حركة نقرة الفأرة -Name[ast]=Animación al calcar col mur -Name[az]=Siçan kliki animasiyası -Name[bs]=Animacija klika mišem -Name[ca]=Animació en fer clic amb el ratolí -Name[ca@valencia]=Animació en fer clic amb el ratolí -Name[cs]=Animace kliknutí myši -Name[da]=Animation af museklik -Name[de]=Animation für Mausklicks -Name[el]=Εφέ κίνησης με κλικ του ποντικιού -Name[en_GB]=Mouse Click Animation -Name[es]=Animación del clic de ratón -Name[et]=Hiireklõpsu animeerimine -Name[eu]=Sagu-klikaren animazioa -Name[fi]=Hiiren napsautuksen animointi -Name[fr]=Animation du clic de la souris -Name[gl]=Animación ao premer o rato -Name[he]=הנפשה של לחיצה עם העכבר -Name[hu]=Egérkattintás animáció -Name[ia]=Animation de click de mus -Name[id]=Animasi Klik Mouse -Name[is]=Hreyfingar við músarsmell -Name[it]=Animazione del clic del mouse -Name[ja]=マウスクリックアニメーション -Name[kk]=Тышқанды түрту анимациясы -Name[ko]=마우스 클릭 애니메이션 -Name[lt]=Pelės spustelėjimo animacija -Name[mr]=माऊस क्लिक ऍनीमेशन -Name[nb]=Animer ved museklikk -Name[nds]=Muusklick-Animeren -Name[nl]=Animatie van muisklik -Name[nn]=Museklikkanimasjon -Name[pa]=ਮਾਊਸ ਕਲਿੱਕ ਐਨੀਮੇਸ਼ਨ -Name[pl]=Animacja kliknięcia myszą -Name[pt]=Animação do Botão do Rato -Name[pt_BR]=Animação de clique do mouse -Name[ro]=Animație la clic de maus -Name[ru]=Анимация щелчка мышью -Name[sk]=Animácia kliknutia myšou -Name[sl]=Animacija klika z miško -Name[sr]=Анимација на клик мишем -Name[sr@ijekavian]=Анимација на клик мишем -Name[sr@ijekavianlatin]=Animacija na klik mišem -Name[sr@latin]=Animacija na klik mišem -Name[sv]=Animering av musklick -Name[tr]=Fare Tıklama Animasyonu -Name[uk]=Анімація за клацанням миші -Name[vi]=Hiệu ứng động khi bấm chuột -Name[x-test]=xxMouse Click Animationxx -Name[zh_CN]=鼠标点击动效 -Name[zh_TW]=滑鼠點擊動畫 diff --git a/src/effects/mousemark/CMakeLists.txt b/src/effects/mousemark/CMakeLists.txt index 479dc4ff02..dc422b860f 100644 --- a/src/effects/mousemark/CMakeLists.txt +++ b/src/effects/mousemark/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_mousemark_config_SRCS mousemark_config.cpp) ki18n_wrap_ui(kwin_mousemark_config_SRCS mousemark_config.ui) kconfig_add_kcfg_files(kwin_mousemark_config_SRCS mousemarkconfig.kcfgc) -add_library(kwin_mousemark_config MODULE ${kwin_mousemark_config_SRCS}) +kwin_add_effect_config(kwin_mousemark_config ${kwin_mousemark_config_SRCS}) target_link_libraries(kwin_mousemark_config KF5::ConfigWidgets @@ -28,12 +28,3 @@ target_link_libraries(kwin_mousemark_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_mousemark_config mousemark_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_mousemark_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/mousemark/mousemark_config.cpp b/src/effects/mousemark/mousemark_config.cpp index b7ab06f825..db9e49fd59 100644 --- a/src/effects/mousemark/mousemark_config.cpp +++ b/src/effects/mousemark/mousemark_config.cpp @@ -25,9 +25,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(MouseMarkEffectConfigFactory, - "mousemark_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::MouseMarkEffectConfig) namespace KWin { diff --git a/src/effects/mousemark/mousemark_config.desktop b/src/effects/mousemark/mousemark_config.desktop deleted file mode 100644 index afa1656f1c..0000000000 --- a/src/effects/mousemark/mousemark_config.desktop +++ /dev/null @@ -1,85 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_mousemark_config -X-KDE-ParentComponents=mousemark - -Name=Mouse Mark -Name[af]=Muismerk -Name[ar]=علامة الفأرة -Name[az]=Siçanla şəkil -Name[be]=Адметка мышы -Name[be@latin]=Malavańnie myššu -Name[bg]=Чертане с мишката -Name[bs]=Otisci miša -Name[ca]=Marca amb el ratolí -Name[ca@valencia]=Marca amb el ratolí -Name[cs]=Značkovač -Name[csb]=Merk mëszë -Name[da]=Muse-tusch -Name[de]=Mausspur -Name[el]=Σήμανση ποντικιού -Name[en_GB]=Mouse Mark -Name[eo]=Musmarko -Name[es]=Marcación con el ratón -Name[et]=Hiirejälg -Name[eu]=Sagu-marka -Name[fa]=نشان موشی -Name[fi]=Hiiren jäljet -Name[fr]=Tracé à la souris -Name[fy]=Mûs markearing -Name[ga]=Mouse Mark -Name[gl]=Marca do rato -Name[gu]=માઉસ નિશાની -Name[he]=סימון בעזרת העכבר -Name[hi]=माउस मार्क -Name[hne]=मुसुवा चिनहा -Name[hr]=Oznaka miša -Name[hu]=Egérnyom -Name[ia]=Marca de mus -Name[id]=Tandai Mouse -Name[is]=Músarspor -Name[it]=Pennarello -Name[ja]=マウスマーク -Name[kk]=Тышқан белгісі -Name[km]=សម្គាល់​កណ្តុរ​ -Name[kn]=ಮೂಷಕ (ಮೌಸ್) ಮುದ್ರೆ -Name[ko]=마우스 자취 -Name[lt]=Žymėjimas pele -Name[lv]=Peles zīmēšana -Name[mai]=माउस मार्क -Name[mk]=Цртање со глушец -Name[ml]=മൌസിന്റെ അടയാളം -Name[mr]=माऊस मार्क -Name[nb]=Musemerke -Name[nds]=Muus-Mark -Name[ne]=माउस मार्क -Name[nl]=Muismarkering -Name[nn]=Muselinjer -Name[pa]=ਮਾਊਸ ਨਿਸ਼ਾਨ -Name[pl]=Znacznik myszy -Name[pt]=Marcação com o Rato -Name[pt_BR]=Anotar com o mouse -Name[ro]=Urme de maus -Name[ru]=Рисование мышью -Name[se]=Sáhpánmearka -Name[si]=මවුස ලකුණ -Name[sk]=Stopa myši -Name[sl]=Risanje -Name[sr]=Отисци миша -Name[sr@ijekavian]=Отисци миша -Name[sr@ijekavianlatin]=Otisci miša -Name[sr@latin]=Otisci miša -Name[sv]=Markera med musen -Name[ta]=எலியச் சுட்டி -Name[te]=మౌస్ గుర్తు -Name[th]=วาดด้วยเมาส์ -Name[tr]=Fare İzi -Name[ug]=چاشقىنەك بەلگىسى -Name[uk]=Позначки мишкою -Name[vi]=Vết chuột -Name[wa]=Marke di sori -Name[x-test]=xxMouse Markxx -Name[zh_CN]=鼠标屏幕画线 -Name[zh_TW]=滑鼠標記 diff --git a/src/effects/overview/kcm/CMakeLists.txt b/src/effects/overview/kcm/CMakeLists.txt index 200baf3ff3..6b35c47b05 100644 --- a/src/effects/overview/kcm/CMakeLists.txt +++ b/src/effects/overview/kcm/CMakeLists.txt @@ -6,7 +6,7 @@ set(kwin_overview_config_SOURCES overvieweffectkcm.cpp) ki18n_wrap_ui(kwin_overview_config_SOURCES overvieweffectkcm.ui) kconfig_add_kcfg_files(kwin_overview_config_SOURCES ../overviewconfig.kcfgc) -add_library(kwin_overview_config MODULE ${kwin_overview_config_SOURCES}) +kwin_add_effect_config(kwin_overview_config ${kwin_overview_config_SOURCES}) target_link_libraries(kwin_overview_config KF5::Completion KF5::ConfigWidgets @@ -15,6 +15,3 @@ target_link_libraries(kwin_overview_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_overview_config overvieweffectkcm.desktop SERVICE_TYPES kcmodule.desktop) -install(TARGETS kwin_overview_config DESTINATION ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs) diff --git a/src/effects/overview/kcm/overvieweffectkcm.cpp b/src/effects/overview/kcm/overvieweffectkcm.cpp index c32f5f8a84..34fb8456f2 100644 --- a/src/effects/overview/kcm/overvieweffectkcm.cpp +++ b/src/effects/overview/kcm/overvieweffectkcm.cpp @@ -18,9 +18,7 @@ #include -K_PLUGIN_FACTORY_WITH_JSON(OverviewEffectConfigFactory, - "overvieweffectkcm.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::OverviewEffectConfig) namespace KWin { diff --git a/src/effects/overview/kcm/overvieweffectkcm.desktop b/src/effects/overview/kcm/overvieweffectkcm.desktop deleted file mode 100644 index c373e7c659..0000000000 --- a/src/effects/overview/kcm/overvieweffectkcm.desktop +++ /dev/null @@ -1,38 +0,0 @@ -# SPDX-FileCopyrightText: 2021 Vlad Zahorodnii -# -# SPDX-License-Identifier: CC-0 - -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_overview_config -X-KDE-ParentComponents=overview - -Name=overview -Name[ar]=نظرة عامة -Name[az]=ümumi baxış -Name[ca]=Vista general -Name[ca@valencia]=Vista general -Name[cs]=přehled -Name[en_GB]=overview -Name[es]=vista general -Name[eu]=Ikuspegi orokorra -Name[fi]=yleiskuva -Name[fr]=aperçu -Name[hu]=Áttekintés -Name[ia]=Vista de insimul -Name[it]=panoramica -Name[ko]=한눈에 보기 -Name[lt]=apžvalga -Name[nl]=overzicht -Name[pl]=przegląd -Name[pt]=introdução -Name[pt_BR]=visão geral -Name[sk]=Prehľad -Name[sl]=pregled -Name[sv]=översikt -Name[uk]=огляд -Name[vi]=tổng quan -Name[x-test]=xxoverviewxx -Name[zh_CN]=桌面总览图 diff --git a/src/effects/presentwindows/CMakeLists.txt b/src/effects/presentwindows/CMakeLists.txt index 86c9ef565c..2a68d5648c 100644 --- a/src/effects/presentwindows/CMakeLists.txt +++ b/src/effects/presentwindows/CMakeLists.txt @@ -20,7 +20,7 @@ set(kwin_presentwindows_config_SRCS presentwindows_config.cpp) ki18n_wrap_ui(kwin_presentwindows_config_SRCS presentwindows_config.ui) kconfig_add_kcfg_files(kwin_presentwindows_config_SRCS presentwindowsconfig.kcfgc) -add_library(kwin_presentwindows_config MODULE ${kwin_presentwindows_config_SRCS}) +kwin_add_effect_config(kwin_presentwindows_config ${kwin_presentwindows_config_SRCS}) target_link_libraries(kwin_presentwindows_config KF5::Completion @@ -30,12 +30,3 @@ target_link_libraries(kwin_presentwindows_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_presentwindows_config presentwindows_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_presentwindows_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/presentwindows/presentwindows_config.cpp b/src/effects/presentwindows/presentwindows_config.cpp index 3a7154da1d..7631b0a2a6 100644 --- a/src/effects/presentwindows/presentwindows_config.cpp +++ b/src/effects/presentwindows/presentwindows_config.cpp @@ -24,9 +24,7 @@ #include -K_PLUGIN_FACTORY_WITH_JSON(PresentWindowsEffectConfigFactory, - "presentwindows_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::PresentWindowsEffectConfig) namespace KWin { diff --git a/src/effects/presentwindows/presentwindows_config.desktop b/src/effects/presentwindows/presentwindows_config.desktop deleted file mode 100644 index 2482d8b378..0000000000 --- a/src/effects/presentwindows/presentwindows_config.desktop +++ /dev/null @@ -1,86 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_presentwindows_config -X-KDE-ParentComponents=presentwindows - -Name=Present Windows -Name[af]=Wys vensters -Name[ar]=النوافذ الحاضرة -Name[ast]=Presentación de ventanes -Name[az]=Bütün Pəncərələr -Name[be]=Існуючыя вокны -Name[be@latin]=Najaŭnyja vokny -Name[bg]=Представяне на прозорци -Name[bs]=Predstava prozora -Name[ca]=Presenta les finestres -Name[ca@valencia]=Presenta les finestres -Name[cs]=Prezentace oken -Name[csb]=Prezentëjë òkna -Name[da]=Præsentér vinduer -Name[de]=Fenster zeigen -Name[el]=Παρουσίαση παραθύρων -Name[en_GB]=Present Windows -Name[eo]=Prezenti fenestrojn -Name[es]=Presenta las ventanas -Name[et]=Olemasolevad aknad -Name[eu]=Aurkeztu leihoak -Name[fa]=پنجره‌های موجود -Name[fi]=Ikkunoiden esittäminen -Name[fr]=Présentation des fenêtres -Name[fy]=Hjoeddeiske finsters -Name[ga]=Fuinneoga Gníomhacha -Name[gl]=Dispor as xanelas -Name[gu]=હાજર રહેલ વિન્ડોસ -Name[he]=הצגת חלונות -Name[hi]=मौजूद विंडो -Name[hne]=मौजूद विंडो -Name[hr]=Prikaz prozora -Name[hu]=Ablakáttekintő -Name[ia]=Fenestras actual -Name[id]=Window Hadir -Name[is]=Núverandi gluggar -Name[it]=Presenta le finestre -Name[ja]=ウィンドウを並べて表示 -Name[kk]=Терезелерді көрсету -Name[km]=បង្ហាញ​បង្អួច​ -Name[kn]=ಪ್ರಸಕ್ತ ಕಿಟಕಿಗಳು -Name[ko]=창 진열하기 -Name[lt]=Langų pateikimas -Name[lv]=Parādīt logus -Name[mai]=मोजुद विंडो -Name[mk]=Презентација на прозорци -Name[ml]=നിലവിലുള്ള ജാലകങ്ങള്‍ -Name[mr]=वर्तमान चौकटी -Name[nb]=Vis vinduer -Name[nds]=Vörhannen Finstern -Name[ne]=हालको सञ्झ्याल -Name[nl]=Vensters presenteren -Name[nn]=Presenter vindauge -Name[pa]=ਮੌਜੂਦਾ ਵਿੰਡੋਜ਼ -Name[pl]=Prezentacja okien -Name[pt]=Apresentar as Janelas -Name[pt_BR]=Apresentar janelas -Name[ro]=Prezintă ferestrele -Name[ru]=Все окна -Name[se]=Presentere lásiid -Name[si]=පවතින කවුළුව -Name[sk]=Súčasné okná -Name[sl]=Predstavitev oken -Name[sr]=Представа прозора -Name[sr@ijekavian]=Представа прозора -Name[sr@ijekavianlatin]=Predstava prozora -Name[sr@latin]=Predstava prozora -Name[sv]=Befintliga fönster -Name[ta]=தற்போதைய சாளரம் -Name[te]=ప్రస్తుత విండోలు -Name[th]=แสดงหน้าต่างทั้งหมด -Name[tr]=Şimdiki Pencereler -Name[ug]=كۆزنەكلەرنى كۆرسەت -Name[uk]=Показ вікон -Name[vi]=Các cửa sổ hiện thời -Name[wa]=Prezinter finiesses -Name[x-test]=xxPresent Windowsxx -Name[zh_CN]=窗口平铺展示 -Name[zh_TW]=展示視窗 diff --git a/src/effects/resize/CMakeLists.txt b/src/effects/resize/CMakeLists.txt index 9f8d454cfc..b64c0da2ad 100644 --- a/src/effects/resize/CMakeLists.txt +++ b/src/effects/resize/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_resize_config_SRCS resize_config.cpp) ki18n_wrap_ui(kwin_resize_config_SRCS resize_config.ui) kconfig_add_kcfg_files(kwin_resize_config_SRCS resizeconfig.kcfgc) -add_library(kwin_resize_config MODULE ${kwin_resize_config_SRCS}) +kwin_add_effect_config(kwin_resize_config ${kwin_resize_config_SRCS}) target_link_libraries(kwin_resize_config KF5::ConfigWidgets @@ -26,12 +26,3 @@ target_link_libraries(kwin_resize_config Qt::DBus KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_resize_config resize_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_resize_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/resize/resize_config.cpp b/src/effects/resize/resize_config.cpp index dcfc6ea748..80340375c6 100644 --- a/src/effects/resize/resize_config.cpp +++ b/src/effects/resize/resize_config.cpp @@ -18,9 +18,7 @@ #include -K_PLUGIN_FACTORY_WITH_JSON(ResizeEffectConfigFactory, - "resize_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::ResizeEffectConfig) namespace KWin { diff --git a/src/effects/resize/resize_config.desktop b/src/effects/resize/resize_config.desktop deleted file mode 100644 index 99f120ce08..0000000000 --- a/src/effects/resize/resize_config.desktop +++ /dev/null @@ -1,77 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_resize_config -X-KDE-ParentComponents=resize - -Name=Resize Window -Name[ar]=غير حجم النافذة -Name[ast]=Redimensión de ventanes -Name[az]=Pəncərənin Ölçüsünü Dəyişmək -Name[bg]=Преоразмеряване на прозорци -Name[bs]=Preuveličanje prozora -Name[ca]=Redimensionament de les finestres -Name[ca@valencia]=Redimensionament de les finestres -Name[cs]=Změnit velikost okna -Name[csb]=Zmieni miarã òkna -Name[da]=Ændr størrelse på vindue -Name[de]=Fenstergröße ändern -Name[el]=Αλλαγή μεγέθους παραθύρου -Name[en_GB]=Resize Window -Name[eo]=Regrandigi fenestrojn -Name[es]=Redimensionar ventana -Name[et]=Akna suuruse muutmine -Name[eu]=Tamainaz aldatu leihoa -Name[fa]=تغییر اندازۀ پنجره -Name[fi]=Ikkunan koon muuttaminen -Name[fr]=Redimensionner la fenêtre -Name[fy]=Finstergrutte feroarje -Name[ga]=Athraigh Méid na Fuinneoige -Name[gl]=Cambiar o tamaño da xanela -Name[gu]=વિન્ડોનું માપ બદલો -Name[he]=שינוי גודל חלון -Name[hi]=विंडो आकार बदलें -Name[hr]=Promjena veličine prozora -Name[hu]=Ablak átméretezése -Name[ia]=Redimensiona fenestra -Name[id]=Ubah-ukuran Window -Name[is]=Breyta stærð glugga -Name[it]=Ridimensiona la finestra -Name[ja]=ウィンドウのリサイズ -Name[kk]=Терезе өлшемін өзгерту -Name[km]=ផ្លាស់ប្ដូរ​ទំហំ​បង្អួច -Name[kn]=ಕಿಟಕಿಯ ಗಾತ್ರ ಬದಲಿಸು -Name[ko]=창 크기 조정 -Name[lt]=Keisti lango dydį -Name[lv]=Mainīt loga izmēru -Name[mk]=Големина на прозорец -Name[ml]=ജാലകത്തിന്റെ വലിപ്പം മാറ്റുക -Name[mr]=चौकट आकार बदल -Name[nb]=Endre størrelse på vinduet -Name[nds]=Finstergrött ännern -Name[nl]=Afmeting venster aanpassen -Name[nn]=Skaler vindauge -Name[pa]=ਵਿੰਡੋ ਮੁੜ-ਆਕਾਰ -Name[pl]=Zmiana rozmiaru okien -Name[pt]=Dimensionar a Janela -Name[pt_BR]=Redimensionar janela -Name[ro]=Redimensionează fereastra -Name[ru]=Изменение размера окна -Name[si]=කවුළුව ප්‍රතිප්‍රමාණ කරන්න -Name[sk]=Zmeniť veľkosť okna -Name[sl]=Spreminjanje velikosti okna -Name[sr]=Преувеличање прозора -Name[sr@ijekavian]=Преувеличање прозора -Name[sr@ijekavianlatin]=Preuveličanje prozora -Name[sr@latin]=Preuveličanje prozora -Name[sv]=Ändra fönsterstorlek -Name[th]=ปรับขนาดหน้าต่าง -Name[tr]=Pencereyi Yeniden Boyutlandır -Name[ug]=كۆزنەك چوڭلۇقىنى ئۆزگەرت -Name[uk]=Зміна розмірів вікон -Name[vi]=Đổi cỡ cửa sổ -Name[wa]=Candjî l' grandeu del finiesse -Name[x-test]=xxResize Windowxx -Name[zh_CN]=静态窗口缩放 -Name[zh_TW]=重新調整視窗大小 diff --git a/src/effects/showfps/CMakeLists.txt b/src/effects/showfps/CMakeLists.txt index 2c3bdc12f7..f4a4f26ca1 100644 --- a/src/effects/showfps/CMakeLists.txt +++ b/src/effects/showfps/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_showfps_config_SRCS showfps_config.cpp) ki18n_wrap_ui(kwin_showfps_config_SRCS showfps_config.ui) kconfig_add_kcfg_files(kwin_showfps_config_SRCS showfpsconfig.kcfgc) -add_library(kwin_showfps_config MODULE ${kwin_showfps_config_SRCS}) +kwin_add_effect_config(kwin_showfps_config ${kwin_showfps_config_SRCS}) target_link_libraries(kwin_showfps_config KF5::Completion @@ -27,12 +27,3 @@ target_link_libraries(kwin_showfps_config Qt::DBus KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_showfps_config showfps_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_showfps_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/showfps/showfps_config.cpp b/src/effects/showfps/showfps_config.cpp index dcbce39521..fb0f7b96f3 100644 --- a/src/effects/showfps/showfps_config.cpp +++ b/src/effects/showfps/showfps_config.cpp @@ -18,9 +18,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(ShowFpsEffectConfigFactory, - "showfps_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::ShowFpsEffectConfig) namespace KWin { diff --git a/src/effects/showfps/showfps_config.desktop b/src/effects/showfps/showfps_config.desktop deleted file mode 100644 index d48dc79227..0000000000 --- a/src/effects/showfps/showfps_config.desktop +++ /dev/null @@ -1,86 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_showfps_config -X-KDE-ParentComponents=showfps - -Name=Show FPS -Name[af]=Wys FPS -Name[ar]=أظهر عدد الإطارات بالثانية -Name[az]=Saniyədəki kadrlar -Name[be@latin]=Vyjaŭleńnie „FPS” -Name[bg]=Показване на кад/сек -Name[bn_IN]=FPS প্রদর্শন করা হবে -Name[bs]=Kadrovi/sekundi -Name[ca]=Mostra els FPS -Name[ca@valencia]=Mostra els FPS -Name[cs]=Zobrazit FPS -Name[csb]=Wëskrzëni FPS -Name[da]=Vis FPS -Name[de]=Bilder pro Sekunde anzeigen -Name[el]=Εμφάνιση καρέ ανά δευτερόλεπτο -Name[en_GB]=Show FPS -Name[eo]=Montri FPS -Name[es]=Muestra FPS -Name[et]=FPS-i näitamine -Name[eu]=Erakutsi FPS -Name[fa]=نمایش FPS -Name[fi]=FPS-näyttö -Name[fr]=Afficher le nombre de trames par seconde -Name[fy]=FPS sjen litte -Name[ga]=Taispeáin FSS -Name[gl]=Mostrar os FPS -Name[gu]=FPS બતાવો -Name[he]=הצג מספר תמונות לשנייה -Name[hi]=एफ़पीएस दिखायें -Name[hne]=एफपीएस देखाव -Name[hr]=Prikaz FPS-a (broj okvira po sekundi) -Name[hu]=Képkockaszámláló -Name[ia]=Monstra FPS -Name[id]=Tampilkan FPS -Name[is]=Sýna FPS (rammar á sekúndu) -Name[it]=Mostra fotogrammi al secondo -Name[ja]=フレームレート (FPS) 表示 -Name[kk]=FPS-ты көрсету -Name[km]=បង្ហាញ FPS -Name[kn]=FPS ತೋರಿಸು -Name[ko]=FPS 표시 -Name[ku]=FPS'ê nîşan bide -Name[lt]=Rodyti kadr./sek. -Name[lv]=Rādīt kadrus/sek. -Name[mai]=एफपीएस देखाबू -Name[mk]=Прикажи рамки/сек -Name[ml]=എഫ്‌പിഎസ് കാണിക്കുക -Name[mr]=एफपीएस दर्शवा -Name[nb]=Vis FPS -Name[nds]=Bps wiesen -Name[ne]=एफपीएस देखाउनुहोस् -Name[nl]=FPS tonen -Name[nn]=Vis talet på bilete per sekund -Name[pa]=FPS ਵੇਖੋ -Name[pl]=Pokaż liczbę klatek na sekundę -Name[pt]=Mostrar as IPS -Name[pt_BR]=Mostrar FPS -Name[ro]=Arată CPS -Name[ru]=График производительности -Name[se]=Čájet rámmaid sekunddas -Name[si]=FPS පෙන්වන්න -Name[sk]=Zobraziť FPS -Name[sl]=Prikaži sličice na sekundo -Name[sr]=Кадрови/секунди -Name[sr@ijekavian]=Кадрови/секунди -Name[sr@ijekavianlatin]=Kadrovi/sekundi -Name[sr@latin]=Kadrovi/sekundi -Name[sv]=Visa ramar/s -Name[ta]=Show FPS -Name[te]=FPS ను చూపుము -Name[th]=แสดงอัตราเฟรมต่อวินาที -Name[tr]=FPS Göster -Name[ug]=FPS نى كۆرسەت -Name[uk]=Показ частоти кадрів -Name[vi]=Hiện FPS -Name[wa]=Mostrer FPS -Name[x-test]=xxShow FPSxx -Name[zh_CN]=显示 FPS -Name[zh_TW]=顯示 FPS 畫格數 diff --git a/src/effects/showpaint/CMakeLists.txt b/src/effects/showpaint/CMakeLists.txt index 353df1267f..789e2a05c0 100644 --- a/src/effects/showpaint/CMakeLists.txt +++ b/src/effects/showpaint/CMakeLists.txt @@ -13,7 +13,7 @@ kwin4_add_effect_module(kwin4_effect_showpaint ${showpaint_SOURCES}) set(kwin_showpaint_config_SRCS showpaint_config.cpp) ki18n_wrap_ui(kwin_showpaint_config_SRCS showpaint_config.ui) -add_library(kwin_showpaint_config MODULE ${kwin_showpaint_config_SRCS}) +kwin_add_effect_config(kwin_showpaint_config ${kwin_showpaint_config_SRCS}) target_link_libraries(kwin_showpaint_config KF5::ConfigWidgets @@ -21,13 +21,3 @@ target_link_libraries(kwin_showpaint_config KF5::I18n KF5::XmlGui ) - -kcoreaddons_desktop_to_json(kwin_showpaint_config showpaint_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_showpaint_config - - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/showpaint/showpaint_config.cpp b/src/effects/showpaint/showpaint_config.cpp index 9cc4d9378a..c9c7f7ff1b 100644 --- a/src/effects/showpaint/showpaint_config.cpp +++ b/src/effects/showpaint/showpaint_config.cpp @@ -18,9 +18,7 @@ #include -K_PLUGIN_FACTORY_WITH_JSON(ShowPaintEffectConfigFactory, - "showpaint_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::ShowPaintEffectConfig) namespace KWin { diff --git a/src/effects/showpaint/showpaint_config.desktop b/src/effects/showpaint/showpaint_config.desktop deleted file mode 100644 index 4e18e0df97..0000000000 --- a/src/effects/showpaint/showpaint_config.desktop +++ /dev/null @@ -1,76 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_showpaint_config -X-KDE-ParentComponents=showpaint - -Name=Show Paint -Name[af]=Wys inkleur -Name[ar]=أظهر الطلاء -Name[az]=Yenilənən sahə -Name[bg]=Показване на боята -Name[bn_IN]=Paint প্রদর্শন করা হবে -Name[ca]=Mostra el pintat -Name[ca@valencia]=Mostra el pintat -Name[cs]=Zobrazit kreslení -Name[csb]=Pòkôżë Paint -Name[da]=Vis tegning -Name[de]=Zeichnungsbereiche hervorheben -Name[el]=Εμφάνιση σχεδίασης -Name[en_GB]=Show Paint -Name[eo]=Montri farbon -Name[es]=Muestra pintura -Name[et]=Joonistatud alade näitamine -Name[eu]=Erakutsi pintatutakoa -Name[fi]=Näytä näytönpiirto -Name[fr]=Affiche les zones peintes -Name[fy]=Paint sjen litte -Name[ga]=Taispeáin Péint -Name[gl]=Mostrar o pintado -Name[gu]=રંગ બતાવો -Name[hi]=पेंट दिखाएं -Name[hne]=पेंट देखाव -Name[hr]=Prikaz nedavnih promjena -Name[hu]=Megmutatja a kirajzolt területeket -Name[ia]=Monstra pictura -Name[id]=Tampilkan Lukisan -Name[is]=Sýna teikningu -Name[it]=Mostra il ridisegno -Name[ja]=描画領域を表示 -Name[kk]=Бояулау -Name[km]=បង្ហាញគំនូរ -Name[kn]=ಕೆಪೈಂಟ್ ತೋರಿಸು -Name[ko]=그리기 영역 표시 -Name[lt]=Piešimo rodymas -Name[lv]=Rādīt zīmēto -Name[mai]=पेंट देखाउ -Name[mk]=Приказ на нацртано -Name[ml]=പെയിന്റ് കാണിക്കുക -Name[mr]=रंग दर्शवा -Name[nds]=Klöör wiesen -Name[ne]=रङ देखाउनुहोस् -Name[nl]=Intekening tonen -Name[nn]=Vis oppteikning -Name[pa]=ਪੇਂਟ ਵੇਖੋ -Name[pl]=Pokaż rysowane -Name[pt]=Mostrar a Pintura -Name[pt_BR]=Mostrar pintura -Name[ro]=Arată vopseaua -Name[ru]=Подсвечивать отрисовку -Name[se]=Čájet málema -Name[si]=ඇඳීම් පෙන්වන්න -Name[sk]=Zobraziť kresbu -Name[sl]=Izrisovanje -Name[sv]=Visa uppritning -Name[ta]=வண்ணங் காட்டு -Name[te]=పెయింట్ చూపుము -Name[th]=แสดงพื้นที่ -Name[tr]=Boyamayı Göster -Name[ug]=سىزىش دائىرىسىنى كۆرسەت -Name[uk]=Показ малювання -Name[vi]=Hiện sơn -Name[wa]=Mostrer pondaedje -Name[x-test]=xxShow Paintxx -Name[zh_CN]=显示绘制区域 -Name[zh_TW]=顯示繪製 diff --git a/src/effects/slide/CMakeLists.txt b/src/effects/slide/CMakeLists.txt index db8530fbe7..78d1ef9d96 100644 --- a/src/effects/slide/CMakeLists.txt +++ b/src/effects/slide/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_slide_config_SRCS slide_config.cpp) ki18n_wrap_ui(kwin_slide_config_SRCS slide_config.ui) kconfig_add_kcfg_files(kwin_slide_config_SRCS slideconfig.kcfgc) -add_library(kwin_slide_config MODULE ${kwin_slide_config_SRCS}) +kwin_add_effect_config(kwin_slide_config ${kwin_slide_config_SRCS}) target_link_libraries(kwin_slide_config KF5::ConfigWidgets @@ -26,12 +26,3 @@ target_link_libraries(kwin_slide_config Qt::DBus KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_slide_config slide_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_slide_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/slide/slide_config.cpp b/src/effects/slide/slide_config.cpp index ad0ac08f47..fe65537282 100644 --- a/src/effects/slide/slide_config.cpp +++ b/src/effects/slide/slide_config.cpp @@ -17,9 +17,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(SlideEffectConfigFactory, - "slide_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::SlideEffectConfig) namespace KWin { diff --git a/src/effects/slide/slide_config.desktop b/src/effects/slide/slide_config.desktop deleted file mode 100644 index 956d168433..0000000000 --- a/src/effects/slide/slide_config.desktop +++ /dev/null @@ -1,75 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_slide_config -X-KDE-ParentComponents=slide - -Name=Slide -Name[ar]=أزْلِق -Name[az]=Sürüşdürmə -Name[bg]=Приплъзване -Name[ca]=Diapositiva -Name[ca@valencia]=Diapositiva -Name[cs]=Sklouznutí -Name[csb]=Pùrganié -Name[da]=Glid -Name[de]=Gleiten -Name[el]=Κύλιση -Name[en_GB]=Slide -Name[eo]=Lumbildo -Name[es]=Deslizar -Name[et]=Liuglemine -Name[eu]=Irristatu -Name[fi]=Liuku -Name[fr]=Glisser -Name[fy]=Glydzje -Name[ga]=Sleamhnaigh -Name[gl]=Deslizar -Name[gu]=સ્લાઇડ -Name[hi]=स्लाइड -Name[hne]=स्लाइड -Name[hr]=Pomak -Name[hu]=Csúsztatott váltás -Name[ia]=Glissa -Name[id]=Geser -Name[is]=Renna til -Name[it]=Scivola -Name[ja]=スライド -Name[kk]=Сырғанату -Name[km]=ស្លាយ -Name[kn]=ಜಾರು -Name[ko]=슬라이드 -Name[ku]=Xîş Bike -Name[lt]=Slydimas -Name[lv]=Slīdēt -Name[mai]=स्लाइड -Name[ml]=തെന്നിമാറുക -Name[mr]=सरकणे -Name[nds]=Glieden -Name[nl]=Schuiven -Name[nn]=Skliding -Name[pa]=ਸਲਾਈਡ -Name[pl]=Slajd -Name[pt]=Deslizar -Name[pt_BR]=Deslizar -Name[ro]=Alunecă -Name[ru]=Прокрутка -Name[si]=ලිස්සන්න -Name[sk]=Posúvať -Name[sl]=Drsenje -Name[sr]=Клизање -Name[sr@ijekavian]=Клизање -Name[sr@ijekavianlatin]=Klizanje -Name[sr@latin]=Klizanje -Name[sv]=Skjut -Name[ta]=நழுவு -Name[th]=เลื่อนหน้าต่าง -Name[tr]=Kaydır -Name[ug]=تام تەسۋىر -Name[uk]=Ковзання -Name[vi]=Trượt -Name[wa]=Rider -Name[x-test]=xxSlidexx -Name[zh_CN]=滑动 -Name[zh_TW]=滑動 diff --git a/src/effects/thumbnailaside/CMakeLists.txt b/src/effects/thumbnailaside/CMakeLists.txt index e8e20dd154..22926d66dc 100644 --- a/src/effects/thumbnailaside/CMakeLists.txt +++ b/src/effects/thumbnailaside/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_thumbnailaside_config_SRCS thumbnailaside_config.cpp) ki18n_wrap_ui(kwin_thumbnailaside_config_SRCS thumbnailaside_config.ui) kconfig_add_kcfg_files(kwin_thumbnailaside_config_SRCS thumbnailasideconfig.kcfgc) -add_library(kwin_thumbnailaside_config MODULE ${kwin_thumbnailaside_config_SRCS}) +kwin_add_effect_config(kwin_thumbnailaside_config ${kwin_thumbnailaside_config_SRCS}) target_link_libraries(kwin_thumbnailaside_config KF5::ConfigWidgets @@ -27,12 +27,3 @@ target_link_libraries(kwin_thumbnailaside_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_thumbnailaside_config thumbnailaside_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_thumbnailaside_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/thumbnailaside/thumbnailaside_config.cpp b/src/effects/thumbnailaside/thumbnailaside_config.cpp index eaa9adb318..19ca8b9757 100644 --- a/src/effects/thumbnailaside/thumbnailaside_config.cpp +++ b/src/effects/thumbnailaside/thumbnailaside_config.cpp @@ -25,9 +25,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(ThumbnailAsideEffectConfigFactory, - "thumbnailaside_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::ThumbnailAsideEffectConfig) namespace KWin { diff --git a/src/effects/thumbnailaside/thumbnailaside_config.desktop b/src/effects/thumbnailaside/thumbnailaside_config.desktop deleted file mode 100644 index d6bbe7bf92..0000000000 --- a/src/effects/thumbnailaside/thumbnailaside_config.desktop +++ /dev/null @@ -1,83 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_thumbnailaside_config -X-KDE-ParentComponents=thumbnailaside - -Name=Thumbnail Aside -Name[af]=Duimnael langsaan -Name[ar]=مصغرات على الجانب -Name[az]=Yandakı miniatür pəncərəsi -Name[be@latin]=Padhlady akon -Name[bg]=Странични миниатюри -Name[bs]=Sličica postrance -Name[ca]=Miniatures al costat -Name[ca@valencia]=Miniatures al costat -Name[cs]=Postranní miniatura -Name[csb]=Miniaturka Aside -Name[da]=Væk med miniature -Name[de]=Seitliche Vorschaubilder -Name[el]=Εικόνα επισκόπησης στο πλάι -Name[en_GB]=Thumbnail Aside -Name[eo]=Miniaturojn flanke -Name[es]=Miniaturas laterales -Name[et]=Pisipildid kõrval -Name[eu]=Koadro txikiak alboan -Name[fi]=Esikatselukuva vieressä -Name[fr]=Vignettes sur le côté -Name[fy]=Miniatuer der neist -Name[ga]=Thumbnail Aside -Name[gl]=Miniatura a un lado -Name[gu]=થમ્બનીલ બાજુમાં -Name[he]=תמונות ממוזערות בצד -Name[hi]=लघुछवि बाजू में -Name[hne]=चिनहा बाजू में -Name[hr]=Pokrajnja sličica -Name[hu]=Ablakbetekintő oldalt -Name[ia]=Miniatura a parte -Name[id]=Thumbnail Aside -Name[is]=Smámynd til hliðar -Name[it]=Miniature a fianco -Name[ja]=サムネイルをわきに表示 -Name[kk]=Нобайды шеттеу -Name[km]=រូបភាព​តូចនៅ​ខាង -Name[kn]=ಸೂಚ್ಯಚಿತ್ರ ಬದಿಯಲ್ಲಿ -Name[ko]=옆쪽에 축소판 -Name[lt]=Miniatiūra šone -Name[lv]=Sīktēli malā -Name[mai]=लघुछवि बाजू मे -Name[mk]=Сликички на работ -Name[ml]=അടുത്തുള്ള നഖചിത്രം -Name[mr]=लघुप्रतिमा बाजूला करा -Name[nb]=Minibilde til side -Name[nds]=Vöransicht kantsiets -Name[ne]=थम्बनेल अलग गर्नुहोस् -Name[nl]=Miniatuur ernaast -Name[nn]=Miniatyrbilete ved skjermkanten -Name[pa]=ਥੰਮਨੇਲ ਏ-ਸਾਇਡ -Name[pl]=Miniatura z boku -Name[pt]=Miniaturas Lado-a-Lado -Name[pt_BR]=Miniatura de lado -Name[ro]=Miniatură lateral -Name[ru]=Показать миниатюру окна с краю экрана -Name[se]=Minigovva bálddas -Name[si]=පසෙකින් කුඩා රුවක් -Name[sk]=Bočný náhľad -Name[sl]=Sličica ob strani -Name[sr]=Сличица постранце -Name[sr@ijekavian]=Сличица постранце -Name[sr@ijekavianlatin]=Sličica postrance -Name[sr@latin]=Sličica postrance -Name[sv]=Miniatyrbild vid sidan om -Name[ta]=சுட்டி பக்கத்தில் -Name[te]=థంబ్‌నెయిల్ ఎసైడ్ -Name[th]=ภาพตัวอย่างแบบย่อตามด้าน -Name[tr]=Yan Küçük Resimcik -Name[ug]=كىچىك سۈرەت يانى -Name[uk]=Мініатюри збоку -Name[vi]=Hình nhỏ ở cạnh -Name[wa]=Prévoeyaedje a costé -Name[x-test]=xxThumbnail Asidexx -Name[zh_CN]=缩略图置边 -Name[zh_TW]=縮圖在旁邊 diff --git a/src/effects/trackmouse/CMakeLists.txt b/src/effects/trackmouse/CMakeLists.txt index 5335181206..b42373ec9d 100644 --- a/src/effects/trackmouse/CMakeLists.txt +++ b/src/effects/trackmouse/CMakeLists.txt @@ -20,7 +20,7 @@ set(kwin_trackmouse_config_SRCS trackmouse_config.cpp) ki18n_wrap_ui(kwin_trackmouse_config_SRCS trackmouse_config.ui) kconfig_add_kcfg_files(kwin_trackmouse_config_SRCS trackmouseconfig.kcfgc) -add_library(kwin_trackmouse_config MODULE ${kwin_trackmouse_config_SRCS}) +kwin_add_effect_config(kwin_trackmouse_config ${kwin_trackmouse_config_SRCS}) target_link_libraries(kwin_trackmouse_config KF5::ConfigWidgets @@ -29,12 +29,3 @@ target_link_libraries(kwin_trackmouse_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_trackmouse_config trackmouse_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_trackmouse_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/trackmouse/trackmouse_config.cpp b/src/effects/trackmouse/trackmouse_config.cpp index 45d6944adc..76e5c0eb14 100644 --- a/src/effects/trackmouse/trackmouse_config.cpp +++ b/src/effects/trackmouse/trackmouse_config.cpp @@ -26,9 +26,7 @@ // KConfigSkeleton #include "trackmouseconfig.h" -K_PLUGIN_FACTORY_WITH_JSON(TrackMouseEffectConfigFactory, - "trackmouse_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::TrackMouseEffectConfig) namespace KWin { diff --git a/src/effects/trackmouse/trackmouse_config.desktop b/src/effects/trackmouse/trackmouse_config.desktop deleted file mode 100644 index 94e04881e2..0000000000 --- a/src/effects/trackmouse/trackmouse_config.desktop +++ /dev/null @@ -1,86 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_trackmouse_config -X-KDE-ParentComponents=trackmouse - -Name=Track Mouse -Name[af]=Volg die Muis -Name[ar]=تتبع الفارة -Name[az]=Kursorun izi -Name[be]=Адследжваць мыш -Name[be@latin]=Vyjaŭleńnie kursora -Name[bg]=Проследяване на мишката -Name[bn]=মাউস ট্র্যাক করো -Name[bs]=Praćenje miša -Name[ca]=Seguiment del ratolí -Name[ca@valencia]=Seguiment del ratolí -Name[cs]=Sledování myši -Name[csb]=Nalezénié pòłożenia mëszë -Name[da]=Sporing af mus -Name[de]=Maus-Position finden -Name[el]=Ανίχνευση ποντικιού -Name[en_GB]=Track Mouse -Name[eo]=Spuri muson -Name[es]=Seguir el ratón -Name[et]=Hiire jälgimine -Name[eu]=Jarraitu saguari -Name[fa]=ردگیری موشی -Name[fi]=Hiiren jäljitys -Name[fr]=Repérer la souris -Name[fy]=Track Mûs -Name[ga]=Lorg an Luch -Name[gl]=Seguir o rato -Name[gu]=માઉસની ખબર રાખો -Name[he]=מעקב אחרי העכבר -Name[hi]=माउस ट्रैक करें -Name[hne]=मुसुवा ट्रैक करव -Name[hr]=Praćenje miša -Name[hu]=Egérkövetés -Name[ia]=Tracia mus -Name[id]=Lacak Mouse -Name[is]=Elta mús -Name[it]=Trova il mouse -Name[ja]=マウス追跡 -Name[kk]=Тышқандың ізі -Name[km]=ដាន​កណ្តុរ​ -Name[kn]=ಮೂಷಕ ಹಿಂಬಾಲಕ -Name[ko]=마우스 추적 -Name[lt]=Pelės sekimas -Name[lv]=Sekot pelei -Name[mai]=माउस ट्रैक करू -Name[mk]=Следење на глушецот -Name[ml]=മൌസിനെ നിരീക്ഷിക്കുക -Name[mr]=माऊसचा मागोवा घ्या -Name[nb]=Spor mus -Name[nds]=Muusspoor -Name[ne]=ट्रयाक माउस -Name[nl]=Muis volgen -Name[nn]=Følg mus -Name[pa]=ਮਾਊਸ ਟਰੈਕ -Name[pl]=Śledzenie myszy -Name[pt]=Seguir o Rato -Name[pt_BR]=Seguir o mouse -Name[ro]=Urmărește mausul -Name[ru]=Поиск курсора мыши на экране -Name[se]=Čuovo sáhpána -Name[si]=මවුසය සොයන්න -Name[sk]=Sledovať myš -Name[sl]=Sledenje miški -Name[sr]=Праћење миша -Name[sr@ijekavian]=Праћење миша -Name[sr@ijekavianlatin]=Praćenje miša -Name[sr@latin]=Praćenje miša -Name[sv]=Följ musen -Name[ta]=எலியத்தை கவனி -Name[te]=ట్రాక్ మౌస్ -Name[th]=ติดตามเมาส์ -Name[tr]=Fareyi İzle -Name[ug]=چاشقىنەكنى ئىزلا -Name[uk]=Сліди мишки -Name[vi]=Theo dõi chuột -Name[wa]=Shut l' sori -Name[x-test]=xxTrack Mousexx -Name[zh_CN]=鼠标定位 -Name[zh_TW]=追蹤滑鼠 diff --git a/src/effects/wobblywindows/CMakeLists.txt b/src/effects/wobblywindows/CMakeLists.txt index 8e9ff2e872..a39cf96ce0 100644 --- a/src/effects/wobblywindows/CMakeLists.txt +++ b/src/effects/wobblywindows/CMakeLists.txt @@ -18,7 +18,7 @@ set(kwin_wobblywindows_config_SRCS wobblywindows_config.cpp) ki18n_wrap_ui(kwin_wobblywindows_config_SRCS wobblywindows_config.ui) kconfig_add_kcfg_files(kwin_wobblywindows_config_SRCS wobblywindowsconfig.kcfgc) -add_library(kwin_wobblywindows_config MODULE ${kwin_wobblywindows_config_SRCS}) +kwin_add_effect_config(kwin_wobblywindows_config ${kwin_wobblywindows_config_SRCS}) target_link_libraries(kwin_wobblywindows_config KF5::ConfigWidgets @@ -26,12 +26,3 @@ target_link_libraries(kwin_wobblywindows_config Qt::DBus KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_wobblywindows_config wobblywindows_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_wobblywindows_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/wobblywindows/wobblywindows_config.cpp b/src/effects/wobblywindows/wobblywindows_config.cpp index d33aa582cf..fa756c6d26 100644 --- a/src/effects/wobblywindows/wobblywindows_config.cpp +++ b/src/effects/wobblywindows/wobblywindows_config.cpp @@ -19,9 +19,7 @@ #include #include -K_PLUGIN_FACTORY_WITH_JSON(WobblyWindowsEffectConfigFactory, - "wobblywindows_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::WobblyWindowsEffectConfig) namespace KWin { diff --git a/src/effects/wobblywindows/wobblywindows_config.desktop b/src/effects/wobblywindows/wobblywindows_config.desktop deleted file mode 100644 index 808efd3414..0000000000 --- a/src/effects/wobblywindows/wobblywindows_config.desktop +++ /dev/null @@ -1,83 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_wobblywindows_config -X-KDE-ParentComponents=wobblywindows - -Name=Wobbly Windows -Name[af]=Wobbly Windows -Name[ar]=نوافذ متذبذبة -Name[ast]=Ventanes cimblantes -Name[az]=Titrək pəncərələr -Name[be@latin]=Skryŭleńnie akon -Name[bg]=Желирани прозорци -Name[bs]=Lelujavi prozori -Name[ca]=Finestres sacsejades -Name[ca@valencia]=Finestres sacsejades -Name[cs]=Chvějící se okna -Name[csb]=Òkna Wobbly -Name[da]=Blævrende vinduer -Name[de]=Wabernde Fenster -Name[el]=Ταλαντευόμενα παράθυρα -Name[en_GB]=Wobbly Windows -Name[eo]=Tremaj fenestroj -Name[es]=Ventanas gelatinosas -Name[et]=Võbisevad aknad -Name[eu]=Leiho dardartiak -Name[fi]=Heiluvat ikkunat -Name[fr]=Fenêtres en gélatine -Name[fy]=Wobbly Windows -Name[ga]=Fuinneoga Creathacha -Name[gl]=Xanelas a tremer -Name[gu]=વોબલી વિન્ડોઝ -Name[he]=חלונות מתנדנדים -Name[hi]=हिलता-डुलता विंडो -Name[hne]=कांपत विंडो -Name[hr]=Klimavi prozori -Name[hu]=Tekergő ablakok -Name[ia]=Fenestras Tremulante -Name[id]=Window Bergoyang -Name[is]=Linir gluggar -Name[it]=Finestre tremolanti -Name[ja]=揺れるウィンドウ -Name[kk]=Майысқақ терезелер -Name[km]=បង្អួច​រំញ័រ -Name[kn]=ಅಲ್ಲಾಡುವ ಕಿಟಕಿಗಳು -Name[ko]=흔들리는 창 -Name[ku]=Paceyên Dihejin -Name[lt]=Svirduliuojantys langai -Name[lv]=Ļodzīgie logi -Name[mai]=वोबली विंडो -Name[ml]=ചാഞ്ചാടുന്ന ജാലകങ്ങള്‍ -Name[mr]=थरथरणाऱ्या चौकटी -Name[nb]=Vaklende vinduer -Name[nds]=Wabbelig Finstern -Name[nl]=Wiebelende vensters -Name[nn]=Vaklande vindauge -Name[pa]=ਕੰਬਦੀਆਂ ਵਿੰਡੋਜ਼ -Name[pl]=Chwiejne okna -Name[pt]=Janelas Trémulas -Name[pt_BR]=Janelas instáveis -Name[ro]=Ferestre tremurătoare -Name[ru]=Колышущиеся окна -Name[si]=කවුළු සොලවන්න -Name[sk]=Zvlnené okná -Name[sl]=Majava okna -Name[sr]=Лелујави прозори -Name[sr@ijekavian]=Лелујави прозори -Name[sr@ijekavianlatin]=Lelujavi prozori -Name[sr@latin]=Lelujavi prozori -Name[sv]=Ostadiga fönster -Name[ta]=அசைவுடைய சாளரம் -Name[te]=వూబ్లీ విండోస్ -Name[th]=หน้าต่างพริ้วไหว -Name[tr]=Sallanan Pencereler -Name[ug]=تەۋرەنگەن كۆزنەكلەر -Name[uk]=Желейні вікна -Name[vi]=Cửa sổ lắc lư -Name[wa]=Molès fniesses -Name[x-test]=xxWobbly Windowsxx -Name[zh_CN]=窗口惯性晃动 -Name[zh_TW]=變形視窗 - diff --git a/src/effects/zoom/CMakeLists.txt b/src/effects/zoom/CMakeLists.txt index f8d5754cd5..9407691429 100644 --- a/src/effects/zoom/CMakeLists.txt +++ b/src/effects/zoom/CMakeLists.txt @@ -24,7 +24,7 @@ set(kwin_zoom_config_SRCS zoom_config.cpp) ki18n_wrap_ui(kwin_zoom_config_SRCS zoom_config.ui) kconfig_add_kcfg_files(kwin_zoom_config_SRCS zoomconfig.kcfgc) -add_library(kwin_zoom_config MODULE ${kwin_zoom_config_SRCS}) +kwin_add_effect_config(kwin_zoom_config ${kwin_zoom_config_SRCS}) target_link_libraries(kwin_zoom_config KF5::ConfigWidgets @@ -33,12 +33,3 @@ target_link_libraries(kwin_zoom_config KF5::XmlGui KWinEffectsInterface ) - -kcoreaddons_desktop_to_json(kwin_zoom_config zoom_config.desktop SERVICE_TYPES kcmodule.desktop) - -install( - TARGETS - kwin_zoom_config - DESTINATION - ${KDE_INSTALL_PLUGINDIR}/kwin/effects/configs -) diff --git a/src/effects/zoom/zoom_config.cpp b/src/effects/zoom/zoom_config.cpp index f8c72938e1..e18513c490 100644 --- a/src/effects/zoom/zoom_config.cpp +++ b/src/effects/zoom/zoom_config.cpp @@ -24,9 +24,7 @@ #include -K_PLUGIN_FACTORY_WITH_JSON(ZoomEffectConfigFactory, - "zoom_config.json", - registerPlugin();) +K_PLUGIN_CLASS(KWin::ZoomEffectConfig) namespace KWin { diff --git a/src/effects/zoom/zoom_config.desktop b/src/effects/zoom/zoom_config.desktop deleted file mode 100644 index 1aac1d3808..0000000000 --- a/src/effects/zoom/zoom_config.desktop +++ /dev/null @@ -1,93 +0,0 @@ -[Desktop Entry] -Type=Service -X-KDE-ServiceTypes=KCModule - -X-KDE-Library=kwin_zoom_config -X-KDE-ParentComponents=zoom - -Name=Zoom -Name[af]=Zoem -Name[ar]=تكبير -Name[as]=ডাঙৰকৈ প্ৰদৰ্শন -Name[ast]=Zoom -Name[az]=Miqyas -Name[be]=Маштабаванне -Name[be@latin]=Maštab -Name[bg]=Мащабиране -Name[bn_IN]=বড় করে প্রদর্শন -Name[br]=Zoom -Name[bs]=Uveličanje -Name[ca]=Zoom -Name[ca@valencia]=Zoom -Name[cs]=Zvětšení -Name[csb]=Zwikasznié -Name[da]=Zoom -Name[de]=Arbeitsflächen-Vergrößerung -Name[el]=Εστίαση -Name[en_GB]=Zoom -Name[eo]=Zomi -Name[es]=Ampliación -Name[et]=Suurendus -Name[eu]=Handiagotu -Name[fa]=بزرگ‌نمایی -Name[fi]=Zoomaus -Name[fr]=Zoom -Name[fy]=Zoome -Name[ga]=Súmáil -Name[gl]=Ampliación -Name[gu]=મોટું કરો -Name[he]=מגדיל -Name[hi]=ज़ूम -Name[hne]=जूम -Name[hr]=Povećanje -Name[hu]=Kinagyítás -Name[ia]=Zoom -Name[id]=Zoom -Name[is]=Aðdráttur -Name[it]=Ingrandimento -Name[ja]=ズーム -Name[kk]=Ұлғайту -Name[km]=ពង្រីក -Name[kn]=ಹಿಗ್ಗಿಸು -Name[ko]=확대/축소 -Name[ku]=Mezinkirin -Name[lt]=Didinimas -Name[lv]=Palielināšana -Name[mai]=जूम -Name[mk]=Зум -Name[ml]=വലുതാക്കുക -Name[mr]=झूम -Name[nb]=Skalering -Name[nds]=Ansichtgrött -Name[ne]=जुम गर्नुहोस् -Name[nl]=Zoomen -Name[nn]=Forstørr skrivebordet -Name[oc]=Zoom -Name[pa]=ਜ਼ੂਮ -Name[pl]=Powiększanie -Name[pt]=Ampliação -Name[pt_BR]=Zoom -Name[ro]=Apropiere -Name[ru]=Масштаб -Name[se]=Stuorrudit -Name[si]=විශාලණය -Name[sk]=Lupa -Name[sl]=Približanje -Name[sr]=Увеличање -Name[sr@ijekavian]=Увеличање -Name[sr@ijekavianlatin]=Uveličanje -Name[sr@latin]=Uveličanje -Name[sv]=Zoom -Name[ta]=Zoom -Name[te]=జూమ్ -Name[th]=ดูย่อ/ดูขยาย -Name[tr]=Büyüt -Name[ug]=كېڭەيت-تارايت -Name[uk]=Масштабування -Name[uz]=Kattalashtirish -Name[uz@cyrillic]=Катталаштириш -Name[vi]=Thu phóng -Name[wa]=Zoum -Name[x-test]=xxZoomxx -Name[zh_CN]=全屏缩放 -Name[zh_TW]=縮放