Changeset 5703 in josm


Ignore:
Timestamp:
2013-02-09T14:12:25+01:00 (12 years ago)
Author:
akks
Message:

Split preferences list into groups in Display Settings / OSM Data, see #8408

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/DrawingPreference.java

    r5631 r5703  
    7373        directionHint.setToolTipText(tr("Draw direction hints for way segments."));
    7474        directionHint.setSelected(Main.pref.getBoolean("draw.segment.direction", false));
    75         panel.add(directionHint, GBC.eop().insets(20,0,0,0));
    7675
    7776        // only on the head of a way
     
    7978        headArrow.setSelected(Main.pref.getBoolean("draw.segment.head_only", false));
    8079        headArrow.setEnabled(directionHint.isSelected());
    81         panel.add(headArrow, GBC.eop().insets(40, 0, 0, 0));
    8280
    8381        // draw oneway arrows
    8482        onewayArrow.setToolTipText(tr("Draw arrows in the direction of oneways and other directed features."));
    8583        onewayArrow.setSelected(Main.pref.getBoolean("draw.oneway", true));
    86         panel.add(onewayArrow, GBC.eop().insets(20,0,0,0));
    8784
    8885        // segment order number
    8986        segmentOrderNumber.setToolTipText(tr("Draw the order numbers of all segments within their way."));
    9087        segmentOrderNumber.setSelected(Main.pref.getBoolean("draw.segment.order_number", false));
    91         panel.add(segmentOrderNumber, GBC.eop().insets(20,0,0,0));
    9288
    9389        // downloaded area
    9490        sourceBounds.setToolTipText(tr("Draw the boundaries of data loaded from the server."));
    9591        sourceBounds.setSelected(Main.pref.getBoolean("draw.data.downloaded_area", true));
    96         panel.add(sourceBounds, GBC.eop().insets(20,0,0,0));
    9792
    9893        // virtual nodes
    9994        virtualNodes.setToolTipText(tr("Draw virtual nodes in select mode for easy way modification."));
    10095        virtualNodes.setSelected(Main.pref.getInteger("mappaint.node.virtual-size", 8) != 0);
    101         panel.add(virtualNodes, GBC.eop().insets(20,0,0,0));
    10296
    10397        // background layers in inactive color
    10498        inactive.setToolTipText(tr("Draw the inactive data layers in a different color."));
    10599        inactive.setSelected(Main.pref.getBoolean("draw.data.inactive_color", true));
    106         panel.add(inactive, GBC.eop().insets(20,0,0,0));
    107100
    108101        // antialiasing
     
    120113        drawHelperLine.setToolTipText(tr("Draw rubber-band helper line"));
    121114        drawHelperLine.setSelected(Main.pref.getBoolean("draw.helper-line", true));
    122         panel.add(drawHelperLine, GBC.eop().insets(20, 0, 0, 0));
    123115
    124116        // outlineOnly
     
    127119
    128120        JLabel performanceLabel = new JLabel(tr("Options that affect drawing performance"));
     121
     122        panel.add(new JLabel(tr("Segment drawing options")),
     123                GBC.eop().insets(5,10,0,0));
     124        panel.add(directionHint, GBC.eop().insets(20,0,0,0));
     125        panel.add(headArrow, GBC.eop().insets(40, 0, 0, 0));
     126        panel.add(onewayArrow, GBC.eop().insets(20,0,0,0));
     127        panel.add(segmentOrderNumber, GBC.eop().insets(20,0,0,0));
     128       
     129        panel.add(new JLabel(tr("Select and draw mode options")),
     130                GBC.eop().insets(5,10,0,0));
     131        panel.add(virtualNodes, GBC.eop().insets(20,0,0,0));
     132        panel.add(drawHelperLine, GBC.eop().insets(20, 0, 0, 0));
     133       
    129134        panel.add(performanceLabel, GBC.eop().insets(5,10,0,0));
    130         panel.add(useAntialiasing, GBC.eop().insets(20,5,0,0));
     135        panel.add(useAntialiasing, GBC.eop().insets(20,0,0,0));
    131136        panel.add(useWireframeAntialiasing, GBC.eop().insets(20, 0, 0, 0));
    132137        panel.add(useHighlighting, GBC.eop().insets(20,0,0,0));
    133         panel.add(outlineOnly, GBC.eol().insets(20,0,0,5));
    134 
     138        panel.add(outlineOnly, GBC.eol().insets(20,0,0,0));
     139       
     140        panel.add(new JLabel(tr("Other options")),
     141                GBC.eop().insets(5,10,0,0));
     142        panel.add(sourceBounds, GBC.eop().insets(20,0,0,0));
     143        panel.add(inactive, GBC.eop().insets(20,0,0,0));
     144       
    135145        ExpertToggleAction.addVisibilitySwitcher(performanceLabel);
    136146        ExpertToggleAction.addVisibilitySwitcher(useAntialiasing);
Note: See TracChangeset for help on using the changeset viewer.