diff --git a/kcms/knotify/CHANGES b/kcms/knotify/CHANGES deleted file mode 100644 index e69de29bb..000000000 diff --git a/kcms/knotify/CMakeLists.txt b/kcms/knotify/CMakeLists.txt deleted file mode 100644 index f4bf62e06..000000000 --- a/kcms/knotify/CMakeLists.txt +++ /dev/null @@ -1,24 +0,0 @@ -# KI18N Translation Domain for this library -add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_notify\") - -########### next target ############### - -set(kcm_knotify_PART_SRCS knotify.cpp ) - - -add_library(kcm_knotify MODULE ${kcm_knotify_PART_SRCS}) - - -target_link_libraries(kcm_knotify - KF5::NotifyConfig - KF5::KDELibs4Support - ) - -install(TARGETS kcm_knotify DESTINATION ${KDE_INSTALL_PLUGINDIR} ) - - -########### install files ############### - -install( FILES kcmnotify.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) - - diff --git a/kcms/knotify/Messages.sh b/kcms/knotify/Messages.sh deleted file mode 100644 index eebdfc23a..000000000 --- a/kcms/knotify/Messages.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /usr/bin/env bash -$EXTRACTRC *.ui >> rc.cpp -$XGETTEXT *.cpp -o $podir/kcm5_notify.pot diff --git a/kcms/knotify/README b/kcms/knotify/README deleted file mode 100644 index 7fd84d340..000000000 --- a/kcms/knotify/README +++ /dev/null @@ -1,2 +0,0 @@ -This is a KDE Control Center Module for configuring system notifications - diff --git a/kcms/knotify/kcmnotify.desktop b/kcms/knotify/kcmnotify.desktop deleted file mode 100644 index 5748a8f71..000000000 --- a/kcms/knotify/kcmnotify.desktop +++ /dev/null @@ -1,168 +0,0 @@ -[Desktop Entry] -Exec=kcmshell5 kcmnotify -Icon=preferences-desktop-notification-bell -Type=Service -X-KDE-ServiceTypes=KCModule -X-DocPath=kcontrol/kcmnotify/index.html - -X-KDE-Library=kcm_knotify -X-KDE-ParentApp=kcontrol - -X-KDE-System-Settings-Parent-Category=personalization -X-KDE-Weight=40 - -Name=Notifications -Name[ar]=الإخطارات -Name[bs]=Obavještenja -Name[ca]=Notificacions -Name[ca@valencia]=Notificacions -Name[cs]=Oznamování -Name[da]=Bekendtgørelser -Name[de]=Benachrichtigungen -Name[el]=Ειδοποιήσεις -Name[en_GB]=Notifications -Name[es]=Notificaciones -Name[et]=Märguanded -Name[eu]=Jakinarazpenak -Name[fi]=Ilmoitukset -Name[fr]=Notifications -Name[gl]=Notificacións -Name[he]=התראות -Name[hu]=Értesítések -Name[id]=Notifikasi -Name[is]=Tilkynningar -Name[it]=Notifiche -Name[ko]=알림 -Name[lt]=Pranešimai -Name[mr]=सूचना -Name[nb]=Varslinger -Name[nds]=Bescheden -Name[nl]=Meldingen -Name[nn]=Varslingar -Name[pa]=ਨੋਟੀਫਿਕੇਸ਼ਨ -Name[pl]=Powiadomienia -Name[pt]=Notificações -Name[pt_BR]=Notificações -Name[ru]=Уведомления -Name[se]=Dieđáhusat -Name[sk]=Pripomienky -Name[sl]=Obvestila -Name[sr]=Обавештења -Name[sr@ijekavian]=Обавјештења -Name[sr@ijekavianlatin]=Obavještenja -Name[sr@latin]=Obaveštenja -Name[sv]=Underrättelser -Name[tr]=Bildirimler -Name[uk]=Сповіщення -Name[x-test]=xxNotificationsxx -Name[zh_CN]=通知 -Name[zh_TW]=通知 -Comment=Event Notifications and Actions -Comment[ar]=إخطارات الأحداث والإجراءات -Comment[bs]=Obavještenja i akcije događaja -Comment[ca]=Notificacions d'esdeveniments i accions -Comment[ca@valencia]=Notificacions d'esdeveniments i accions -Comment[cs]=Oznámení událostí a činností -Comment[da]=Bekendtgørelser og handlinger ved hændelser -Comment[de]=Ereignis-Benachrichtigungen und -Aktionen -Comment[el]=Ειδοποιήσεις συμβάντων και ενέργειες -Comment[en_GB]=Event Notifications and Actions -Comment[es]=Notificaciones de eventos y acciones -Comment[et]=Sündmuste märguanded ja toimingud -Comment[eu]=Gertaera jakinarazpenak eta ekintzak -Comment[fi]=Tapahtumailmoitukset ja toiminnot -Comment[fr]=Notifications et actions après un évènement -Comment[gl]=Notificacións e accións para eventos -Comment[he]=הגדרות התראות אירועים ופעולות -Comment[hu]=Eseményértesítések és műveletek -Comment[id]=Notifikasi dan Aksi Peristiwa -Comment[is]=Birting tilkynninga og aðgerða -Comment[it]=Notifiche degli eventi e azioni -Comment[ja]=イベント通知とアクション -Comment[ko]=이벤트 알림과 동작 -Comment[lt]=Įvykių pranešimai ir veiksmai -Comment[mr]=घटना सूचना व क्रीया -Comment[nb]=Varslinger og handlinger for hendelser -Comment[nds]=Begeefnisbescheden un Akschonen -Comment[nl]=Meldingen en acties van gebeurtenissen -Comment[nn]=Varslingar og handlingar for hendingar -Comment[pa]=ਈਵੈਂਟ ਨੋਟੀਫਿਕੇਸ਼ਨ ਅਤੇ ਕਾਰਵਾਈਆਂ -Comment[pl]=Powiadomienia i działania zdarzeń -Comment[pt]=Notificações de Eventos e Acções -Comment[pt_BR]=Notificações e ações dos eventos -Comment[ru]=Уведомления и действия при событиях -Comment[sk]=Oznámenia a akcie udalostí -Comment[sl]=Obvestila in dejanja za dogodke -Comment[sr]=Обавештења и радње догађаја -Comment[sr@ijekavian]=Обавјештења и радње догађаја -Comment[sr@ijekavianlatin]=Obavještenja i radnje događaja -Comment[sr@latin]=Obaveštenja i radnje događaja -Comment[sv]=Underrättelser om händelser och åtgärder -Comment[tr]=Olay Bildirimleri ve Eylemler -Comment[uk]=Сповіщення щодо подій та дії -Comment[x-test]=xxEvent Notifications and Actionsxx -Comment[zh_CN]=事件通知和动作 -Comment[zh_TW]=事件通知與動作 - -X-KDE-Keywords=System sounds,Audio,Sound,Notify,Alerts,Notification,popups -X-KDE-Keywords[ar]=أصوات النظام,صوت,إخطار,تحذير,منبثقات -X-KDE-Keywords[bg]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,Системни звуци,Звук,Уведомление -X-KDE-Keywords[bn]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups -X-KDE-Keywords[bs]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,sistemski zvukovi,zvuk,alarmi -X-KDE-Keywords[ca]=Sons del sistema,Àudio,So,Notificar,Alertes,Notificació,missatges emergents -X-KDE-Keywords[ca@valencia]=Sons del sistema,Àudio,So,Notificar,Alertes,Notificació,missatges emergents -X-KDE-Keywords[cs]=Systémové zvuky,Audio,Zvuk,Oznámení,vyskakovací okna -X-KDE-Keywords[da]=Systemlyde,audio,lyd,meddelelser,alarmer,bekendtgørelse,pop-op -X-KDE-Keywords[de]=Klänge,Systemklänge,Audio,Sound,Benachrichtigung,Nachricht,Alarm,Signalton,Beep -X-KDE-Keywords[el]=Ήχοι συστήματος,ήχος,ήχος,ειδοποιώ,συναγερμός,ειδοποίηση,αναδυόμενα -X-KDE-Keywords[en_GB]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups -X-KDE-Keywords[eo]=Sistemaj sonoj,Aŭdo,Sono,Atentigi,Avertoj,Atentigo,sprucfenestroj -X-KDE-Keywords[es]=Sonidos del sistema,Audio,Sonido,Notificar,Alertas,Notificación,emergentes -X-KDE-Keywords[et]=Süsteemsed helid,heli,audio,märguanne,märguanded,hüpikaknad -X-KDE-Keywords[eu]=Sistema-soinuak,audioa,soinua,jakinarazi,alertak,jakinarazpena,pop-upak -X-KDE-Keywords[fa]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups -X-KDE-Keywords[fi]=Järjestelmä-äänet,Ääni,Huomautukset,Ilmoitukset,Varoitukset,Hälytykset,Huomautus,Ilmoitus,Varoitus,Hälytys,ponnahdusikkunat -X-KDE-Keywords[fr]=Sons système, audio, son, notifier, alertes, notification, menus contextuels -X-KDE-Keywords[ga]=Fuaimeanna an chórais,Fuaim,Fógairt,Fógraí,preabfhuinneoga -X-KDE-Keywords[gl]=Sons do sistema, Son, Audio, Notificación, Alertar, Notificar, emerxentes -X-KDE-Keywords[gu]=સિસ્ટમ અવાજો,ધ્વનિ,અવાજ,નોંધ આપો,ચેતવણીઓ,નોંધણી,પોપઅપ્સ -X-KDE-Keywords[he]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,צלילים,הודעות,שמע,תפריטים מוקפצים,הודעות -X-KDE-Keywords[hi]=तंत्र ध्वनियां,श्रव्य, ध्वनि, सूचित, चेतावनी, अधिसूचना, पॉपअप्स -X-KDE-Keywords[hu]=Rendszerhangok,Hang,Hang,Értesítés,Figyelmeztetés,Értesítés,felugró -X-KDE-Keywords[ia]=Sonos de systema,Audio,Sono,Notifica,Alertas,Notification,popups -X-KDE-Keywords[id]=Suara sistem,Audio,Suara,Beritahu,Peringatan,Notifikasi,sembulan -X-KDE-Keywords[is]=Kerfishljóð,hljóð,hljóðkerfi,tilkynningar,aðvörun,tilkynning,sprettgluggi -X-KDE-Keywords[it]=Suoni di sistema,audio,suono,notifica,avvisi,notifiche,avvisi a comparsa -X-KDE-Keywords[kk]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups -X-KDE-Keywords[km]=សំឡេង​ប្រព័ន្ធ អូឌីយ៉ូ សំឡេង ជូន​ដំណឹង ផ្ដល់​ដំណឹង ការជូន​ដំណឹង លេច​ឡើង -X-KDE-Keywords[ko]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,시스템 소리,오디오,소리,알림,경고,팝업 -X-KDE-Keywords[lv]=Sistēmas skaņas,audio,skaņa,paziņot,brīdinājumi,paziņojums,uzlecošais logs -X-KDE-Keywords[mr]=प्रणाली आवाज, आवाज, सूचना, सतर्कता, पॉपअप -X-KDE-Keywords[nb]=Systemlyder,Audio,Lyd,Varsle,Alarm,Varslinger,oppsprett -X-KDE-Keywords[nds]=Systeemkläng,Klang,Kläng,Systeembescheden,Alarms,Bescheden,Opdukers -X-KDE-Keywords[nl]=Systeemgeluiden,audio,geluid,melden,alarmmelding,meldingen,pop-ups -X-KDE-Keywords[nn]=systemlydar,audio,lyd,varsling,meldingar,åtvaringar,sprettoppvindauge -X-KDE-Keywords[pa]=ਸਿਸਟਮ ਸਾਊਂਡ,ਆਡੀਓ,ਸਾਊਂਡ,ਨੋਟੀਫਾਈ,ਸੂਚਨਾ,ਚੇਤਾਵਨੀ,ਨੋਟੀਫਿਕੇਸ਼ਨ,ਪੋਪਅੱਪ -X-KDE-Keywords[pl]=Dźwięki systemowe,Audio,Dźwięk,Powiadomienie,Alarmy,Powiadom,okna wyskakujące -X-KDE-Keywords[pt]=Sons do sistema,Áudio,Som,Notificar,Alertas,Notificação,Mensagens -X-KDE-Keywords[pt_BR]=Sons do sistema,Áudio,Som,Notificar,Alertas,Notificação,mensagens -X-KDE-Keywords[ro]=Sunete sistem,audio,sunet,notificare,alerte,notifică,popup -X-KDE-Keywords[ru]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,звуковая система,звук,аудио,уведомление,предупреждения,всплывающие окна -X-KDE-Keywords[sk]=Systémové zvuky,Audio,Zvuk,Notify,Alerts,Notification,popups -X-KDE-Keywords[sl]=sistemski zvoki,audio,zvok,obvestila,obvestilo,obveščanje,alarmi,alarm,pojavna okna,pojavno okno -X-KDE-Keywords[sr]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,системски звукови,аудио,звук,обавештење,аларм,искакач -X-KDE-Keywords[sr@ijekavian]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,системски звукови,аудио,звук,обавештење,аларм,искакач -X-KDE-Keywords[sr@ijekavianlatin]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,sistemski zvukovi,audio,zvuk,obaveštenje,alarm,iskakač -X-KDE-Keywords[sr@latin]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,sistemski zvukovi,audio,zvuk,obaveštenje,alarm,iskakač -X-KDE-Keywords[sv]=Systemljud,Ljud,Underrätta,Varningar,Underrättelser -X-KDE-Keywords[tg]=Системаҳои овозӣ,Аудио,Овоз,Хабар,Ҳушдор,Огоҳӣ,пайдошаванда -X-KDE-Keywords[tr]=Sistem sesleri,Ses,Uyarı,Uyarılar,Bildirimler -X-KDE-Keywords[ug]=سىستېما ئاۋازلىرى، ئۈن، بىلدۈرۈش، كۆرسەتمە، ئۇقتۇرۇشلار، سەكرىمىلەر -X-KDE-Keywords[uk]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,звук,система,системні звуки,звуки системи,сповіщення,нагадування,підказки,контекст -X-KDE-Keywords[vi]=Âm thanh hệ thống,Âm,Âm thanh,Thông báo,Cảnh báo,Thông báo,System sounds,Audio,Sound,Notify,Alerts,Notification,popups -X-KDE-Keywords[wa]=Sons sistinme,Sons do sistinme,Odio,Son,Notifyî,Abranles,Notifiaedje,aspitants purneas -X-KDE-Keywords[x-test]=xxSystem soundsxx,xxAudioxx,xxSoundxx,xxNotifyxx,xxAlertsxx,xxNotificationxx,xxpopupsxx -X-KDE-Keywords[zh_CN]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups,系统声音,声音,音效,警告,提醒,弹出消息 -X-KDE-Keywords[zh_TW]=System sounds,Audio,Sound,Notify,Alerts,Notification,popups - -Categories=Qt;KDE;X-KDE-settings-sound; diff --git a/kcms/knotify/knotify.cpp b/kcms/knotify/knotify.cpp deleted file mode 100644 index f0a7722c1..000000000 --- a/kcms/knotify/knotify.cpp +++ /dev/null @@ -1,197 +0,0 @@ -/* - Copyright (C) 2000,2002 Carsten Pfeiffer - Copyright (C) 2005,2006 Olivier Goffart - - 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 Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. - -*/ - -#include "knotify.h" - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -static const int COL_FILENAME = 1; - -K_PLUGIN_FACTORY( NotifyFactory, registerPlugin(); ) -K_EXPORT_PLUGIN( NotifyFactory("kcmnotify") ) - -KCMKNotify::KCMKNotify(QWidget *parent, const QVariantList & ) - : KCModule(parent) -{ - setButtons( Help | Default | Apply ); - - setQuickHelp( i18n("

