Commit | Line | Data |
---|---|---|
37b05b56 RK |
1 | <?xml version="1.0"?> |
2 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> | |
3 | <?xml-stylesheet href="chrome://mandelbrot/skin/" type="text/css"?> | |
4 | ||
5 | <!DOCTYPE window [ | |
6 | <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> | |
7 | %brandDTD; | |
8 | <!ENTITY % mandelbrotDTD SYSTEM "chrome://mandelbrot/locale/mandelbrot.dtd"> | |
9 | %mandelbrotDTD; | |
10 | ]> | |
11 | ||
12 | <window id="mandelbrotWindow" title="&windowTitle;" | |
13 | width="350" height="450" | |
14 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | |
15 | xmlns:html="http://www.w3.org/1999/xhtml"> | |
16 | <script type="application/x-javascript" | |
17 | src="chrome://mandelbrot/content/mandelbrot.js"/> | |
18 | <toolbox> | |
19 | <menubar> | |
20 | <menu id="fileMenu" label="&fileMenu;"> | |
21 | <menupopup id="filePopup"> | |
22 | <menuitem id="fileDraw" label="&fileDraw;" oncommand="drawImage();"/> | |
23 | <menuitem id="fileSave" label="&fileSave;" oncommand="saveImage();"/> | |
24 | <menuseparator/> | |
25 | <menuitem id="fileQuit" label="&fileQuit;" oncommand="quitApp(false);"/> | |
26 | </menupopup> | |
27 | </menu> | |
25de2bfe RK |
28 | <menu id="prefMenu" label="&prefMenu;"> |
29 | <menupopup id="prefPopup"> | |
30 | <menu id="iterMenu" label="&iterMenu;"> | |
31 | <menupopup id="iterPopup" oncommand="setIter();"> | |
32 | <menuitem type="radio" id="iter50" label="&iter50;"/> | |
33 | <menuitem type="radio" id="iter100" label="&iter100;"/> | |
34 | <menuitem type="radio" id="iter500" label="&iter500;"/> | |
35 | <menuitem type="radio" id="iter1000" label="&iter1000;"/> | |
36 | </menupopup> | |
37 | </menu> | |
38 | <menu id="colorMenu" label="&colorMenu;"> | |
39 | <menupopup id="colorPopup" oncommand="setPalette();"> | |
40 | <menuitem type="radio" id="colorBW" label="&colorBW;"/> | |
41 | <menuitem type="radio" id="colorKairo" label="&colorKairo;"/> | |
42 | </menupopup> | |
43 | </menu> | |
44 | </menupopup> | |
45 | </menu> | |
37b05b56 RK |
46 | </menubar> |
47 | </toolbox> | |
48 | <button id="drawButton" label="&fileDraw;" oncommand="drawImage();"/> | |
49 | <hbox flex="1" pack="center" align="center"> | |
50 | <html:canvas id="mbrotImage" width="300" height="300"></html:canvas> | |
51 | </hbox> | |
52 | ||
53 | </window> |