Changeset 3994 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Timestamp:
- 2011-03-18T00:22:13+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java
r3862 r3994 14 14 private boolean useRealWidth; 15 15 private boolean showDirectionArrow; 16 private boolean show RelevantDirectionsOnly;16 private boolean showOnewayArrow; 17 17 private int defaultSegmentWidth; 18 18 private boolean showOrderNumber; … … 46 46 private void load() { 47 47 showDirectionArrow = Main.pref.getBoolean("draw.segment.direction", true); 48 show RelevantDirectionsOnly = Main.pref.getBoolean("draw.segment.relevant_directions_only", true);48 showOnewayArrow = Main.pref.getBoolean("draw.oneway", true); 49 49 useRealWidth = Main.pref.getBoolean("mappaint.useRealWidth", false); 50 50 defaultSegmentWidth = Main.pref.getInteger("mappaint.segment.default-width", 2); … … 81 81 82 82 outlineOnly = Main.pref.getBoolean("draw.data.area_outline_only", false); 83 83 84 84 } 85 85 … … 96 96 } 97 97 98 public boolean isShow RelevantDirectionsOnly() {99 return show RelevantDirectionsOnly;98 public boolean isShowOnewayArrow() { 99 return showOnewayArrow; 100 100 } 101 101 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/SimplePaintVisitor.java
r3895 r3994 63 63 protected Color taggedConnectionColor; 64 64 protected boolean showDirectionArrow; 65 protected boolean show RelevantDirectionsOnly;65 protected boolean showOnewayArrow; 66 66 protected boolean showHeadArrowOnly; 67 67 protected boolean showOrderNumber; … … 109 109 MapPaintSettings settings = MapPaintSettings.INSTANCE; 110 110 showDirectionArrow = settings.isShowDirectionArrow(); 111 show RelevantDirectionsOnly = settings.isShowRelevantDirectionsOnly();111 showOnewayArrow = settings.isShowOnewayArrow(); 112 112 showHeadArrowOnly = settings.isShowHeadArrowOnly(); 113 113 showOrderNumber = settings.isShowOrderNumber(); … … 333 333 (even if the tag is negated as in oneway=false) or the way is selected */ 334 334 335 boolean showThisDirectionArrow = ds.isSelected(w) 336 || (showDirectionArrow && (!showRelevantDirectionsOnly || w.hasDirectionKeys())); 335 boolean showThisDirectionArrow = ds.isSelected(w) || showDirectionArrow; 337 336 /* head only takes over control if the option is true, 338 337 the direction should be shown at all and not only because it's selected */
Note:
See TracChangeset
for help on using the changeset viewer.