<s> from . settings import Settings , initialize_settings , RideSettings <EOL> from . editor import PreferenceEditor <EOL> from . widgets import PreferencesPanel , PreferencesComboBox , PreferencesColorPicker <EOL> from . imports import ImportPreferences <EOL> from . saving import SavingPreferences <EOL> from . editors import GridEditorPreferences , TextEditorPreferences <EOL> from . excludes import ExcludePreferences <EOL> class Preferences ( object ) : <EOL> def __init__ ( self , settings ) : <EOL> self . settings = settings <EOL> self . _preference_panels = [ ] <EOL> self . _add_builtin_preferences ( ) <EOL> @ property <EOL> def preference_panels ( self ) : <EOL> return self . _preference_panels <EOL> def add ( self , prefrence_ui ) : <EOL> if prefrence_ui not in self . _preference_panels : <EOL> self . _preference_panels . append ( prefrence_ui ) <EOL> def remove ( self , panel_class ) : <EOL> if panel_class in self . _preference_panels : <EOL> self . _preference_panels . remove ( panel_class ) <EOL> def _add_builtin_preferences ( self ) : <EOL> self . add ( SavingPreferences ) <EOL> self . add ( ImportPreferences ) <EOL> self . add ( GridEditorPreferences ) <EOL> self . add ( TextEditorPreferences ) <EOL> self . add ( ExcludePreferences ) </s>
