Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r8443 r8510 119 119 return; 120 120 } 121 KeyEvent kev = (KeyEvent) event;121 KeyEvent kev = (KeyEvent) event; 122 122 int dx = 0, dy = 0; 123 123 switch (kev.getKeyCode()) { … … 148 148 if (layer.isVisible()) { 149 149 requestFocusInMapView(); 150 prevEastNorth =Main.map.mapView.getEastNorth(e.getX(),e.getY());150 prevEastNorth = Main.map.mapView.getEastNorth(e.getX(), e.getY()); 151 151 Main.map.mapView.setNewCursor(Cursor.MOVE_CURSOR, this); 152 152 } … … 157 157 if (layer == null || prevEastNorth == null) return; 158 158 EastNorth eastNorth = 159 Main.map.mapView.getEastNorth(e.getX(), e.getY());159 Main.map.mapView.getEastNorth(e.getX(), e.getY()); 160 160 double dx = layer.getDx()+eastNorth.east()-prevEastNorth.east(); 161 161 double dy = layer.getDy()+eastNorth.north()-prevEastNorth.north(); … … 194 194 super(Main.parent, 195 195 tr("Adjust imagery offset"), 196 new String[] {tr("OK"), tr("Cancel")},196 new String[] {tr("OK"), tr("Cancel")}, 197 197 false); 198 198 setButtonIcons(new String[] {"ok", "cancel"}); … … 203 203 "If you want to save the offset as bookmark, enter the bookmark name below", 204 204 Main.getProjection().toString())), GBC.eop()); 205 pnl.add(new JLabel(tr("Offset: ")), GBC.std());206 pnl.add(tOffset, GBC.eol().fill(GBC.HORIZONTAL).insets(0,0,0,5));207 pnl.add(new JLabel(tr("Bookmark name: ")), GBC.std());208 pnl.add(tBookmarkName, GBC.eol().fill(GBC.HORIZONTAL));205 pnl.add(new JLabel(tr("Offset: ")), GBC.std()); 206 pnl.add(tOffset, GBC.eol().fill(GBC.HORIZONTAL).insets(0, 0, 0, 5)); 207 pnl.add(new JLabel(tr("Bookmark name: ")), GBC.std()); 208 pnl.add(tBookmarkName, GBC.eol().fill(GBC.HORIZONTAL)); 209 209 tOffset.setColumns(16); 210 210 updateOffsetIntl(); … … 269 269 tr("Overwrite"), 270 270 new String[] {tr("Overwrite"), tr("Cancel")} 271 ) { {271 ) { { 272 272 contentInsets = new Insets(10, 15, 10, 15); 273 } };273 } }; 274 274 dialog.setContent(tr("Offset bookmark already exists. Overwrite?")); 275 275 dialog.setButtonIcons(new String[] {"ok.png", "cancel.png"});
Note:
See TracChangeset
for help on using the changeset viewer.