| 1 | <?xml version="1.0"?> |
| 2 | |
| 3 | <!-- ***** BEGIN LICENSE BLOCK ***** |
| 4 | - Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 5 | - |
| 6 | - The contents of this file are subject to the Mozilla Public License Version |
| 7 | - 1.1 (the "License"); you may not use this file except in compliance with |
| 8 | - the License. You may obtain a copy of the License at |
| 9 | - http://www.mozilla.org/MPL/ |
| 10 | - |
| 11 | - Software distributed under the License is distributed on an "AS IS" basis, |
| 12 | - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 13 | - for the specific language governing rights and limitations under the |
| 14 | - License. |
| 15 | - |
| 16 | - The Original Code is KaiRo.at Mandelbrot, XULRunner version. |
| 17 | - |
| 18 | - The Initial Developer of the Original Code is |
| 19 | - Robert Kaiser <kairo@kairo.at>. |
| 20 | - Portions created by the Initial Developer are Copyright (C) 2008 |
| 21 | - the Initial Developer. All Rights Reserved. |
| 22 | - |
| 23 | - Contributor(s): |
| 24 | - Robert Kaiser <kairo@kairo.at> |
| 25 | - |
| 26 | - Alternatively, the contents of this file may be used under the terms of |
| 27 | - either the GNU General Public License Version 2 or later (the "GPL"), or |
| 28 | - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 29 | - in which case the provisions of the GPL or the LGPL are applicable instead |
| 30 | - of those above. If you wish to allow use of your version of this file only |
| 31 | - under the terms of either the GPL or the LGPL, and not to allow others to |
| 32 | - use your version of this file under the terms of the MPL, indicate your |
| 33 | - decision by deleting the provisions above and replace them with the notice |
| 34 | - and other provisions required by the LGPL or the GPL. If you do not delete |
| 35 | - the provisions above, a recipient may use your version of this file under |
| 36 | - the terms of any one of the MPL, the GPL or the LGPL. |
| 37 | - |
| 38 | - ***** END LICENSE BLOCK ***** --> |
| 39 | |
| 40 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
| 41 | <?xml-stylesheet href="chrome://mandelbrot/skin/" type="text/css"?> |
| 42 | |
| 43 | <!DOCTYPE window [ |
| 44 | <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> |
| 45 | %brandDTD; |
| 46 | <!ENTITY % mandelbrotDTD SYSTEM "chrome://mandelbrot/locale/mandelbrot.dtd"> |
| 47 | %mandelbrotDTD; |
| 48 | ]> |
| 49 | |
| 50 | <window id="mandelbrotWindow" title="&windowTitle;" |
| 51 | width="350" height="450" |
| 52 | onload="Startup()" |
| 53 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
| 54 | xmlns:html="http://www.w3.org/1999/xhtml"> |
| 55 | |
| 56 | <script type="application/x-javascript" |
| 57 | src="chrome://mandelbrot/content/mandelbrot.js"/> |
| 58 | |
| 59 | <stringbundleset id="stringbundleset"> |
| 60 | <stringbundle id="mbrotBundle" src="chrome://mandelbrot/locale/mandelbrot.properties"/> |
| 61 | </stringbundleset> |
| 62 | |
| 63 | <toolbox> |
| 64 | <menubar> |
| 65 | <menu id="fileMenu" label="&fileMenu.label;"> |
| 66 | <menupopup id="menu_filePopup"> |
| 67 | <menuitem id="fileDraw" label="&fileDraw.label;" oncommand="drawImage();"/> |
| 68 | <menuitem id="fileSave" label="&fileSave.label;" oncommand="saveImage();"/> |
| 69 | <menuseparator/> |
| 70 | <menuitem id="fileQuit" label="&fileQuit.label;" oncommand="quitApp(false);"/> |
| 71 | </menupopup> |
| 72 | </menu> |
| 73 | <menu id="bookmarkMenu" label="&bookmarkMenu.label;"> |
| 74 | <menupopup id="menu_bookmarkPopup" |
| 75 | onpopupshowing="updateBookmarkMenu(event.target);" |
| 76 | oncommand="callBookmark(event.target);"> |
| 77 | <menuitem id="bookmarkSave" label="&bookmarkSave.label;" oncommand="saveBookmark();"/> |
| 78 | <menuseparator id="bookmarkSeparator"/> |
| 79 | </menupopup> |
| 80 | </menu> |
| 81 | <menu id="prefMenu" label="&prefMenu.label;"> |
| 82 | <menupopup id="menu_prefPopup"> |
| 83 | <menu id="iterMenu" label="&iterMenu.label;"> |
| 84 | <menupopup id="menu_iterPopup" onpopupshowing="updateIterMenu();" oncommand="setIter(event.target.value);"> |
| 85 | <menuitem type="radio" name="iter" value="50" label="&iter50.label;"/> |
| 86 | <menuitem type="radio" name="iter" value="100" label="&iter100.label;"/> |
| 87 | <menuitem type="radio" name="iter" value="500" label="&iter500.label;"/> |
| 88 | <menuitem type="radio" name="iter" value="1000" label="&iter1000.label;"/> |
| 89 | </menupopup> |
| 90 | </menu> |
| 91 | <menu id="colorMenu" label="&colorMenu.label;"> |
| 92 | <menupopup id="menu_palettePopup" onpopupshowing="updatePaletteMenu();" oncommand="setPalette(event.target.value);"> |
| 93 | <menuitem type="radio" name="palette" value="bw" label="&colorBW.label;"/> |
| 94 | <menuitem type="radio" name="palette" value="kairo" label="&colorKairo.label;"/> |
| 95 | </menupopup> |
| 96 | </menu> |
| 97 | <menuitem id="imgSettings" label="&imgSettings.label;" oncommand="imgSettings();"/> |
| 98 | </menupopup> |
| 99 | </menu> |
| 100 | <menu id="debugMenu" label="&debugMenu.label;"> |
| 101 | <menupopup id="menu_debugPopup" onpopupshowing="updateDebugMenu();"> |
| 102 | <menuitem type="checkbox" id="jitEnabled" label="&jitEnabled.label;" oncommand="toggleJITState(event.target);"/> |
| 103 | <menu id="algoMenu" label="&algoMenu.label;"> |
| 104 | <menupopup id="menu_algoPopup" onpopupshowing="updateAlgoMenu();" oncommand="setAlgorithm(event.target.value);"> |
| 105 | <menuitem type="radio" name="algorithm" value="numeric" label="&algoNumeric.label;"/> |
| 106 | <menuitem type="radio" name="algorithm" value="oo" label="&algoOO.label;"/> |
| 107 | </menupopup> |
| 108 | </menu> |
| 109 | <menuitem id="errorConsole" label="&errorConsole.label;" |
| 110 | oncommand="errorConsole();"/> |
| 111 | <menuitem id="addonsMgr" label="&addonsManager.label;" |
| 112 | oncommand="addonsManager();"/> |
| 113 | </menupopup> |
| 114 | </menu> |
| 115 | </menubar> |
| 116 | </toolbox> |
| 117 | <hbox flex="1" pack="center" align="center"> |
| 118 | <stack> |
| 119 | <html:canvas id="mbrotImage" width="300" height="300" |
| 120 | onmousedown="mouseevent('down', event);" |
| 121 | onmouseup="mouseevent('up',event);"> |
| 122 | </html:canvas> |
| 123 | <button id="drawButton" label="&fileDraw.label;" oncommand="drawImage();"/> |
| 124 | </stack> |
| 125 | </hbox> |
| 126 | <hbox pack="end" align="end"> |
| 127 | <description id="statusLabel"/> |
| 128 | </hbox> |
| 129 | </window> |