/[metastatus]/trunk/jar/content/metastatus/options.xml
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/jar/content/metastatus/options.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (show annotations)
Thu Jul 15 20:52:04 2004 UTC (19 years, 9 months ago) by dpavlin
File MIME type: text/xml
File size: 1396 byte(s)
Added options dialog in which you can specify preferences (URL from which
to fetch XML feed and interval in minutes)

1 <?xml version="1.0"?>
2
3 <dialog id="metastatus-options"
4 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
5 onload="onLoad();"
6 title="MetaStatus configuration"
7 buttons="accept,cancel"
8 ondialogaccept="return onAccept();"
9 ondialogextra1="onAccept();">
10
11 <script type="application/x-javascript"
12 src="chrome://metastatus/content/_PrefManager.js"/>
13
14 <script type="application/x-javascript"><![CDATA[
15 var Prefs = new metastatus_PrefManager();
16 function getPref(strID) { return Prefs.getPref(strID); }
17 function setPref(strID, varValue) { Prefs.setPref(strID, varValue); }
18 function getElement(strID) { return document.getElementById(strID); }
19
20 function onLoad() {
21 centerWindowOnScreen();
22 getElement("url").value = getPref("metastatus.url");
23 getElement("interval").value = getPref("metastatus.interval");
24 }
25
26 function onAccept() {
27 setPref("metastatus.url", getElement("url").value);
28 setPref("metastatus.interval", getElement("interval").value);
29 return true;
30 }
31
32 ]]></script>
33
34 <groupbox flex="1">
35 <caption label="Data source"/>
36 <hbox>
37 <description>URL</description>
38 <textbox id="url" size="30" flex="1"/>
39 </hbox>
40 <hbox>
41 <description>Interval</description>
42 <textbox id="interval" size="3" flex="0"/>
43 <description>min</description>
44 </hbox>
45 </groupbox>
46 </dialog>

  ViewVC Help
Powered by ViewVC 1.1.26