[josm-dev] Terracer plugin: A few ideas for improved usability

Lambertus osm at na1400.info
Sun May 2 21:57:03 BST 2010


Yay, it's a lot of trial and error for a Java noob like me to get 
everything (almost) working the way I like it , but I just committed a 
second much larger change, completing the following points on my list 
for the terracer plugin:

- Keybind ESC to close the window (same behaviour as 'Cancel').
- Keybind Enter to close the window (same behaviour as 'Ok').
- Put focus on the first field ('lowest number') when the window opens.
- Allow non-numeric addresses (like 12a or 34-2) if only one number is entered.
- Don't process the building outline as if it were a housing block if only one number is entered as many free-standing buildings have non-symmetrical shapes (and there is nothing to terrace anyway).

This leaves the following on the todo list:
- Assume 'Even/Odd' as the default choice (I admit that this could be a choice based on regional choice, but at least for The Netherlands this is the default).
- Save the last 'Even/Odd' choice as plugin preference.

Something I might add as well someday (don't count on it):
- Add an option to terrace along the long edge or short edge of a building outline.


On 04/22/2010 09:29 AM, Lambertus wrote:
> Ok, first small change committed "put focus on first field".
> Surprisingly, it all worked well and JOSM indicated a new version was
> avaialble :D
>
> Keybinding is a bit more difficult: the JDialog has to be replaced by
> ExtendedDialog, not very easy for a Java novice but some things seemed
> to be working again late yesterday evening...
>
> More updates later.
>
>    





More information about the josm-dev mailing list