- Timestamp:
- 2010-01-29T21:25:17+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/BookmarkSelection.java
r2891 r2904 152 152 lblCurrentDownloadArea.setText(tr("<html>There is currently no download area selected.</html>")); 153 153 } else { 154 lblCurrentDownloadArea.setText(tr("<html><strong>Current download area</strong> (minl at,minlon, maxlat, maxlon): </html>"));154 lblCurrentDownloadArea.setText(tr("<html><strong>Current download area</strong> (minlon, minlat, maxlon, maxlat): </html>")); 155 155 bboxDisplay.setText( 156 currentArea.getMin().lonToString(CoordinateFormat.DECIMAL_DEGREES)+","+ 156 157 currentArea.getMin().latToString(CoordinateFormat.DECIMAL_DEGREES)+","+ 157 currentArea.getMin().lonToString(CoordinateFormat.DECIMAL_DEGREES)+","+ 158 currentArea.getMax().latToString(CoordinateFormat.DECIMAL_DEGREES)+","+ 159 currentArea.getMax().lonToString(CoordinateFormat.DECIMAL_DEGREES) 158 currentArea.getMax().lonToString(CoordinateFormat.DECIMAL_DEGREES)+","+ 159 currentArea.getMax().latToString(CoordinateFormat.DECIMAL_DEGREES) 160 160 ); 161 161 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r2850 r2904 32 32 import java.util.HashSet; 33 33 import java.util.LinkedHashSet; 34 import java.util.LinkedList; 34 35 import java.util.List; 35 36 … … 55 56 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 56 57 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 58 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; 57 59 import org.openstreetmap.josm.gui.layer.GpxLayer; 58 60 import org.openstreetmap.josm.gui.layer.Layer; … … 289 291 return ImageProvider.get("dialogs/geoimage"); 290 292 } 291 292 @Override 293 public Object getInfoComponent() { 294 // TODO Auto-generated method stub 295 return null; 293 294 public static interface LayerMenuAddition { 295 public Component getComponent(Layer layer); 296 } 297 298 private static List<LayerMenuAddition> menuAdditions = new LinkedList<LayerMenuAddition>(); 299 public static void registerMenuAddition(LayerMenuAddition addition) { 300 menuAdditions.add(addition); 296 301 } 297 302 … … 301 306 JMenuItem correlateItem = new JMenuItem(tr("Correlate to GPX"), ImageProvider.get("dialogs/geoimage/gpx2img")); 302 307 correlateItem.addActionListener(new CorrelateGpxWithImages(this)); 303 304 return new Component[] { 305 new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)), 306 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)), 307 new JMenuItem(new RenameLayerAction(null, this)), 308 new JSeparator(), 309 correlateItem 310 }; 311 } 312 313 @Override 314 public String getToolTipText() { 308 309 List<Component> entries = new ArrayList<Component>(); 310 entries.add(new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this))); 311 entries.add(new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this))); 312 entries.add(new JMenuItem(new RenameLayerAction(null, this))); 313 entries.add(new JSeparator()); 314 entries.add(correlateItem); 315 for (LayerMenuAddition addition : menuAdditions) { 316 entries.add(addition.getComponent(this)); 317 } 318 entries.add(new JSeparator()); 319 entries.add(new JMenuItem(new LayerListPopup.InfoAction(this))); 320 321 return entries.toArray(new Component[0]); 322 323 } 324 325 private String infoText() { 315 326 int i = 0; 316 327 for (ImageEntry e : data) … … 320 331 return trn("{0} image loaded.", "{0} images loaded.", data.size(), data.size()) 321 332 + " " + trn("{0} was found to be GPS tagged.", "{0} were found to be GPS tagged.", i, i); 333 } 334 335 @Override public Object getInfoComponent() { 336 return infoText(); 337 } 338 339 @Override 340 public String getToolTipText() { 341 return infoText(); 322 342 } 323 343 … … 730 750 Main.map.mapView.repaint(); 731 751 } 752 753 public List<ImageEntry> getImages() { 754 List<ImageEntry> copy = new ArrayList<ImageEntry>(); 755 for (ImageEntry ie : data) { 756 copy.add(ie.clone()); 757 } 758 return copy; 759 } 732 760 } -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java
r2711 r2904 17 17 */ 18 18 19 final class ImageEntry implements Comparable<ImageEntry>, Cloneable {19 final public class ImageEntry implements Comparable<ImageEntry>, Cloneable { 20 20 File file; 21 21 Date time; … … 30 30 Image thumbnail; 31 31 32 /** 33 * When the corralation dialog is open, we like to show the image position 34 * for the current time offset on the map in real time. 35 * On the other hand, when the user aborts this operation, the old values 36 * should be restored. We have a temprary copy, that overrides 37 * the normal values if it is not null. (This may be not the most elegant 38 * solution for this, but it works.) 39 */ 32 40 ImageEntry tmp; 33 41 … … 55 63 public void setElevation(Double elevation) { 56 64 this.elevation = elevation; 65 } 66 67 public File getFile() { 68 return file; 57 69 } 58 70
Note:
See TracChangeset
for help on using the changeset viewer.