Exemplo n.º 1
0
        public PreferencesAlbumRecognition()
            : base(
                new LocalizedText("PreferencesAlbumRecognition"),
                new LocalizedText("PreferencesAlbumRecognitionHelp"))
        {
            ArtistRequired = new PreferencesItem(
                new LocalizedText("PreferencesAlbumRecognitionArtistRequired"),
                new LocalizedText("PreferencesAlbumRecognitionArtistRequiredHelp"),
                new DocObj <bool>(true));

            AlbumRequired = new PreferencesItem(
                new LocalizedText("PreferencesAlbumRecognitionAlbumRequired"),
                new LocalizedText("PreferencesAlbumRecognitionAlbumRequiredHelp"),
                new DocObj <bool>(true));

            TitleRequired = new PreferencesItem(
                new LocalizedText("PreferencesTitleRecognitionTitleRequired"),
                new LocalizedText("PreferencesTitleRecognitionTitleRequiredHelp"),
                new DocObj <bool>(true));

            TrackNumberRequired = new PreferencesItem(
                new LocalizedText("PreferencesTrackNumberRecognitionTrackNumberRequired"),
                new LocalizedText("PreferencesTrackNumberRecognitionTrackNumberRequiredHelp"),
                new DocObj <bool>(true));

            ReleaseYearRequired = new PreferencesItem(
                new LocalizedText("PreferencesYearRecognitionYearRequired"),
                new LocalizedText("PreferencesYearRecognitionYearRequiredHelp"),
                new DocObj <bool>(false));

            MinimumTracksRequired = new PreferencesItem(
                new LocalizedText("PreferencesAlbumRecognitionMinimumTracksRequired"),
                new LocalizedText("PreferencesAlbumRecognitionMinimumTracksRequiredHelp"),
                new DocEnum(new string[] { "1", "2", "3", "4", "5", "6" }, 2));
        }
Exemplo n.º 2
0
 public PreferencesWebToTag()
     : base(
         new LocalizedText("PreferencesWebToTag"),
         new LocalizedText("PreferencesWebToTagHelp"))
 {
     MultipleChoiseHeuristic = new PreferencesItem(
         new LocalizedText("PreferencesWebToTagMultipleChoiseHeuristic"),
         new LocalizedText("PreferencesWebToTagMultipleChoiseHeuristicHelp"),
         new DocEnum(new string[]  { "Strict", "Fuzzy" }));
 }
Exemplo n.º 3
0
 public PreferencesFilenameToTag()
     : base(
         new LocalizedText("PreferencesFilenameToTag"),
         new LocalizedText("PreferencesFilenameToTagHelp"))
 {
     Pattern = new PreferencesItem(
         new LocalizedText("PreferencesFilenameToTagPattern"),
         new LocalizedText("PreferencesFilenameToTagPatternHelp"),
         new DocObj <string>("Artist - Album - TrackNumber - Title"));
 }
Exemplo n.º 4
0
        public PreferencesAlbumToToLibrary()
            : base(
                new LocalizedText("PreferencesAlbumToToLibrary"),
                new LocalizedText("PreferencesAlbumToToLibraryHelp"))
        {
            MoveOrCopy = new PreferencesItem(
                new LocalizedText("PreferencesAlbumToToLibraryMoveOrCopy"),
                new LocalizedText("PreferencesAlbumToToLibraryMoveOrCopyHelp"),
                new DocEnum(new string[] { "Copy", "Move" }));

            Conflicts = new PreferencesItem(
                new LocalizedText("PreferencesAlbumToToLibraryConflicts"),
                new LocalizedText("PreferencesAlbumToToLibraryConflictsHelp"),
                new DocEnum(typeof(FileOperationProcessor.ConflictSolving)));
        }
Exemplo n.º 5
0
        public PreferencesCommon()
            : base(
                new LocalizedText("PreferencesCommonCommon"),
                new LocalizedText(typeof(PreferencesCommon).Name))
        {
            LibraryPath = new PreferencesItem(
                new LocalizedText("PreferencesCommonLibraryPath"),
                new LocalizedText("PreferencesCommonLibraryPathHelp"),
                new DocObj <string>(""), typeof(DirectoryTextBox));

            Version = new PreferencesItem(
                new LocalizedText("PreferencesCommonVersion"),
                new LocalizedText("PreferencesCommonVersionHelp"),
                new TagVersionEnum(ID3.Preferences.PreferredVersion));

            FileNamePattern = new PreferencesItem(
                new LocalizedText("PreferencesCommonFilenamePattern"),
                new LocalizedText("PreferencesCommonFilenamePatternHelp"),
                new DocObj <string>("Artist - Album - TrackNumber - Title"));

            DirectoryPattern = (new PreferencesItem(
                                    new LocalizedText("PreferencesCommonDirectoryPattern"),
                                    new LocalizedText("PreferencesCommonDirectoryPatternHelp"),
                                    new DocObj <string>("Artist - Album{ (ReleaseYear)}")));

            TrackNumberPattern = new PreferencesItem(
                new LocalizedText("PreferencesCommonTrackNumberPattern"),
                new LocalizedText("PreferencesCommonTrackNumberPatternHelp"),
                new DocObj <string>("00/0"));

            ShowHelpView = new PreferencesItem(
                new LocalizedText("PreferencesCommonShowHelpView"),
                new LocalizedText("PreferencesCommonShowHelpViewHelp"),
                new DocObj <bool>(true));

            Verbose = new PreferencesItem(
                new LocalizedText("PreferencesCommonVerbose"),
                new LocalizedText("PreferencesCommonVerboseHelp"),
                new DocObj <bool>());

            Version.ItemT <TagVersionEnum>().PropertyChanged += new PropertyChangedEventHandler(OnVersionChanged);
            Verbose.ItemT <DocObj <bool> >().PropertyChanged += new PropertyChangedEventHandler(OnVerboseChanged);
        }
