Ignore:
Timestamp:
31.07.2010 16:28:43 (22 months ago)
Author:
bastiK
Message:

applied #3617 (patch by reini122) - Would like to see waypoint descriptions in JOSM

File:
1 edited

Legend:

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

    r3298 r3396  
    5959    private JCheckBox useAntialiasing = new JCheckBox(tr("Smooth map graphics (antialiasing)")); 
    6060    private JCheckBox makeAutoMarkers = new JCheckBox(tr("Create markers when reading GPX.")); 
     61    private JComboBox waypointLabel = new JComboBox(new String[] {tr("Auto"), tr("Name"), tr("Desc"), tr("Both"), tr("None")}); 
    6162 
    6263    public void addGui(PreferenceTabbedPane gui) { 
     
    203204        panel.add(colorTypeVelocityTune, GBC.eop().insets(5,0,0,5)); 
    204205        panel.add(colorTypeDilution, GBC.eol().insets(40,0,0,0)); 
     206 
     207        // waypointLabel 
     208        panel.add(Box.createVerticalGlue(), GBC.eol().insets(0, 20, 0, 0)); 
     209 
     210        waypointLabel.setSelectedIndex(Main.pref.getInteger("draw.rawgps.layer.wpt", 0 )); 
     211        colorTypeDilution.setToolTipText(tr("Allows to change the labelling of track waypoints.")); 
     212        panel.add(new JLabel(tr("Waypoint labelling")), GBC.std().insets(20,0,0,0)); 
     213        panel.add(waypointLabel, GBC.eol().fill(GBC.HORIZONTAL).insets(5,0,0,5)); 
    205214 
    206215        panel.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.BOTH)); 
     
    301310        Main.pref.put("mappaint.use-antialiasing", useAntialiasing.isSelected()); 
    302311        int vn = Main.pref.getInteger("mappaint.node.virtual-size", 8); 
    303         if(virtualNodes.isSelected()) { if (vn < 1) { 
    304             vn = 8; 
    305         } } 
    306         else { vn = 0; } 
     312        if (virtualNodes.isSelected()) { 
     313            if (vn < 1) { 
     314                vn = 8; 
     315            } 
     316        } 
     317        else { 
     318            vn = 0; 
     319        } 
    307320        Main.pref.putInteger("mappaint.node.virtual-size", vn); 
     321        Main.pref.putInteger("draw.rawgps.layer.wpt", waypointLabel.getSelectedIndex()); 
    308322        return false; 
    309323    } 
Note: See TracChangeset for help on using the changeset viewer.