Changeset 21166 in osm for applications/editors
- Timestamp:
- 2010-05-07T21:18:27+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/terracer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/terracer/build.xml
r21028 r21166 32 32 33 33 34 <property name="commit.message" value=" Update to JOSM core" />34 <property name="commit.message" value="Remember the interpolation setting between restarts" /> 35 35 <property name="plugin.main.version" value="3210" /> 36 36 -
applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputDialog.java
r21094 r21166 58 58 final static String HANDLE_RELATION = "plugins.terracer.handle_relation"; 59 59 final static String DELETE_OUTLINE = "plugins.terracer.delete_outline"; 60 final static String INTERPOLATION = "plugins.terracer.interpolation"; 60 61 61 62 final private Way street; … … 163 164 hiLabel.setText(tr("Highest Number")); 164 165 final String txt = relationExists ? tr("add to existing associatedStreet relation") : tr("create an associatedStreet relation"); 166 165 167 handleRelationCheckBox = new JCheckBox(txt, Main.pref.getBoolean(HANDLE_RELATION, true)); 166 168 deleteOutlineCheckBox = new JCheckBox(tr("delete outline way"), Main.pref.getBoolean(DELETE_OUTLINE, true)); … … 265 267 interpolation.add(tr("All")); 266 268 interpolation.add(tr("Even/Odd")); 269 if (Main.pref.getInteger(INTERPOLATION, 2) == 1) { 270 interpolation.select(tr("All")); 271 } else { 272 interpolation.select(tr("Even/Odd")); 273 } 274 //return (dialog.interpolation.getSelectedItem().equals(tr("All"))) ? 1 : 2; 267 275 } 268 276 return interpolation; -
applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputHandler.java
r21094 r21166 305 305 * @return the stepSize (1 for all, 2 for odd /even) 306 306 */ 307 public intstepSize() {307 public Integer stepSize() { 308 308 return (dialog.interpolation.getSelectedItem().equals(tr("All"))) ? 1 309 309 : 2; … … 387 387 } 388 388 389 389 390 /** 390 391 * Whether the user likes to delete the outline way. … … 393 394 return dialog.deleteOutlineCheckBox.isSelected(); 394 395 } 395 396 396 397 /* (non-Javadoc) 397 398 * @see java.awt.event.FocusListener#focusGained(java.awt.event.FocusEvent) … … 417 418 Main.pref.put(HouseNumberInputDialog.HANDLE_RELATION, doHandleRelation()); 418 419 Main.pref.put(HouseNumberInputDialog.DELETE_OUTLINE, doDeleteOutline()); 420 Main.pref.put(HouseNumberInputDialog.INTERPOLATION, stepSize().toString()); 419 421 } 420 422 }
Note:
See TracChangeset
for help on using the changeset viewer.