Changeset 17631 in josm
- Timestamp:
- 2021-03-21T22:14:56+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
r15756 r17631 29 29 import org.openstreetmap.josm.data.coor.LatLon; 30 30 import org.openstreetmap.josm.data.coor.conversion.DecimalDegreesCoordinateFormat; 31 import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils; 31 32 import org.openstreetmap.josm.gui.widgets.JosmTextArea; 32 33 import org.openstreetmap.josm.gui.widgets.JosmTextField; 33 34 import org.openstreetmap.josm.tools.GBC; 35 import org.openstreetmap.josm.tools.ImageProvider; 36 import org.openstreetmap.josm.tools.ImageProvider.ImageSizes; 34 37 import org.openstreetmap.josm.tools.JosmDecimalFormatSymbolsProvider; 35 38 import org.openstreetmap.josm.tools.Logging; … … 108 111 latlonPanel.add(panel, positions[i]); 109 112 } 110 dlg.add(latlonPanel, GBC.eop().insets(0, 20, 0, 0)); 113 dlg.add(latlonPanel, GBC.std().insets(0, 20, 0, 0)); 114 final JButton btnCopy = new JButton(tr("Copy bounds"), ImageProvider.get("copy", ImageSizes.SMALLICON)); 115 btnCopy.addMouseListener(new MouseAdapter() { 116 @Override 117 public void mouseClicked(MouseEvent arg0) { 118 ClipboardUtils.copyString(gui.currentBounds.encodeAsString(",")); 119 } 120 }); 121 dlg.add(btnCopy, GBC.eop().insets(20, 20, 0, 0)); 111 122 112 123 final JButton btnClear = new JButton(tr("Clear textarea")); … … 118 129 }); 119 130 dlg.add(btnClear, GBC.eol().insets(10, 20, 0, 0)); 120 121 131 dlg.add(new JLabel(tr("URL from www.openstreetmap.org (you can paste an URL here to download the area)")), 122 132 GBC.eol().insets(10, 5, 5, 0));
Note:
See TracChangeset
for help on using the changeset viewer.