Merge branch 'master' into history
[potlatch2.git] / net / systemeD / potlatch2 / StyleSelector.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2 <mx:VBox
3         xmlns:fx="http://ns.adobe.com/mxml/2009"
4         xmlns:mx="library://ns.adobe.com/flex/mx"
5         paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10"
6         horizontalAlign="left" backgroundColor="white" borderStyle="inset">
7         
8         <mx:List width="100%" height="100%" id="mapStyle" 
9                 labelField="name"
10                 change="FlexGlobals.topLevelApplication.styleButton.close(); Stylesheets.instance().setStylesheet(mapStyle.selectedItem.name, mapStyle.selectedItem.url);"
11                 dataProvider="{Stylesheets.instance().getCollection()}"
12                 rowCount="{Stylesheets.instance().getCollection().length}" />
13
14         <mx:Button id="editButton" label="Edit..." click="FlexGlobals.topLevelApplication.styleButton.close(); new BackgroundDialog().init('Map style',mapStyle,Stylesheets.instance());" />
15
16         <fx:Script><![CDATA[
17                 import net.systemeD.halcyon.*;
18                 import net.systemeD.halcyon.connection.*;
19                 import net.systemeD.potlatch2.*;
20                 import net.systemeD.potlatch2.collections.Stylesheets;
21                 import mx.core.*;
22     ]]></fx:Script>
23 </mx:VBox>
24