Add dialog for create source from selection

See #346.
Keep EventHandler notation

By request of @nicolas-f
Avoid unnecessary popups
Translate selection
Translate selection in the 0th case
Make the dialog work with the Map Editor as well

By request of @nicolas-f
Merge pull request #508 from agouge/346

Add dialog for create datasource from selection (#346)