Changeset 14492 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-12-02T16:18:10+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/display/DrawingPreference.java
r12846 r14492 16 16 import org.openstreetmap.josm.gui.autofilter.AutoFilterManager; 17 17 import org.openstreetmap.josm.gui.autofilter.AutoFilterRule; 18 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 18 19 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 19 20 import org.openstreetmap.josm.gui.preferences.PreferenceSettingFactory; … … 62 63 private final JCheckBox useWireframeAntialiasing = new JCheckBox(tr("Smooth map graphics in wireframe mode (antialiasing)")); 63 64 private final JCheckBox outlineOnly = new JCheckBox(tr("Draw only outlines of areas")); 65 private final JCheckBox hideLabelsWhileDragging = new JCheckBox(tr("Hide labels while dragging the map")); 64 66 65 67 @Override … … 134 136 outlineOnly.setSelected(Config.getPref().getBoolean("draw.data.area_outline_only", false)); 135 137 138 // hideLabelsWhileDragging 139 hideLabelsWhileDragging.setToolTipText(tr("This option hides the textual labels of OSM objects while dragging the map.")); 140 hideLabelsWhileDragging.setSelected(OsmDataLayer.PROPERTY_HIDE_LABELS_WHILE_DRAGGING.get()); 141 136 142 // discardable keys 137 143 discardableKeys.setToolTipText(tr("Display keys which have been deemed uninteresting to the point that they can be silently removed.")); … … 168 174 panel.add(useHighlighting, GBC.eop().insets(20, 0, 0, 0)); 169 175 panel.add(outlineOnly, GBC.eol().insets(20, 0, 0, 0)); 176 panel.add(hideLabelsWhileDragging, GBC.eol().insets(20, 0, 0, 0)); 170 177 171 178 panel.add(new JLabel(tr("Other options")), … … 183 190 ExpertToggleAction.addVisibilitySwitcher(useHighlighting); 184 191 ExpertToggleAction.addVisibilitySwitcher(outlineOnly); 192 ExpertToggleAction.addVisibilitySwitcher(hideLabelsWhileDragging); 185 193 ExpertToggleAction.addVisibilitySwitcher(discardableKeys); 186 194 … … 195 203 public boolean ok() { 196 204 boolean restart = gpxPanel.savePreferences(); 205 OsmDataLayer.PROPERTY_HIDE_LABELS_WHILE_DRAGGING.put(hideLabelsWhileDragging.isSelected()); 197 206 Config.getPref().putBoolean("draw.data.area_outline_only", outlineOnly.isSelected()); 198 207 Config.getPref().putBoolean("draw.segment.direction", directionHint.isSelected());
Note:
See TracChangeset
for help on using the changeset viewer.