Changeset 3104 in josm


Ignore:
Timestamp:
10.03.2010 15:52:48 (2 years ago)
Author:
Gubaer
Message:

fixed #4701: Tile download

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  
    194194            w = iScreenSize.width * 90 / 100; 
    195195            h = iScreenSize.height * 90 / 100; 
    196             //iDownloadDialogDimension = iGui.getSize(); 
    197196        } 
    198197        // shrink 
     
    203202            iDownloadDialogDimension = null; 
    204203        } 
    205         // resize and center the DownloadDialog 
    206         //iGui.setBounds((iScreenSize.width - w) / 2, (iScreenSize.height - h) / 2, w, h); 
    207204 
    208205        repaint(); 
     
    228225    } 
    229226 
     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     */ 
    230233    @Override 
    231234    public void setBoundingBox(Bounds bbox) { 
    232235        if (bbox == null) { 
    233             Bounds oldValue = this.bbox; 
    234236            this.bbox = null; 
    235             firePropertyChange(BBOX_PROP, oldValue, this.bbox); 
    236237            return; 
    237238        } 
    238239        // test if a bounding box has been set 
    239240        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; 
    241241            this.bbox = null; 
    242             firePropertyChange(BBOX_PROP, oldValue, this.bbox); 
    243242        } 
    244243 
     
    261260        setDisplayToFitMapMarkers(); 
    262261        zoomOut(); 
    263  
    264         Bounds oldValue = this.bbox; 
    265262        this.bbox = bbox; 
    266         firePropertyChange(BBOX_PROP, oldValue, this.bbox); 
    267263    } 
    268264} 
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r3057 r3104  
    130130        Font labelFont = sizeCheck.getFont(); 
    131131        sizeCheck.setFont(labelFont.deriveFont(Font.PLAIN, labelFont.getSize())); 
    132          
     132 
    133133        cbNewLayer = new JCheckBox(tr("Download as new layer")); 
    134134        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  
    66import java.beans.PropertyChangeEvent; 
    77import java.beans.PropertyChangeListener; 
     8import java.util.logging.Logger; 
    89 
    910import org.openstreetmap.josm.data.Bounds; 
     
    1920 */ 
    2021public class TileSelection implements DownloadSelection, PropertyChangeListener { 
     22    private static final Logger logger = Logger.getLogger(TileSelection.class.getName()); 
    2123 
    2224    private TileSelectionBBoxChooser chooser; 
Note: See TracChangeset for help on using the changeset viewer.