Ignore:
Timestamp:
2010-07-04T21:32:57+02:00 (15 years ago)
Author:
pieren
Message:

First working version for help tool addr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java

    r21191 r22186  
    4141    private JCheckBox disableImageCropping = new JCheckBox(tr("Disable image cropping during georeferencing."));
    4242   
     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   
    4347    private JRadioButton grabMultiplier1 = new JRadioButton("", true);
    4448
     
    5761    private JRadioButton crosspiece4 = new JRadioButton("100m");
    5862
    59     private JCheckBox autoFirstLayer = new JCheckBox(tr("Select first WMS layer in list."));
    60    
    6163    private JRadioButton grabRes1 = new JRadioButton("high");
    6264
     
    324326        cadastrewms.add(jLabelCacheSize, GBC.std().insets(20, 0, 0, 0));
    325327        cadastrewms.add(cacheSize, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 5, 200, 5));
     328
    326329        // separator
    327330        cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL));
     331       
     332        // option to select the first WMS layer
    328333        autoFirstLayer.setSelected(Main.pref.getBoolean("cadastrewms.autoFirstLayer", false));
    329334        autoFirstLayer.setToolTipText(tr("Automatically selects the first WMS layer if multiple layers exist when grabbing."));
    330335        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
    331346        cadastrewms.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL));
    332 //        JTabbedPane cadastrecontent = new JTabbedPane();
    333 //        cadastrecontent.add(cadastrewms);
    334347        JScrollPane scrollpane = new JScrollPane(cadastrewms);
    335348        scrollpane.setBorder(BorderFactory.createEmptyBorder( 0, 0, 0, 0 ));
    336349        cadastrewmsMast.add(scrollpane, GBC.eol().fill(GBC.BOTH));
    337 
    338350    }
    339351
     
    403415        Main.pref.put("cadastrewms.autoFirstLayer", autoFirstLayer.isSelected());
    404416        CacheControl.cacheEnabled = enableCache.isSelected();
     417        Main.pref.put("cadastrewms.addr.dontUseRelation", dontUseRelation.isSelected());
    405418        CadastrePlugin.refreshConfiguration();
    406419        CadastrePlugin.refreshMenu();
Note: See TracChangeset for help on using the changeset viewer.