First cut at styling TIGER data via an option. Needs lots of propagation of uid and...
[potlatch2.git] / net / systemeD / potlatch2 / options / OptionsDialog.mxml
index d7367b97a2a9ec5744db308943efeba2a6b42bae..d0674c453571889821061dc499c28446a058d1b1 100644 (file)
@@ -8,6 +8,7 @@
     import mx.managers.PopUpManager;
     import mx.events.CloseEvent;
     import mx.core.Application;
+    import net.systemeD.halcyon.Globals;
     
     public function init():void {
         PopUpManager.addPopUp(this, Application(Application.application), true);
         PopUpManager.removePopUp(this);
     }
 
+    private function tigerToggle():void {
+        Globals.vars.highlightTiger = tigercheck.selected;
+        Application.application.theMap.redraw();
+    }
+
               ]]>
   </mx:Script>
        <mx:CheckBox width="100%" label="Show toolbox" selected="true" id="tbcheck"
@@ -29,6 +35,9 @@
        <mx:CheckBox width="100%" label="Use custom cursors" selected="true" id="cursorcheck"
            change="Application.application.theController.cursorsEnabled=cursorcheck.selected" />
 
+    <mx:CheckBox width="100%" label="Highlight Unedited TIGER" selected="false" id="tigercheck"
+        change="tigerToggle()" />
+
   <mx:ControlBar>
     <mx:Spacer width="100%"/>
     <mx:Button label="Ok" click="PopUpManager.removePopUp(this);"/>