Changeset 15961 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
- Timestamp:
- 2009-06-17T09:46:26+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
r13784 r15961 15 15 /** 16 16 * Preference settings for the French Cadastre plugin 17 * 17 * 18 18 * @author Pieren <pieren3@gmail.com> 19 19 */ 20 20 public class CadastrePreferenceSetting implements PreferenceSetting { 21 21 22 22 static final int TRANS_MIN = 1; 23 23 static final int TRANS_MAX = 10; 24 private JSlider sliderTrans = new JSlider(JSlider.HORIZONTAL, TRANS_MIN, TRANS_MAX, TRANS_MAX); 25 24 private JSlider sliderTrans = new JSlider(JSlider.HORIZONTAL, TRANS_MIN, TRANS_MAX, TRANS_MAX); 25 26 26 private JTextField sourcing = new JTextField(20); 27 27 … … 29 29 30 30 private JCheckBox reversGrey = new JCheckBox(tr("Reverse grey colors (for black backgrounds).")); 31 31 32 32 private JCheckBox transparency = new JCheckBox(tr("Set background transparent.")); 33 33 34 34 private JCheckBox drawBoundaries = new JCheckBox(tr("Draw boundaries of downloaded data.")); 35 35 … … 39 39 40 40 private JRadioButton grabMultiplier3 = new JRadioButton("", true); 41 41 42 42 private JRadioButton grabMultiplier4 = new JRadioButton("", true); 43 43 … … 97 97 sliderTrans.setPaintLabels(false); 98 98 cadastrewms.add(sliderTrans, GBC.eol().fill(GBC.HORIZONTAL).insets(20, 0, 250, 0)); 99 99 100 100 // option to draw boundaries of downloaded data 101 101 drawBoundaries.setSelected(Main.pref.getBoolean("cadastrewms.drawBoundaries", false)); … … 150 150 grabMultiplier4Size.setEnabled(currentScale.equals(Scale.SQUARE_100M.value)); 151 151 cadastrewms.add(grabMultiplier4Size, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 5, 0, 5)); 152 152 153 153 // option to enable automatic caching 154 154 enableCache.addActionListener(new ActionListener() { … … 197 197 } 198 198 Main.pref.put("cadastrewms.enableCaching", enableCache.isSelected()); 199 199 200 200 // spread data into objects instead of restarting the application 201 201 try {
Note:
See TracChangeset
for help on using the changeset viewer.
