Changeset 23190 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
- Timestamp:
- 2010-09-15T18:54:18+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
r22387 r23190 40 40 41 41 private JCheckBox disableImageCropping = new JCheckBox(tr("Disable image cropping during georeferencing.")); 42 42 43 43 private JCheckBox enableTableauAssemblage = new JCheckBox(tr("Use \"Tableau d''assemblage\"")); 44 44 45 45 private JCheckBox autoFirstLayer = new JCheckBox(tr("Select first WMS layer in list.")); 46 46 47 47 private JCheckBox dontUseRelation = new JCheckBox(tr("Don't use relation for addresses (but \"addr:street\" on elements).")); 48 48 49 49 private JRadioButton grabMultiplier1 = new JRadioButton("", true); 50 50 … … 54 54 55 55 private JRadioButton grabMultiplier4 = new JRadioButton("", true); 56 56 57 57 private JRadioButton crosspiece1 = new JRadioButton("off"); 58 58 59 59 private JRadioButton crosspiece2 = new JRadioButton("25m"); 60 60 … … 87 87 JLabel jLabelCacheSize = new JLabel(tr("Max. cache size (in MB)")); 88 88 private JTextField cacheSize = new JTextField(20); 89 89 90 90 static final String DEFAULT_RASTER_DIVIDER = "5"; 91 91 private JTextField rasterDivider = new JTextField(10); 92 92 93 93 static final int DEFAULT_CROSSPIECES = 0; 94 94 95 95 public void addGui(final PreferenceTabbedPane gui) { 96 96 … … 101 101 + "before any upload of data created by this plugin."); 102 102 JPanel cadastrewmsMast = gui.createPreferenceTab("cadastrewms.gif", I18n.tr("French cadastre WMS"), description); 103 103 104 104 JPanel cadastrewms = new JPanel(new GridBagLayout()); 105 105 cadastrewms.setBorder(BorderFactory.createEmptyBorder(0,0,0,0)); … … 177 177 cadastrewms.add(grabRes2, GBC.std().insets(5, 0, 5, 0)); 178 178 cadastrewms.add(grabRes3, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 5, 0, 5)); 179 179 180 180 // option to select image zooming interpolation method 181 181 JLabel jLabelImageZoomInterpolation = new JLabel(tr("Image filter interpolation:")); … … 185 185 imageInterpolationMethod.addItem(tr("Bicubic (slow)")); 186 186 String savedImageInterpolationMethod = Main.pref.get("cadastrewms.imageInterpolation", "standard"); 187 if (savedImageInterpolationMethod.equals("bilinear")) 187 if (savedImageInterpolationMethod.equals("bilinear")) 188 188 imageInterpolationMethod.setSelectedIndex(1); 189 else if (savedImageInterpolationMethod.equals("bicubic")) 189 else if (savedImageInterpolationMethod.equals("bicubic")) 190 190 imageInterpolationMethod.setSelectedIndex(2); 191 191 else … … 195 195 // separator 196 196 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); 197 197 198 198 // the vectorized images multiplier 199 199 JLabel jLabelScale = new JLabel(tr("Vector images grab multiplier:")); … … 275 275 layerCommune.setToolTipText(tr("Municipality administrative borders.")); 276 276 cadastrewms.add(layerCommune, GBC.eop().insets(5, 0, 5, 0)); 277 277 278 278 // separator 279 279 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); … … 335 335 // separator 336 336 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); 337 337 338 338 // option to select the first WMS layer 339 339 autoFirstLayer.setSelected(Main.pref.getBoolean("cadastrewms.autoFirstLayer", false)); … … 348 348 dontUseRelation.setToolTipText(tr("Enable this to use the tag \"add:street\" on nodes.")); 349 349 cadastrewms.add(dontUseRelation, GBC.eop().insets(0, 0, 0, 0)); 350 350 351 351 // end of dialog, scroll bar 352 352 cadastrewms.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); … … 374 374 else if (imageInterpolationMethod.getSelectedIndex() == 1) 375 375 Main.pref.put("cadastrewms.imageInterpolation", "bilinear"); 376 else 376 else 377 377 Main.pref.put("cadastrewms.imageInterpolation", "standard"); 378 378 if (grabMultiplier1.isSelected())
Note:
See TracChangeset
for help on using the changeset viewer.