Ignore:
Timestamp:
2011-03-18T00:22:13+01:00 (13 years ago)
Author:
mjulius
Message:

fix #6113 - removing "mandatory" arrows on some types of ways
Since oneway arrows are now different from way direction arrows they need to be treated separately.
They now can be turned on and off independently.

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  
    1414    private boolean useRealWidth;
    1515    private boolean showDirectionArrow;
    16     private boolean showRelevantDirectionsOnly;
     16    private boolean showOnewayArrow;
    1717    private int defaultSegmentWidth;
    1818    private boolean showOrderNumber;
     
    4646    private void load() {
    4747        showDirectionArrow = Main.pref.getBoolean("draw.segment.direction", true);
    48         showRelevantDirectionsOnly = Main.pref.getBoolean("draw.segment.relevant_directions_only", true);
     48        showOnewayArrow = Main.pref.getBoolean("draw.oneway", true);
    4949        useRealWidth = Main.pref.getBoolean("mappaint.useRealWidth", false);
    5050        defaultSegmentWidth = Main.pref.getInteger("mappaint.segment.default-width", 2);
     
    8181
    8282        outlineOnly = Main.pref.getBoolean("draw.data.area_outline_only", false);
    83        
     83
    8484    }
    8585
     
    9696    }
    9797
    98     public boolean isShowRelevantDirectionsOnly() {
    99         return showRelevantDirectionsOnly;
     98    public boolean isShowOnewayArrow() {
     99        return showOnewayArrow;
    100100    }
    101101
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/SimplePaintVisitor.java

    r3895 r3994  
    6363    protected Color taggedConnectionColor;
    6464    protected boolean showDirectionArrow;
    65     protected boolean showRelevantDirectionsOnly;
     65    protected boolean showOnewayArrow;
    6666    protected boolean showHeadArrowOnly;
    6767    protected boolean showOrderNumber;
     
    109109        MapPaintSettings settings = MapPaintSettings.INSTANCE;
    110110        showDirectionArrow = settings.isShowDirectionArrow();
    111         showRelevantDirectionsOnly = settings.isShowRelevantDirectionsOnly();
     111        showOnewayArrow = settings.isShowOnewayArrow();
    112112        showHeadArrowOnly = settings.isShowHeadArrowOnly();
    113113        showOrderNumber = settings.isShowOrderNumber();
     
    333333           (even if the tag is negated as in oneway=false) or the way is selected */
    334334
    335         boolean showThisDirectionArrow = ds.isSelected(w)
    336         || (showDirectionArrow && (!showRelevantDirectionsOnly || w.hasDirectionKeys()));
     335        boolean showThisDirectionArrow = ds.isSelected(w) || showDirectionArrow;
    337336        /* head only takes over control if the option is true,
    338337           the direction should be shown at all and not only because it's selected */
Note: See TracChangeset for help on using the changeset viewer.