Changeset 4168 in josm


Ignore:
Timestamp:
Jun 25, 2011 10:44:56 PM (2 years ago)
Author:
stoecker
Message:

fix #6259 - Fullscreen toggle in download dialog not working anymore - regression from r3094

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  
    3737import org.openstreetmap.josm.data.imagery.ImageryLayerInfo; 
    3838import org.openstreetmap.josm.data.preferences.StringProperty; 
     39import org.openstreetmap.josm.gui.download.DownloadDialog; 
    3940import org.openstreetmap.josm.gui.layer.TMSLayer; 
    4041 
     
    311312    } 
    312313 
     314    private DownloadDialog iGui; 
     315 
     316    public void setGui(final DownloadDialog gui) { 
     317        iGui = gui; 
     318    } 
     319 
    313320    /** 
    314321     * Performs resizing of the DownloadDialog in order to enlarge or shrink the 
     
    326333            w = iScreenSize.width * 90 / 100; 
    327334            h = iScreenSize.height * 90 / 100; 
     335            iDownloadDialogDimension = iGui.getSize();  
    328336        } 
    329337        // shrink 
     
    335343        } 
    336344 
     345        // resize and center the DownloadDialog  
     346        iGui.setBounds((iScreenSize.width - w) / 2, (iScreenSize.height - h) / 2, w, h);  
    337347        repaint(); 
    338348    } 
  • trunk/src/org/openstreetmap/josm/gui/download/SlippyMapChooser.java

    r3105 r4168  
    3535    public void addGui(final DownloadDialog gui) { 
    3636        iGui = gui; 
     37        pnlSlippyMapBBoxChooser.setGui(iGui); 
    3738        iGui.addDownloadAreaSelector(pnlSlippyMapBBoxChooser, tr("Slippy map")); 
    3839    } 
    39  
    4040 
    4141    public void setDownloadArea(Bounds area) { 
Note: See TracChangeset for help on using the changeset viewer.