Changeset 18404 in osm
- Timestamp:
- 2009-11-01T13:19:59+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/build.xml
r18289 r18404 26 26 <attribute name="Plugin-Description" value="A special handler for the French land registry WMS server."/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/FR:JOSM/Fr:Plugin/Cadastre"/> 28 <attribute name="Plugin-Mainversion" value="2 012"/>29 <attribute name="Plugin-Stage" value=" 2327"/>28 <attribute name="Plugin-Mainversion" value="2327"/> 29 <attribute name="Plugin-Stage" value="60"/> 30 30 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 31 31 </manifest> -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r18314 r18404 2 2 3 3 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 import static org.openstreetmap.josm.tools.I18n.marktr;5 4 import static org.openstreetmap.josm.tools.I18n.tr; 6 5 … … 134 133 135 134 if (cadastreJMenu == null) { 136 cadastreJMenu = menu.addMenu( marktr("Cadastre"), KeyEvent.VK_C, menu.defaultMenuPos, ht("/Menu/Cadastre"));135 cadastreJMenu = menu.addMenu(tr("Cadastre"), KeyEvent.VK_C, menu.defaultMenuPos, ht("/Plugin/CadastreFr")); 137 136 JosmAction grab = new MenuActionGrab(); 138 137 JMenuItem menuGrab = new JMenuItem(grab); -
applications/editors/josm/plugins/czechaddress/build.xml
r17603 r18404 52 52 <attribute name="Plugin-Description" value="Creating and handling address nodes and buildings within Czech Republic."/> 53 53 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/Cz:JOSM/Plugins/CzechAddress"/> 54 <attribute name="Plugin-Mainversion" value="2 093"/>54 <attribute name="Plugin-Mainversion" value="2323"/> 55 55 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 56 56 </manifest> -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/CzechAddressPlugin.java
r16750 r18404 1 1 package org.openstreetmap.josm.plugins.czechaddress; 2 3 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 2 4 3 5 import java.awt.event.KeyEvent; … … 184 186 public void pluginStatusChanged(int message) { 185 187 if (message == MESSAGE_DATABASE_LOADED) { 186 czechMenu = Main.main.menu.addMenu("Adresy", KeyEvent.VK_A, 4 );188 czechMenu = Main.main.menu.addMenu("Adresy", KeyEvent.VK_A, 4, ht("/Plugin/CzechAddress")); 187 189 menuItems.add(MainMenu.add(czechMenu, new PointManipulatorAction())); 188 190 menuItems.add(MainMenu.add(czechMenu, new GroupManipulatorAction())); -
applications/editors/josm/plugins/livegps/build.xml
r16945 r18404 26 26 <attribute name="Plugin-Description" value="Support live GPS input (moving dot) through a connection to gpsd server."/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/LiveGPS"/> 28 <attribute name="Plugin-Mainversion" value=" 1890"/>28 <attribute name="Plugin-Mainversion" value="2323"/> 29 29 <attribute name="Plugin-Stage" value="50"/> 30 30 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> -
applications/editors/josm/plugins/livegps/src/livegps/LiveGpsPlugin.java
r16945 r18404 1 1 package livegps; 2 2 3 import static org.openstreetmap.josm. tools.I18n.marktr;3 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 … … 98 98 { 99 99 MainMenu menu = Main.main.menu; 100 lgpsmenu = menu.addMenu( marktr("LiveGPS"), KeyEvent.VK_G, menu.defaultMenuPos);100 lgpsmenu = menu.addMenu(tr("LiveGPS"), KeyEvent.VK_G, menu.defaultMenuPos, ht("/Plugin/LiveGPS")); 101 101 102 102 JosmAction captureAction = new CaptureAction(); -
applications/editors/josm/plugins/piclayer/build.xml
r17323 r18404 81 81 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 82 82 <attribute name="Plugin-Description" value="This plugin allows to display any picture as a background in the editor and align it with the map."/> 83 <attribute name="Plugin-Mainversion" value=" 1728"/>83 <attribute name="Plugin-Mainversion" value="2323"/> 84 84 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 85 85 </manifest> -
applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerPlugin.java
r17321 r18404 21 21 package org.openstreetmap.josm.plugins.piclayer; 22 22 23 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 24 import static org.openstreetmap.josm.tools.I18n.tr; 25 23 26 import java.awt.event.KeyEvent; 24 27 import javax.swing.JMenu; … … 35 38 */ 36 39 public class PicLayerPlugin extends Plugin implements LayerChangeListener { 37 38 // Plugin menu39 private JMenu m_menu = null;40 41 // Toolbar buttons42 private IconToggleButton m_movePictureButton = null;43 private IconToggleButton m_rotatePictureButton = null;44 private IconToggleButton m_scalexPictureButton = null;45 private IconToggleButton m_scaleyPictureButton = null;46 private IconToggleButton m_scalexyPictureButton = null;47 48 // Menu actions49 private NewLayerFromFileAction m_newFromFileAction = null;50 private NewLayerFromClipboardAction m_newFromClipAction = null;51 40 52 /** 53 * Constructor... 54 */ 55 public PicLayerPlugin() { 56 57 // Create menu entry 58 if ( Main.main.menu != null ) { 59 m_menu = Main.main.menu.addMenu( "PicLayer" , KeyEvent.VK_I, Main.main.menu.defaultMenuPos ); 60 } 61 62 // Add menu items 63 if ( m_menu != null ) { 64 m_menu.add( m_newFromFileAction = new NewLayerFromFileAction() ); 65 m_menu.add( m_newFromClipAction = new NewLayerFromClipboardAction() ); 66 m_menu.addSeparator(); 67 m_menu.add( new HelpAction() ); 68 m_newFromFileAction.setEnabled( false ); 69 m_newFromClipAction.setEnabled( false ); 70 } 71 72 // Listen to layers 73 Layer.listeners.add( this ); 74 75 } 76 41 // Plugin menu 42 private JMenu m_menu = null; 43 44 // Toolbar buttons 45 private IconToggleButton m_movePictureButton = null; 46 private IconToggleButton m_rotatePictureButton = null; 47 private IconToggleButton m_scalexPictureButton = null; 48 private IconToggleButton m_scaleyPictureButton = null; 49 private IconToggleButton m_scalexyPictureButton = null; 50 51 // Menu actions 52 private NewLayerFromFileAction m_newFromFileAction = null; 53 private NewLayerFromClipboardAction m_newFromClipAction = null; 54 55 /** 56 * Constructor... 57 */ 58 public PicLayerPlugin() { 59 60 // Create menu entry 61 if ( Main.main.menu != null ) { 62 m_menu = Main.main.menu.addMenu(tr("PicLayer") , KeyEvent.VK_I, Main.main.menu.defaultMenuPos, ht("/Plugin/PicLayer")); 63 } 64 65 // Add menu items 66 if ( m_menu != null ) { 67 m_menu.add( m_newFromFileAction = new NewLayerFromFileAction() ); 68 m_menu.add( m_newFromClipAction = new NewLayerFromClipboardAction() ); 69 m_menu.addSeparator(); 70 m_menu.add( new HelpAction() ); 71 m_newFromFileAction.setEnabled( false ); 72 m_newFromClipAction.setEnabled( false ); 73 } 74 75 // Listen to layers 76 Layer.listeners.add( this ); 77 78 } 79 77 80 /** 78 81 * Called when the map is created. Creates the toolbar buttons. … … 80 83 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 81 84 if(newFrame != null) { 82 83 84 85 86 87 88 89 85 // Create plugin map modes 86 MovePictureAction movePictureAction = new MovePictureAction(newFrame); 87 RotatePictureAction rotatePictureAction = new RotatePictureAction(newFrame); 88 ScaleXYPictureAction scaleXYPictureAction = new ScaleXYPictureAction(newFrame); 89 ScaleXPictureAction scaleXPictureAction = new ScaleXPictureAction(newFrame); 90 ScaleYPictureAction scaleYPictureAction = new ScaleYPictureAction(newFrame); 91 // Create plugin buttons and add them to the toolbar 92 m_movePictureButton = new IconToggleButton(movePictureAction); 90 93 m_rotatePictureButton = new IconToggleButton(rotatePictureAction); 91 94 m_scalexyPictureButton = new IconToggleButton(scaleXYPictureAction); … … 109 112 } 110 113 111 112 113 114 115 114 /** 115 * The toolbar buttons shall be active only when the PicLayer is active. 116 */ 117 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 118 } 116 119 117 118 119 120 121 122 123 124 125 120 /** 121 * The menu is enabled once another layer is first created. This is needed 122 * because the picture must be positioned based on the current mapview (so 123 * one must exist first). User should not be able to load a picture too early. 124 */ 125 public void layerAdded(Layer arg0) { 126 m_newFromFileAction.setEnabled( true ); 127 m_newFromClipAction.setEnabled( true ); 128 } 126 129 127 /** 128 * When all layers are gone - the menu is gone too. 129 */ 130 public void layerRemoved(Layer arg0) { 131 boolean enable = Main.map.mapView.getAllLayers().size() != 0; 132 m_newFromFileAction.setEnabled( enable ); 133 m_newFromClipAction.setEnabled( enable ); 134 } 135 130 /** 131 * When all layers are gone - the menu is gone too. 132 */ 133 public void layerRemoved(Layer arg0) { 134 boolean enable = Main.map.mapView.getAllLayers().size() != 0; 135 m_newFromFileAction.setEnabled( enable ); 136 m_newFromClipAction.setEnabled( enable ); 137 } 136 138 }; -
applications/editors/josm/plugins/routing/build.xml
r17544 r18404 44 44 <attribute name="Plugin-Description" value="Provides routing capabilities."/> 45 45 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/> 46 <attribute name="Plugin-Mainversion" value="2 082"/>46 <attribute name="Plugin-Mainversion" value="2323"/> 47 47 <attribute name="Plugin-Stage" value="50"/> 48 48 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingPlugin.java
r16799 r18404 137 137 layers = new ArrayList<RoutingLayer>(); 138 138 // Add menu 139 menu = new RoutingMenu( marktr("Routing"));139 menu = new RoutingMenu(); 140 140 // Register this class as LayerChangeListener 141 141 Layer.listeners.add(this); -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingMenu.java
r15710 r18404 28 28 package com.innovant.josm.plugin.routing.gui; 29 29 30 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 30 31 import static org.openstreetmap.josm.tools.I18n.tr; 31 32 … … 71 72 * @param s 72 73 */ 73 public RoutingMenu( final String name) {74 public RoutingMenu() { 74 75 MainMenu mm = Main.main.menu; 75 menu = mm.addMenu( name, KeyEvent.VK_O, mm.defaultMenuPos);76 menu = mm.addMenu(tr("Routing"), KeyEvent.VK_O, mm.defaultMenuPos, ht("/Plugin/Routing")); 76 77 77 78 startMI = new JMenuItem(tr("Add routing layer")); -
applications/editors/josm/plugins/walkingpapers/build.xml
r17822 r18404 26 26 <attribute name="Plugin-Description" value="Supports downloading tiled, scanned maps from walking-papers.org. This plugin is still under early development and may be buggy."/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/WalkingPapers"/> 28 <attribute name="Plugin-Mainversion" value="2 196"/>28 <attribute name="Plugin-Mainversion" value="2323"/> 29 29 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 30 30 </manifest> -
applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersPlugin.java
r18198 r18404 1 1 package org.openstreetmap.josm.plugins.walkingpapers; 2 2 3 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 4 5 … … 20 21 public class WalkingPapersPlugin extends Plugin 21 22 { 22 23 23 static JMenu walkingPapersMenu; 24 24 25 public WalkingPapersPlugin() 25 26 { 26 27 MainMenu menu = Main.main.menu; 27 walkingPapersMenu = menu.addMenu(tr("Walking Papers"), KeyEvent.VK_K, menu.defaultMenuPos );28 walkingPapersMenu = menu.addMenu(tr("Walking Papers"), KeyEvent.VK_K, menu.defaultMenuPos, ht("/Plugin/WalkingPapers")); 28 29 walkingPapersMenu.add(new JMenuItem(new WalkingPapersAddLayerAction())); 29 30 } 30 31 31 } -
applications/editors/josm/plugins/wmsplugin/build.xml
r17817 r18404 18 18 ** To build against the core in ../../core, create a correct manifest and deploy to 19 19 ** SVN, run 20 ** - set the property commit.message 20 ** - set the property commit.message 21 21 ** - set the property josm.reference.release to lowest JOSM release number this 22 22 ** plugin build is compatible with … … 32 32 <property name="ant.build.javac.target" value="1.5"/> 33 33 <property name="commit.message" value="fixing JOSM issue #3186" /> 34 <property name="josm.reference.release" value="2 196" />35 34 <property name="josm.reference.release" value="2323" /> 35 36 36 <target name="init"> 37 37 <mkdir dir="${plugin.build.dir}"/> … … 85 85 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 86 86 </target> 87 87 88 88 <target name="core-info"> 89 89 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> … … 98 98 </target> 99 99 100 100 101 101 <target name="commit-current"> 102 102 <echo>Commiting the plugin source ...</echo> … … 106 106 <arg value="-m "${commit.message}""/> 107 107 <arg value="."/> 108 </exec> 108 </exec> 109 109 </target> 110 110 111 111 112 112 <target name="update-current"> 113 113 <echo>Updating basedir ...</echo> … … 116 116 <arg value="up"/> 117 117 <arg value="."/> 118 </exec> 118 </exec> 119 119 <echo>Updating ${plugin.jar} ...</echo> 120 120 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> … … 122 122 <arg value="up"/> 123 123 <arg value="${plugin.jar}"/> 124 </exec> 124 </exec> 125 125 </target> 126 126 127 127 <target name="commit-dist"> 128 128 <echo>Commiting ${plugin.jar} ...</echo> … … 132 132 <arg value="-m "${commit.message}""/> 133 133 <arg value="${plugin.jar}"/> 134 </exec> 134 </exec> 135 135 </target> 136 136 137 137 <target name="deploy" depends="core-info,commit-current,update-current,clean,dist,commit-dist"> 138 138 </target> -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java
r17556 r18404 1 1 package wmsplugin; 2 2 3 import static org.openstreetmap.josm. tools.I18n.marktr;3 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 … … 51 51 static int overlapEast = 14; 52 52 static int overlapNorth = 4; 53 53 54 54 // remember state of menu item to restore on changed preferences 55 55 static private boolean menuEnabled = false; 56 56 57 57 protected void initExporterAndImporter() { 58 58 ExtensionFileFilter.exporters.add(new WMSLayerExporter()); … … 94 94 TreeSet<String> keys = new TreeSet<String>(prefs.keySet()); 95 95 96 // Here we load the settings for "overlap" checkbox and spinboxes. 97 98 try { 99 doOverlap = Boolean.valueOf(prefs.get("wmsplugin.url.overlap")); 100 } catch (Exception e) {} // If sth fails, we drop to default settings. 101 102 try { 103 overlapEast = Integer.valueOf(prefs.get("wmsplugin.url.overlapEast")); 104 } catch (Exception e) {} // If sth fails, we drop to default settings. 105 106 try { 107 overlapNorth = Integer.valueOf(prefs.get("wmsplugin.url.overlapNorth")); 108 } catch (Exception e) {} // If sth fails, we drop to default settings. 96 // Here we load the settings for "overlap" checkbox and spinboxes. 97 98 try { 99 doOverlap = Boolean.valueOf(prefs.get("wmsplugin.url.overlap")); 100 } catch (Exception e) {} // If sth fails, we drop to default settings. 101 102 try { 103 overlapEast = Integer.valueOf(prefs.get("wmsplugin.url.overlapEast")); 104 } catch (Exception e) {} // If sth fails, we drop to default settings. 105 106 try { 107 overlapNorth = Integer.valueOf(prefs.get("wmsplugin.url.overlapNorth")); 108 } catch (Exception e) {} // If sth fails, we drop to default settings. 109 109 110 110 // And then the names+urls of WMS servers … … 169 169 170 170 if (wmsJMenu == null) 171 wmsJMenu = menu.addMenu( marktr("WMS"), KeyEvent.VK_W, menu.defaultMenuPos);171 wmsJMenu = menu.addMenu(tr("WMS"), KeyEvent.VK_W, menu.defaultMenuPos, ht("/Plugin/WMS")); 172 172 else 173 173 wmsJMenu.removeAll();
Note:
See TracChangeset
for help on using the changeset viewer.