First stab at improved help dialog
[potlatch2.git] / net / systemeD / potlatch2 / help / HelpDialog.mxml
1 <?xml version="1.0" encoding="utf-8"?>
2 <mx:TitleWindow
3         xmlns:mx="http://www.adobe.com/2006/mxml" 
4         layout="vertical" showCloseButton="true"
5         horizontalAlign="center" title="Welcome to Potlatch2 for [Website]"
6         width="450" height="350"
7         verticalGap="0">
8   <mx:Script><![CDATA[
9     import mx.managers.PopUpManager;
10     import mx.events.CloseEvent;
11     import mx.core.Application;
12     
13     public function init():void {
14         PopUpManager.addPopUp(this, Application(Application.application), true);
15         PopUpManager.centerPopUp(this);
16         this.addEventListener(CloseEvent.CLOSE, helpDialog_close);
17
18         // store whether the user has seen the help dialog before
19         var obj:SharedObject = SharedObject.getLocal("user_state");
20         obj.setProperty("help_shown","true");
21     }
22     
23     private function helpDialog_close(evt:CloseEvent):void {
24         PopUpManager.removePopUp(this);
25     }
26
27               ]]>
28   </mx:Script>
29   <mx:TabNavigator id="tn" width="100%" height="100%">
30     <mx:VBox label="Welcome" width="100%" height="100%">
31       <mx:Text condenseWhite="true" width="100%" height="100%">
32         <mx:htmlText>
33           <![CDATA[
34             <p><b>Potlatch 2</b> is an OpenStreetMap (OSM) editor that allows you to make edits directly through the [Website] website.</p>
35             <p><b>Why OpenStreetMap?</b> OSM is a mapping service in which all data is constantly updated and edited by everyday people like you. The obvious benefit is that it's free to use, but it has also become a major player in crisis mapping (i.e. use of OSM data to coordinate earthquake relief efforts in Haiti). Accuracy of this data is critical, and we hope you are able to volunteer some of your time!</p>
36             <p> * * * </p>
37             <h1>Getting Started</h1>
38             <p><b>+ For active OpenStreetMap members</b>, please sign in to OSM before editing</b></p>
39             <p><b>+ For new members</b>, please visit <a href="http://www.openstreetmap.org/">http://www.openstreetmap.org</a> to create an account, log in, then return here.</p>
40           ]]>
41         </mx:htmlText>
42       </mx:Text>
43     </mx:VBox>
44     <mx:VBox label="Controls">
45       <mx:Text>
46         <mx:htmlText>
47           <![CDATA[
48             <h1>Interface Controls</h1>
49           ]]>
50         </mx:htmlText>
51       </mx:Text>
52     </mx:VBox>
53     <mx:VBox label="Adding">
54       <mx:Text>
55         <mx:htmlText>
56           <![CDATA[
57             <h1>Interface Controls</h1>
58           ]]>
59         </mx:htmlText>
60       </mx:Text>
61     </mx:VBox>
62     <mx:VBox label="Editing (Beg.)">
63       <mx:Text>
64         <mx:htmlText>
65           <![CDATA[
66             <h1>Interface Controls</h1>
67           ]]>
68         </mx:htmlText>
69       </mx:Text>
70     </mx:VBox>
71     <mx:VBox label="Editing (Adv.)">
72       <mx:Text>
73         <mx:htmlText>
74           <![CDATA[
75             <h1>Interface Controls</h1>
76           ]]>
77         </mx:htmlText>
78       </mx:Text>
79     </mx:VBox>
80     <mx:VBox label="Tagging">
81       <mx:Text>
82         <mx:htmlText>
83           <![CDATA[
84             <h1>Interface Controls</h1>
85           ]]>
86         </mx:htmlText>
87       </mx:Text>
88     </mx:VBox>
89   </mx:TabNavigator>
90
91   <mx:ControlBar>
92     <mx:Spacer width="100%"/>
93     <mx:Button label="Ok" click="PopUpManager.removePopUp(this);"/>
94   </mx:ControlBar>
95
96 </mx:TitleWindow>