Changeset 11474 in josm


Ignore:
Timestamp:
2017-01-17T13:35:00+01:00 (5 months ago)
Author:
bastiK
Message:

fixed #14244 - Expand combobox in preferences; add translation context

File:
1 edited

Legend:

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

    r11431 r11474  
    6060    private final JRadioButton colorTypeGlobal = new JRadioButton(tr("Use global settings"));
    6161    private final JosmComboBox<String> colorTypeVelocityTune = new JosmComboBox<>(new String[] {tr("Car"), tr("Bicycle"), tr("Foot")});
    62     private final JosmComboBox<String> colorTypeHeatMapTune = new JosmComboBox<>(new String[] {tr("User"), tr("Inferno"), tr("Viridis"),
    63                                                                                  tr("Wood"), tr("Heat")});
     62    private final JosmComboBox<String> colorTypeHeatMapTune = new JosmComboBox<>(new String[] {
     63        trc("Heat map", "User"),
     64        trc("Heat map", "Inferno"),
     65        trc("Heat map", "Viridis"),
     66        trc("Heat map", "Wood"),
     67        trc("Heat map", "Heat")});
    6468    private final JCheckBox makeAutoMarkers = new JCheckBox(tr("Create markers when reading GPX"));
    6569    private final JCheckBox drawGpsArrows = new JCheckBox(tr("Draw Direction Arrows"));
     
    265269        add(colorTypeNone, GBC.eol().insets(40, 0, 0, 0));
    266270        add(colorTypeVelocity, GBC.std().insets(40, 0, 0, 0));
    267         add(colorTypeVelocityTune, GBC.eop().insets(5, 0, 0, 5));
     271        add(colorTypeVelocityTune, GBC.eop().fill(GBC.HORIZONTAL).insets(5, 0, 0, 5));
    268272        add(colorTypeDirection, GBC.eol().insets(40, 0, 0, 0));
    269273        add(colorTypeDilution, GBC.eol().insets(40, 0, 0, 0));
    270274        add(colorTypeTime, GBC.eol().insets(40, 0, 0, 0));
    271275        add(colorTypeHeatMap, GBC.std().insets(40, 0, 0, 0));
    272         add(colorTypeHeatMapTune, GBC.eop().insets(5, 0, 0, 5));
     276        add(colorTypeHeatMapTune, GBC.eop().fill(GBC.HORIZONTAL).insets(5, 0, 0, 5));
    273277
    274278        ExpertToggleAction.addVisibilitySwitcher(colorTypeDirection);
Note: See TracChangeset for help on using the changeset viewer.