/* AdvancedEncoderOpts.cs $ This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ namespace Handbrake.Controls { using System.Windows.Forms; using HandBrake.ApplicationServices; using HandBrake.ApplicationServices.Services.Interfaces; /// /// The x264 Panel /// public partial class AdvancedEncoderOpts : UserControl { /// /// The User Setting Service. /// private readonly IUserSettingService UserSettingService = ServiceManager.UserSettingService; /// /// Initializes a new instance of the class. /// public AdvancedEncoderOpts() { InitializeComponent(); if (this.UserSettingService.GetUserSetting(UserSettingConstants.TooltipEnable)) ToolTip.Active = true; } /// /// Gets or sets the X264 query string /// public string AdavancedQuery { get { return advancedQuery.Text; } set { advancedQuery.Text = value; } } /// /// Sets a value indicating whether IsDisabled. /// public bool IsDisabled { set { if (value) { this.advancedQuery.Enabled = false; this.advancedQuery.Text = "Advanced encoder option passthrough is not currently supported for the encoder you have chosen."; } else { this.advancedQuery.Enabled = true; this.advancedQuery.Text = string.Empty; } } } } }