~ubuntu-branches/debian/jessie/banshee-community-extensions/jessie

« back to all changes in this revision

Viewing changes to src/ClutterFlow/Banshee.ClutterFlow/ClutterFlowSchemas.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2011-09-20 18:45:46 UTC
  • mfrom: (1.2.9 upstream) (5.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20110920184546-3ahue2qplydc4t0e
Tags: 2.2.0-1
* [4940fab] Imported Upstream version 2.2.0
  + Notable bug fixes:
    - Karaoke: Fix crash when switching to Now Playing
    - Lyrics: Fix crash when switching to Now Playing

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
namespace Banshee.ClutterFlow
35
35
{
36
36
 
37
 
   /// <summary>
38
 
   /// Static class providing ClutterFlow with setting schema's
39
 
   /// </summary>
40
 
        public static class ClutterFlowSchemas {
 
37
    /// <summary>
 
38
    /// Static class providing ClutterFlow with setting schema's
 
39
    /// </summary>
 
40
    public static class ClutterFlowSchemas {
41
41
        internal static void AddToSection<T> (Section section, SchemaEntry<T> entry, SchemaPreferenceUpdatedHandler func)
42
42
        {
43
 
                        SchemaPreference<T> pref = new SchemaPreference<T> (entry, entry.ShortDescription, entry.LongDescription, func);
44
 
                        section.Add (pref);
 
43
            SchemaPreference<T> pref = new SchemaPreference<T> (entry, entry.ShortDescription, entry.LongDescription, func);
 
44
            section.Add (pref);
45
45
        }
46
46
 
47
47
        internal static readonly SchemaEntry<int> DragSensitivity = new SchemaEntry<int>(
50
50
            AddinManager.CurrentLocalizer.GetString ("Sensitivity for album dragging"),
51
51
            AddinManager.CurrentLocalizer.GetString ("Sets the sensitivity with which albums scroll when dragged, higher values mean faster scrolling")
52
52
        );
53
 
                
54
 
        internal static readonly SchemaEntry<bool> ThreadedArtwork = new SchemaEntry<bool>(
55
 
            "clutterflow", "threaded_artwork",
56
 
            true,
57
 
            AddinManager.CurrentLocalizer.GetString ("Enable threaded loading of artwork"),
58
 
            AddinManager.CurrentLocalizer.GetString ("If enabled ClutterFlow will use threading to load it's artwork")
59
 
        );
60
53
 
61
54
        internal static readonly SchemaEntry<bool> ExpandTrackList = new SchemaEntry<bool>(
62
55
            "clutterflow", "expand_track_list",
78
71
            "Display ClutterFlow",
79
72
            "If checked displays the ClutterFlow browser instead of the default one"
80
73
        );
81
 
                
 
74
 
82
75
        internal static readonly SchemaEntry<bool> InstantPlayback = new SchemaEntry<bool>(
83
76
            "clutterflow", "instant_playback",
84
77
            true,
85
78
            AddinManager.CurrentLocalizer.GetString ("Immediately apply playback mode changes"),
86
79
            AddinManager.CurrentLocalizer.GetString ("Starts playing a new song immediately after the playback mode changed (Party Mode or Album Mode)")
87
80
        );
88
 
                
 
81
 
89
82
        internal static readonly SchemaEntry<bool> DisplayLabel = new SchemaEntry<bool>(
90
83
            "clutterflow", "display_album_label",
91
84
            true,
127
120
            AddinManager.CurrentLocalizer.GetString ("Number of visible covers at the side"),
128
121
            AddinManager.CurrentLocalizer.GetString ("The number of covers that need to be displayed on the stage (at one side)")
129
122
        );
130
 
                
 
123
 
131
124
        internal static readonly SchemaEntry<string> SortBy = new SchemaEntry<string>(
132
125
            "clutterflow", "sort_by",
133
126
            (string) Enum.GetName (typeof(SortOptions), SortOptions.Artist),
134
127
            AddinManager.CurrentLocalizer.GetString ("Sort covers by"),
135
128
            AddinManager.CurrentLocalizer.GetString ("Selects on what basis covers should be sorted")
136
129
        );
137
 
        }
 
130
    }
138
131
}