From 4aed2c8219774f5d797760606b8489a92ddc5163 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcontrol/knotify/CHANGES | 0 kcontrol/knotify/Makefile.am | 27 ++ kcontrol/knotify/README | 2 + kcontrol/knotify/kcmnotify.desktop | 243 +++++++++++++++ kcontrol/knotify/knotify.cpp | 328 ++++++++++++++++++++ kcontrol/knotify/knotify.h | 96 ++++++ kcontrol/knotify/play.png | Bin 0 -> 277 bytes kcontrol/knotify/playersettings.ui | 330 +++++++++++++++++++++ kcontrol/knotify/sounds/KDE_Beep.ogg | Bin 0 -> 4146 bytes kcontrol/knotify/sounds/KDE_Beep_Ahem.wav | Bin 0 -> 11180 bytes kcontrol/knotify/sounds/KDE_Beep_Beep.wav | Bin 0 -> 1078 bytes kcontrol/knotify/sounds/KDE_Beep_Bottles.wav | Bin 0 -> 4972 bytes kcontrol/knotify/sounds/KDE_Beep_Car.ogg | Bin 0 -> 5829 bytes kcontrol/knotify/sounds/KDE_Beep_Classic.ogg | Bin 0 -> 5433 bytes kcontrol/knotify/sounds/KDE_Beep_ClassicBeep.wav | Bin 0 -> 2480 bytes kcontrol/knotify/sounds/KDE_Beep_ClockChime.wav | Bin 0 -> 4022 bytes kcontrol/knotify/sounds/KDE_Beep_Connect.ogg | Bin 0 -> 14392 bytes kcontrol/knotify/sounds/KDE_Beep_Connect.wav | Bin 0 -> 12384 bytes kcontrol/knotify/sounds/KDE_Beep_Digital_1.ogg | Bin 0 -> 4569 bytes kcontrol/knotify/sounds/KDE_Beep_Digital_2.ogg | Bin 0 -> 5316 bytes kcontrol/knotify/sounds/KDE_Beep_Door.wav | Bin 0 -> 7470 bytes kcontrol/knotify/sounds/KDE_Beep_Double.ogg | Bin 0 -> 4613 bytes kcontrol/knotify/sounds/KDE_Beep_Harsh.ogg | Bin 0 -> 4747 bytes kcontrol/knotify/sounds/KDE_Beep_Honk.wav | Bin 0 -> 2802 bytes kcontrol/knotify/sounds/KDE_Beep_Lightning.wav | Bin 0 -> 10220 bytes kcontrol/knotify/sounds/KDE_Beep_Phone_1.ogg | Bin 0 -> 5517 bytes kcontrol/knotify/sounds/KDE_Beep_Phone_2.ogg | Bin 0 -> 7067 bytes kcontrol/knotify/sounds/KDE_Beep_Pop.wav | Bin 0 -> 414 bytes kcontrol/knotify/sounds/KDE_Beep_RimShot.wav | Bin 0 -> 13996 bytes kcontrol/knotify/sounds/KDE_Beep_RingRing.wav | Bin 0 -> 5932 bytes kcontrol/knotify/sounds/KDE_Beep_ShortBeep.wav | Bin 0 -> 2270 bytes kcontrol/knotify/sounds/KDE_Beep_Yo.wav | Bin 0 -> 4538 bytes kcontrol/knotify/sounds/KDE_Bottles.ogg | Bin 0 -> 13853 bytes kcontrol/knotify/sounds/KDE_Chimes_1.ogg | Bin 0 -> 29944 bytes kcontrol/knotify/sounds/KDE_Chimes_2.ogg | Bin 0 -> 23635 bytes kcontrol/knotify/sounds/KDE_Chimes_3.ogg | Bin 0 -> 31716 bytes kcontrol/knotify/sounds/KDE_Click.wav | Bin 0 -> 1824 bytes kcontrol/knotify/sounds/KDE_Click_1.ogg | Bin 0 -> 4715 bytes kcontrol/knotify/sounds/KDE_Click_2.ogg | Bin 0 -> 5316 bytes kcontrol/knotify/sounds/KDE_Click_3.ogg | Bin 0 -> 4032 bytes kcontrol/knotify/sounds/KDE_Close_Window.wav | Bin 0 -> 26270 bytes kcontrol/knotify/sounds/KDE_Critical_Error.wav | Bin 0 -> 183496 bytes kcontrol/knotify/sounds/KDE_Desktop1.wav | Bin 0 -> 4794 bytes kcontrol/knotify/sounds/KDE_Desktop2.wav | Bin 0 -> 5178 bytes kcontrol/knotify/sounds/KDE_Desktop3.wav | Bin 0 -> 5106 bytes kcontrol/knotify/sounds/KDE_Desktop4.wav | Bin 0 -> 4962 bytes kcontrol/knotify/sounds/KDE_Desktop5.wav | Bin 0 -> 5026 bytes kcontrol/knotify/sounds/KDE_Desktop6.wav | Bin 0 -> 5122 bytes kcontrol/knotify/sounds/KDE_Desktop7.wav | Bin 0 -> 5250 bytes kcontrol/knotify/sounds/KDE_Desktop8.wav | Bin 0 -> 5218 bytes kcontrol/knotify/sounds/KDE_Desktop_1.ogg | Bin 0 -> 32355 bytes kcontrol/knotify/sounds/KDE_Desktop_2.ogg | Bin 0 -> 37561 bytes kcontrol/knotify/sounds/KDE_Desktop_3.ogg | Bin 0 -> 36602 bytes kcontrol/knotify/sounds/KDE_Desktop_4.ogg | Bin 0 -> 37532 bytes kcontrol/knotify/sounds/KDE_Desktop_5.ogg | Bin 0 -> 36807 bytes kcontrol/knotify/sounds/KDE_Desktop_6.ogg | Bin 0 -> 36079 bytes kcontrol/knotify/sounds/KDE_Desktop_7.ogg | Bin 0 -> 38732 bytes kcontrol/knotify/sounds/KDE_Desktop_8.ogg | Bin 0 -> 37169 bytes kcontrol/knotify/sounds/KDE_Dialog_Appear.ogg | Bin 0 -> 25042 bytes kcontrol/knotify/sounds/KDE_Dialog_Appear.wav | Bin 0 -> 61084 bytes kcontrol/knotify/sounds/KDE_Dialog_Disappear.ogg | Bin 0 -> 26129 bytes kcontrol/knotify/sounds/KDE_Dialog_Disappear.wav | Bin 0 -> 81506 bytes kcontrol/knotify/sounds/KDE_Door.ogg | Bin 0 -> 9694 bytes kcontrol/knotify/sounds/KDE_Drum_Break.ogg | Bin 0 -> 21007 bytes kcontrol/knotify/sounds/KDE_Error.wav | Bin 0 -> 24970 bytes kcontrol/knotify/sounds/KDE_Error_1.ogg | Bin 0 -> 28249 bytes kcontrol/knotify/sounds/KDE_Error_2.ogg | Bin 0 -> 4933 bytes kcontrol/knotify/sounds/KDE_Error_3.ogg | Bin 0 -> 7124 bytes kcontrol/knotify/sounds/KDE_Event_1.ogg | Bin 0 -> 25813 bytes kcontrol/knotify/sounds/KDE_Event_2.ogg | Bin 0 -> 27085 bytes kcontrol/knotify/sounds/KDE_Event_3.ogg | Bin 0 -> 15743 bytes kcontrol/knotify/sounds/KDE_Event_4.ogg | Bin 0 -> 14400 bytes kcontrol/knotify/sounds/KDE_Event_5.ogg | Bin 0 -> 19325 bytes kcontrol/knotify/sounds/KDE_Glass_Break.ogg | Bin 0 -> 11005 bytes kcontrol/knotify/sounds/KDE_Keyboard_Key_1.ogg | Bin 0 -> 4672 bytes kcontrol/knotify/sounds/KDE_Logout.wav | Bin 0 -> 132744 bytes kcontrol/knotify/sounds/KDE_Logout_1.ogg | Bin 0 -> 77261 bytes kcontrol/knotify/sounds/KDE_Logout_2.ogg | Bin 0 -> 43763 bytes kcontrol/knotify/sounds/KDE_Logout_3.ogg | Bin 0 -> 36215 bytes kcontrol/knotify/sounds/KDE_Notify.wav | Bin 0 -> 90464 bytes kcontrol/knotify/sounds/KDE_Pop.ogg | Bin 0 -> 4305 bytes kcontrol/knotify/sounds/KDE_Star_Ship_1.ogg | Bin 0 -> 44075 bytes kcontrol/knotify/sounds/KDE_Startup.wav | Bin 0 -> 365228 bytes kcontrol/knotify/sounds/KDE_Startup_1.ogg | Bin 0 -> 124445 bytes kcontrol/knotify/sounds/KDE_Startup_2.ogg | Bin 0 -> 141189 bytes kcontrol/knotify/sounds/KDE_Startup_3.ogg | Bin 0 -> 109393 bytes kcontrol/knotify/sounds/KDE_TypeWriter_Bell.ogg | Bin 0 -> 9660 bytes .../knotify/sounds/KDE_TypeWriter_End_Of_Line.ogg | Bin 0 -> 11187 bytes kcontrol/knotify/sounds/KDE_TypeWriter_Key_1.ogg | Bin 0 -> 5701 bytes kcontrol/knotify/sounds/KDE_TypeWriter_Key_2.ogg | Bin 0 -> 5428 bytes kcontrol/knotify/sounds/KDE_TypeWriter_Reload.ogg | Bin 0 -> 11372 bytes kcontrol/knotify/sounds/KDE_TypeWriter_Scroll.ogg | Bin 0 -> 6772 bytes kcontrol/knotify/sounds/KDE_Vox_Ahem.ogg | Bin 0 -> 13701 bytes kcontrol/knotify/sounds/KDE_Vox_Yo.ogg | Bin 0 -> 14071 bytes kcontrol/knotify/sounds/KDE_Warp.ogg | Bin 0 -> 3894 bytes kcontrol/knotify/sounds/KDE_Water_Drop.ogg | Bin 0 -> 8139 bytes kcontrol/knotify/sounds/KDE_Window_Close.ogg | Bin 0 -> 9230 bytes kcontrol/knotify/sounds/KDE_Window_Close.wav | Bin 0 -> 202848 bytes kcontrol/knotify/sounds/KDE_Window_DeIconify.ogg | Bin 0 -> 13322 bytes kcontrol/knotify/sounds/KDE_Window_DeIconify.wav | Bin 0 -> 26698 bytes kcontrol/knotify/sounds/KDE_Window_Hide.ogg | Bin 0 -> 22658 bytes kcontrol/knotify/sounds/KDE_Window_Iconify.ogg | Bin 0 -> 14211 bytes kcontrol/knotify/sounds/KDE_Window_Iconify.wav | Bin 0 -> 26134 bytes kcontrol/knotify/sounds/KDE_Window_Maximize.wav | Bin 0 -> 26402 bytes kcontrol/knotify/sounds/KDE_Window_Open.ogg | Bin 0 -> 9481 bytes kcontrol/knotify/sounds/KDE_Window_Open.wav | Bin 0 -> 305432 bytes kcontrol/knotify/sounds/KDE_Window_Shade_Down.ogg | Bin 0 -> 26114 bytes kcontrol/knotify/sounds/KDE_Window_Shade_Down.wav | Bin 0 -> 20522 bytes kcontrol/knotify/sounds/KDE_Window_Shade_Up.ogg | Bin 0 -> 27328 bytes kcontrol/knotify/sounds/KDE_Window_Shade_Up.wav | Bin 0 -> 20578 bytes kcontrol/knotify/sounds/KDE_Window_Sticky.ogg | Bin 0 -> 7594 bytes kcontrol/knotify/sounds/KDE_Window_Sticky.wav | Bin 0 -> 17706 bytes kcontrol/knotify/sounds/KDE_Window_UnHide.ogg | Bin 0 -> 23615 bytes kcontrol/knotify/sounds/KDE_Window_UnMaximize.wav | Bin 0 -> 42092 bytes kcontrol/knotify/sounds/KDE_Window_UnSticky.ogg | Bin 0 -> 12300 bytes kcontrol/knotify/sounds/KDE_Window_UnSticky.wav | Bin 0 -> 20522 bytes kcontrol/knotify/sounds/Makefile.am | 113 +++++++ 117 files changed, 1139 insertions(+) create mode 100644 kcontrol/knotify/CHANGES create mode 100644 kcontrol/knotify/Makefile.am create mode 100644 kcontrol/knotify/README create mode 100644 kcontrol/knotify/kcmnotify.desktop create mode 100644 kcontrol/knotify/knotify.cpp create mode 100644 kcontrol/knotify/knotify.h create mode 100644 kcontrol/knotify/play.png create mode 100644 kcontrol/knotify/playersettings.ui create mode 100644 kcontrol/knotify/sounds/KDE_Beep.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Ahem.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Beep.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Bottles.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Car.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Classic.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_ClassicBeep.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_ClockChime.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Connect.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Connect.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Digital_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Digital_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Door.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Double.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Harsh.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Honk.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Lightning.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Phone_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Phone_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Pop.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_RimShot.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_RingRing.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_ShortBeep.wav create mode 100644 kcontrol/knotify/sounds/KDE_Beep_Yo.wav create mode 100644 kcontrol/knotify/sounds/KDE_Bottles.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Chimes_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Chimes_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Chimes_3.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Click.wav create mode 100644 kcontrol/knotify/sounds/KDE_Click_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Click_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Click_3.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Close_Window.wav create mode 100644 kcontrol/knotify/sounds/KDE_Critical_Error.wav create mode 100644 kcontrol/knotify/sounds/KDE_Desktop1.wav create mode 100644 kcontrol/knotify/sounds/KDE_Desktop2.wav create mode 100644 kcontrol/knotify/sounds/KDE_Desktop3.wav create mode 100644 kcontrol/knotify/sounds/KDE_Desktop4.wav create mode 100644 kcontrol/knotify/sounds/KDE_Desktop5.wav create mode 100644 kcontrol/knotify/sounds/KDE_Desktop6.wav create mode 100644 kcontrol/knotify/sounds/KDE_Desktop7.wav create mode 100644 kcontrol/knotify/sounds/KDE_Desktop8.wav create mode 100644 kcontrol/knotify/sounds/KDE_Desktop_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Desktop_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Desktop_3.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Desktop_4.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Desktop_5.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Desktop_6.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Desktop_7.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Desktop_8.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Dialog_Appear.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Dialog_Appear.wav create mode 100644 kcontrol/knotify/sounds/KDE_Dialog_Disappear.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Dialog_Disappear.wav create mode 100644 kcontrol/knotify/sounds/KDE_Door.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Drum_Break.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Error.wav create mode 100644 kcontrol/knotify/sounds/KDE_Error_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Error_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Error_3.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Event_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Event_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Event_3.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Event_4.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Event_5.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Glass_Break.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Keyboard_Key_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Logout.wav create mode 100644 kcontrol/knotify/sounds/KDE_Logout_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Logout_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Logout_3.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Notify.wav create mode 100644 kcontrol/knotify/sounds/KDE_Pop.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Star_Ship_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Startup.wav create mode 100644 kcontrol/knotify/sounds/KDE_Startup_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Startup_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Startup_3.ogg create mode 100644 kcontrol/knotify/sounds/KDE_TypeWriter_Bell.ogg create mode 100644 kcontrol/knotify/sounds/KDE_TypeWriter_End_Of_Line.ogg create mode 100644 kcontrol/knotify/sounds/KDE_TypeWriter_Key_1.ogg create mode 100644 kcontrol/knotify/sounds/KDE_TypeWriter_Key_2.ogg create mode 100644 kcontrol/knotify/sounds/KDE_TypeWriter_Reload.ogg create mode 100644 kcontrol/knotify/sounds/KDE_TypeWriter_Scroll.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Vox_Ahem.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Vox_Yo.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Warp.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Water_Drop.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_Close.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_Close.wav create mode 100644 kcontrol/knotify/sounds/KDE_Window_DeIconify.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_DeIconify.wav create mode 100644 kcontrol/knotify/sounds/KDE_Window_Hide.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_Iconify.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_Iconify.wav create mode 100644 kcontrol/knotify/sounds/KDE_Window_Maximize.wav create mode 100644 kcontrol/knotify/sounds/KDE_Window_Open.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_Open.wav create mode 100644 kcontrol/knotify/sounds/KDE_Window_Shade_Down.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_Shade_Down.wav create mode 100644 kcontrol/knotify/sounds/KDE_Window_Shade_Up.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_Shade_Up.wav create mode 100644 kcontrol/knotify/sounds/KDE_Window_Sticky.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_Sticky.wav create mode 100644 kcontrol/knotify/sounds/KDE_Window_UnHide.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_UnMaximize.wav create mode 100644 kcontrol/knotify/sounds/KDE_Window_UnSticky.ogg create mode 100644 kcontrol/knotify/sounds/KDE_Window_UnSticky.wav create mode 100644 kcontrol/knotify/sounds/Makefile.am (limited to 'kcontrol/knotify') diff --git a/kcontrol/knotify/CHANGES b/kcontrol/knotify/CHANGES new file mode 100644 index 000000000..e69de29bb diff --git a/kcontrol/knotify/Makefile.am b/kcontrol/knotify/Makefile.am new file mode 100644 index 000000000..1fc878b67 --- /dev/null +++ b/kcontrol/knotify/Makefile.am @@ -0,0 +1,27 @@ +SUBDIRS= . sounds + +kde_module_LTLIBRARIES = kcm_knotify.la + +kcm_knotify_la_SOURCES = knotify.cpp playersettings.ui + +kcm_knotify_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined +kcm_knotify_la_LIBADD = $(LIB_KIO) +AM_CPPFLAGS = $(all_includes) + +METASOURCES = AUTO + +noinst_HEADERS = knotify.h + +messages: rc.cpp + $(XGETTEXT) *.cpp -o $(podir)/kcmnotify.pot + +xdg_apps_DATA = kcmnotify.desktop + +pics_DATA = play.png +picsdir = $(kde_datadir)/kcontrol/pics + +# the following should be gone at release time. +install-data-local: + rm -f $(DESTDIR)$(kde_appsdir)/Settings/LookNFeel/knotify.desktop + rm -f $(DESTDIR)$(kde_appsdir)/Settings/LookNFeel/kcmnotify.desktop + diff --git a/kcontrol/knotify/README b/kcontrol/knotify/README new file mode 100644 index 000000000..7fd84d340 --- /dev/null +++ b/kcontrol/knotify/README @@ -0,0 +1,2 @@ +This is a KDE Control Center Module for configuring system notifications + diff --git a/kcontrol/knotify/kcmnotify.desktop b/kcontrol/knotify/kcmnotify.desktop new file mode 100644 index 000000000..217512c05 --- /dev/null +++ b/kcontrol/knotify/kcmnotify.desktop @@ -0,0 +1,243 @@ +[Desktop Entry] +Exec=kcmshell kcmnotify +Icon=knotify +Type=Application +DocPath=kcontrol/kcmnotify/index.html + + +X-KDE-Library=knotify +X-KDE-ParentApp=kcontrol + +Name=System Notifications +Name[af]=Stelsel Inkennistelling +Name[ar]=تنبيهات النظام +Name[az]=Sistem Bildirişləri +Name[be]=Сістэмныя нагадванні +Name[bg]=Уведомяване +Name[bn]=সিস্টেম বিজ্ঞপ্তি +Name[br]=Kemenn ar reizhiad +Name[bs]=Sistemska obavještenja +Name[ca]=Notificacions del sistema +Name[cs]=Systémová hlášení +Name[csb]=Systemòwé dôwanié wiédzë +Name[cy]=Hysbysiadau Cysawd +Name[da]=Systembekendtgørelser +Name[de]=Systemnachrichten +Name[el]=Ειδοποιήσεις συστήματος +Name[eo]=Sistematentigoj +Name[es]=Notificaciones del sistema +Name[et]=Süsteemi märguanded +Name[eu]=Sistemaren jakinarazpenak +Name[fa]=اخطارهای سیستم +Name[fi]=Järjestelmähuomautukset +Name[fr]=Notifications du système +Name[fy]=Systeemoankundigingen +Name[ga]=Fógairt an Chórais +Name[gl]=Notificacións do Sistema +Name[he]=הודעות מערכת +Name[hi]=तंत्र सूचनाएँ +Name[hr]=Obavijesti sustava +Name[hu]=Rendszerüzenetek +Name[id]=Pemberitahuan Sistem +Name[is]=Kerfistilkynningar +Name[it]=Avvisi di sistema +Name[ja]=システム通知 +Name[ka]=სისტემური შეტყობინებები +Name[kk]=Жүйелік құлақтандырулар +Name[km]=ការ​ជូនដំណឹង​ប្រព័ន្ធ +Name[ko]=시스템 알림 +Name[lo]=ການແຈ້ງເຕືອນຂອງລະບົບ +Name[lt]=Sistemos pranešimai +Name[lv]=Sistēmas Paziņojumi +Name[mk]=Системски известувања +Name[mn]=Системийн сонордуулга +Name[ms]=Pemberitahuan Sistem +Name[mt]=Notifiki tas-Sistema +Name[nb]=Systemvarsler +Name[nds]=Systeemnarichten +Name[ne]=प्रणाली सूचना +Name[nl]=Systeemnotificaties +Name[nn]=Systempåminningar +Name[nso]=Ditsebiso tsa System +Name[oc]=Notificacions dèu sistemo +Name[pa]=ਸਿਸਟਮ ਸੂਚਨਾਵਾਂ +Name[pl]=Powiadomienia systemowe +Name[pt]=Mensagens do Sistema +Name[pt_BR]=Notificações do Sistema +Name[ro]=Notificări de sistem +Name[ru]=Системные уведомления +Name[rw]=Amamenyesha Sisitemu +Name[se]=Vuogádatmuittuhusat +Name[sk]=Systémové správy +Name[sl]=Sistemska obvestila +Name[sr]=Системска обавештења +Name[sr@Latn]=Sistemska obaveštenja +Name[sv]=Systemunderrättelser +Name[ta]=அமைப்பு குறிப்பகள் +Name[tg]=Огоҳномаи система +Name[th]=การแจ้งเตือนของระบบ +Name[tr]=Sistem Bildirimleri +Name[tt]=Sistem Beldermäläre +Name[uk]=Системні повідомлення +Name[uz]=Tizimning xabarnomalari +Name[uz@cyrillic]=Тизимнинг хабарномалари +Name[ven]=Thalutshedzo ya UA (M18 kha WinNT 4.0) +Name[vi]=Thông báo Hệ thống +Name[wa]=Notifiaedjes do sistinme +Name[xh]=Izaziso Zendlela esetyenziswayo +Name[zh_CN]=系统通知 +Name[zh_TW]=系統通知 +Name[zu]=Izaziso zesistimu + +Comment=System Notification Configuration +Comment[af]=Stelsel Inkennisstelling Opstelling +Comment[ar]=إعدادات تنبيهات النظام +Comment[az]=Sistem Bildirişi Quraşdırması +Comment[be]=Настаўленні сістэмных нагадванняў +Comment[bg]=Настройване на системата за уведомяване +Comment[bn]=সিস্টেম বিজ্ঞপ্তি কনফিগারেশন +Comment[br]=Kefluniañ kemenn ar reizhiad +Comment[bs]=Podešavanje sistemskih obavještenja +Comment[ca]=Configuració de les notificacions del sistema +Comment[cs]=Nastavení systémových hlášení +Comment[csb]=Kònfigùracëjô systemòwegò dôwaniô wiédzë +Comment[cy]=Ffurfweddu Hysbysiadau Cysawd +Comment[da]=Opsætning af systembekendtgørelser +Comment[de]=Einstellung der Systemnachrichten +Comment[el]=Ρύθμιση ειδοποιήσεων συστήματος +Comment[eo]=Agordo de sistematentigoj +Comment[es]=Configuración de las notificaciones del sistema +Comment[et]=Süsteemsete märguannete seadistamine +Comment[eu]=Sistemaren jakinarazpenen konfigurazioa +Comment[fa]=پیکربندی اخطارهای سیستم +Comment[fi]=Järjestelmähuomautusten asetukset +Comment[fr]=Configuration du système de notifications +Comment[fy]=Ynstellings fan de systeemoankundigingen +Comment[gl]=Configuración das Notificacións do Sistema +Comment[he]=שינוי הגדרות הודעות המערכת +Comment[hi]=तंत्र सूचना कॉन्फ़िगरेशन +Comment[hr]=Konfiguriranje obavijesti sustava +Comment[hu]=A rendszerüzenetek beállítása +Comment[id]=Konfigurasi pemberitahuan sistem +Comment[is]=Stillingar tilkynninga frá kerfinu +Comment[it]=Configurazione degli avvisi di sistema +Comment[ja]=システム通知の設定 +Comment[ka]=სისტემური შეტყობინებების კონფიგურაცია +Comment[kk]=Жүйелік құлақтандыруларды баптау +Comment[km]=ការ​កំណត់​រចនាសម្ព័ន្ធជូនដំណឹងប្រព័ន្ធ +Comment[ko]=시스템 알림 설정 +Comment[lo]=ປັບແຕ່ງການແຈ້ງເຕືອນຂອງລະບົບ +Comment[lt]=Sistemos pranešimų derinimas +Comment[lv]=Sistēmas Paziņojumu Konfigurēšana +Comment[mk]=Конфигурација на системските известувања +Comment[mn]=Системийн сонордуулга тохируулга +Comment[ms]=Konfigurasi Pemberitahuan Sistem +Comment[mt]=Konfigurazzjoni tan-notifiki tas-Sistema +Comment[nb]=Oppett av systemvarsling +Comment[nds]=Systeemnarichten instellen +Comment[ne]=प्रणाली सूचना कन्फिगरेसन +Comment[nl]=Instellingen van de systeemnotificatie +Comment[nn]=Oppsett av systempåminningar +Comment[nso]=Peakanyo ya Tsebiso ya System +Comment[oc]=Configuracion de les notificacions dèu sistemo +Comment[pa]=ਸਿਸਟਮ ਸੂਚਨਾ ਸੰਰਚਨਾ +Comment[pl]=Konfiguracja powiadamiania systemowego +Comment[pt]=Configuração das mensagens do sistema +Comment[pt_BR]=Configuração das notificações do sistema +Comment[ro]=Configurează notificările de sistem +Comment[ru]=Настройка системных уведомлений +Comment[rw]=Iboneza ry'Amamenyesha Sisitemu +Comment[se]=Heivet vuogádatmuittuhusat +Comment[sk]=Nastavenie správ systému +Comment[sl]=Nastavitev sistemskih obvestil +Comment[sr]=Подешавање системских обавештења +Comment[sr@Latn]=Podešavanje sistemskih obaveštenja +Comment[sv]=Anpassa systemunderrättelser +Comment[ta]=சாதனம் குறிப்பு அமைப்பு +Comment[tg]=Танзими огоҳномаи система +Comment[th]=ปรับแต่งการแจ้งเตือนของระบบ +Comment[tr]=Sistem Bildirimi Yapılandırması +Comment[tt]=Sistem Beldermälären Caylaw +Comment[uk]=Налаштування системних повідомлень +Comment[uz]=Tizimning xabarnomalarini moslash +Comment[uz@cyrillic]=Тизимнинг хабарномаларини мослаш +Comment[ven]=Khonifiguresheni yau divhadza sisiteme +Comment[vi]=Cấu hình Thông báo Hệ thống +Comment[wa]=Apontiaedje po les notifiaedjes do sistinme +Comment[xh]=Uqwalaselo Lwezaziso Zendlela yokusebenza +Comment[zh_CN]=系统通知配置 +Comment[zh_TW]=系統通知組態 +Comment[zu]=Inhlanganiselo yokwazisa kwesistimu + +Keywords=System sounds,Audio,Sound,Notify,Alerts,Notification +Keywords[af]=Stelsel sounds,Audio,Sound,Notify,Alerts,Notification +Keywords[ar]=أصوات النظام,Audio,System sounds,Audio,Sound,Notify,Alerts, Notification,صوت,نبّه,تحذيات,تنبيهات +Keywords[az]=Sistem səsləri,Səs,Bildir,Alarmlar,Bildirmə +Keywords[be]=Сістэмныя гукі,Аўдыё,Гук,Нагадванне,Важныя нагадванні,Нагадваць,System sounds,Audio,Sound,Notify,Alerts,Notification +Keywords[bg]=системен, звук, уведомяване, информация, грешка, събития, System sounds, Audio, Sound, Notify, Alerts, Notification +Keywords[br]=sonioù ar reizhiad,klevet,son,kemenn,evezh +Keywords[bs]=System sounds,Audio,Sound,Notify,Alerts,Notification,zvuk +Keywords[ca]=Sons del sistema,Àudio,So,Notifica,Alertes,Notificació +Keywords[cs]=Systémové zvuky,Audio,Oznámit,Varování,Oznámení +Keywords[csb]=Systemòwé zwãczi,Audio,Zwãk,Dôwac wiédzã,Alarmë,Dôwanié wiédzë +Keywords[cy]=Sain cysawd,Awdio,Swn,Hysbysu,Rhybuddion,Hysbysiad +Keywords[da]=Systemlyde,audio,Lyd,Bekendtgør,Advarsler,Bekendtgørelse +Keywords[de]=Klänge,Systemklänge,Audio,Sound,Benachrichtigung,Nachricht,Alarm,Signalton,Beep +Keywords[el]=Ήχοι συστήματος,Audio,Ήχος,Ειδοποιώ,Συναγερμοί,Ειδοποίηση +Keywords[eo]=sistemo,sonoroj,aŭdio,sono,atentigo,alarmo,operaciumo +Keywords[es]=Sonidos del sistema,Audio,Sonido,Notificar,Alertas,Notificación +Keywords[et]=süsteemsed helid,audio,heli,märguanded,alarm +Keywords[eu]=Sistemaren soinuak,Audioa,Soinua,Jakinarazi,Alertak,Jakinarazpenak +Keywords[fa]=صداهای سیستم، صوتی، صوت، اخطار، هشدار، اخطار +Keywords[fi]=Järjestelmä-äänet,Äänet,Huomauttaa,Varoitukset,Huomautus +Keywords[fr]=sons du système,son,audio,notification,alertes,événements +Keywords[fy]=systeemlûden,audio,lûd,warskôgingen,lûdssinjaal,oankundiging +Keywords[gl]=Sons do sistema,Audio,Son,Notificar,Alertas,Notificación +Keywords[he]=צלילי מערכת,שמע,צליל,הודעה,תזכורות, System sounds,Audio,Sound,Notify,Alerts,Notification +Keywords[hi]=तंत्र ध्वनि,ऑडियो,ध्वनि,सूचना,सतर्क,सूचनाएँ +Keywords[hr]=System sounds,Audio,Sound,Notify,Alerts,Notification,Zvuk,Sistemski zvukovi,Obavijesti,Upozorenja,Obavijest +Keywords[hu]=rendszerhangok,audió,hang,figyelmeztető,vészjelző +Keywords[id]=System sounds,Audio,Sound,Notify,Alerts,Pemberitahuan +Keywords[is]=Kerfishljóð,Hljóð,Tilkynningar,Villur,Bjalla +Keywords[it]=Suoni di sistema,Audio,Suono,Notifica,Avvisi,Messaggi +Keywords[ja]=システムサウンド,オーディオ,サウンド,通知, アラート,通知 +Keywords[ka]=სისტემის ხმები,აუდიო,ხმა,შეტყობინება,განგაში,შეტყობინება +Keywords[km]=សំឡេង​ប្រព័ន្ធ,សំឡេង,សោត,ជូនដំណឹង,ព្រមាន,ការ​ជូនដំណឹង +Keywords[lt]=Sistemos garsai,Audio,Garsas,Pranešimas,Perspėjimai +Keywords[lv]=Sistēmas skaņas,Audio,Skaņa,Paziņo,Brīdinājumi,Paziņošana +Keywords[mk]=System sounds,Audio,Sound,Notify,Alerts,Notification,Системски звуци,Аудио,Звук,Извести,Предупредувања,Известувања +Keywords[mn]=Чимээ,Системийн чимээ,Audio,Дуу,Мэдээлэгч,Мэдээ,Alarm,Сигналын чимээ,Beep +Keywords[nb]=Systemlyder,Lyd,Varsle,Advarsel,Varsling,alarm,signal +Keywords[nds]=Systeemkläng,Audio,Klang,Notify,Bescheed,Notification,Bescheed geven +Keywords[ne]=प्रणाली ध्वनि, अडियो, ध्वनि, सूचित, चेतावनी, सूचना +Keywords[nl]=systeemgeluiden,audio,geluid,waarschuwingen,geluidssignaal,notificatie +Keywords[nn]=systemlydar,lyd,påminning,varsel,alarm,signal +Keywords[nso]=Medumo ya System,Kwagalo,Modumo,Tsebisa,Ditheeletso,Tsebiso +Keywords[oc]=Sons dèu sistemo,Ã?udio,Son,Notifica,Alertes,Notificacion +Keywords[pa]=ਸਿਸਟਮ ਧੁਨੀ,ਆਡੀਓ,ਧੁਨੀ,ਸੂਚਨਾ,ਚੇਤਾਵਨੀ,ਸੂਚਨਾਵਾਂ +Keywords[pl]=Dźwieki systemowe,Audio,Dźwiek,Powiadamiac,Alarmy,Powiadamianie +Keywords[pt]=sons de sistema,áudio,som,notificar,alertas,notificação +Keywords[pt_BR]=Sons de sistema,áudio,Som,Notificação,Alertas,Notificação +Keywords[ro]=sunete de sistem,audio,sunet,alertă,notificare +Keywords[rw]=Amajwi sisitemu,Inyumvo,Ijwi,Kumenyesha,Integuza,Imenyekanisha +Keywords[se]=vuogádatjienat,jietna,audio,dieđihit,váruhusat,signála +Keywords[sk]=Systém zvukov,Audio,Zvuk,Správy,Upozornenia +Keywords[sl]=sistemski zvoki,avdio,zvok,obvestila,alarmi +Keywords[sr]=System sounds,Аудио,Sound,Notify,Alerts,Notification,Звук,Узбуне,обавештења,системски звуци +Keywords[sr@Latn]=System sounds,Audio,Sound,Notify,Alerts,Notification,Zvuk,Uzbune,obaveštenja,sistemski zvuci +Keywords[sv]=Systemljud,Ljud,ljud,Underrättelse,Varningar,Bekräftelse +Keywords[ta]=அமைப்பு ஒலிகள்,கேட்பொலி,ஒலி,தெரியப்படுத்து,எச்சரிக்கைகள்,தெரியப்படுத்துதல் +Keywords[th]=ระบบเสียง,ออดิโอ,เสียง,แจ้งเตือน,เตือน,การแจ้งเตือน +Keywords[tr]=Sistem sesleri,Ses,Bildir,Alarmlar,Bildirme +Keywords[uk]=системні звуки,аудіо,audio,звук,повідомлення,попередження,сповіщення +Keywords[uz]=Tizim tovush signallari,Audio,Tovush,Xabar berish,Xabarnomalar +Keywords[uz@cyrillic]=Тизим товуш сигналлари,Аудио,Товуш,Хабар бериш,Хабарномалар +Keywords[ven]=Mubvumo wa sisitemu,Zwaupfiwa,Mubvumo,Divhadza,Divhisa,Ndivhadzo +Keywords[vi]=Âm thanh hệ thống,Âm,Âm thanh,Thông báo,Cảnh báo,Thông báo +Keywords[wa]=Sons do sistinme,Audio,Son,Notifyî,Alertes,Notifiaedje +Keywords[xh]=Izandi zendlela,Evakalayo,Isandi,Yazisa,Izilumkiso zengozi,Izaziso +Keywords[zh_CN]=System sounds,Audio,Sound,Notify,Alerts,Notification,系统音效,音效,通知,警报 +Keywords[zh_TW]=System sounds,Audio,Sound,Notify,Alerts,Notification,系統音效,音效,通知,警報 +Keywords[zu]=Imisindo yesistimu,Okuzwakalayo,Umsindo,Yazisa,Ukuqwashisa, Ukwazisa + +Categories=Qt;KDE;X-KDE-settings-sound; diff --git a/kcontrol/knotify/knotify.cpp b/kcontrol/knotify/knotify.cpp new file mode 100644 index 000000000..8cd4d16a5 --- /dev/null +++ b/kcontrol/knotify/knotify.cpp @@ -0,0 +1,328 @@ +/* + Copyright (C) 2000,2002 Carsten Pfeiffer + + 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 +#include +#include +#include +#include +#include + +#include + +#include +#include +#include +#include +#include +#include +#include +#include + + +#include "knotify.h" +#include "playersettings.h" + +static const int COL_FILENAME = 1; + +typedef KGenericFactory NotifyFactory; +K_EXPORT_COMPONENT_FACTORY( kcm_knotify, NotifyFactory("kcmnotify") ) + +using namespace KNotify; + +KCMKNotify::KCMKNotify(QWidget *parent, const char *name, const QStringList & ) + : KCModule(NotifyFactory::instance(), parent, name), + m_playerSettings( 0L ) +{ + setButtons( Help | Default | Apply ); + + setQuickHelp( i18n("

