start functionality for zooming, right now just alert with coordinates we dragged...
[mandelbrot.git] / xulapp / chrome / mandelbrot / content / mandelbrot.xul
index 94d23355cbaf663415fe4655a28cbb2ba73c5a35..183c6caf26083b3f39f58fbf45238cf23d107c9b 100644 (file)
@@ -86,6 +86,7 @@
               <menuitem type="radio" name="palette" value="kairo" label="&colorKairo.label;"/>
             </menupopup>
           </menu>
+          <menuitem id="imgSettings" label="&imgSettings.label;" oncommand="imgSettings();"/>
         </menupopup>
       </menu>
       <menu id="debugMenu" label="&debugMenu.label;">
               <menuitem type="radio" name="algorithm" value="oo" label="&algoOO.label;"/>
             </menupopup>
           </menu>
+          <menuitem id="errorConsole" label="&errorConsole.label;"
+                    oncommand="errorConsole();"/>
+          <menuitem id="addonsMgr" label="&addonsManager.label;"
+                    oncommand="addonsManager();"/>
         </menupopup>
       </menu>
     </menubar>
   </toolbox>
-  <button id="drawButton" label="&fileDraw.label;" oncommand="drawImage();"/>
   <hbox flex="1" pack="center" align="center">
-    <html:canvas id="mbrotImage" width="300" height="300"></html:canvas>
+    <stack>
+      <html:canvas id="mbrotImage" width="300" height="300"
+                   onmousedown="mouseevent('down', event);"
+                   onmouseup="mouseevent('up',event);">
+      </html:canvas>
+      <button id="drawButton" label="&fileDraw.label;" oncommand="drawImage();"/>
+    </stack>
   </hbox>
   <hbox pack="end" align="end">
     <description id="statusLabel"/>