0.91/chrome/content/notify.xul
Back to the directory
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://notify/locale/notify.dtd">
<window
title="¬ify.sites;"
id="notify"
windowtype ="notify:Sites"
onload="NotifySitesWindow.init(); document.getElementById('observedSite').focus();"
style="padding: 0.7em;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<tabbox flex="1">
<tabs>
<tab label="&window.observed;"/>
<tab label="&window.calendar;"/>
</tabs>
<tabpanels flex="1">
<tabpanel id="observed" flex="1" orient="vertical">
<hbox style="padding-bottom: 0.5em;">
<textbox id="observedSite" flex="1" value="http://" maxlength="1024" onkeypress="if (event.keyCode == 13) return NotifySitesWindow.addObservedSite()" />
<button label="&window.add;" oncommand="NotifySitesWindow.addObservedSite()" />
</hbox>
<hbox flex="1" style="height: 100px; width: 400px;">
<listbox id="observedSites" flex="1" seltype="multiple">
</listbox>
<vbox><!-- pack="end" -->
<button label="&window.remove;" oncommand="NotifySitesWindow.deleteObservedSite()" />
</vbox>
</hbox>
</tabpanel>
<tabpanel id="calendar" flex="1" orient="vertical">
<hbox><!-- top -->
<vbox flex="1">
<hbox>
<textbox id="calendarSite" flex="1" value="http://" maxlength="1024" onkeypress="if (event.keyCode == 13) return NotifySitesWindow.addCalendarSite()" />
</hbox>
<hbox style="padding-bottom: 0.5em;" flex="1">
<!-- TODO: do it better! (date picker?) -->
<label value="&window.opensite;" style="margin-top: 4px; margin-right: 0.3em;" />
<label value="&window.day;" style="margin-top: 4px;" /><textbox id="calendarSiteDay" maxlength="10" onkeypress="if (event.keyCode == 13) return NotifySitesWindow.addCalendarSite();" style="width: 3em;" />
<label value="&window.month;" style="margin-top: 4px;" /><textbox id="calendarSiteMonth" maxlength="10" onkeypress="if (event.keyCode == 13) return NotifySitesWindow.addCalendarSite()" style="width: 3em;" />
<label value="&window.year;" style="margin-top: 4px;" /><textbox id="calendarSiteYear" maxlength="10" onkeypress="if (event.keyCode == 13) return NotifySitesWindow.addCalendarSite()" style="width: 5em;" />
</hbox>
</vbox>
<vbox>
<button label="&window.add;" oncommand="NotifySitesWindow.addCalendarSite()" />
</vbox>
</hbox>
<hbox flex="1">
<listbox id="calendarSites" flex="1" seltype="multiple">
<listhead>
<listheader label="&window.site;" />
<listheader label="&window.date;" style="width: 100px;" />
</listhead>
</listbox>
<vbox><!-- pack="end" -->
<button label="&window.remove;" oncommand="NotifySitesWindow.deleteCalendarSite()" />
</vbox>
</hbox>
</tabpanel>
</tabpanels>
</tabbox>
<hbox style="margin: 0; margin-right: 1em; margin-top: 0.7em;">
<button label="&window.options;" oncommand="NotifySitesWindow.openOptions()" />
<spacer flex="1" />
<button label="&window.close;" oncommand="window.close()" />
</hbox>
<script src="notifyWindow.js" type="text/javascript" />
</window>