Ignore:
Timestamp:
2023-05-30T15:39:05+02:00 (3 years ago)
Author:
stoecker
Message:

add NMEA track coloring by reference ID

File:
1 edited

Legend:

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

    r18396 r18738  
    7272    private final JRadioButton colorTypeQuality = new JRadioButton(tr("Quality (RTKLib only, if available)"));
    7373    private final JRadioButton colorTypeFix = new JRadioButton(tr("GPS fix value"));
     74    private final JRadioButton colorTypeRef = new JRadioButton(tr("GPS reference ID"));
    7475    private final JRadioButton colorTypeTime = new JRadioButton(tr("Track date"));
    7576    private final JRadioButton colorTypeHeatMap = new JRadioButton(tr("Heat Map (dark = few, bright = many)"));
     
    455456        colorGroup.add(colorTypeQuality);
    456457        colorGroup.add(colorTypeFix);
     458        colorGroup.add(colorTypeRef);
    457459        colorGroup.add(colorTypeTime);
    458460        colorGroup.add(colorTypeHeatMap);
     
    466468                tr("Colors points and track segments by RTKLib quality flag (Q). Your capture device needs to log that information."));
    467469        colorTypeFix.setToolTipText(tr("Colors points and track segments by GPS fix value."));
     470        colorTypeRef.setToolTipText(tr("Colors points and track segments by GPS reference ID."));
    468471        colorTypeTime.setToolTipText(tr("Colors points and track segments by its timestamp."));
    469472        colorTypeHeatMap.setToolTipText(tr("Collected points and track segments for a position and displayed as heat map."));
     
    488491        add(colorTypeQuality, GBC.eol().insets(40, 0, 0, 0));
    489492        add(colorTypeFix, GBC.eol().insets(40, 0, 0, 0));
     493        add(colorTypeRef, GBC.eol().insets(40, 0, 0, 0));
    490494        add(colorTypeTime, GBC.eol().insets(40, 0, 0, 0));
    491495        add(colorTypeHeatMap, GBC.std().insets(40, 0, 0, 0));
     
    642646            case 6: colorTypeQuality.setSelected(true); break;
    643647            case 7: colorTypeFix.setSelected(true); break;
     648            case 8: colorTypeRef.setSelected(true); break;
    644649            default: Logging.warn("Unknown color type: " + colorType);
    645650            }
     
    720725        } else if (colorTypeFix.isSelected()) {
    721726            putPref("colormode", 7);
     727        } else if (colorTypeRef.isSelected()) {
     728            putPref("colormode", 8);
    722729        } else {
    723730            putPref("colormode", 0);
Note: See TracChangeset for help on using the changeset viewer.