From 8a944923d4f589028c4e757fd911c8e500f774cb Mon Sep 17 00:00:00 2001 From: Joseph Wenninger Date: Wed, 22 Feb 2006 12:04:45 +0000 Subject: [PATCH] KNotifyClient -> KNotification (doesn't really work though, eg dcop warning/error, if a null pixmap is specified for the event svn path=/trunk/KDE/kdebase/konsole/; revision=512385 --- Makefile.am | 2 +- eventsrc => konsole.notifyrc | 25 +++++++++++++------------ konsole/TEWidget.cpp | 8 ++++---- 3 files changed, 18 insertions(+), 17 deletions(-) rename eventsrc => konsole.notifyrc (87%) diff --git a/Makefile.am b/Makefile.am index 94c2b0e2..94fca5ad 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,7 +18,7 @@ install-data-local: konsolehere_DATA = konsolehere.desktop konsoleheredir = $(kde_datadir)/konqueror/servicemenus -misc_DATA = eventsrc tips +misc_DATA = konsole.notifyrc eventsrc tips miscdir = $(kde_datadir)/konsole EXTRA_DIST = CONTRIBUTORS LICENSE.readme README.bugs \ diff --git a/eventsrc b/konsole.notifyrc similarity index 87% rename from eventsrc rename to konsole.notifyrc index 71abc7ae..0a1ab5fc 100644 --- a/eventsrc +++ b/konsole.notifyrc @@ -1,19 +1,19 @@ -[!Global!] +[Global] IconName=konsole Comment=Konsole Comment[x-test]=xxKonsolexx -[BellVisible] +[Event/BellVisible] Name=Bell in visible session Name[fr]=Cloche dans la session visible Name[x-test]=xxBell in visible sessionxx Comment=Bell emitted within a visible session Comment[fr]=Cloche émise dans une session visible Comment[x-test]=xxBell emitted within a visible sessionxx -default_sound=KDE_Beep.ogg -default_presentation=1 +Sound=KDE_Beep.ogg +Action=Sound -[BellInvisible] +[Event/BellInvisible] Name=Bell in non-visible session Name[fr]=Cloche dans une session invisible Name[x-test]=xxBell in non-visible sessionxx @@ -21,31 +21,32 @@ Comment=Bell emitted within a non-visible session Comment[fr]=Cloche émise dans une session invisible Comment[x-test]=xxBell emitted within a non-visible sessionxx default_sound=KDE_Beep.ogg -default_presentation=16 +Action=PassivePopup -[Activity] +[Event/Activity] Name=Activity in monitored session Name[fr]=Activité dans la session surveillée Name[x-test]=xxActivity in monitored sessionxx Comment=Activity detected in a monitored session Comment[fr]=Activité détectée dans une session surveillée Comment[x-test]=xxActivity detected in a monitored sessionxx -default_presentation=16 +Action=PassivePopup + -[Silence] +[Event/Silence] Name=Silence in monitored session Name[fr]=Inactivité dans la session surveillée Name[x-test]=xxSilence in monitored sessionxx Comment=Silence detected in a monitored session Comment[fr]=Inactivité détectée dans une session surveillée Comment[x-test]=xxSilence detected in a monitored sessionxx -default_presentation=16 +Action=PassivePopup -[Finished] +[Event/Finished] Name=Session finished with non-zero status Name[fr]=La session s'est terminée anormalement Name[x-test]=xxSession finished with non-zero statusxx Comment=A session has exited with non-zero status Comment[fr]=Une session s'est terminée anormalement Comment[x-test]=xxA session has exited with non-zero statusxx -default_presentation=0 +Action=None diff --git a/konsole/TEWidget.cpp b/konsole/TEWidget.cpp index 027e7984..81edc03c 100644 --- a/konsole/TEWidget.cpp +++ b/konsole/TEWidget.cpp @@ -83,7 +83,7 @@ #include #include #include -#include +#include #include #include #include @@ -1998,12 +1998,12 @@ void TEWidget::Bell(bool visibleSession, QString message) if (m_bellMode==BELLNONE) return; if (m_bellMode==BELLSYSTEM) { - KNotifyClient::beep(); + KNotification::beep(); } else if (m_bellMode==BELLNOTIFY) { if (visibleSession) - KNotifyClient::event(winId(), "BellVisible", message); + KNotification::event("BellVisible", message,QPixmap(),this); else - KNotifyClient::event(winId(), "BellInvisible", message); + KNotification::event("BellInvisible", message,QPixmap(),this); } else if (m_bellMode==BELLVISUAL) { swapColorTable(); QTimer::singleShot(200,this,SLOT(swapColorTable()));