Ignore:
Timestamp:
2013-10-07T16:23:05+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8512 - Do not display discardable keys by default. Expert users can display them by enabling "Display discardable keys" in OSM Data preferences, and change their display colour

File:
1 edited

Legend:

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

    r6296 r6314  
    4141    private JCheckBox virtualNodes = new JCheckBox(tr("Draw virtual nodes in select mode"));
    4242    private JCheckBox inactive = new JCheckBox(tr("Draw inactive layers in other color"));
     43    private JCheckBox discardableKeys = new JCheckBox(tr("Display discardable keys"));
    4344
    4445    // Options that affect performance
     
    117118
    118119        // outlineOnly
     120        outlineOnly.setToolTipText(tr("This option suppresses the filling of areas, overriding anything specified in the selected style."));
    119121        outlineOnly.setSelected(Main.pref.getBoolean("draw.data.area_outline_only", false));
    120         outlineOnly.setToolTipText(tr("This option suppresses the filling of areas, overriding anything specified in the selected style."));
    121 
     122
     123        // discardable keys
     124        discardableKeys.setToolTipText(tr("Display keys which have been deemed uninteresting to the point that they can be silently removed."));
     125        discardableKeys.setSelected(Main.pref.getBoolean("display.discardable-keys", false));
     126       
    122127        JLabel performanceLabel = new JLabel(tr("Options that affect drawing performance"));
    123128
     
    144149        panel.add(sourceBounds, GBC.eop().insets(20,0,0,0));
    145150        panel.add(inactive, GBC.eop().insets(20,0,0,0));
     151        panel.add(discardableKeys, GBC.eop().insets(20,0,0,0));
    146152
    147153        ExpertToggleAction.addVisibilitySwitcher(performanceLabel);
     
    150156        ExpertToggleAction.addVisibilitySwitcher(useHighlighting);
    151157        ExpertToggleAction.addVisibilitySwitcher(outlineOnly);
     158        ExpertToggleAction.addVisibilitySwitcher(discardableKeys);
    152159
    153160        panel.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH));
     
    171178        Main.pref.put("draw.target-highlight", useHighlighting.isSelected());
    172179        Main.pref.put("draw.helper-line", drawHelperLine.isSelected());
     180        Main.pref.put("display.discardable-keys", discardableKeys.isSelected());
    173181        int vn = Main.pref.getInteger("mappaint.node.virtual-size", 8);
    174182        if (virtualNodes.isSelected()) {
Note: See TracChangeset for help on using the changeset viewer.