Ignore:
Timestamp:
2010-12-03T00:36:07+01:00 (15 years ago)
Author:
framm
Message:
  • add preference to draw outlines for polygons only, overriding any style settings. this helps tracing from aerial imagery when you have landuse=residential everywhere obscuring the view.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java

    r3427 r3691  
    6060    private JCheckBox useAntialiasing = new JCheckBox(tr("Smooth map graphics (antialiasing)"));
    6161    private JCheckBox makeAutoMarkers = new JCheckBox(tr("Create markers when reading GPX."));
     62    private JCheckBox outlineOnly = new JCheckBox(tr("Draw only outlines of areas"));
    6263    private JComboBox waypointLabel = new JComboBox(new String[] {tr("Auto"), /* gpx data field name */ trc("gpx_field", "Name"),
    6364                                      /* gpx data field name */ trc("gpx_field", "Desc(ription)"), tr("Both"), tr("None")});
     
    277278        panel.add(inactive, GBC.eop().insets(20,0,0,0));
    278279
     280        // outlineOnly
     281        outlineOnly.setSelected(Main.pref.getBoolean("draw.data.area_outline_only", false));
     282        outlineOnly.setToolTipText(tr("This option suppresses the filling of areas, overriding anything specified in the selected style."));
     283        panel.add(outlineOnly, GBC.eol().insets(20,0,0,5));
     284
    279285        panel.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH));
    280286        scrollpane = new JScrollPane(panel);
     
    285291    public boolean ok() {
    286292        Main.pref.put("marker.makeautomarkers", makeAutoMarkers.isSelected());
     293        Main.pref.put("draw.data.area_outline_only", outlineOnly.isSelected());
    287294        Main.pref.put("draw.rawgps.lines", drawRawGpsLinesAll.isSelected());
    288295        Main.pref.put("draw.rawgps.lines.localfiles", drawRawGpsLinesLocal.isSelected());
Note: See TracChangeset for help on using the changeset viewer.