View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd/searches
In directory sc8-pr-cvs1:/tmp/cvs-serv4308/searches
Modified Files:
alarm.xml
Removed Files:
timer.xml
Log Message:
* Fixes for alarm.xml - now properly accepts minutes-from-now alarms, and shows syntax
in help message
* Removed timer.xml
* Added standard alias timer -> alarm
Index: alarm.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/alarm.xml,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** alarm.xml 4 Dec 2003 18:48:18 -0000 1.11
--- alarm.xml 16 Jan 2004 08:15:37 -0000 1.12
***************
*** 2,9 ****
<name>Alarm</name>
<description>
! Schedule an alarm to go off at a certain time. The alarm message is optional.
(All times are in Military (24hr) Time. Supports only a single alarm.)<br/>
<div class="helpboxDescLabels">Usage:</div>
<table class="helpboxDescTable">
! <tr><td>Set Alarm</td><td> - </td><td>alarm <<i>time</i>>
[<<i>message</i>>]</td></tr>
<tr><td>Cancel Alarm</td><td> - </td><td>alarm cancel</td></tr>
</table>
--- 2,11 ----
<name>Alarm</name>
<description>
! Schedule an alarm to go off at a certain time. The alarm message is optional.
All times are in Military (24hr) Time.
! <br/>A minutes-from-now value can also be specified instead of a timestamp.
! <br/>Alarm only supports a single alarm.<br/>
<div class="helpboxDescLabels">Usage:</div>
<table class="helpboxDescTable">
! <tr><td>Set Alarm</td><td> - </td><td>alarm <<i>time or
delay</i>> [<<i>message</i>>]</td></tr>
<tr><td>Cancel Alarm</td><td> - </td><td>alarm cancel</td></tr>
</table>
***************
*** 11,14 ****
--- 13,17 ----
<table class="helpboxDescTable">
<tr><td>alarm 14:00 Staff Meeting</td></tr>
+ <tr><td>alarm 5 Staff Meeting in 5 minutes</td></tr>
</table>
</description>
***************
*** 36,44 ****
setTimeout("document.deff.q.value='';",1000);
}
! else if( parsedLine = t.match(/(\d\d\:\d\d)\s*(.*)/) )
{
if( parsedLine[1] != null && parsedLine[1].length != 0) {
! if(parsedTime = parsedLine[1].match(/(\d\d):(\d\d)/)) {
alarmTimeHours = parsedTime[1];
alarmTimeMins = parsedTime[2];
--- 39,51 ----
setTimeout("document.deff.q.value='';",1000);
}
! else if( parsedLine = t.match(/(\d?\d\:\d\d)\s*(.*)/) )
{
if( parsedLine[1] != null && parsedLine[1].length != 0) {
! if(parsedTime = parsedLine[1].match(/(\d?\d):(\d\d)/)) {
alarmTimeHours = parsedTime[1];
+ if (alarmTimeHours.length == 1)
+ {
+ alarmTimeHours='0'+alarmTimeHours;
+ }
alarmTimeMins = parsedTime[2];
***************
*** 56,60 ****
alarmOn();
! setSearchWindowText("Alarm Set for "+alarmTime+".");
setTimeout("document.deff.q.value='';",1000);
}
--- 63,67 ----
alarmOn();
! setSearchWindowText("Alarm Set for "+alarmTime);
setTimeout("document.deff.q.value='';",1000);
}
***************
*** 76,80 ****
alarmOn();
! setSearchWindowText("Alarm Set for "+alarmTime+".");
setTimeout("document.deff.q.value='';",1000);
}
--- 83,87 ----
alarmOn();
! setSearchWindowText("Alarm Set for "+alarmTime);
setTimeout("document.deff.q.value='';",1000);
}
--- timer.xml DELETED ---
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/