// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // The Subtitles View Model // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.ViewModels { using System; using System.Collections.ObjectModel; using System.ComponentModel.Composition; using Caliburn.Micro; using HandBrake.ApplicationServices.Model.Encoding; using HandBrake.ApplicationServices.Services.Interfaces; using HandBrakeWPF.ViewModels.Interfaces; using HandBrake.ApplicationServices.Model; /// /// The Subtitles View Model /// [Export(typeof(ISubtitlesViewModel))] public class SubtitlesViewModel : ViewModelBase, ISubtitlesViewModel { /// /// Initializes a new instance of the class. /// /// /// The window manager. /// /// /// The user Setting Service. /// public SubtitlesViewModel(IWindowManager windowManager, IUserSettingService userSettingService) { this.SubtitleTracks = new ObservableCollection(); } /// /// Gets or sets State. /// public ObservableCollection SubtitleTracks { get; set; } /// /// Set the currently selected preset. /// /// /// The preset. /// public void SetPreset(Preset preset) { } /// /// Add a new Track /// public void Add() { this.SubtitleTracks.Add(new SubtitleTrack()); } /// /// Remove a Track /// public void Remove() { throw new NotImplementedException(); } /// /// Import an SRT File. /// public void Import() { throw new NotImplementedException(); } } }