Localisation updates from https://translatewiki.net.
[potlatch2.git] / potlatch2.mxml
index 36dac00..5c1fd75 100644 (file)
@@ -62,6 +62,9 @@
                                </fx:Array>
                        </mx:dataProvider>
                </mx:PopUpMenuButton>
+        <mx:PopUpButton id="bookmarkButton" label="Bookmarks" openAlways="true" styleName="appBarButton" open="disableMapMouse();" close="enableMapMouse();" 
+            creationComplete="bookmarkButton.popUp = new BookmarkSelector().init();"/>
+        <mx:Button id="tasksButton" label="Tasks" click="new TasksDialog().init(theController);" styleName="appBarButton" toolTip="Load tasks file" />
         <mx:Button id="optionsButton" label="Options" click="new OptionsDialog().init();" styleName="appBarButton" />
     </mx:ApplicationControlBar>
     
@@ -75,9 +78,9 @@
             <mx:Canvas id="map_area" resize="onResizeMap()"
                 top="0" left="0" width="100%" height="100%" dragEnter="dragEnterHandler(event);" dragDrop="dragDropHandler(event);">
             </mx:Canvas>
-            <mx:Image source="@Embed('embedded/zoomIn.svg')" left="5" top="5" click="theMap.zoomIn();"
+            <mx:Image source="@Embed('embedded/zoomIn.svg')" left="5" top="5" click="theMap.zoomIn(event.shiftKey ? 3 : 1);"
                 rollOverEffect="glowImage" rollOutEffect="unglowImage" toolTip="{'Zoom in - currently z'+getScale()}" />
-            <mx:Image source="@Embed('embedded/zoomOut.svg')" left="5" top="22" click="theMap.zoomOut();"
+            <mx:Image source="@Embed('embedded/zoomOut.svg')" left="5" top="22" click="theMap.zoomOut(event.shiftKey ? 3 : 1);"
                 rollOverEffect="glowImage" rollOutEffect="unglowImage" toolTip="{'Zoom out - currently z'+getScale()}" />
             <mx:Image source="@Embed('embedded/search.svg')" left="5" top="42" click="new FindDialog().init();"
                 rollOverEffect="glowImage" rollOutEffect="unglowImage" toolTip="Find place" />
@@ -85,7 +88,7 @@
                 enabled="false" borderThickness="0"
                 showEffect="{wipeIn}" hideEffect="{wipeOut}"/>
             <mx:TextArea id="coordsbox" left="25" top="5" disabledColor="black" backgroundDisabledColor="0xFFFFEA" height="33"
-                width="57" enabled="false" borderThickness="0" visible="false"/>
+                width="70" enabled="false" borderThickness="0" visible="false"/>
 
         </mx:Canvas>
         <potlatch2:ContextualHelp width="100%" height="30" id="contextHelp" />
                        var rhCP:Point=rhContent.localToGlobal(new Point(0,0)); // stage co-ordinates of right-hand content area
                        return rhCP.y + theMap.scrollRect.height - toolbox.height - 5 - yOffset;
                }
+               public function suggestTasksPaletteX():int {
+                       var rhCP:Point=rhContent.localToGlobal(new Point(0,0));
+                       return rhCP.x + 5;
+               }
+               public function suggestTasksPaletteY():int {
+                       var rhCP:Point=rhContent.localToGlobal(new Point(0,0));
+                       return rhCP.y + theMap.scrollRect.height - 55;
+               }
 
                private function disableMapMouse():void {
                        map_area.mouseChildren=false;