Changeset 31315 in osm for applications
- Timestamp:
- 2015-06-29T18:10:52+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/mapillary
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryData.java
r31313 r31315 173 173 tempImage = tempImage.next(); 174 174 if (tempImage.isVisible()) { 175 setSelectedImage(tempImage, Main.pref.getBoolean("mapillary.move-to-picture", true)); 175 setSelectedImage(tempImage, Main.pref.getBoolean( 176 "mapillary.move-to-picture", true)); 176 177 break; 177 178 } … … 198 199 tempImage = tempImage.previous(); 199 200 if (tempImage.isVisible()) { 200 setSelectedImage(tempImage, Main.pref.getBoolean("mapillary.move-to-picture", true)); 201 setSelectedImage(tempImage, Main.pref.getBoolean( 202 "mapillary.move-to-picture", true)); 201 203 break; 202 204 } … … 221 223 * Selects a new image and then starts a new MapillaryImageDownloadThread 222 224 * thread in order to download its surrounding thumbnails. If the user does 223 * ctrl+click, this isn't triggered. You can choose wheter to center the 225 * ctrl+click, this isn't triggered. You can choose whether to center the 224 226 * view on the new image or not. 225 227 * -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterChooseSigns.java
r31314 r31315 24 24 public final JCheckBox direction = new JCheckBox(); 25 25 public final JCheckBox uneven = new JCheckBox(); 26 public final JCheckBox noParking = new JCheckBox(); 27 public final JCheckBox noOvertaking = new JCheckBox(); 28 public final JCheckBox crossing = new JCheckBox(); 29 public final JCheckBox noTurn = new JCheckBox(); 26 30 27 31 private static MapillaryFilterChooseSigns INSTANCE; … … 36 40 direction.setSelected(true); 37 41 uneven.setSelected(true); 42 noParking.setSelected(true); 43 noOvertaking.setSelected(true); 44 crossing.setSelected(true); 45 noTurn.setSelected(true); 38 46 39 47 // Max speed sign … … 96 104 this.add(directionPanel); 97 105 106 // No turn 107 JPanel noTurnPanel = new JPanel(); 108 JLabel noTurnLabel = new JLabel(tr("No turn")); 109 noTurnLabel.setIcon(new ImageProvider("signs/no_turn.png").get()); 110 noTurnPanel.add(noTurnLabel); 111 noTurnPanel.add(noTurn); 112 this.add(noTurnPanel); 113 98 114 // Uneven road 99 115 JPanel unevenPanel = new JPanel(); … … 103 119 unevenPanel.add(uneven); 104 120 this.add(unevenPanel); 121 122 // No parking 123 JPanel noParkingPanel = new JPanel(); 124 JLabel noParkingLabel = new JLabel(tr("No parking")); 125 noParkingLabel.setIcon(new ImageProvider("signs/no_parking.png").get()); 126 noParkingPanel.add(noParkingLabel); 127 noParkingPanel.add(noParking); 128 this.add(noParkingPanel); 129 130 // No overtaking 131 JPanel noOvertakingPanel = new JPanel(); 132 JLabel noOvertakingLabel = new JLabel(tr("No overtaking")); 133 noOvertakingLabel.setIcon(new ImageProvider("signs/no_overtaking.png") 134 .get()); 135 noOvertakingPanel.add(noOvertakingLabel); 136 noOvertakingPanel.add(noOvertaking); 137 this.add(noOvertakingPanel); 138 139 // Pedestrian crossing 140 JPanel crossingPanel = new JPanel(); 141 JLabel crossingLabel = new JLabel(tr("Pedestrian crossing")); 142 crossingLabel.setIcon(new ImageProvider("signs/crossing.png").get()); 143 crossingPanel.add(crossingLabel); 144 crossingPanel.add(crossing); 145 this.add(crossingPanel); 105 146 106 147 this.setPreferredSize(new Dimension(600, 150)); -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterDialog.java
r31314 r31315 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import java.awt.Dimension;6 5 import java.awt.FlowLayout; 7 6 import java.awt.GridLayout; … … 66 65 private final String[] SIGN_TAGS = { "prohibitory_speed_limit", 67 66 "priority_stop", "other_give_way", "mandatory_roundabout", 68 "other_no_entry", "danger_intersection", "mandatory_go", 69 "mandatory_keep", "danger_priority_next_intersection", 70 "danger_uneven_road" }; 67 "other_no_entry", "prohibitory_no_traffic_both_ways", 68 "danger_intersection", "mandatory_go", "mandatory_keep", 69 "danger_priority_next_intersection", "danger_uneven_road", 70 "prohibitory_no_parking", "prohibitory_on_overtaking", 71 "danger_pedestrian_crossing", "prohibitory_no_u_turn", 72 "prohibitory_noturn" }; 71 73 private final JCheckBox[] SIGN_CHECKBOXES = { signFilter.maxspeed, 72 74 signFilter.stop, signFilter.giveWay, signFilter.roundabout, 73 signFilter.access, signFilter.intersection, signFilter.direction, 74 signFilter.direction, signFilter.intersection, signFilter.uneven }; 75 signFilter.access, signFilter.access, signFilter.intersection, 76 signFilter.direction, signFilter.direction, 77 signFilter.intersection, signFilter.uneven, signFilter.noParking, 78 signFilter.noOvertaking, signFilter.crossing, signFilter.noTurn, 79 signFilter.noTurn }; 75 80 76 81 public MapillaryFilterDialog() {
Note:
See TracChangeset
for help on using the changeset viewer.