Changeset 30651 in osm for applications/editors/josm/plugins/turnrestrictions/src
- Timestamp:
- 2014-09-17T01:38:16+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/ExceptValueModel.java
r23510 r30651 24 24 s.add("hgv"); 25 25 s.add("bicycle"); 26 s.add("moped"); 26 27 s.add("motorcar"); 27 28 STANDARD_VEHICLE_EXCEPTION_VALUES = Collections.unmodifiableSet(s); -
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/VehicleExceptionEditor.java
r30365 r30651 40 40 private JCheckBox cbPsv; 41 41 private JCheckBox cbBicyle; 42 private JCheckBox cbMoped; 42 43 private JCheckBox cbHgv; 43 44 private JCheckBox cbMotorcar; … … 124 125 lbl.setIcon(ImageProvider.get("vehicle", "bicycle")); 125 126 126 127 127 gc.weightx = 0.0; 128 128 gc.gridx++; 129 129 pnlStandard.add(cbBicyle, gc); 130 gc.weightx = 1.0; 131 gc.gridx++; 132 pnlStandard.add(lbl, gc); 133 134 cbMoped = new JCheckBox(); 135 cbMoped.addItemListener(svtChangeListener); 136 lbl = new JLabel(tr("Mopeds")); 137 lbl.setIcon(ImageProvider.get("vehicle", "moped")); 138 139 gc.weightx = 0.0; 140 gc.gridx = 0; 141 gc.gridy = 2; 142 pnlStandard.add(cbMoped, gc); 130 143 gc.weightx = 1.0; 131 144 gc.gridx++; … … 238 251 cbPsv.setSelected(exceptValue.isVehicleException("psv")); 239 252 cbBicyle.setSelected(exceptValue.isVehicleException("bicycle")); 253 cbMoped.setSelected(exceptValue.isVehicleException("moped")); 240 254 cbMotorcar.setSelected(exceptValue.isVehicleException("motorcar")); 241 255 cbHgv.setSelected(exceptValue.isVehicleException("hgv")); … … 318 332 if (!enabled) return; 319 333 exceptValue.setVehicleException("bicycle", cbBicyle.isSelected()); 334 exceptValue.setVehicleException("moped", cbMoped.isSelected()); 320 335 exceptValue.setVehicleException("hgv", cbHgv.isSelected()); 321 336 exceptValue.setVehicleException("psv", cbPsv.isSelected());
Note:
See TracChangeset
for help on using the changeset viewer.