Changeset 6314 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/display
- Timestamp:
- 2013-10-07T16:23:05+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/display/DrawingPreference.java
r6296 r6314 41 41 private JCheckBox virtualNodes = new JCheckBox(tr("Draw virtual nodes in select mode")); 42 42 private JCheckBox inactive = new JCheckBox(tr("Draw inactive layers in other color")); 43 private JCheckBox discardableKeys = new JCheckBox(tr("Display discardable keys")); 43 44 44 45 // Options that affect performance … … 117 118 118 119 // outlineOnly 120 outlineOnly.setToolTipText(tr("This option suppresses the filling of areas, overriding anything specified in the selected style.")); 119 121 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 122 127 JLabel performanceLabel = new JLabel(tr("Options that affect drawing performance")); 123 128 … … 144 149 panel.add(sourceBounds, GBC.eop().insets(20,0,0,0)); 145 150 panel.add(inactive, GBC.eop().insets(20,0,0,0)); 151 panel.add(discardableKeys, GBC.eop().insets(20,0,0,0)); 146 152 147 153 ExpertToggleAction.addVisibilitySwitcher(performanceLabel); … … 150 156 ExpertToggleAction.addVisibilitySwitcher(useHighlighting); 151 157 ExpertToggleAction.addVisibilitySwitcher(outlineOnly); 158 ExpertToggleAction.addVisibilitySwitcher(discardableKeys); 152 159 153 160 panel.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH)); … … 171 178 Main.pref.put("draw.target-highlight", useHighlighting.isSelected()); 172 179 Main.pref.put("draw.helper-line", drawHelperLine.isSelected()); 180 Main.pref.put("display.discardable-keys", discardableKeys.isSelected()); 173 181 int vn = Main.pref.getInteger("mappaint.node.virtual-size", 8); 174 182 if (virtualNodes.isSelected()) {
Note:
See TracChangeset
for help on using the changeset viewer.