1 <?xml version="1.0" encoding="utf-8"?>
3 xmlns:fx="http://ns.adobe.com/mxml/2009"
4 xmlns:s="library://ns.adobe.com/flex/spark">
8 paddingLeft="5" paddingRight="5"
9 paddingTop="5" paddingBottom="5"/>
12 <s:List width="100%" height="100%" id="background"
14 change="FlexGlobals.topLevelApplication.bgButton.close(); application.theMap.tileset.setBackgroundFromImagery(background.selectedItem,true);"
15 dataProvider="{Imagery.instance().getAvailableImagery(application.theMap)}"
16 selectedItem="{application.theMap.tileset.selected}">
18 <s:VerticalLayout requestedRowCount="{Imagery.instance().getAvailableImagery(application.theMap).length}" gap="0" horizontalAlign="contentJustify"/>
22 <s:HGroup width="100%" horizontalAlign="center">
23 <s:CheckBox label="Dim" selected="{application.theMap.getDimming()}" id="dim"
24 change="setDimming(dim.selected)" />
25 <s:CheckBox label="Sharpen" selected="{application.theMap.getSharpen()}" id="sharpen"
26 change="setSharpen(sharpen.selected)" />
29 <s:HGroup width="100%" horizontalAlign="center">
30 <s:CheckBox label="Show floating window" id="showFloatingMap" selected="{application.floatingMap.visible}"
31 change="application.floatingMap.setFloatingMapVisible(showFloatingMap.selected);FlexGlobals.topLevelApplication.bgButton.close();" />
34 <s:HGroup horizontalAlign="center">
35 <s:Button id="editLabel" label="Edit..." click="FlexGlobals.topLevelApplication.bgButton.close(); new BackgroundDialog().init('Background imagery',background,Imagery.instance());" />
36 <s:Button label="Vector file..." click="FlexGlobals.topLevelApplication.bgButton.close(); new VectorSourceDialog().init();" />
41 import net.systemeD.halcyon.*;
42 import net.systemeD.halcyon.connection.*;
43 import net.systemeD.potlatch2.*;
44 import net.systemeD.potlatch2.dialogs.*;
45 import net.systemeD.potlatch2.collections.Imagery;
47 import mx.collections.ArrayCollection;
48 import mx.managers.PopUpManager;
50 [Bindable] private var application:Object = FlexGlobals.topLevelApplication;
52 public function setDimming(v:Boolean):void {
53 FlexGlobals.topLevelApplication.theMap.setDimming(dim.selected);
54 var obj:SharedObject=SharedObject.getLocal("user_state","/");
55 obj.setProperty('background_dim',v);
56 try { obj.flush(); } catch (e:Error) {}
58 public function setSharpen(v:Boolean):void {
59 FlexGlobals.topLevelApplication.theMap.setSharpen(sharpen.selected);
60 var obj:SharedObject=SharedObject.getLocal("user_state","/");
61 obj.setProperty('background_sharpen',v);
62 try { obj.flush(); } catch (e:Error) {}