Merge remote-tracking branch 'gravitystorm/i18n' into staging
authorRichard Fairhurst <richard@systemeD.net>
Sat, 2 Apr 2011 16:48:47 +0000 (17:48 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Sat, 2 Apr 2011 16:48:47 +0000 (17:48 +0100)
1  2 
net/systemeD/potlatch2/TagViewer.mxml
net/systemeD/potlatch2/Toolbox.mxml
potlatch2.mxml

Simple merge
Simple merge
diff --cc potlatch2.mxml
          <mx:PopUpButton id="styleButton" label="Map Style" openAlways="true" styleName="appBarButton"
              creationComplete="styleButton.popUp = new StyleSelector();"/>
                <mx:PopUpMenuButton id="gpsButton" styleName="appBarButton"
 -                  itemClick="if (event.index==0) { trackLoader.load(); } else { new MyGpxDialog().init(); }">
 +                  itemClick="if (event.index==0) { trackLoader.load(); } 
 +                        else if (event.index==1) { new MyGpxDialog().init(); } 
 +                                            else { mx.controls.Menu(gpsButton.popUp).selectedIndex=0; 
 +                                                   mx.controls.Menu(gpsButton.popUp).selectedIndex=0; /* Yes, we do need to call it twice */
 +                                                   theMap.removeVectorLayer(theMap.findVectorLayer('GPS tracks')); }">
                        <mx:dataProvider>
                                <mx:Array>
-                                       <mx:Object label="GPS data" />
-                                       <mx:Object label="My tracks" />
-                                       <mx:Object label="Clear" />
+                                       <mx:Object label="GPS data" id="gpsData" />
+                                       <mx:Object label="My tracks" id="myTracks" />
++                                      <mx:Object label="Clear" id="clearGps" />
                                </mx:Array>
                        </mx:dataProvider>
                </mx:PopUpMenuButton>