Changeset 1216 in josm for trunk/src/org


Ignore:
Timestamp:
2009-01-08T23:02:44+01:00 (16 years ago)
Author:
ulfl
Message:

enable "draw.segment.relevant_directions_only" by default, it's:

a) drawing faster
b) more intuitive to understand (aka: more "Potlatch like")

please report any additional key/values that should be displayed

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java

    r1169 r1216  
    9595        backgroundColor = Main.pref.getColor(marktr("background"), Color.BLACK);
    9696        showDirectionArrow = Main.pref.getBoolean("draw.segment.direction");
    97         showRelevantDirectionsOnly = Main.pref.getBoolean("draw.segment.relevant_directions_only");
     97        showRelevantDirectionsOnly = Main.pref.getBoolean("draw.segment.relevant_directions_only", true);
    9898        showOrderNumber = Main.pref.getBoolean("draw.segment.order_number");
    9999        selectedNodeRadius = Main.pref.getInteger("mappaint.node.selected-size", 5) / 2;
  • trunk/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java

    r1212 r1216  
    118118            public void actionPerformed(ActionEvent e) {
    119119                            if (directionHint.isSelected()){
    120                                 interestingDirections.setSelected(Main.pref.getBoolean("draw.segment.relevant_directions_only"));
     120                                interestingDirections.setSelected(Main.pref.getBoolean("draw.segment.relevant_directions_only", true));
    121121                            }else{
    122122                                interestingDirections.setSelected(false);
     
    131131        // only interesting directions
    132132        interestingDirections.setToolTipText(tr("Only interesting direction hints (e.g. with oneway tag)."));
    133         interestingDirections.setSelected(Main.pref.getBoolean("draw.segment.relevant_directions_only"));
     133        interestingDirections.setSelected(Main.pref.getBoolean("draw.segment.relevant_directions_only", true));
    134134        interestingDirections.setEnabled(directionHint.isSelected());
    135135        panel.add(interestingDirections, GBC.eop().insets(40,0,0,0));
Note: See TracChangeset for help on using the changeset viewer.