this.rightClickMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
this.mnu_copy_log});\r
this.rightClickMenu.Name = "rightClickMenu";\r
- this.rightClickMenu.Size = new System.Drawing.Size(153, 48);\r
+ this.rightClickMenu.Size = new System.Drawing.Size(111, 26);\r
// \r
// mnu_copy_log\r
// \r
this.mnu_copy_log.Image = global::Handbrake.Properties.Resources.copy;\r
this.mnu_copy_log.Name = "mnu_copy_log";\r
- this.mnu_copy_log.Size = new System.Drawing.Size(152, 22);\r
+ this.mnu_copy_log.Size = new System.Drawing.Size(110, 22);\r
this.mnu_copy_log.Text = "Copy";\r
this.mnu_copy_log.Click += new System.EventHandler(this.mnu_copy_log_Click);\r
// \r
this.toolStripDropDownButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta;\r
this.toolStripDropDownButton1.Name = "toolStripDropDownButton1";\r
- this.toolStripDropDownButton1.Size = new System.Drawing.Size(94, 22);\r
+ this.toolStripDropDownButton1.Size = new System.Drawing.Size(85, 22);\r
this.toolStripDropDownButton1.Text = "Select Log";\r
// \r
// btn_encode_log\r
// \r
this.btn_encode_log.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;\r
this.btn_encode_log.Name = "btn_encode_log";\r
- this.btn_encode_log.Size = new System.Drawing.Size(151, 22);\r
+ this.btn_encode_log.Size = new System.Drawing.Size(140, 22);\r
this.btn_encode_log.Text = "Encode Log";\r
this.btn_encode_log.Click += new System.EventHandler(this.btn_encode_log_Click);\r
// \r
// \r
this.btn_scan_log.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;\r
this.btn_scan_log.Name = "btn_scan_log";\r
- this.btn_scan_log.Size = new System.Drawing.Size(151, 22);\r
+ this.btn_scan_log.Size = new System.Drawing.Size(140, 22);\r
this.btn_scan_log.Text = "Scan Log";\r
this.btn_scan_log.Click += new System.EventHandler(this.btn_scan_log_Click);\r
// \r
this.btn_copy.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;\r
this.btn_copy.ImageTransparentColor = System.Drawing.Color.Magenta;\r
this.btn_copy.Name = "btn_copy";\r
- this.btn_copy.Size = new System.Drawing.Size(122, 22);\r
+ this.btn_copy.Size = new System.Drawing.Size(111, 22);\r
this.btn_copy.Text = "Copy to clipboard";\r
this.btn_copy.Click += new System.EventHandler(this.btn_copy_Click);\r
// \r
// \r
// lbl_slb\r
// \r
+ this.lbl_slb.BackColor = System.Drawing.Color.Transparent;\r
this.lbl_slb.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
this.lbl_slb.Name = "lbl_slb";\r
this.lbl_slb.Size = new System.Drawing.Size(94, 17);\r
// \r
this.txt_log.BackColor = System.Drawing.Color.Transparent;\r
this.txt_log.Name = "txt_log";\r
- this.txt_log.Size = new System.Drawing.Size(85, 17);\r
+ this.txt_log.Size = new System.Drawing.Size(74, 17);\r
this.txt_log.Text = "{selected log}";\r
// \r
// frmActivityWindow\r
{\r
InitializeComponent();\r
this.mainWindow = mw;\r
+ cb_duration.SelectedIndex = 0;\r
}\r
\r
private void btn_play_Click(object sender, EventArgs e)\r
this.HelpToolStripMenuItem});\r
this.frmMainMenu.Location = new System.Drawing.Point(0, 0);\r
this.frmMainMenu.Name = "frmMainMenu";\r
- this.frmMainMenu.Size = new System.Drawing.Size(985, 24);\r
+ this.frmMainMenu.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;\r
+ this.frmMainMenu.Size = new System.Drawing.Size(983, 24);\r
this.frmMainMenu.TabIndex = 0;\r
this.frmMainMenu.Text = "MenuStrip1";\r
// \r
this.toolStrip1.Location = new System.Drawing.Point(0, 24);\r
this.toolStrip1.Name = "toolStrip1";\r
this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;\r
- this.toolStrip1.Size = new System.Drawing.Size(985, 39);\r
+ this.toolStrip1.Size = new System.Drawing.Size(983, 39);\r
this.toolStrip1.TabIndex = 1;\r
this.toolStrip1.Text = "toolStrip1";\r
// \r
// \r
this.StatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\r
this.lbl_encode});\r
- this.StatusStrip.Location = new System.Drawing.Point(0, 629);\r
+ this.StatusStrip.Location = new System.Drawing.Point(0, 627);\r
this.StatusStrip.Name = "StatusStrip";\r
- this.StatusStrip.Size = new System.Drawing.Size(985, 22);\r
+ this.StatusStrip.Size = new System.Drawing.Size(983, 22);\r
this.StatusStrip.TabIndex = 7;\r
this.StatusStrip.Text = "statusStrip1";\r
// \r
// \r
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
- this.ClientSize = new System.Drawing.Size(985, 651);\r
+ this.ClientSize = new System.Drawing.Size(983, 649);\r
this.Controls.Add(this.GroupBox1);\r
this.Controls.Add(this.groupBox_dest);\r
this.Controls.Add(this.groupBox_output);\r
else\r
query = queryGen.GenerateTheQuery(this);\r
\r
- encodeQueue.add(query, text_source.Text, text_destination.Text);\r
- encodeQueue.write2disk("hb_queue_recovery.xml");\r
+ if (encodeQueue.count() == 0)\r
+ {\r
+ encodeQueue.add(query, text_source.Text, text_destination.Text);\r
+ encodeQueue.write2disk("hb_queue_recovery.xml");\r
+ }\r
queueWindow.setQueue(encodeQueue);\r
+ queueWindow.Show();\r
queueWindow.frmMain_encode();\r
\r
setEncodeStatus(1); // Encode is running, so setup the GUI appropriately\r
{\r
if (queue.count() != 0)\r
{\r
+ // Setup or reset some values\r
+ btn_encode.Enabled = false;\r
+ btn_stop.Visible = true;\r
+ progressBar.Value = 0;\r
+ lbl_progressValue.Text = "0 %";\r
+ if (queue.count() == 0)\r
+ progressBar.Step = 100;\r
+ else\r
+ progressBar.Step = 100 / queue.count();\r
Thread theQ = new Thread(startProc);\r
theQ.IsBackground = true;\r
theQ.Start();\r
// Initializes the encode process\r
private void btn_encode_Click(object sender, EventArgs e)\r
{\r
- mainWindow.setLastAction("encode");\r
- mainWindow.setEncodeStatus(1);\r
- \r
if (queue.count() != 0)\r
{\r
btn_encode.Enabled = false;\r
- }\r
- cancel = false;\r
+ mainWindow.setLastAction("encode");\r
+ mainWindow.setEncodeStatus(1);\r
\r
- // Start the encode\r
- try\r
- {\r
- if (queue.count() != 0)\r
+ cancel = false;\r
+\r
+ // Start the encode\r
+ try\r
{\r
// Setup or reset some values\r
btn_encode.Enabled = false;\r
theQ.IsBackground = true;\r
theQ.Start();\r
}\r
- }\r
- catch (Exception exc)\r
- {\r
- MessageBox.Show(exc.ToString());\r
+ catch (Exception exc)\r
+ {\r
+ MessageBox.Show(exc.ToString());\r
+ }\r
}\r
}\r
\r
queue.write2disk("hb_queue_recovery.xml"); // Update the queue recovery file\r
redrawQueue();\r
\r
- if (selected - 1 > 0) \r
- list_queue.Items[selected -1].Selected = true;\r
+ if (selected - 1 > 0)\r
+ list_queue.Items[selected - 1].Selected = true;\r
\r
list_queue.Select();\r
}\r
queue.write2disk("hb_queue_recovery.xml"); // Update the queue recovery file\r
redrawQueue();\r
\r
- if (selected +1 < list_queue.Items.Count) \r
+ if (selected + 1 < list_queue.Items.Count)\r
list_queue.Items[selected + 1].Selected = true;\r
\r
list_queue.Select();\r