Changeset 604 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2008-04-12T11:48:54+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/DrawingPreference.java
r597 r604 18 18 private JCheckBox largeGpsPoints = new JCheckBox(tr("Draw large GPS points.")); 19 19 private JCheckBox directionHint = new JCheckBox(tr("Draw Direction Arrows")); 20 private JCheckBox drawGpsArrows = new JCheckBox(tr("Draw Direction Arrows")); 20 21 private JCheckBox interestingDirections = new JCheckBox(tr("Only interesting direction hints (e.g. with oneway tag).")); 21 22 private JCheckBox segmentOrderNumber = new JCheckBox(tr("Draw segment order numbers")); … … 27 28 drawRawGpsLines.addActionListener(new ActionListener(){ 28 29 public void actionPerformed(ActionEvent e) { 29 if (!drawRawGpsLines.isSelected()) 30 forceRawGpsLines.setSelected(false); 31 forceRawGpsLines.setEnabled(drawRawGpsLines.isSelected()); 30 if (!drawRawGpsLines.isSelected()){ 31 forceRawGpsLines.setSelected(false); 32 drawGpsArrows.setSelected(false); 33 } 34 forceRawGpsLines.setEnabled(drawRawGpsLines.isSelected()); 35 drawGpsArrows.setEnabled(drawRawGpsLines.isSelected()); 32 36 } 33 37 }); … … 41 45 forceRawGpsLines.setEnabled(drawRawGpsLines.isSelected()); 42 46 gui.display.add(forceRawGpsLines, GBC.eop().insets(40,0,0,0)); 47 48 // drawGpsArrows 49 drawGpsArrows.setToolTipText(tr("Draw direction arrows for lines, connecting GPS points.")); 50 drawGpsArrows.setSelected(Main.pref.getBoolean("draw.rawgps.direction")); 51 drawGpsArrows.setEnabled(drawRawGpsLines.isSelected()); 52 gui.display.add(drawGpsArrows, GBC.eop().insets(40,0,0,0)); 43 53 44 54 // largeGpsPoints … … 87 97 Main.pref.put("draw.rawgps.lines", drawRawGpsLines.isSelected()); 88 98 Main.pref.put("draw.rawgps.lines.force", forceRawGpsLines.isSelected()); 99 Main.pref.put("draw.rawgps.direction", drawGpsArrows.isSelected()); 89 100 Main.pref.put("draw.rawgps.large", largeGpsPoints.isSelected()); 90 101 Main.pref.put("draw.segment.direction", directionHint.isSelected());
Note:
See TracChangeset
for help on using the changeset viewer.