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