Changeset 4168 in josm
- Timestamp:
- 2011-06-25T22:44:56+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r3915 r4168 37 37 import org.openstreetmap.josm.data.imagery.ImageryLayerInfo; 38 38 import org.openstreetmap.josm.data.preferences.StringProperty; 39 import org.openstreetmap.josm.gui.download.DownloadDialog; 39 40 import org.openstreetmap.josm.gui.layer.TMSLayer; 40 41 … … 311 312 } 312 313 314 private DownloadDialog iGui; 315 316 public void setGui(final DownloadDialog gui) { 317 iGui = gui; 318 } 319 313 320 /** 314 321 * Performs resizing of the DownloadDialog in order to enlarge or shrink the … … 326 333 w = iScreenSize.width * 90 / 100; 327 334 h = iScreenSize.height * 90 / 100; 335 iDownloadDialogDimension = iGui.getSize(); 328 336 } 329 337 // shrink … … 335 343 } 336 344 345 // resize and center the DownloadDialog 346 iGui.setBounds((iScreenSize.width - w) / 2, (iScreenSize.height - h) / 2, w, h); 337 347 repaint(); 338 348 } -
trunk/src/org/openstreetmap/josm/gui/download/SlippyMapChooser.java
r3105 r4168 35 35 public void addGui(final DownloadDialog gui) { 36 36 iGui = gui; 37 pnlSlippyMapBBoxChooser.setGui(iGui); 37 38 iGui.addDownloadAreaSelector(pnlSlippyMapBBoxChooser, tr("Slippy map")); 38 39 } 39 40 40 41 41 public void setDownloadArea(Bounds area) {
Note:
See TracChangeset
for help on using the changeset viewer.