Changeset 31262 in osm for applications/editors/josm
- Timestamp:
- 2015-06-12T14:47:04+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryHistoryDialog.java
r31257 r31262 7 7 import java.awt.GridBagLayout; 8 8 import java.awt.event.ActionEvent; 9 import java.awt.event.KeyEvent; 9 10 import java.util.ArrayList; 10 11 import java.util.Arrays; … … 25 26 import org.openstreetmap.josm.tools.GBC; 26 27 import org.openstreetmap.josm.tools.ImageProvider; 28 import org.openstreetmap.josm.tools.Shortcut; 27 29 28 30 import javax.swing.tree.DefaultMutableTreeNode; … … 48 50 public MapillaryHistoryDialog() { 49 51 super(tr("Mapillary history"), "mapillaryhistory.png", 50 tr("Open Mapillary history dialog"), null, 200); 52 tr("Open Mapillary history dialog"), Shortcut.registerShortcut( 53 tr("Mapillary history"), 54 tr("Open Mapillary history dialog"), KeyEvent.VK_M, 55 Shortcut.NONE), 200); 51 56 52 57 MapillaryRecord.getInstance().addListener(this); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryToggleDialog.java
r31261 r31262 61 61 new PreviousSignalAction()); 62 62 private List<SideButton> signalMode; 63 // TODO change to enum 63 64 64 private int mode; 65 65 … … 232 232 } 233 233 234 private void centerAtSelected() { 235 Main.map.mapView.zoomTo(MapillaryData.getInstance().getSelectedImage() 236 .getLatLon()); 237 } 238 234 239 /** 235 240 * Action class form the next image button. … … 250 255 MapillaryData.getInstance().selectNext(); 251 256 if (MapillaryData.getInstance().getSelectedImage() != null) 252 Main.map.mapView.zoomTo(MapillaryData.getInstance() 253 .getSelectedImage().getLatLon()); 257 centerAtSelected(); 254 258 } 255 259 } … … 274 278 MapillaryData.getInstance().selectPrevious(); 275 279 if (MapillaryData.getInstance().getSelectedImage() != null) 276 Main.map.mapView.zoomTo(MapillaryData.getInstance() 277 .getSelectedImage().getLatLon()); 280 centerAtSelected(); 278 281 } 279 282 } … … 296 299 .setImage(MapillaryLayer.RED); 297 300 MapillaryToggleDialog.getInstance().updateImage(); 298 Main.map.mapView.zoomTo(MapillaryData.getInstance() 299 .getSelectedImage().getLatLon()); 301 centerAtSelected(); 300 302 } 301 303 } … … 318 320 MapillaryLayer.BLUE); 319 321 MapillaryToggleDialog.getInstance().updateImage(); 320 Main.map.mapView.zoomTo(MapillaryData.getInstance() 321 .getSelectedImage().getLatLon()); 322 centerAtSelected(); 322 323 } 323 324 } … … 414 415 } 415 416 } 417 centerAtSelected(); 416 418 } 417 419 } … … 441 443 } 442 444 } 445 centerAtSelected(); 443 446 } 444 447 }
Note:
See TracChangeset
for help on using the changeset viewer.