init the git repo with an intial working state of the KaiRo-Mandelbrot 4pre application
[mandelbrot.git] / xulapp / chrome / mandelbrot / content / mandelbrot.xul
CommitLineData
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>
28 </menubar>
29 </toolbox>
30 <button id="drawButton" label="&fileDraw;" oncommand="drawImage();"/>
31 <hbox flex="1" pack="center" align="center">
32 <html:canvas id="mbrotImage" width="300" height="300"></html:canvas>
33 </hbox>
34
35</window>