Changeset 22186 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
- Timestamp:
- 2010-07-04T21:32:57+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
r21191 r22186 41 41 private JCheckBox disableImageCropping = new JCheckBox(tr("Disable image cropping during georeferencing.")); 42 42 43 private JCheckBox autoFirstLayer = new JCheckBox(tr("Select first WMS layer in list.")); 44 45 private JCheckBox dontUseRelation = new JCheckBox(tr("Don't use relation for addresses (but \"addr:street\" on nodes).")); 46 43 47 private JRadioButton grabMultiplier1 = new JRadioButton("", true); 44 48 … … 57 61 private JRadioButton crosspiece4 = new JRadioButton("100m"); 58 62 59 private JCheckBox autoFirstLayer = new JCheckBox(tr("Select first WMS layer in list."));60 61 63 private JRadioButton grabRes1 = new JRadioButton("high"); 62 64 … … 324 326 cadastrewms.add(jLabelCacheSize, GBC.std().insets(20, 0, 0, 0)); 325 327 cadastrewms.add(cacheSize, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 5, 200, 5)); 328 326 329 // separator 327 330 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); 331 332 // option to select the first WMS layer 328 333 autoFirstLayer.setSelected(Main.pref.getBoolean("cadastrewms.autoFirstLayer", false)); 329 334 autoFirstLayer.setToolTipText(tr("Automatically selects the first WMS layer if multiple layers exist when grabbing.")); 330 335 cadastrewms.add(autoFirstLayer, GBC.eop().insets(0, 0, 0, 0)); 336 337 // separator 338 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); 339 340 // option to use or not relations in addresses 341 dontUseRelation.setSelected(Main.pref.getBoolean("cadastrewms.addr.dontUseRelation", false)); 342 dontUseRelation.setToolTipText(tr("Enable this to use the tag \"add:street\" on nodes.")); 343 cadastrewms.add(dontUseRelation, GBC.eop().insets(0, 0, 0, 0)); 344 345 // end of dialog, scroll bar 331 346 cadastrewms.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); 332 // JTabbedPane cadastrecontent = new JTabbedPane();333 // cadastrecontent.add(cadastrewms);334 347 JScrollPane scrollpane = new JScrollPane(cadastrewms); 335 348 scrollpane.setBorder(BorderFactory.createEmptyBorder( 0, 0, 0, 0 )); 336 349 cadastrewmsMast.add(scrollpane, GBC.eol().fill(GBC.BOTH)); 337 338 350 } 339 351 … … 403 415 Main.pref.put("cadastrewms.autoFirstLayer", autoFirstLayer.isSelected()); 404 416 CacheControl.cacheEnabled = enableCache.isSelected(); 417 Main.pref.put("cadastrewms.addr.dontUseRelation", dontUseRelation.isSelected()); 405 418 CadastrePlugin.refreshConfiguration(); 406 419 CadastrePlugin.refreshMenu();
Note:
See TracChangeset
for help on using the changeset viewer.