refactoring and some bugfixes
[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                 change="Application.application.setStylesheet(mapStyle.selectedItem.label, mapStyle.selectedItem.data);"
9                 dataProvider="{Application.application.theController.stylesheets}" />
10
11         <mx:Button label="Edit..." click="new BackgroundDialog().init('Map style',mapStyle,Application.application.theController.stylesheets);" />
12
13         <mx:Script><![CDATA[
14                 import net.systemeD.halcyon.*;
15                 import net.systemeD.halcyon.connection.*;
16                 import net.systemeD.potlatch2.*;
17                 import mx.core.*;
18     ]]></mx:Script>     
19 </mx:VBox>
20