Hook up alarm dialog for sunbird. bug 299366, patch by jminta, r=mvl

This commit is contained in:
mvl%exedo.nl 2005-07-09 17:31:26 +00:00
parent 958f420c85
commit 93cc886d45
5 changed files with 8 additions and 27 deletions

View File

@ -191,6 +191,7 @@ bin\components\nsBackgroundUpdateService.js
bin\components\extensions.xpt
bin\components\update.xpt
bin\components\calendarService.js
bin\components\calAlarmMonitor.js
; [Browser Chrome Files]
bin\chrome\calendar.jar

View File

@ -39,7 +39,8 @@ topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
EXTRA_COMPONENTS = content/calendarService.js
EXTRA_COMPONENTS = content/calendarService.js \
content/calAlarmMonitor.js
include $(DEPTH)/config/autoconf.mk

View File

@ -1045,29 +1045,6 @@ function goFindNewCalendars()
}
}
function playSound( ThisURL )
{
ThisURL = "chrome://calendar/content/sound.wav";
var url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance();
url = url.QueryInterface(Components.interfaces.nsIURL);
url.spec = ThisURL;
var sample = Components.classes["@mozilla.org/sound;1"].createInstance();
sample = sample.QueryInterface(Components.interfaces.nsISound);
try
{
sample.play( url );
}
catch ( ex )
{
sample.beep();
//alert( ex );
}
}
var gSelectAll = false;
function selectAllEvents()

View File

@ -3,10 +3,12 @@ calendar.jar:
content/calendar/about.xul (content/about.xul)
* content/calendar/applicationUtil.js (content/applicationUtil.js)
content/calendar/sunbird_small.png (content/sunbird_small.png)
content/calendar/alertDialog.js (content/alertDialog.js)
content/calendar/alertDialog.xul (content/alertDialog.xul)
content/calendar/attachFile.js (content/attachFile.js)
content/calendar/calendar.js (content/calendar.js)
content/calendar/calendar-alarm-dialog.xul (/calendar/base/content/calendar-alarm-dialog.xul)
content/calendar/calendar-alarm-dialog.js (/calendar/base/content/calendar-alarm-dialog.js)
content/calendar/calendar-alarm-widget.css (/calendar/base/content/calendar-alarm-widget.css)
content/calendar/calendar-alarm-widget.xml (/calendar/base/content/calendar-alarm-widget.xml)
content/calendar/calendarUtils.js (content/calendarUtils.js)
* content/calendar/calendar.xul (content/calendar.xul)
content/calendar/calendarEvent.js (content/calendarEvent.js)
@ -98,7 +100,6 @@ calendar.jar:
locale/en-US/calendar/connectionPrefs.dtd (locale/en-US/connectionPrefs.dtd)
locale/en-US/calendar/prefutilities.properties (locale/en-US/prefutilities.properties)
#endif
skin/classic/calendar/alertDialog.css (skin/classic/alertDialog.css)
skin/classic/calendar/all_day_event.png (skin/classic/all_day_event.png)
skin/classic/calendar/all_day_event_down.png (skin/classic/all_day_event_down.png)
skin/classic/calendar/all_day_event_hover.png (skin/classic/all_day_event_hover.png)

View File

@ -109,6 +109,7 @@ defaultPreviousWeeksInView=0
showAlarms=1
showMissed=1
playAlarmSound=0
soundURL = chrome://content/calendar/sound.wav
reloadServersOnLaunch=false
defaultEventLength=60
defaultSnoozeAlarmLength=60