Add settings dialog and implement editor settings.