make imagery menu adapt to where you are. I guess it might need to be bindable so...
[potlatch2.git] / net / systemeD / potlatch2 / BackgroundSelector.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2 <mx:VBox
3         xmlns:mx="http://www.adobe.com/2006/mxml"
4         paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10"
5         horizontalAlign="left" backgroundColor="white" borderStyle="inset">
6         
7         <mx:List width="100%" height="100%" id="background" verticalScrollPolicy="on" 
8                         labelField="name"
9                         change="Application.application.bgButton.close(); Application.application.setBackground(background.selectedItem);"                      
10                 dataProvider="{Application.application.getAvailableImagery()}" />
11         <mx:CheckBox width="100%" label="Dim background" selected="true" id="dim"
12             change="Application.application.theMap.setDimming(dim.selected); Application.application.yahoo.alpha = dim.selected ? 0.5 : 1" />
13
14         <mx:HBox>
15         <mx:Button label="Edit..." click="Application.application.bgButton.close(); new BackgroundDialog().init('Background imagery',background,Application.application.theController.imagery);" />
16         <mx:Button label="Vector file..." click="Application.application.bgButton.close(); new VectorSourceDialog().init();" />
17         </mx:HBox>
18
19         <mx:Script><![CDATA[
20                 import net.systemeD.halcyon.*;
21                 import net.systemeD.halcyon.connection.*;
22                 import net.systemeD.potlatch2.*;
23                 import mx.core.*;
24                 import mx.collections.ArrayCollection;
25                 import mx.managers.PopUpManager;
26                 import net.systemeD.halcyon.Globals;
27     ]]></mx:Script>     
28 </mx:VBox>
29