Exemplo n.º 6
0
        public PreferencesPreparse()
            : base(
                new LocalizedText("PreferencesPreparse"),
                new LocalizedText("PreferencesPreparseHelp"))
        {
            TextTrim = new PreferencesItem(
                new LocalizedText("PreferencesPreparseTextTrim"),
                new LocalizedText("PreferencesPreparseTextTrimHelp"),
                new DocObj <bool>(true));
            TextBreakCamelCase = new PreferencesItem(
                new LocalizedText("PreferencesPreparseTextBreakCamelCase"),
                new LocalizedText("PreferencesPreparseTextBreakCamelCaseHelp"),
                new DocObj <bool>(true));
            TextBreakUnderscores = new PreferencesItem(
                new LocalizedText("PreferencesPreparseTextBreakUnderscores"),
                new LocalizedText("PreferencesPreparseTextBreakUnderscoresHelp"),
                new DocObj <bool>(true));
            TextFirstCharUpper = new PreferencesItem(
                new LocalizedText("PreferencesPreparseTextFirstCharUpper"),
                new LocalizedText("PreferencesPreparseTextFirstCharUpperHelp"),
                new DocObj <bool>(true));
            WordList = new PreferencesItem(
                new LocalizedText("PreferencesPreparseWordList"),
                new LocalizedText("PreferencesPreparseWordListHelp"),
                new DocObj <string>(ID3.Preferences.WordsReadonly));

            CreateTrackNumbers = new PreferencesItem(
                new LocalizedText("PreferencesPreparseCreateTrackNumbers"),
                new LocalizedText("PreferencesPreparseCreateTrackNumbersHelp"),
                new DocObj <bool>(false));

            DropUnwantedFrames = new PreferencesItem(
                new LocalizedText("PreferencesPreparseDropUnwantedFrames"),
                new LocalizedText("PreferencesPreparseDropUnwantedFramesHelp"),
                new DocObj <bool>(false));

            DropCodecs = new PreferencesItem(
                new LocalizedText("PreferencesPreparseDropCodecs"),
                new LocalizedText("PreferencesPreparseDropCodecsHelp"),
                new DocObj <bool>(true));

            FrameIds        = new DocList <DocList <PreferencesItem> >();
            CurrentFrameIds = new PreferencesItem(
                new LocalizedText("PreferencesPreparseFramesToKeep"),
                new LocalizedText("PreferencesPreparseFramesToKeepHelp"),
                new DocList <PreferencesItem>(true));

            AlbumToFilename = new PreferencesItem(
                new LocalizedText("PreferencesPreparseAlbumToFilename"),
                new LocalizedText("PreferencesPreparseAlbumToFilenameHelp"),
                new DocObj <bool>(false));
            AlbumToDirectory = new PreferencesItem(
                new LocalizedText("PreferencesPreparseAlbumToDirectory"),
                new LocalizedText("PreferencesPreparseAlbumToDirectoryHelp"),
                new DocObj <bool>(false));

            FrameIds.ReadOnly = true;

            foreach (ID3.Version v in ID3.Version.Versions)
            {
                DocList <PreferencesItem> list = new DocList <PreferencesItem>();
                list.ReadOnly = true;

                TagDescription td = ID3.TagDescriptionMap.Instance[v];

                IEnumerable <string> def = TagProcessorDropFrames.DefaultFrameIds(v);

                foreach (string frameId in td.FrameIds)
                {
                    list.Add(new PreferencesItem(
                                 frameId,
                                 new Text(frameId + " " + td.DescriptionTextByID(frameId)),
                                 new LocalizedText("PreferencesPreparseFramesToKeepHelp"),
                                 new DocObj <bool>(def.Contains(frameId))));
                }

                FrameIds.Add(list);
            }

            WordList.ItemT <DocObj <string> >().PropertyChanged += new PropertyChangedEventHandler(OnWordListChanged);
        }