[josm-dev] mappaint bug
Dirk Stöcker
openstreetmap at dstoecker.de
Fri Jan 9 22:50:02 GMT 2009
On Sat, 10 Jan 2009, Женя wrote:
> Oh, and one more questtion about the UI, that I always forget to ask:
> I add the tag "name:ru" pretty often to different objects. And I'd like to have a button for that on the panel.
> So, I press the button - and a property editor pops up, the tag is already set to what I configured it to be, and I just type in the value.
> Is this currently possible? Because I only found the ability to add shortcuts to different existing menu items, not a generic configurable button.
This is essentially adding a Tagging preset.
Make a new file equal to the presets.xml in source, but only with the
entry(ies) you want to have. Now add this file to the tagging preset
sources. It will appear in the menu. In toolbar preferences you can now
add that to the toolbar.
Example file:
<annotations>
<item name="Russian Name" icon="presets/addresses.png">
<label text="Add a russian name" />
<label text=" " />
<text key="name:ru" text="Russian name" default="" delete_if_empty="true" />
</item>
</annotations>
Note: name:ru and text:ru would be for russian text, but as you use it
private that probably does not matter and you could enter that in name
and text directly :-)
Note2: I did not add a group in the example, so it will appear in main
menu, not in a sub menu.
If not working, please ask again. Either you do wrong or there is a bug :-)
Ciao
--
http://www.dstoecker.eu/ (PGP key available)
More information about the josm-dev
mailing list