Changeset 3104 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-03-10T15:52:48+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/bbox/SlippyMapBBoxChooser.java
r3094 r3104 194 194 w = iScreenSize.width * 90 / 100; 195 195 h = iScreenSize.height * 90 / 100; 196 //iDownloadDialogDimension = iGui.getSize();197 196 } 198 197 // shrink … … 203 202 iDownloadDialogDimension = null; 204 203 } 205 // resize and center the DownloadDialog206 //iGui.setBounds((iScreenSize.width - w) / 2, (iScreenSize.height - h) / 2, w, h);207 204 208 205 repaint(); … … 228 225 } 229 226 227 /** 228 * Sets the current bounding box in this bbox chooser without 229 * emiting a property change event. 230 * 231 * @param bbox the bounding box. null to reset the bounding box 232 */ 230 233 @Override 231 234 public void setBoundingBox(Bounds bbox) { 232 235 if (bbox == null) { 233 Bounds oldValue = this.bbox;234 236 this.bbox = null; 235 firePropertyChange(BBOX_PROP, oldValue, this.bbox);236 237 return; 237 238 } 238 239 // test if a bounding box has been set 239 240 if (bbox.getMin().lat() == 0.0 && bbox.getMin().lon() == 0.0 && bbox.getMax().lat() == 0.0 && bbox.getMax().lon() == 0.0) { 240 Bounds oldValue = this.bbox;241 241 this.bbox = null; 242 firePropertyChange(BBOX_PROP, oldValue, this.bbox);243 242 } 244 243 … … 261 260 setDisplayToFitMapMarkers(); 262 261 zoomOut(); 263 264 Bounds oldValue = this.bbox;265 262 this.bbox = bbox; 266 firePropertyChange(BBOX_PROP, oldValue, this.bbox);267 263 } 268 264 } -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r3057 r3104 130 130 Font labelFont = sizeCheck.getFont(); 131 131 sizeCheck.setFont(labelFont.deriveFont(Font.PLAIN, labelFont.getSize())); 132 132 133 133 cbNewLayer = new JCheckBox(tr("Download as new layer")); 134 134 cbNewLayer.setToolTipText(tr("<html>Select to download data into a new data layer.<br>" -
trunk/src/org/openstreetmap/josm/gui/download/TileSelection.java
r3094 r3104 6 6 import java.beans.PropertyChangeEvent; 7 7 import java.beans.PropertyChangeListener; 8 import java.util.logging.Logger; 8 9 9 10 import org.openstreetmap.josm.data.Bounds; … … 19 20 */ 20 21 public class TileSelection implements DownloadSelection, PropertyChangeListener { 22 private static final Logger logger = Logger.getLogger(TileSelection.class.getName()); 21 23 22 24 private TileSelectionBBoxChooser chooser;
Note:
See TracChangeset
for help on using the changeset viewer.