this.components = new System.ComponentModel.Container();\r
System.Windows.Forms.ContextMenuStrip notifyIconMenu;\r
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));\r
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();\r
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();\r
this.btn_restore = new System.Windows.Forms.ToolStripMenuItem();\r
this.DVD_Save = new System.Windows.Forms.SaveFileDialog();\r
this.ToolTip = new System.Windows.Forms.ToolTip(this.components);\r
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();\r
this.btn_new_preset = new System.Windows.Forms.ToolStripMenuItem();\r
this.mnu_importMacPreset = new System.Windows.Forms.ToolStripMenuItem();\r
+ this.mnu_exportMacPreset = new System.Windows.Forms.ToolStripMenuItem();\r
this.mnu_SelectDefault = new System.Windows.Forms.ToolStripMenuItem();\r
this.HelpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\r
this.mnu_user_guide = new System.Windows.Forms.ToolStripMenuItem();\r
this.Label47 = new System.Windows.Forms.Label();\r
this.Label3 = new System.Windows.Forms.Label();\r
this.tab_audio = new System.Windows.Forms.TabPage();\r
- this.AudioSettings = new Handbrake.Controls.AudioPanel();\r
this.AudioMenuRowHeightHack = new System.Windows.Forms.ImageList(this.components);\r
this.tab_video = new System.Windows.Forms.TabPage();\r
this.radio_cq = new System.Windows.Forms.RadioButton();\r
this.lbl_SliderValue = new System.Windows.Forms.Label();\r
this.Label46 = new System.Windows.Forms.Label();\r
this.tab_picture = new System.Windows.Forms.TabPage();\r
- this.PictureSettings = new Handbrake.Controls.PictureSettings();\r
this.Check_ChapterMarkers = new System.Windows.Forms.CheckBox();\r
this.tabs_panel = new System.Windows.Forms.TabControl();\r
this.tab_filters = new System.Windows.Forms.TabPage();\r
- this.Filters = new Handbrake.Controls.Filters();\r
this.tab_subtitles = new System.Windows.Forms.TabPage();\r
- this.Subtitles = new Handbrake.Controls.Subtitles();\r
this.tab_chapters = new System.Windows.Forms.TabPage();\r
this.label31 = new System.Windows.Forms.Label();\r
this.tab_advanced = new System.Windows.Forms.TabPage();\r
- this.x264Panel = new Handbrake.Controls.x264Panel();\r
this.tab_query = new System.Windows.Forms.TabPage();\r
this.btn_clear = new System.Windows.Forms.Button();\r
this.label34 = new System.Windows.Forms.Label();\r
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();\r
this.openPreset = new System.Windows.Forms.OpenFileDialog();\r
this.File_ChapterImport = new System.Windows.Forms.OpenFileDialog();\r
- this.mnu_exportMacPreset = new System.Windows.Forms.ToolStripMenuItem();\r
+ this.ProgressBarStatus = new System.Windows.Forms.ToolStripProgressBar();\r
+ this.PictureSettings = new Handbrake.Controls.PictureSettings();\r
+ this.Filters = new Handbrake.Controls.Filters();\r
+ this.AudioSettings = new Handbrake.Controls.AudioPanel();\r
+ this.Subtitles = new Handbrake.Controls.Subtitles();\r
+ this.x264Panel = new Handbrake.Controls.x264Panel();\r
notifyIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components);\r
notifyIconMenu.SuspendLayout();\r
((System.ComponentModel.ISupportInitialize)(this.slider_videoQuality)).BeginInit();\r
// \r
// number\r
// \r
- dataGridViewCellStyle2.Format = "N0";\r
- dataGridViewCellStyle2.NullValue = null;\r
- this.number.DefaultCellStyle = dataGridViewCellStyle2;\r
+ dataGridViewCellStyle1.Format = "N0";\r
+ dataGridViewCellStyle1.NullValue = null;\r
+ this.number.DefaultCellStyle = dataGridViewCellStyle1;\r
this.number.Frozen = true;\r
this.number.HeaderText = "Chapter Number";\r
this.number.MaxInputLength = 3;\r
this.mnu_importMacPreset.Text = "Import";\r
this.mnu_importMacPreset.Click += new System.EventHandler(this.mnu_importMacPreset_Click);\r
// \r
+ // mnu_exportMacPreset\r
+ // \r
+ this.mnu_exportMacPreset.Name = "mnu_exportMacPreset";\r
+ this.mnu_exportMacPreset.Size = new System.Drawing.Size(194, 22);\r
+ this.mnu_exportMacPreset.Text = "Export";\r
+ this.mnu_exportMacPreset.Click += new System.EventHandler(this.mnu_exportMacPreset_Click);\r
+ // \r
// mnu_SelectDefault\r
// \r
this.mnu_SelectDefault.Name = "mnu_SelectDefault";\r
this.tab_audio.Text = "Audio";\r
this.tab_audio.UseVisualStyleBackColor = true;\r
// \r
- // AudioSettings\r
- // \r
- this.AudioSettings.BackColor = System.Drawing.Color.Transparent;\r
- this.AudioSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.AudioSettings.Location = new System.Drawing.Point(0, 0);\r
- this.AudioSettings.Name = "AudioSettings";\r
- this.AudioSettings.Size = new System.Drawing.Size(715, 310);\r
- this.AudioSettings.TabIndex = 0;\r
- // \r
// AudioMenuRowHeightHack\r
// \r
this.AudioMenuRowHeightHack.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;\r
this.tab_picture.Text = "Picture";\r
this.tab_picture.UseVisualStyleBackColor = true;\r
// \r
- // PictureSettings\r
- // \r
- this.PictureSettings.BackColor = System.Drawing.Color.Transparent;\r
- this.PictureSettings.CurrentlySelectedPreset = null;\r
- this.PictureSettings.Enabled = false;\r
- this.PictureSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.PictureSettings.Location = new System.Drawing.Point(0, 0);\r
- this.PictureSettings.Name = "PictureSettings";\r
- this.PictureSettings.PresetMaximumResolution = new System.Drawing.Size(0, 0);\r
- this.PictureSettings.Size = new System.Drawing.Size(666, 279);\r
- this.PictureSettings.TabIndex = 0;\r
- // \r
// Check_ChapterMarkers\r
// \r
this.Check_ChapterMarkers.AutoSize = true;\r
this.tab_filters.Text = "Video Filters";\r
this.tab_filters.UseVisualStyleBackColor = true;\r
// \r
- // Filters\r
- // \r
- this.Filters.BackColor = System.Drawing.Color.Transparent;\r
- this.Filters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.Filters.Location = new System.Drawing.Point(0, 0);\r
- this.Filters.Name = "Filters";\r
- this.Filters.Size = new System.Drawing.Size(713, 310);\r
- this.Filters.TabIndex = 0;\r
- // \r
// tab_subtitles\r
// \r
this.tab_subtitles.Controls.Add(this.Subtitles);\r
this.tab_subtitles.Text = "Subtitles";\r
this.tab_subtitles.UseVisualStyleBackColor = true;\r
// \r
- // Subtitles\r
- // \r
- this.Subtitles.BackColor = System.Drawing.Color.Transparent;\r
- this.Subtitles.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.Subtitles.Location = new System.Drawing.Point(0, 0);\r
- this.Subtitles.Name = "Subtitles";\r
- this.Subtitles.Size = new System.Drawing.Size(722, 310);\r
- this.Subtitles.TabIndex = 0;\r
- // \r
// tab_chapters\r
// \r
this.tab_chapters.BackColor = System.Drawing.Color.Transparent;\r
this.tab_advanced.Text = "Advanced";\r
this.tab_advanced.UseVisualStyleBackColor = true;\r
// \r
- // x264Panel\r
- // \r
- this.x264Panel.BackColor = System.Drawing.Color.Transparent;\r
- this.x264Panel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.x264Panel.Location = new System.Drawing.Point(0, 0);\r
- this.x264Panel.Name = "x264Panel";\r
- this.x264Panel.Size = new System.Drawing.Size(720, 306);\r
- this.x264Panel.TabIndex = 0;\r
- this.x264Panel.X264Query = "";\r
- // \r
// tab_query\r
// \r
this.tab_query.Controls.Add(this.btn_clear);\r
// StatusStrip\r
// \r
this.StatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
+ this.ProgressBarStatus,\r
this.lbl_encode,\r
this.lbl_updateCheck});\r
this.StatusStrip.Location = new System.Drawing.Point(0, 561);\r
this.StatusStrip.Name = "StatusStrip";\r
+ this.StatusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;\r
this.StatusStrip.Size = new System.Drawing.Size(1002, 22);\r
this.StatusStrip.SizingGrip = false;\r
this.StatusStrip.TabIndex = 7;\r
// \r
this.File_ChapterImport.Filter = "CSV Files|*.csv";\r
// \r
- // mnu_exportMacPreset\r
+ // ProgressBarStatus\r
// \r
- this.mnu_exportMacPreset.Name = "mnu_exportMacPreset";\r
- this.mnu_exportMacPreset.Size = new System.Drawing.Size(194, 22);\r
- this.mnu_exportMacPreset.Text = "Export";\r
- this.mnu_exportMacPreset.Click += new System.EventHandler(this.mnu_exportMacPreset_Click);\r
+ this.ProgressBarStatus.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;\r
+ this.ProgressBarStatus.Name = "ProgressBarStatus";\r
+ this.ProgressBarStatus.Size = new System.Drawing.Size(100, 16);\r
+ this.ProgressBarStatus.Visible = false;\r
+ // \r
+ // PictureSettings\r
+ // \r
+ this.PictureSettings.BackColor = System.Drawing.Color.Transparent;\r
+ this.PictureSettings.CurrentlySelectedPreset = null;\r
+ this.PictureSettings.Enabled = false;\r
+ this.PictureSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.PictureSettings.Location = new System.Drawing.Point(0, 0);\r
+ this.PictureSettings.Name = "PictureSettings";\r
+ this.PictureSettings.PresetMaximumResolution = new System.Drawing.Size(0, 0);\r
+ this.PictureSettings.Size = new System.Drawing.Size(666, 279);\r
+ this.PictureSettings.TabIndex = 0;\r
+ // \r
+ // Filters\r
+ // \r
+ this.Filters.BackColor = System.Drawing.Color.Transparent;\r
+ this.Filters.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.Filters.Location = new System.Drawing.Point(0, 0);\r
+ this.Filters.Name = "Filters";\r
+ this.Filters.Size = new System.Drawing.Size(713, 310);\r
+ this.Filters.TabIndex = 0;\r
+ // \r
+ // AudioSettings\r
+ // \r
+ this.AudioSettings.BackColor = System.Drawing.Color.Transparent;\r
+ this.AudioSettings.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.AudioSettings.Location = new System.Drawing.Point(0, 0);\r
+ this.AudioSettings.Name = "AudioSettings";\r
+ this.AudioSettings.Size = new System.Drawing.Size(715, 310);\r
+ this.AudioSettings.TabIndex = 0;\r
+ // \r
+ // Subtitles\r
+ // \r
+ this.Subtitles.BackColor = System.Drawing.Color.Transparent;\r
+ this.Subtitles.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.Subtitles.Location = new System.Drawing.Point(0, 0);\r
+ this.Subtitles.Name = "Subtitles";\r
+ this.Subtitles.Size = new System.Drawing.Size(722, 310);\r
+ this.Subtitles.TabIndex = 0;\r
+ // \r
+ // x264Panel\r
+ // \r
+ this.x264Panel.BackColor = System.Drawing.Color.Transparent;\r
+ this.x264Panel.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.x264Panel.Location = new System.Drawing.Point(0, 0);\r
+ this.x264Panel.Name = "x264Panel";\r
+ this.x264Panel.Size = new System.Drawing.Size(720, 306);\r
+ this.x264Panel.TabIndex = 0;\r
+ this.x264Panel.X264Query = "";\r
// \r
// frmMain\r
// \r
private DataGridViewTextBoxColumn number;\r
private DataGridViewTextBoxColumn name;\r
private ToolStripMenuItem mnu_exportMacPreset;\r
+ private ToolStripProgressBar ProgressBarStatus;\r
}\r
}
\ No newline at end of file
-using Handbrake.Parsing;\r
+/* frmPreview.cs $\r
+ This file is part of the HandBrake source code.\r
+ Homepage: <http://handbrake.fr/>.\r
+ It may be used under the terms of the GNU General Public License. */\r
\r
namespace Handbrake\r
{\r
using QTOControlLib;\r
using QTOLibrary;\r
using Services;\r
+ using Parsing;\r
\r
public partial class frmPreview : Form\r
{\r
- private readonly Queue Process = new Queue();\r
-\r
- private delegate void UpdateUIHandler();\r
-\r
private string CurrentlyPlaying = string.Empty;\r
private readonly frmMain MainWindow;\r
private Thread Player;\r
private readonly bool NoQT;\r
+ private readonly Queue Process = new Queue();\r
+ private delegate void UpdateUIHandler();\r
+ private bool playWithVLC;\r
\r
public frmPreview(frmMain mw)\r
{\r
\r
Process.EncodeStarted += new EventHandler(Process_EncodeStarted);\r
}\r
-\r
private void Process_EncodeStarted(object sender, EventArgs e)\r
{\r
Thread encodeMon = new Thread(EncodeMonitorThread);\r
\r
private void btn_playVLC_Click(object sender, EventArgs e)\r
{\r
- lbl_status.Visible = true;\r
ProgressBarStatus.Visible = true;\r
ProgressBarStatus.Value = 0;\r
lbl_encodeStatus.Visible = true;\r
+ playWithVLC = true;\r
\r
try\r
{\r
\r
btn_playQT.Enabled = false;\r
btn_playVLC.Enabled = false;\r
- lbl_status.Text = "Encoding Sample for (VLC) ...";\r
+ this.Text += " (Encoding)";\r
int duration;\r
int.TryParse(cb_duration.Text, out duration);\r
string query = QueryGenerator.GenerateCliQuery(MainWindow, 3, duration, cb_preview.Text);\r
\r
private void btn_playQT_Click(object sender, EventArgs e)\r
{\r
+ playWithVLC = false;\r
if (NoQT)\r
{\r
MessageBox.Show(this, \r
}\r
else\r
{\r
- lbl_status.Visible = true;\r
ProgressBarStatus.Visible = true;\r
ProgressBarStatus.Value = 0;\r
lbl_encodeStatus.Visible = true;\r
\r
btn_playQT.Enabled = false;\r
btn_playVLC.Enabled = false;\r
- lbl_status.Text = "Encoding Sample for (QT) ...";\r
+ this.Text += " (Encoding)";\r
int duration;\r
int.TryParse(cb_duration.Text, out duration);\r
string query = QueryGenerator.GenerateCliQuery(MainWindow, 3, duration, cb_preview.Text);\r
btn_playQT.Enabled = true;\r
btn_playVLC.Enabled = true;\r
\r
- // Decide which Player to use.\r
- string playerSelection = lbl_status.Text.Contains("QT") ? "QT" : "VLC";\r
-\r
- lbl_status.Text = "Loading Clip ...";\r
+ this.Text = this.Text.Replace(" (Encoding)", string.Empty);\r
\r
// Get the sample filename\r
if (MainWindow.text_destination.Text != string.Empty)\r
CurrentlyPlaying =\r
MainWindow.text_destination.Text.Replace(".mp4", "_sample.mp4").Replace(".m4v", "_sample.m4v").\r
Replace(".mkv", "_sample.mkv");\r
- ;\r
\r
// Play back in QT or VLC\r
- if (playerSelection == "QT")\r
+ if (!playWithVLC)\r
Play();\r
else\r
PlayVLC();\r
-\r
- lbl_status.Text = string.Empty;\r
}\r
catch (Exception exc)\r
{\r
{\r
Player = new Thread(OpenMovie) {IsBackground = true};\r
Player.Start();\r
- lbl_status.Visible = false;\r
}\r
\r
/// <summary>\r
string args = "\"" + CurrentlyPlaying + "\"";\r
ProcessStartInfo vlc = new ProcessStartInfo(Properties.Settings.Default.VLC_Path, args);\r
System.Diagnostics.Process.Start(vlc);\r
- lbl_status.Text = "VLC will now launch.";\r
}\r
}\r
else\r
"Unable to find the preview file. Either the file was deleted or the encode failed. Check the activity log for details.", \r
"VLC", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
}\r
- lbl_status.Visible = false;\r
}\r
\r
/// <summary>\r