Tileset editor: make a custom dialog to change pattern id.

A custom dialog is needed to add a checkbox "Update references in
existing maps".