Export-dialog: Write options from dialog to options object

and use dictionaries to map options to widgets