System Notifications

" - "Plasma allows for a great deal of control over how you " - "will be notified when certain events occur. There are " - "several choices as to how you are notified:" - "
  • As the application was originally designed.
  • " - "
  • With a beep or other noise.
  • " - "
  • Via a popup dialog box with additional information.
  • " - "
  • By recording the event in a logfile without " - "any additional visual or audible alert.
  • " - "
")); - - QVBoxLayout *layout = new QVBoxLayout( this ); - layout->setMargin( 0 ); - - QLabel *label = new QLabel( i18n( "Event source:" ), this ); - m_appCombo = new KComboBox( false, this ); - m_appCombo->setSizeAdjustPolicy( QComboBox::AdjustToContents ); - m_appCombo->setObjectName( QStringLiteral( "app combo" ) ); - connect( m_appCombo, SIGNAL(activated(int)), - SLOT(slotAppActivated(int)) ); - - QHBoxLayout *hbox = new QHBoxLayout(); - layout->addLayout( hbox ); - hbox->addWidget( label ); - hbox->addWidget( m_appCombo, 10 ); - - m_notifyWidget = new KNotifyConfigWidget( this ); - layout->addWidget( m_notifyWidget ); - - connect( m_notifyWidget, SIGNAL(changed(bool)), this, SIGNAL(changed(bool))); - - // This button isn't part of KNotifyConfigWidget so that one day we could have - // another button next to it, for "Disable all sounds for all event sources" - QHBoxLayout *buttonHLayout = new QHBoxLayout(); - layout->addLayout(buttonHLayout); - QPushButton *pushButton = new QPushButton(i18n("Disable sounds for all of these events"), this); - pushButton->setFocusPolicy(Qt::TabFocus); // don't focus the button when clicking on it, so we can quickly select another app with the keyboard - buttonHLayout->addWidget(pushButton); - buttonHLayout->addStretch(); - connect(pushButton, &QPushButton::clicked, this, &KCMKNotify::slotDisableAllSounds); - - m_appCombo->setFocus(); - - KAboutData* ab = new KAboutData( - QStringLiteral("kcmknotify"), i18n("KNotify"), QStringLiteral("4.0"), - i18n("System Notification Control Panel Module"), - KAboutLicense::GPL, i18n("(c) 2002-2006 KDE Team")); - - ab->addAuthor( i18n("Olivier Goffart"), QString(), QStringLiteral("ogoffart@kde.org") ); - ab->addAuthor( i18n("Carsten Pfeiffer"), QString(), QStringLiteral("pfeiffer@kde.org") ); - ab->addCredit( i18n("Charles Samuels"), i18n("Original implementation"), - QStringLiteral("charles@altair.dhs.org") ); - setAboutData( ab ); -} - -KCMKNotify::~KCMKNotify() -{ - KConfig _config(QStringLiteral("knotifyrc"), KConfig::NoGlobals); - KConfigGroup config(&_config, "Misc" ); - config.writeEntry( "LastConfiguredApp", m_appCombo->currentText() ); - config.sync(); -} - -void KCMKNotify::slotAppActivated(const int &index) -{ - QString text( m_appCombo->itemData(index).toString() ); - m_notifyWidget->save(); - m_notifyWidget->setApplication( text ); -} - -void KCMKNotify::defaults() -{ -// m_notifyWidget->resetDefaults( true ); // ask user -} -void KCMKNotify::load() -{ - //setEnabled( false ); - // setCursor( KCursor::waitCursor() ); - - m_appCombo->clear(); -// m_notifyWidget->clear(); - - QStringList fullpaths = - KGlobal::dirs()->findAllResources("data", QStringLiteral("*/*.notifyrc"), KStandardDirs::NoDuplicates ); - - foreach (const QString &fullPath, fullpaths ) - { - int slash = fullPath.lastIndexOf( QLatin1Char('/') ); - int dot = fullPath.lastIndexOf( QLatin1Char('.') ) - 1; - QString appname = slash < 0 ? QString() : fullPath.mid( slash + 1, dot - slash); - if ( !appname.isEmpty() ) - { - KConfig config(fullPath, KConfig::NoGlobals, QStandardPaths::DataLocation); - KConfigGroup globalConfig( &config, QLatin1String("Global") ); - QString icon = globalConfig.readEntry(QStringLiteral("IconName"), QStringLiteral("misc")); - QString description = globalConfig.readEntry( QStringLiteral("Comment"), appname ); - m_appCombo->addItem( QIcon::fromTheme( icon ), description, appname ); - } - } - - m_appCombo->model()->sort(0); - - /* - KConfig config( "knotifyrc", true, false ); - config.setGroup( "Misc" ); - QString appDesc = config.readEntry( "LastConfiguredApp", "KDE System Notifications" ); - - if this code gets enabled again, make sure to apply r494965 - - if ( !appDesc.isEmpty() ) - m_appCombo->setCurrentItem( appDesc ); - - // sets the applicationEvents for KNotifyWidget - slotAppActivated( m_appCombo->currentText() ); - - // unsetCursor(); // unsetting doesn't work. sigh. - setEnabled( true ); - emit changed( false ); - */ - - if ( m_appCombo->count() > 0 ) { - m_appCombo->setCurrentIndex(0); - m_notifyWidget->setApplication( m_appCombo->itemData( 0 ).toString() ); - } - - emit changed(false); -} - -void KCMKNotify::slotDisableAllSounds() -{ - m_notifyWidget->disableAllSounds(); -} - -void KCMKNotify::save() -{ - m_notifyWidget->save(); // will dcop knotify about its new config - - emit changed( true ); -} - -#include "knotify.moc" diff --git a/kcms/knotify/knotify.h b/kcms/knotify/knotify.h deleted file mode 100644 index 3eb4e69ca..000000000 --- a/kcms/knotify/knotify.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - Copyright (C) 2000,2002 Carsten Pfeiffer - Copyright (C) 2005,2006 Olivier Goffart - - 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 Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. - -*/ - - -#ifndef _KNOTIFY_H -#define _KNOTIFY_H - - -#include - -class KComboBox; -class QPushButton; -class KNotifyConfigWidget; - -class KCMKNotify : public KCModule -{ - Q_OBJECT - -public: - KCMKNotify(QWidget *parent, const QVariantList &); - ~KCMKNotify() override; - - void defaults() override; - void save() override; - -public Q_SLOTS: - void load() override; - -private Q_SLOTS: - void slotAppActivated( const int &); - void slotDisableAllSounds(); - -private: - - KComboBox *m_appCombo; - KNotifyConfigWidget *m_notifyWidget; - QPushButton *m_psb; - -}; - -#endif