Beispiel #1
0
        public LibrarySource(string label, string name, int order) : base(label, label, name, order)
        {
            Properties.SetString("GtkActionPath", "/LibraryContextMenu");
            Properties.SetString("RemoveTracksActionLabel", Catalog.GetString("Remove From Library"));
            IsLocal         = true;
            base_dir_schema = CreateSchema <string> ("library-location", null, "The base directory under which files for this library are stored", null);
            AfterInitialized();

            Section library_section = PreferencesPage.Add(new Section("library-location", SectionName, 2));

            library_section.Add(base_dir_schema);
        }
Beispiel #2
0
        public LibrarySource (string label, string name, int order) : base (label, label, name, order)
        {
            Properties.SetString ("GtkActionPath", "/LibraryContextMenu");
            Properties.SetString ("RemoveTracksActionLabel", Catalog.GetString ("Remove From Library"));
            IsLocal = true;
            base_dir_schema = CreateSchema<string> ("library-location", null, "The base directory under which files for this library are stored", null);
            AfterInitialized ();

            Section library_section = PreferencesPage.Add (new Section ("library-location", SectionName, 2));

            library_section.Add (base_dir_schema);
        }
Beispiel #3
0
        private void BuildPreferences()
        {
            page = new Page ();
            Section main_section = new Section ();
            main_section.Order = -1;

            space_for_data = CreateSchema<long> ("space_for_data", 0, "How much space, in bytes, to reserve for data on the device.", "");
            main_section.Add (space_for_data);
            page.Add (main_section);

            foreach (Section section in sync.PreferenceSections) {
                page.Add (section);
            }
        }