Changeset 29846 in osm
- Timestamp:
- 2013-08-19T11:11:40+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/print
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/print/build.xml
r29435 r29846 5 5 <property name="commit.message" value="Added a field to specify the map scale."/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value=" 5670"/>7 <property name="plugin.main.version" value="6154"/> 8 8 9 9 <property name="plugin.author" value="Kai Pastor"/> -
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintDialog.java
r29529 r29846 55 55 import javax.swing.JScrollPane; 56 56 import javax.swing.JSpinner; 57 import javax.swing.JTextArea; 57 58 import javax.swing.JTextField; 58 59 import javax.swing.SpinnerNumberModel; … … 63 64 import javax.swing.event.DocumentListener; 64 65 66 import org.openstreetmap.gui.jmapviewer.tilesources.AbstractOsmTileSource; 65 67 import org.openstreetmap.josm.Main; 66 68 import org.openstreetmap.josm.tools.GBC; … … 275 277 276 278 row++; 277 final javax.swing.JTextArea attributionText = new javax.swing.JTextArea(Main.pref.get("print.attribution", PrintPlugin.DEF_ATTRIBUTION));279 final JTextArea attributionText = new JTextArea(Main.pref.get("print.attribution", AbstractOsmTileSource.DEFAULT_OSM_ATTRIBUTION)); 278 280 attributionText.setRows(10); 279 281 attributionText.setLineWrap(true); -
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintPlugin.java
r29529 r29846 28 28 import javax.swing.KeyStroke; 29 29 30 import org.openstreetmap.gui.jmapviewer.tilesources.AbstractOsmTileSource; 30 31 import org.openstreetmap.josm.Main; 31 32 import org.openstreetmap.josm.gui.MapFrame; … … 55 56 56 57 /** 57 * The default attribution text58 */59 public static final String DEF_ATTRIBUTION =60 "OSM Map data (c) OpenStreetMap contributors, CC-BY-SA";61 62 /**63 58 * Adds the PrintPlugin to the GUI 64 59 * … … 92 87 "print.resolution.dpi", Integer.toString(DEF_RESOLUTION_DPI)); 93 88 Main.pref.putDefault( 94 "print.attribution", DEF_ATTRIBUTION);89 "print.attribution", AbstractOsmTileSource.DEFAULT_OSM_ATTRIBUTION); 95 90 Main.pref.putDefault( 96 91 "print.preview.enabled", new Boolean(false).toString()); -
applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintableMapView.java
r29529 r29846 48 48 import javax.swing.JPanel; 49 49 50 import org.openstreetmap.gui.jmapviewer.tilesources.AbstractOsmTileSource; 50 51 import org.openstreetmap.josm.Main; 51 52 import org.openstreetmap.josm.data.Bounds; … … 325 326 */ 326 327 public void paintMapAttribution(Graphics2D g2d, PageFormat pageFormat) { 327 String text = Main.pref.get("print.attribution", PrintPlugin.DEF_ATTRIBUTION);328 String text = Main.pref.get("print.attribution", AbstractOsmTileSource.DEFAULT_OSM_ATTRIBUTION); 328 329 329 330 if (text == null) {
Note:
See TracChangeset
for help on using the changeset viewer.