A better way to adjust the dialogs to fit their contents?
[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                 rowCount="{Stylesheets.instance().getCollection().length}" />
12
13         <mx:Button label="Edit..." click="new BackgroundDialog().init('Map style',mapStyle,Stylesheets.instance());" />
14
15         <mx:Script><![CDATA[
16                 import net.systemeD.halcyon.*;
17                 import net.systemeD.halcyon.connection.*;
18                 import net.systemeD.potlatch2.*;
19                 import net.systemeD.potlatch2.collections.Stylesheets;
20                 import mx.core.*;
21     ]]></mx:Script>     
22 </mx:VBox>
23