/// <summary>
 /// Initializes a new instance of the <see cref="SubtitlesDefaultsViewModel"/> class.
 /// </summary>
 public SubtitlesDefaultsViewModel()
 {
     this.Langauges               = LanguageUtilities.MapLanguages().Keys;
     this.CharacterCodes          = CharCodesUtilities.GetCharacterCodes();
     this.SubtitleBehaviours      = new SubtitleBehaviours();
     this.SelectedAvailableToMove = new BindingList <string>();
     this.SelectedLangaugesToMove = new BindingList <string>();
     this.availableLanguages      = new BindingList <string>();
     this.SetupLanguages((Preset)null);
 }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SubtitlesDefaultsViewModel"/> class.
        /// </summary>
        public SubtitlesDefaultsViewModel(IWindowManager windowManager)
        {
            this.windowManager           = windowManager;
            this.Languages               = LanguageUtilities.MapLanguages().Keys;
            this.CharacterCodes          = CharCodesUtilities.GetCharacterCodes();
            this.SubtitleBehaviours      = new SubtitleBehaviours();
            this.SelectedAvailableToMove = new BindingList <string>();
            this.SelectedLanguagesToMove = new BindingList <string>();
            this.availableLanguages      = new BindingList <string>();
            this.SetupPreset((Preset)null);

            this.Title = Resources.SubtitlesViewModel_SubDefaults;
        }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HandBrakeWPF.ViewModels.SubtitlesViewModel"/> class.
        /// </summary>
        /// <param name="windowManager">
        /// The window manager.
        /// </param>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public SubtitlesViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
        {
            this.Task = new EncodeTask();

            this.Langauges      = LanguageUtilities.MapLanguages().Keys;
            this.CharacterCodes = CharCodesUtilities.GetCharacterCodes();

            this.ForeignAudioSearchTrack = new Subtitle {
                SubtitleType = SubtitleType.ForeignAudioSearch, Language = "Foreign Audio Search (Bitmap)"
            };
            this.SourceTracks = new List <Subtitle> {
                this.ForeignAudioSearchTrack
            };
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="HandBrakeWPF.ViewModels.SubtitlesViewModel"/> class.
        /// </summary>
        public SubtitlesViewModel()
        {
            this.SubtitleDefaultsViewModel = new SubtitlesDefaultsViewModel();
            this.Task = new EncodeTask();

            this.Langauges      = LanguageUtilities.MapLanguages().Keys;
            this.CharacterCodes = CharCodesUtilities.GetCharacterCodes();

            this.ForeignAudioSearchTrack = new Subtitle {
                SubtitleType = SubtitleType.ForeignAudioSearch, Language = "Foreign Audio Search (Bitmap)"
            };
            this.SourceTracks = new List <Subtitle> {
                this.ForeignAudioSearchTrack
            };
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="HandBrakeWPF.ViewModels.SubtitlesViewModel"/> class.
        /// </summary>
        /// <param name="errorService">
        /// The Error Service
        /// </param>
        /// <param name="windowManager">
        /// The window Manager.
        /// </param>
        public SubtitlesViewModel(IErrorService errorService, IWindowManager windowManager)
        {
            this.errorService              = errorService;
            this.windowManager             = windowManager;
            this.SubtitleDefaultsViewModel = new SubtitlesDefaultsViewModel();
            this.Task = new EncodeTask();

            this.Langauges      = LanguageUtilities.MapLanguages().Keys;
            this.CharacterCodes = CharCodesUtilities.GetCharacterCodes();

            this.foreignAudioSearchTrack = new Subtitle {
                SubtitleType = SubtitleType.ForeignAudioSearch, Language = "Foreign Audio Search"
            };
            this.SourceTracks = new List <Subtitle> {
                this.foreignAudioSearchTrack
            };
        }
Exemple #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HandBrakeWPF.ViewModels.SubtitlesViewModel"/> class.
        /// </summary>
        /// <param name="errorService">
        /// The Error Service
        /// </param>
        /// <param name="windowManager">
        /// The window Manager.
        /// </param>
        public SubtitlesViewModel(IErrorService errorService, IWindowManager windowManager)
        {
            this.errorService              = errorService;
            this.SubtitleBehaviours        = new SubtitleBehaviours();
            this.SubtitleDefaultsViewModel = new SubtitlesDefaultsViewModel(windowManager);
            this.Task = new EncodeTask();

            this.Languages      = LanguageUtilities.MapLanguages().Keys;
            this.CharacterCodes = CharCodesUtilities.GetCharacterCodes();

            this.foreignAudioSearchTrack = new Subtitle {
                IsFakeForeignAudioScanTrack = true, Language = Resources.SubtitleViewModel_ForeignAudioSearch
            };
            this.SourceTracks = new List <Subtitle> {
                this.foreignAudioSearchTrack
            };
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="HandBrakeWPF.ViewModels.SubtitlesViewModel"/> class.
        /// </summary>
        public SubtitlesViewModel()
        {
            this.Task = new EncodeTask();

            this.Langauges      = LanguageUtilities.MapLanguages().Keys;
            this.CharacterCodes = CharCodesUtilities.GetCharacterCodes();

            this.ForeignAudioSearchTrack = new Subtitle {
                SubtitleType = SubtitleType.ForeignAudioSearch, Language = "Foreign Audio Search (Bitmap)"
            };
            this.SourceTracks = new List <Subtitle> {
                this.ForeignAudioSearchTrack
            };

            this.SubtitleBehaviours      = new SubtitleBehaviours();
            this.SelectedAvailableToMove = new BindingList <string>();
            this.SelectedLangaugesToMove = new BindingList <string>();
            this.availableLanguages      = new BindingList <string>();
            this.SetupLanguages(null);
        }