__WIN__ Moved the settings dialog to a separate file.