- Timestamp:
- 2013-12-09T22:43:39+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r6333 r6460 111 111 public static final IntegerProperty PROP_OVERLAP_NORTH = new IntegerProperty("imagery.wms.overlapNorth", 4); 112 112 public static final IntegerProperty PROP_IMAGE_SIZE = new IntegerProperty("imagery.wms.imageSize", 500); 113 public static final BooleanProperty PROP_DEFAULT_AUTOZOOM = new BooleanProperty("imagery.wms.default_autozoom", true); 113 114 114 115 public int messageNum = 5; //limit for messages per layer … … 124 125 protected static final int serializeFormatVersion = 5; 125 126 protected boolean autoDownloadEnabled = true; 126 protected boolean autoResolutionEnabled = true;127 protected boolean autoResolutionEnabled = PROP_DEFAULT_AUTOZOOM.get(); 127 128 protected boolean settingsChanged; 128 129 public WmsCache cache; -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/WMSSettingsPanel.java
r5465 r6460 26 26 27 27 // WMS Settings 28 private final JCheckBox autozoomActive; 28 29 private final JosmComboBox browser; 29 30 private final JCheckBox overlapCheckBox; … … 37 38 public WMSSettingsPanel() { 38 39 super(new GridBagLayout()); 39 40 41 // Auto zoom 42 autozoomActive = new JCheckBox(); 43 add(new JLabel(tr("Auto zoom by default: ")), GBC.std()); 44 add(GBC.glue(5, 0), GBC.std()); 45 add(autozoomActive, GBC.eol().fill(GBC.HORIZONTAL)); 46 40 47 // Downloader 41 48 browser = new JosmComboBox(new String[] { … … 80 87 */ 81 88 public void loadSettings() { 89 this.autozoomActive.setSelected(WMSLayer.PROP_DEFAULT_AUTOZOOM.get()); 82 90 this.browser.setSelectedItem(HTMLGrabber.PROP_BROWSER.get()); 83 91 this.overlapCheckBox.setSelected(WMSLayer.PROP_OVERLAP.get()); … … 92 100 */ 93 101 public boolean saveSettings() { 102 WMSLayer.PROP_DEFAULT_AUTOZOOM.put(this.autozoomActive.isSelected()); 94 103 WMSLayer.PROP_OVERLAP.put(overlapCheckBox.getModel().isSelected()); 95 104 WMSLayer.PROP_OVERLAP_EAST.put((Integer) spinEast.getModel().getValue());
Note:
See TracChangeset
for help on using the changeset viewer.