add not-yet-working prefs menu
authorRobert Kaiser <kairo@kairo.at>
Wed, 20 Aug 2008 17:56:32 +0000 (19:56 +0200)
committerRobert Kaiser <kairo@kairo.at>
Wed, 20 Aug 2008 17:56:32 +0000 (19:56 +0200)
xulapp/chrome/mandelbrot/content/mandelbrot.xul
xulapp/chrome/mandelbrot/locales/en-US/mandelbrot.dtd

index 1b38757..be37ef3 100644 (file)
           <menuitem id="fileQuit" label="&fileQuit;" oncommand="quitApp(false);"/>
         </menupopup>
       </menu>
+      <menu id="prefMenu" label="&prefMenu;">
+        <menupopup id="prefPopup">
+          <menu id="iterMenu" label="&iterMenu;">
+            <menupopup id="iterPopup" oncommand="setIter();">
+              <menuitem type="radio" id="iter50" label="&iter50;"/>
+              <menuitem type="radio" id="iter100" label="&iter100;"/>
+              <menuitem type="radio" id="iter500" label="&iter500;"/>
+              <menuitem type="radio" id="iter1000" label="&iter1000;"/>
+            </menupopup>
+          </menu>
+          <menu id="colorMenu" label="&colorMenu;">
+            <menupopup id="colorPopup" oncommand="setPalette();">
+              <menuitem type="radio" id="colorBW" label="&colorBW;"/>
+              <menuitem type="radio" id="colorKairo" label="&colorKairo;"/>
+            </menupopup>
+          </menu>
+        </menupopup>
+      </menu>
     </menubar>
   </toolbox>
   <button id="drawButton" label="&fileDraw;" oncommand="drawImage();"/>
index 7a79c5e..bedb6bb 100644 (file)
@@ -3,3 +3,12 @@
 <!ENTITY  fileDraw       "Draw Image">
 <!ENTITY  fileSave       "Save Image">
 <!ENTITY  fileQuit       "Quit">
+<!ENTITY  prefMenu       "Settings">
+<!ENTITY  iterMenu       "Iterations">
+<!ENTITY  iter50         "50">
+<!ENTITY  iter100        "100">
+<!ENTITY  iter500        "500">
+<!ENTITY  iter1000       "1000">
+<!ENTITY  colorMenu      "Color Palette">
+<!ENTITY  colorBW        "Black &amp; White">
+<!ENTITY  colorKairo     "KaiRo.at">