Boog fix with switching styles
[potlatch2.git] / net / systemeD / potlatch2 / StyleSelector.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="mapStyle" 
8                 labelField="name"
9                 change="Application.application.styleButton.close(); Stylesheets.instance().setStylesheet(mapStyle.selectedItem.name, mapStyle.selectedItem.url);"
10                 dataProvider="{Stylesheets.instance().getCollection()}" />
11
12         <mx:Button label="Edit..." click="new BackgroundDialog().init('Map style',mapStyle,Stylesheets.instance());" />
13
14         <mx:Script><![CDATA[
15                 import net.systemeD.halcyon.*;
16                 import net.systemeD.halcyon.connection.*;
17                 import net.systemeD.potlatch2.*;
18                 import net.systemeD.potlatch2.collections.Stylesheets;
19                 import mx.core.*;
20     ]]></mx:Script>     
21 </mx:VBox>
22