System Notifications

" + "KDE 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, 0, KDialog::spacingHint() ); + + QLabel *label = new QLabel( i18n( "Event source:" ), this ); + m_appCombo = new KComboBox( false, this, "app combo" ); + + QHBoxLayout *hbox = new QHBoxLayout( layout ); + hbox->addWidget( label ); + hbox->addWidget( m_appCombo, 10 ); + + m_notifyWidget = new KNotifyWidget( this, "knotify widget", true ); + connect( m_notifyWidget, SIGNAL( changed( bool )), SIGNAL( changed(bool))); + + layout->addWidget( m_notifyWidget ); + + connect( m_appCombo, SIGNAL( activated( const QString& ) ), + SLOT( slotAppActivated( const QString& )) ); + + connect( m_notifyWidget->m_playerButton, SIGNAL( clicked() ), + SLOT( slotPlayerSettings())); + + KAboutData* ab = new KAboutData( + "kcmknotify", I18N_NOOP("KNotify"), "3.0", + I18N_NOOP("System Notification Control Panel Module"), + KAboutData::License_GPL, "(c) 2002 Carsten Pfeiffer", 0, 0 ); + ab->addAuthor( "Carsten Pfeiffer", 0, "pfeiffer@kde.org" ); + ab->addCredit( "Charles Samuels", I18N_NOOP("Original implementation"), + "charles@altair.dhs.org" ); + setAboutData( ab ); + + load(); +} + +KCMKNotify::~KCMKNotify() +{ + KConfig config( "knotifyrc", false, false ); + config.setGroup( "Misc" ); + ApplicationList allApps = m_notifyWidget->allApps(); + ApplicationListIterator appIt( allApps ); + for ( ; appIt.current(); ++appIt ) + { + if( appIt.current()->text() == m_appCombo->currentText()) + config.writeEntry( "LastConfiguredApp", appIt.current()->appName()); + } +} + +Application * KCMKNotify::applicationByDescription( const QString& text ) +{ + // not really efficient, but this is not really time-critical + ApplicationList& allApps = m_notifyWidget->allApps(); + ApplicationListIterator it ( allApps ); + for ( ; it.current(); ++it ) + { + if ( it.current()->text() == text ) + return it.current(); + } + + return 0L; +} + +void KCMKNotify::slotAppActivated( const QString& text ) +{ + Application *app = applicationByDescription( text ); + if ( app ) + { + m_notifyWidget->clearVisible(); + m_notifyWidget->addVisibleApp( app ); + } +} + +void KCMKNotify::slotPlayerSettings() +{ + // kcmshell is a modal dialog, and apparently, we can't put a non-modal + // dialog besides a modal dialog. sigh. + if ( !m_playerSettings ) + m_playerSettings = new PlayerSettingsDialog( this, true ); + + m_playerSettings->exec(); +} + + +void KCMKNotify::defaults() +{ + m_notifyWidget->resetDefaults( true ); // ask user + load( true ); +} + +void KCMKNotify::load() +{ + load( false ); +} + +void KCMKNotify::load( bool useDefaults ) +{ + setEnabled( false ); + + m_appCombo->clear(); + m_notifyWidget->clear(); + + QStringList fullpaths = + KGlobal::dirs()->findAllResources("data", "*/eventsrc", false, true ); + + QStringList::ConstIterator it = fullpaths.begin(); + for ( ; it != fullpaths.end(); ++it) + m_notifyWidget->addApplicationEvents( *it ); + + ApplicationList allApps = m_notifyWidget->allApps(); + allApps.sort(); + m_notifyWidget->setEnabled( !allApps.isEmpty() ); + + KConfig config( "knotifyrc", true, false ); + config.setReadDefaults( useDefaults ); + config.setGroup( "Misc" ); + QString select = config.readEntry( "LastConfiguredApp" ); + if( select.isEmpty()) + select = "knotify"; // default to system notifications + bool selected = false; + + ApplicationListIterator appIt( allApps ); + for ( ; appIt.current(); ++appIt ) + { + m_appCombo->insertItem( appIt.current()->text() ); + if( appIt.current()->appName() == select ) + { + m_appCombo->setCurrentItem( appIt.current()->text()); + selected = true; + } + else if( !selected && appIt.current()->appName() == "knotify" ) + m_appCombo->setCurrentItem( appIt.current()->text()); + } + + // sets the applicationEvents for KNotifyWidget + slotAppActivated( m_appCombo->currentText() ); + + // unsetCursor(); // unsetting doesn't work. sigh. + setEnabled( true ); + emit changed( useDefaults ); +} + +void KCMKNotify::save() +{ + if ( m_playerSettings ) + m_playerSettings->save(); + + m_notifyWidget->save(); // will dcop knotify about its new config + + emit changed( false ); +} + +/////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////// + +PlayerSettingsDialog::PlayerSettingsDialog( QWidget *parent, bool modal ) + : KDialogBase( parent, "player settings dialog", modal, + i18n("Player Settings"), Ok|Apply|Cancel, Ok, true ) +{ + QFrame *frame = makeMainWidget(); + + QVBoxLayout *topLayout = new QVBoxLayout( frame, 0, + KDialog::spacingHint() ); + + m_ui = new PlayerSettingsUI(frame); + topLayout->addWidget(m_ui); + + load( false ); + dataChanged = false; + enableButton(Apply, false); + + connect( m_ui->cbExternal, SIGNAL( toggled( bool ) ), this, SLOT( externalToggled( bool ) ) ); + connect( m_ui->grpPlayers, SIGNAL( clicked( int ) ), this, SLOT( slotChanged() ) ); + connect( m_ui->volumeSlider, SIGNAL( valueChanged ( int ) ), this, SLOT( slotChanged() ) ); + connect( m_ui->reqExternal, SIGNAL( textChanged( const QString& ) ), this, SLOT( slotChanged() ) ); +} + +void PlayerSettingsDialog::load( bool useDefaults ) +{ + KConfig config( "knotifyrc", true, false ); + config.setReadDefaults( useDefaults ); + config.setGroup( "Misc" ); + bool useExternal = config.readBoolEntry( "Use external player", false ); + m_ui->cbExternal->setChecked( useExternal ); + m_ui->reqExternal->setURL( config.readPathEntry( "External player" ) ); + m_ui->volumeSlider->setValue( config.readNumEntry( "Volume", 100 ) ); + + if ( !m_ui->cbExternal->isChecked() ) + { + config.setGroup( "StartProgress" ); + if ( config.readBoolEntry( "Use Arts", true ) ) + { + m_ui->cbArts->setChecked( true ); + } + else + { + m_ui->cbNone->setChecked( true ); + } + } +} + +void PlayerSettingsDialog::save() +{ + // see kdelibs/arts/knotify/knotify.cpp + KConfig config( "knotifyrc", false, false ); + config.setGroup( "Misc" ); + + config.writePathEntry( "External player", m_ui->reqExternal->url() ); + config.writeEntry( "Use external player", m_ui->cbExternal->isChecked() ); + config.writeEntry( "Volume", m_ui->volumeSlider->value() ); + + config.setGroup( "StartProgress" ); + + if ( m_ui->cbNone->isChecked() ) + { + // user explicitly says "no sound!" + config.writeEntry( "Use Arts", false ); + } + else if ( m_ui->cbArts->isChecked() ) + { + // use explicitly said to use aRts so we turn it back on + // we don't want to always set this to the value of + // m_ui->cbArts->isChecked() since we don't want to + // turn off aRts support just because they also chose + // an external player + config.writeEntry( "Use Arts", true ); + config.writeEntry( "Arts Init", true ); // reset it for the next time + } + + config.sync(); +} + +// reimplements KDialogBase::slotApply() +void PlayerSettingsDialog::slotApply() +{ + save(); + dataChanged = false; + enableButton(Apply, false); + kapp->dcopClient()->send("knotify", "", "reconfigure()", ""); + + KDialogBase::slotApply(); +} + +// reimplements KDialogBase::slotOk() +void PlayerSettingsDialog::slotOk() +{ + if( dataChanged ) + slotApply(); + KDialogBase::slotOk(); +} + +void PlayerSettingsDialog::slotChanged() +{ + dataChanged = true; + enableButton(Apply, true); +} + +void PlayerSettingsDialog::externalToggled( bool on ) +{ + if ( on ) + m_ui->reqExternal->setFocus(); + else + m_ui->reqExternal->clearFocus(); +} + +#include "knotify.moc" diff --git a/kcontrol/knotify/knotify.h b/kcontrol/knotify/knotify.h new file mode 100644 index 000000000..2ee2f3ef6 --- /dev/null +++ b/kcontrol/knotify/knotify.h @@ -0,0 +1,96 @@ +/* + Copyright (C) 2000,2002 Carsten Pfeiffer + + + 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 + +#include +#include + +class QCheckBox; +class QLabel; +class QSlider; + +class KAboutData; +class KComboBox; +class KURLRequester; +class PlayerSettingsDialog; +class PlayerSettingsUI; + +namespace KNotify +{ + class Application; + class KNotifyWidget; +} + +class KCMKNotify : public KCModule +{ + Q_OBJECT + +public: + KCMKNotify(QWidget *parent, const char *name, const QStringList &); + virtual ~KCMKNotify(); + + virtual void defaults(); + virtual void save(); + virtual void load(bool useDefaults ); + +public slots: + virtual void load(); + +private slots: + void slotAppActivated( const QString& app ); + void slotPlayerSettings(); + +private: + KNotify::Application *applicationByDescription( const QString& text ); + + KComboBox *m_appCombo; + KNotify::KNotifyWidget *m_notifyWidget; + PlayerSettingsDialog *m_playerSettings; + +}; + +class PlayerSettingsDialog : public KDialogBase +{ + Q_OBJECT + +public: + PlayerSettingsDialog( QWidget *parent, bool modal ); + void load( bool useDefaults ); + void save(); + +protected slots: + virtual void slotApply(); + virtual void slotOk(); + void externalToggled( bool on ); + void slotChanged(); + +private: + PlayerSettingsUI* m_ui; + bool dataChanged; +}; + + +#endif diff --git a/kcontrol/knotify/play.png b/kcontrol/knotify/play.png new file mode 100644 index 000000000..e0daeb8c9 Binary files /dev/null and b/kcontrol/knotify/play.png differ diff --git a/kcontrol/knotify/playersettings.ui b/kcontrol/knotify/playersettings.ui new file mode 100644 index 000000000..f990fc995 --- /dev/null +++ b/kcontrol/knotify/playersettings.ui @@ -0,0 +1,330 @@ + +PlayerSettingsUI + + + PlayerSettingsUI + + + + 0 + 0 + 387 + 207 + + + + + unnamed + + + 0 + + + + textLabel1 + + + <b>Audio Player Settings</b> + + + + + line1 + + + HLine + + + Sunken + + + Horizontal + + + + + grpPlayers + + + NoFrame + + + + + + + unnamed + + + 0 + + + + cbNone + + + &No audio output + + + + + cbExternal + + + &Use an external player + + + + + spacer2 + + + Horizontal + + + Fixed + + + + 20 + 20 + + + + + + layout5 + + + + unnamed + + + + spacer4 + + + Vertical + + + Expanding + + + + 20 + 20 + + + + + + layout4 + + + + unnamed + + + 0 + + + 0 + + + + spacer1 + + + Horizontal + + + Expanding + + + + 233 + 20 + + + + + + textLabel3 + + + 100% + + + + + textLabel2 + + + 0% + + + + + volumeSlider + + + 100 + + + 10 + + + 100 + + + Horizontal + + + + + + + textLabel4 + + + &Volume: + + + volumeSlider + + + + + + + spacer3 + + + Horizontal + + + Fixed + + + + 20 + 20 + + + + + + cbArts + + + Use the &KDE sound system + + + true + + + + + textLabel5 + + + false + + + &Player: + + + reqExternal + + + + + reqExternal + + + false + + + + 5 + 5 + 10 + 0 + + + + + + + + spacer5 + + + Vertical + + + Expanding + + + + 20 + 16 + + + + + + + + + + cbArts + toggled(bool) + textLabel4 + setEnabled(bool) + + + cbArts + toggled(bool) + textLabel2 + setEnabled(bool) + + + cbArts + toggled(bool) + volumeSlider + setEnabled(bool) + + + cbArts + toggled(bool) + textLabel3 + setEnabled(bool) + + + cbExternal + toggled(bool) + textLabel5 + setEnabled(bool) + + + cbExternal + toggled(bool) + reqExternal + setEnabled(bool) + + + + cbArts + volumeSlider + reqExternal + cbExternal + cbNone + + + + kurlrequester.h + klineedit.h + kpushbutton.h + + diff --git a/kcontrol/knotify/sounds/KDE_Beep.ogg b/kcontrol/knotify/sounds/KDE_Beep.ogg new file mode 100644 index 000000000..ac9985bbd Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Ahem.wav b/kcontrol/knotify/sounds/KDE_Beep_Ahem.wav new file mode 100644 index 000000000..c6c7c4b0f Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Ahem.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Beep.wav b/kcontrol/knotify/sounds/KDE_Beep_Beep.wav new file mode 100644 index 000000000..3c18175f7 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Beep.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Bottles.wav b/kcontrol/knotify/sounds/KDE_Beep_Bottles.wav new file mode 100644 index 000000000..1b82bc128 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Bottles.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Car.ogg b/kcontrol/knotify/sounds/KDE_Beep_Car.ogg new file mode 100644 index 000000000..bb1f952c0 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Car.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Classic.ogg b/kcontrol/knotify/sounds/KDE_Beep_Classic.ogg new file mode 100644 index 000000000..991c08dc1 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Classic.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_ClassicBeep.wav b/kcontrol/knotify/sounds/KDE_Beep_ClassicBeep.wav new file mode 100644 index 000000000..f7e6d5977 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_ClassicBeep.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_ClockChime.wav b/kcontrol/knotify/sounds/KDE_Beep_ClockChime.wav new file mode 100644 index 000000000..74a7f5187 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_ClockChime.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Connect.ogg b/kcontrol/knotify/sounds/KDE_Beep_Connect.ogg new file mode 100644 index 000000000..2b2e26c5e Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Connect.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Connect.wav b/kcontrol/knotify/sounds/KDE_Beep_Connect.wav new file mode 100644 index 000000000..109e8d1c8 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Connect.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Digital_1.ogg b/kcontrol/knotify/sounds/KDE_Beep_Digital_1.ogg new file mode 100644 index 000000000..5fd25353c Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Digital_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Digital_2.ogg b/kcontrol/knotify/sounds/KDE_Beep_Digital_2.ogg new file mode 100644 index 000000000..caba4cf19 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Digital_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Door.wav b/kcontrol/knotify/sounds/KDE_Beep_Door.wav new file mode 100644 index 000000000..5257aca9f Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Door.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Double.ogg b/kcontrol/knotify/sounds/KDE_Beep_Double.ogg new file mode 100644 index 000000000..a5b279f12 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Double.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Harsh.ogg b/kcontrol/knotify/sounds/KDE_Beep_Harsh.ogg new file mode 100644 index 000000000..b2fbd0d38 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Harsh.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Honk.wav b/kcontrol/knotify/sounds/KDE_Beep_Honk.wav new file mode 100644 index 000000000..9faf34c61 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Honk.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Lightning.wav b/kcontrol/knotify/sounds/KDE_Beep_Lightning.wav new file mode 100644 index 000000000..9d418c968 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Lightning.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Phone_1.ogg b/kcontrol/knotify/sounds/KDE_Beep_Phone_1.ogg new file mode 100644 index 000000000..0d902cbae Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Phone_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Phone_2.ogg b/kcontrol/knotify/sounds/KDE_Beep_Phone_2.ogg new file mode 100644 index 000000000..1c8d27419 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Phone_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Pop.wav b/kcontrol/knotify/sounds/KDE_Beep_Pop.wav new file mode 100644 index 000000000..3a9133381 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Pop.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_RimShot.wav b/kcontrol/knotify/sounds/KDE_Beep_RimShot.wav new file mode 100644 index 000000000..6f978150b Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_RimShot.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_RingRing.wav b/kcontrol/knotify/sounds/KDE_Beep_RingRing.wav new file mode 100644 index 000000000..01b6eee81 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_RingRing.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_ShortBeep.wav b/kcontrol/knotify/sounds/KDE_Beep_ShortBeep.wav new file mode 100644 index 000000000..2c3795ad7 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_ShortBeep.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Beep_Yo.wav b/kcontrol/knotify/sounds/KDE_Beep_Yo.wav new file mode 100644 index 000000000..c98273bbb Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Beep_Yo.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Bottles.ogg b/kcontrol/knotify/sounds/KDE_Bottles.ogg new file mode 100644 index 000000000..52a78c74b Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Bottles.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Chimes_1.ogg b/kcontrol/knotify/sounds/KDE_Chimes_1.ogg new file mode 100644 index 000000000..76c8b530b Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Chimes_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Chimes_2.ogg b/kcontrol/knotify/sounds/KDE_Chimes_2.ogg new file mode 100644 index 000000000..b66d819bf Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Chimes_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Chimes_3.ogg b/kcontrol/knotify/sounds/KDE_Chimes_3.ogg new file mode 100644 index 000000000..e170000f6 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Chimes_3.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Click.wav b/kcontrol/knotify/sounds/KDE_Click.wav new file mode 100644 index 000000000..b7c572983 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Click.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Click_1.ogg b/kcontrol/knotify/sounds/KDE_Click_1.ogg new file mode 100644 index 000000000..39cb99194 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Click_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Click_2.ogg b/kcontrol/knotify/sounds/KDE_Click_2.ogg new file mode 100644 index 000000000..75836862c Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Click_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Click_3.ogg b/kcontrol/knotify/sounds/KDE_Click_3.ogg new file mode 100644 index 000000000..a829deeeb Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Click_3.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Close_Window.wav b/kcontrol/knotify/sounds/KDE_Close_Window.wav new file mode 100644 index 000000000..920434770 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Close_Window.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Critical_Error.wav b/kcontrol/knotify/sounds/KDE_Critical_Error.wav new file mode 100644 index 000000000..6ae8366a2 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Critical_Error.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop1.wav b/kcontrol/knotify/sounds/KDE_Desktop1.wav new file mode 100644 index 000000000..735c33a82 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop1.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop2.wav b/kcontrol/knotify/sounds/KDE_Desktop2.wav new file mode 100644 index 000000000..211a3be06 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop2.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop3.wav b/kcontrol/knotify/sounds/KDE_Desktop3.wav new file mode 100644 index 000000000..b7b9101f1 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop3.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop4.wav b/kcontrol/knotify/sounds/KDE_Desktop4.wav new file mode 100644 index 000000000..8e6cc5e89 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop4.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop5.wav b/kcontrol/knotify/sounds/KDE_Desktop5.wav new file mode 100644 index 000000000..51db8892c Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop5.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop6.wav b/kcontrol/knotify/sounds/KDE_Desktop6.wav new file mode 100644 index 000000000..664d34072 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop6.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop7.wav b/kcontrol/knotify/sounds/KDE_Desktop7.wav new file mode 100644 index 000000000..a60702fea Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop7.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop8.wav b/kcontrol/knotify/sounds/KDE_Desktop8.wav new file mode 100644 index 000000000..53adf2705 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop8.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop_1.ogg b/kcontrol/knotify/sounds/KDE_Desktop_1.ogg new file mode 100644 index 000000000..6c1a73d46 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop_2.ogg b/kcontrol/knotify/sounds/KDE_Desktop_2.ogg new file mode 100644 index 000000000..dfdc897a5 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop_3.ogg b/kcontrol/knotify/sounds/KDE_Desktop_3.ogg new file mode 100644 index 000000000..af838bf5a Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop_3.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop_4.ogg b/kcontrol/knotify/sounds/KDE_Desktop_4.ogg new file mode 100644 index 000000000..bfe0b2498 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop_4.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop_5.ogg b/kcontrol/knotify/sounds/KDE_Desktop_5.ogg new file mode 100644 index 000000000..1dfa1159d Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop_5.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop_6.ogg b/kcontrol/knotify/sounds/KDE_Desktop_6.ogg new file mode 100644 index 000000000..8cfe1c11d Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop_6.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop_7.ogg b/kcontrol/knotify/sounds/KDE_Desktop_7.ogg new file mode 100644 index 000000000..2f6e1dbb8 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop_7.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Desktop_8.ogg b/kcontrol/knotify/sounds/KDE_Desktop_8.ogg new file mode 100644 index 000000000..60eebb8a5 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Desktop_8.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Dialog_Appear.ogg b/kcontrol/knotify/sounds/KDE_Dialog_Appear.ogg new file mode 100644 index 000000000..a41c410bc Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Dialog_Appear.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Dialog_Appear.wav b/kcontrol/knotify/sounds/KDE_Dialog_Appear.wav new file mode 100644 index 000000000..1f7e37754 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Dialog_Appear.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Dialog_Disappear.ogg b/kcontrol/knotify/sounds/KDE_Dialog_Disappear.ogg new file mode 100644 index 000000000..5005380d1 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Dialog_Disappear.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Dialog_Disappear.wav b/kcontrol/knotify/sounds/KDE_Dialog_Disappear.wav new file mode 100644 index 000000000..1c665305f Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Dialog_Disappear.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Door.ogg b/kcontrol/knotify/sounds/KDE_Door.ogg new file mode 100644 index 000000000..8fe37c373 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Door.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Drum_Break.ogg b/kcontrol/knotify/sounds/KDE_Drum_Break.ogg new file mode 100644 index 000000000..bee81f578 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Drum_Break.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Error.wav b/kcontrol/knotify/sounds/KDE_Error.wav new file mode 100644 index 000000000..ed97e88f5 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Error.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Error_1.ogg b/kcontrol/knotify/sounds/KDE_Error_1.ogg new file mode 100644 index 000000000..86f083fe0 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Error_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Error_2.ogg b/kcontrol/knotify/sounds/KDE_Error_2.ogg new file mode 100644 index 000000000..bd92b9451 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Error_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Error_3.ogg b/kcontrol/knotify/sounds/KDE_Error_3.ogg new file mode 100644 index 000000000..e0aab309f Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Error_3.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Event_1.ogg b/kcontrol/knotify/sounds/KDE_Event_1.ogg new file mode 100644 index 000000000..05e54f6b5 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Event_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Event_2.ogg b/kcontrol/knotify/sounds/KDE_Event_2.ogg new file mode 100644 index 000000000..1e183ac21 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Event_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Event_3.ogg b/kcontrol/knotify/sounds/KDE_Event_3.ogg new file mode 100644 index 000000000..18179ffc1 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Event_3.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Event_4.ogg b/kcontrol/knotify/sounds/KDE_Event_4.ogg new file mode 100644 index 000000000..7ba373346 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Event_4.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Event_5.ogg b/kcontrol/knotify/sounds/KDE_Event_5.ogg new file mode 100644 index 000000000..afdfd67fe Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Event_5.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Glass_Break.ogg b/kcontrol/knotify/sounds/KDE_Glass_Break.ogg new file mode 100644 index 000000000..6d071f066 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Glass_Break.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Keyboard_Key_1.ogg b/kcontrol/knotify/sounds/KDE_Keyboard_Key_1.ogg new file mode 100644 index 000000000..4860c1f0e Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Keyboard_Key_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Logout.wav b/kcontrol/knotify/sounds/KDE_Logout.wav new file mode 100644 index 000000000..dfe5ce00d Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Logout.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Logout_1.ogg b/kcontrol/knotify/sounds/KDE_Logout_1.ogg new file mode 100644 index 000000000..b170afa02 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Logout_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Logout_2.ogg b/kcontrol/knotify/sounds/KDE_Logout_2.ogg new file mode 100644 index 000000000..cb1e46c0e Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Logout_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Logout_3.ogg b/kcontrol/knotify/sounds/KDE_Logout_3.ogg new file mode 100644 index 000000000..f0d62f20d Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Logout_3.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Notify.wav b/kcontrol/knotify/sounds/KDE_Notify.wav new file mode 100644 index 000000000..6795636c7 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Notify.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Pop.ogg b/kcontrol/knotify/sounds/KDE_Pop.ogg new file mode 100644 index 000000000..14535f67b Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Pop.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Star_Ship_1.ogg b/kcontrol/knotify/sounds/KDE_Star_Ship_1.ogg new file mode 100644 index 000000000..daa451531 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Star_Ship_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Startup.wav b/kcontrol/knotify/sounds/KDE_Startup.wav new file mode 100644 index 000000000..7eff53fce Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Startup.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Startup_1.ogg b/kcontrol/knotify/sounds/KDE_Startup_1.ogg new file mode 100644 index 000000000..2fca9715b Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Startup_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Startup_2.ogg b/kcontrol/knotify/sounds/KDE_Startup_2.ogg new file mode 100644 index 000000000..0c0c7459e Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Startup_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Startup_3.ogg b/kcontrol/knotify/sounds/KDE_Startup_3.ogg new file mode 100644 index 000000000..e1cd9e2a9 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Startup_3.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_TypeWriter_Bell.ogg b/kcontrol/knotify/sounds/KDE_TypeWriter_Bell.ogg new file mode 100644 index 000000000..090fdfe17 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_TypeWriter_Bell.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_TypeWriter_End_Of_Line.ogg b/kcontrol/knotify/sounds/KDE_TypeWriter_End_Of_Line.ogg new file mode 100644 index 000000000..80be17f62 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_TypeWriter_End_Of_Line.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_TypeWriter_Key_1.ogg b/kcontrol/knotify/sounds/KDE_TypeWriter_Key_1.ogg new file mode 100644 index 000000000..5856589a5 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_TypeWriter_Key_1.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_TypeWriter_Key_2.ogg b/kcontrol/knotify/sounds/KDE_TypeWriter_Key_2.ogg new file mode 100644 index 000000000..fcd143f70 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_TypeWriter_Key_2.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_TypeWriter_Reload.ogg b/kcontrol/knotify/sounds/KDE_TypeWriter_Reload.ogg new file mode 100644 index 000000000..5258bc4ba Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_TypeWriter_Reload.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_TypeWriter_Scroll.ogg b/kcontrol/knotify/sounds/KDE_TypeWriter_Scroll.ogg new file mode 100644 index 000000000..906646be6 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_TypeWriter_Scroll.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Vox_Ahem.ogg b/kcontrol/knotify/sounds/KDE_Vox_Ahem.ogg new file mode 100644 index 000000000..d047942d9 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Vox_Ahem.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Vox_Yo.ogg b/kcontrol/knotify/sounds/KDE_Vox_Yo.ogg new file mode 100644 index 000000000..3f885ed67 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Vox_Yo.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Warp.ogg b/kcontrol/knotify/sounds/KDE_Warp.ogg new file mode 100644 index 000000000..de0f06caa Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Warp.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Water_Drop.ogg b/kcontrol/knotify/sounds/KDE_Water_Drop.ogg new file mode 100644 index 000000000..b92df084f Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Water_Drop.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Close.ogg b/kcontrol/knotify/sounds/KDE_Window_Close.ogg new file mode 100644 index 000000000..e9cd12878 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Close.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Close.wav b/kcontrol/knotify/sounds/KDE_Window_Close.wav new file mode 100644 index 000000000..67901a4bf Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Close.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Window_DeIconify.ogg b/kcontrol/knotify/sounds/KDE_Window_DeIconify.ogg new file mode 100644 index 000000000..b269594ef Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_DeIconify.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_DeIconify.wav b/kcontrol/knotify/sounds/KDE_Window_DeIconify.wav new file mode 100644 index 000000000..0ece877d5 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_DeIconify.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Hide.ogg b/kcontrol/knotify/sounds/KDE_Window_Hide.ogg new file mode 100644 index 000000000..9e625484c Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Hide.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Iconify.ogg b/kcontrol/knotify/sounds/KDE_Window_Iconify.ogg new file mode 100644 index 000000000..113c2c0d5 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Iconify.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Iconify.wav b/kcontrol/knotify/sounds/KDE_Window_Iconify.wav new file mode 100644 index 000000000..55b4e4598 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Iconify.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Maximize.wav b/kcontrol/knotify/sounds/KDE_Window_Maximize.wav new file mode 100644 index 000000000..41771f693 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Maximize.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Open.ogg b/kcontrol/knotify/sounds/KDE_Window_Open.ogg new file mode 100644 index 000000000..7957c9084 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Open.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Open.wav b/kcontrol/knotify/sounds/KDE_Window_Open.wav new file mode 100644 index 000000000..d7db787c1 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Open.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Shade_Down.ogg b/kcontrol/knotify/sounds/KDE_Window_Shade_Down.ogg new file mode 100644 index 000000000..62cd4bb1a Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Shade_Down.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Shade_Down.wav b/kcontrol/knotify/sounds/KDE_Window_Shade_Down.wav new file mode 100644 index 000000000..59b8ae5ab Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Shade_Down.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Shade_Up.ogg b/kcontrol/knotify/sounds/KDE_Window_Shade_Up.ogg new file mode 100644 index 000000000..74aae0863 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Shade_Up.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Shade_Up.wav b/kcontrol/knotify/sounds/KDE_Window_Shade_Up.wav new file mode 100644 index 000000000..a5a31a50c Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Shade_Up.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Sticky.ogg b/kcontrol/knotify/sounds/KDE_Window_Sticky.ogg new file mode 100644 index 000000000..55c4894b0 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Sticky.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_Sticky.wav b/kcontrol/knotify/sounds/KDE_Window_Sticky.wav new file mode 100644 index 000000000..b89d383bd Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_Sticky.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Window_UnHide.ogg b/kcontrol/knotify/sounds/KDE_Window_UnHide.ogg new file mode 100644 index 000000000..2cdd04d04 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_UnHide.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_UnMaximize.wav b/kcontrol/knotify/sounds/KDE_Window_UnMaximize.wav new file mode 100644 index 000000000..eb19400fd Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_UnMaximize.wav differ diff --git a/kcontrol/knotify/sounds/KDE_Window_UnSticky.ogg b/kcontrol/knotify/sounds/KDE_Window_UnSticky.ogg new file mode 100644 index 000000000..4de9d0ee1 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_UnSticky.ogg differ diff --git a/kcontrol/knotify/sounds/KDE_Window_UnSticky.wav b/kcontrol/knotify/sounds/KDE_Window_UnSticky.wav new file mode 100644 index 000000000..a5943b9e9 Binary files /dev/null and b/kcontrol/knotify/sounds/KDE_Window_UnSticky.wav differ diff --git a/kcontrol/knotify/sounds/Makefile.am b/kcontrol/knotify/sounds/Makefile.am new file mode 100644 index 000000000..0ff4e2468 --- /dev/null +++ b/kcontrol/knotify/sounds/Makefile.am @@ -0,0 +1,113 @@ +sounds_data_DATA = \ + KDE_Beep_Ahem.wav \ + KDE_Beep_Beep.wav \ + KDE_Beep_Bottles.wav \ + KDE_Beep_ClassicBeep.wav \ + KDE_Beep_ClockChime.wav \ + KDE_Beep_Connect.wav \ + KDE_Beep_Door.wav \ + KDE_Beep_Honk.wav \ + KDE_Beep_Lightning.wav \ + KDE_Beep_Pop.wav \ + KDE_Beep_RimShot.wav \ + KDE_Beep_RingRing.wav \ + KDE_Beep_ShortBeep.wav \ + KDE_Beep_Yo.wav \ + KDE_Click.wav \ + KDE_Close_Window.wav \ + KDE_Critical_Error.wav \ + KDE_Desktop1.wav \ + KDE_Desktop2.wav \ + KDE_Desktop3.wav \ + KDE_Desktop4.wav \ + KDE_Desktop5.wav \ + KDE_Desktop6.wav \ + KDE_Desktop7.wav \ + KDE_Desktop8.wav \ + KDE_Dialog_Appear.wav \ + KDE_Dialog_Disappear.wav \ + KDE_Error.wav \ + KDE_Logout.wav \ + KDE_Notify.wav \ + KDE_Startup.wav \ + KDE_Window_Close.wav \ + KDE_Window_DeIconify.wav \ + KDE_Window_Iconify.wav \ + KDE_Window_Maximize.wav \ + KDE_Window_Open.wav \ + KDE_Window_Shade_Down.wav \ + KDE_Window_Shade_Up.wav \ + KDE_Window_Sticky.wav \ + KDE_Window_UnMaximize.wav \ + KDE_Window_UnSticky.wav \ + KDE_Beep.ogg \ + KDE_Beep_Car.ogg \ + KDE_Beep_Classic.ogg \ + KDE_Beep_Connect.ogg \ + KDE_Beep_Digital_1.ogg \ + KDE_Beep_Digital_2.ogg \ + KDE_Beep_Double.ogg \ + KDE_Beep_Harsh.ogg \ + KDE_Beep_Phone_1.ogg \ + KDE_Beep_Phone_2.ogg \ + KDE_Bottles.ogg \ + KDE_Chimes_1.ogg \ + KDE_Chimes_2.ogg \ + KDE_Chimes_3.ogg \ + KDE_Click_1.ogg \ + KDE_Click_2.ogg \ + KDE_Click_3.ogg \ + KDE_Desktop_1.ogg \ + KDE_Desktop_2.ogg \ + KDE_Desktop_3.ogg \ + KDE_Desktop_4.ogg \ + KDE_Desktop_5.ogg \ + KDE_Desktop_6.ogg \ + KDE_Desktop_7.ogg \ + KDE_Desktop_8.ogg \ + KDE_Dialog_Appear.ogg \ + KDE_Dialog_Disappear.ogg \ + KDE_Door.ogg \ + KDE_Drum_Break.ogg \ + KDE_Error_1.ogg \ + KDE_Error_2.ogg \ + KDE_Error_3.ogg \ + KDE_Event_1.ogg \ + KDE_Event_2.ogg \ + KDE_Event_3.ogg \ + KDE_Event_4.ogg \ + KDE_Event_5.ogg \ + KDE_Glass_Break.ogg \ + KDE_Keyboard_Key_1.ogg \ + KDE_Logout_1.ogg \ + KDE_Logout_2.ogg \ + KDE_Logout_3.ogg \ + KDE_Pop.ogg \ + KDE_Star_Ship_1.ogg \ + KDE_Startup_1.ogg \ + KDE_Startup_2.ogg \ + KDE_Startup_3.ogg \ + KDE_TypeWriter_Bell.ogg \ + KDE_TypeWriter_End_Of_Line.ogg \ + KDE_TypeWriter_Key_1.ogg \ + KDE_TypeWriter_Key_2.ogg \ + KDE_TypeWriter_Reload.ogg \ + KDE_TypeWriter_Scroll.ogg \ + KDE_Vox_Ahem.ogg \ + KDE_Vox_Yo.ogg \ + KDE_Warp.ogg \ + KDE_Water_Drop.ogg \ + KDE_Window_Close.ogg \ + KDE_Window_DeIconify.ogg \ + KDE_Window_Hide.ogg \ + KDE_Window_Iconify.ogg \ + KDE_Window_Open.ogg \ + KDE_Window_Shade_Down.ogg \ + KDE_Window_Shade_Up.ogg \ + KDE_Window_Sticky.ogg \ + KDE_Window_UnHide.ogg \ + KDE_Window_UnSticky.ogg + +sounds_datadir = $(kde_sounddir) + +EXTRA_DIST = $(sounds_data_DATA) -- cgit v1.2.1