add an option for synching proportions and implement it (mostly)
[mandelbrot.git] / xulapp / chrome / mandelbrot / content / image-settings.xul
index c4c609222702b36f5d63dc173deac99286ab6026..752fcef8c9d0ba715ad9a5ff0df911be1fa3aeff 100644 (file)
@@ -69,6 +69,8 @@
                   type="string"/>
       <preference id="mandelbrot.last_image.Ci_max" name="mandelbrot.last_image.Ci_max"
                   type="string"/>
+      <preference id="mandelbrot.syncProportions" name="mandelbrot.syncProportions"
+                  type="bool"/>
     </preferences>
 
     <groupbox>
         <hbox flex="1">
           <label value="&img.width.label;" control="imgWidth"/>
           <textbox id="imgWidth" size="4"
-                   preference="mandelbrot.image.width"/>
+                   preference="mandelbrot.image.width"
+                   onchange="recalcCoord('Ci', 'scale');"/>
         </hbox>
         <hbox flex="1">
           <label value="&img.height.label;" control="imgHeight"/>
           <textbox id="imgHeight" size="4"
-                   preference="mandelbrot.image.height"/>
+                   preference="mandelbrot.image.height"
+                   onchange="recalcCoord('Cr', 'scale');"/>
         </hbox>
       </groupbox>
 
         </hbox>
         <button id="previewButton" label="&previewDraw.label;" oncommand="drawPreview();"/>
       </groupbox>
+
+      <groupbox>
+        <caption label="&options.title;"/>
+        <hbox flex="1">
+          <checkbox id="syncProp"
+                    preference="mandelbrot.syncProportions"
+                    onclick="checkProportions();"/>
+          <label value="&syncProp.label;" control="syncProp"/>
+        </hbox>
+      </groupbox>
     </hbox>
   </prefpane>
 </prefwindow>