Ignore:
Timestamp:
2019-07-14T02:26:22+02:00 (5 years ago)
Author:
Don-vip
Message:

see #17829 - support RTKLib Positioning Solution files. Add new "Quality" GPX color mode

File:
1 edited

Legend:

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

    r14153 r15247  
    6565    private final JRadioButton colorTypeDirection = new JRadioButton(tr("Direction (red = west, yellow = north, green = east, blue = south)"));
    6666    private final JRadioButton colorTypeDilution = new JRadioButton(tr("Dilution of Position (red = high, green = low, if available)"));
     67    private final JRadioButton colorTypeQuality = new JRadioButton(tr("Quality (RTKLib only, if available)"));
    6768    private final JRadioButton colorTypeTime = new JRadioButton(tr("Track date"));
    6869    private final JRadioButton colorTypeHeatMap = new JRadioButton(tr("Heat Map (dark = few, bright = many)"));
     
    249250        colorGroup.add(colorTypeDirection);
    250251        colorGroup.add(colorTypeDilution);
     252        colorGroup.add(colorTypeQuality);
    251253        colorGroup.add(colorTypeTime);
    252254        colorGroup.add(colorTypeHeatMap);
     
    257259        colorTypeDilution.setToolTipText(
    258260                tr("Colors points and track segments by dilution of position (HDOP). Your capture device needs to log that information."));
     261        colorTypeQuality.setToolTipText(
     262                tr("Colors points and track segments by RTKLib quality flag (Q). Your capture device needs to log that information."));
    259263        colorTypeTime.setToolTipText(tr("Colors points and track segments by its timestamp."));
    260264        colorTypeHeatMap.setToolTipText(tr("Collected points and track segments for a position and displayed as heat map."));
     
    277281        add(colorTypeDirection, GBC.eol().insets(40, 0, 0, 0));
    278282        add(colorTypeDilution, GBC.eol().insets(40, 0, 0, 0));
     283        add(colorTypeQuality, GBC.eol().insets(40, 0, 0, 0));
    279284        add(colorTypeTime, GBC.eol().insets(40, 0, 0, 0));
    280285        add(colorTypeHeatMap, GBC.std().insets(40, 0, 0, 0));
     
    341346        ExpertToggleAction.addVisibilitySwitcher(colorTypeDirection);
    342347        ExpertToggleAction.addVisibilitySwitcher(colorTypeDilution);
     348        ExpertToggleAction.addVisibilitySwitcher(colorTypeQuality);
    343349        ExpertToggleAction.addVisibilitySwitcher(colorTypeHeatMapLowerLimit);
    344350        ExpertToggleAction.addVisibilitySwitcher(colorTypeHeatMapLowerLimitLabel);
     
    445451            case 4: colorTypeTime.setSelected(true); break;
    446452            case 5: colorTypeHeatMap.setSelected(true); break;
     453            case 6: colorTypeQuality.setSelected(true); break;
    447454            default: Logging.warn("Unknown color type: " + colorType);
    448455            }
     
    525532        } else if (colorTypeHeatMap.isSelected()) {
    526533            Config.getPref().putInt("draw.rawgps.colors"+layerNameDot, 5);
     534        } else if (colorTypeQuality.isSelected()) {
     535            Config.getPref().putInt("draw.rawgps.colors"+layerNameDot, 6);
    527536        } else {
    528537            Config.getPref().putInt("draw.rawgps.colors"+layerNameDot, 0);
Note: See TracChangeset for help on using the changeset viewer.