}\r
private void mnu_encodeLog_Click(object sender, EventArgs e)\r
{\r
- String file;\r
- file = lastAction == "scan" ? "last_scan_log.txt" : "last_encode_log.txt";\r
+ String file = lastAction == "scan" ? "last_scan_log.txt" : "last_encode_log.txt";\r
\r
frmActivityWindow dvdInfoWindow = new frmActivityWindow(file, encodeQueue, this);\r
dvdInfoWindow.Show();\r
if (treeView_presets.SelectedNode != null)\r
{\r
presetHandler.remove(treeView_presets.SelectedNode.Text);\r
-\r
- // Remember each nodes expanded status so we can reload it\r
- List<Boolean> nodeStatus = saveTreeViewState();\r
-\r
- // Now reload the preset panel\r
+ List<Boolean> nodeStatus = saveTreeViewState(); // Remember each nodes expanded status so we can reload it\r
loadPresetPanel();\r
-\r
- // Now reload the TreeView states\r
- loadTreeViewStates(nodeStatus);\r
+ loadTreeViewStates(nodeStatus); // Now reload the TreeView states\r
}\r
treeView_presets.Select();\r
}\r
\r
// Now enable the save menu if the selected preset is a user preset\r
if (treeView_presets.SelectedNode != null)\r
- {\r
if (presetHandler.checkIfUserPresetExists(treeView_presets.SelectedNode.Text))\r
- {\r
pmnu_saveChanges.Enabled = true;\r
- }\r
- }\r
+\r
treeView_presets.Select();\r
}\r
\r
if (treeView_presets.SelectedNode != null)\r
presetHandler.remove(treeView_presets.SelectedNode.Text);\r
\r
- // Remember each nodes expanded status so we can reload it\r
- List<Boolean> nodeStatus = saveTreeViewState();\r
-\r
- // Now reload the preset panel\r
+ List<Boolean> nodeStatus = saveTreeViewState(); // Remember each nodes expanded status so we can reload it\r
loadPresetPanel();\r
-\r
- // Now reload the TreeView states\r
- loadTreeViewStates(nodeStatus);\r
+ loadTreeViewStates(nodeStatus); // Now reload the TreeView states\r
}\r
treeView_presets.Select();\r
}\r
if (rtf_query.Text != "")\r
query = rtf_query.Text;\r
\r
-\r
if (encodeQueue.checkDestinationPath(text_destination.Text))\r
{\r
DialogResult result = MessageBox.Show("There is already a queue item for this destination path. \n\n If you continue, the encode will be overwritten. Do you wish to continue?",\r
if (!encodeQueue.isEncoding)\r
{\r
notifyIcon.BalloonTipText = lbl_encode.Text != "" ? lbl_encode.Text : "Not Encoding";\r
- notifyIcon.ShowBalloonTip(500);\r
+ if (Properties.Settings.Default.trayIconAlerts == "Checked")\r
+ notifyIcon.ShowBalloonTip(500);\r
}\r
this.Hide();\r
}\r
setExtension(".mkv");\r
\r
audioPanel.setAudioByContainer(drop_format.Text);\r
- setVideoByContainer(drop_format.Text);\r
+\r
+ string oldval;\r
+ if ((drop_format.Text.Contains("MP4")) || (drop_format.Text.Contains("M4V")))\r
+ {\r
+ oldval = drp_videoEncoder.Text;\r
+ drp_videoEncoder.Items.Clear();\r
+ drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");\r
+ drp_videoEncoder.Items.Add("H.264 (x264)");\r
+ if (oldval == "VP3 (Theora)")\r
+ drp_videoEncoder.SelectedIndex = 1;\r
+ else\r
+ drp_videoEncoder.Text = oldval;\r
+ }\r
+ else if (drop_format.Text.Contains("MKV"))\r
+ {\r
+ oldval = drp_videoEncoder.Text;\r
+ drp_videoEncoder.Items.Clear();\r
+ drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");\r
+ drp_videoEncoder.Items.Add("H.264 (x264)");\r
+ drp_videoEncoder.Items.Add("VP3 (Theora)");\r
+ drp_videoEncoder.Text = oldval;\r
+ }\r
}\r
private void setExtension(string newExtension)\r
{\r
/// </summary>\r
public void setContainerOpts()\r
{\r
- if ((text_destination.Text.Contains(".mp4")) || (text_destination.Text.Contains(".m4v")))\r
+ if ((drop_format.Text.Contains("MP4")) || (drop_format.Text.Contains("M4V")))\r
{\r
check_largeFile.Enabled = true;\r
check_optimiseMP4.Enabled = true;\r
text_height.BackColor = Color.White;\r
\r
maxHeight = 0; // Reset max height so that it's not using the MaxHeight -Y. Quick hack to allow -Y for preset usage.\r
- if (maxWidth != 0)\r
- lbl_max.Text = "Max Width";\r
- else\r
- lbl_max.Text = "";\r
+ lbl_max.Text = maxWidth != 0 ? "Max Width" : "";\r
\r
int height;\r
Boolean parsed = int.TryParse(text_height.Text, out height);\r
}\r
\r
//Subtitles Tab\r
-\r
private void drp_subtitle_SelectedIndexChanged(object sender, EventArgs e)\r
{\r
if (drp_subtitle.Text.Contains("None"))\r
{\r
if (Check_ChapterMarkers.Checked)\r
{\r
- text_destination.Text = text_destination.Text.Replace(".m4v", ".mp4");\r
+ drop_format.SelectedIndex = 1;\r
data_chpt.Rows.Clear();\r
data_chpt.Enabled = true;\r
DataGridView chapterGridView = Main.chapterNaming(data_chpt, drop_chapterFinish.Text);\r
}\r
else\r
{\r
- text_destination.Text = text_destination.Text.Replace(".m4v", ".mp4");\r
+ drop_format.SelectedIndex = 0;\r
data_chpt.Rows.Clear();\r
data_chpt.Enabled = false;\r
}\r
}\r
#endregion\r
\r
- #region Audio Panel Code Helpers\r
- \r
- private void setVideoByContainer(String path)\r
- {\r
- string oldval;\r
-\r
- if ((path.Contains("MP4")) || (path.Contains("M4V")))\r
- {\r
- oldval = drp_videoEncoder.Text;\r
- drp_videoEncoder.Items.Clear();\r
- drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");\r
- drp_videoEncoder.Items.Add("H.264 (x264)");\r
- if (oldval == "VP3 (Theora)")\r
- drp_videoEncoder.SelectedIndex = 1;\r
- else\r
- drp_videoEncoder.Text = oldval;\r
-\r
- }\r
- else if (path.Contains("MKV"))\r
- {\r
- oldval = drp_videoEncoder.Text;\r
- drp_videoEncoder.Items.Clear();\r
- drp_videoEncoder.Items.Add("MPEG-4 (FFmpeg)");\r
- drp_videoEncoder.Items.Add("H.264 (x264)");\r
- drp_videoEncoder.Items.Add("VP3 (Theora)");\r
- drp_videoEncoder.Text = oldval;\r
- }\r
- }\r
- #endregion\r
-\r
#region Public Methods\r
/// <summary>\r
/// Access the preset Handler and setup the preset panel.\r
}\r
#endregion\r
\r
-\r
-\r
// This is the END of the road ****************************************\r
}\r
}
\ No newline at end of file
this.drp_processors = new System.Windows.Forms.ComboBox();\r
this.Label4 = new System.Windows.Forms.Label();\r
this.tab_advanced = new System.Windows.Forms.TabPage();\r
+ this.check_inGuiStatus = new System.Windows.Forms.CheckBox();\r
this.check_disablePresetNotification = new System.Windows.Forms.CheckBox();\r
this.check_dvdnav = new System.Windows.Forms.CheckBox();\r
this.label32 = new System.Windows.Forms.Label();\r
this.label26 = new System.Windows.Forms.Label();\r
this.label27 = new System.Windows.Forms.Label();\r
this.openFile_vlc = new System.Windows.Forms.OpenFileDialog();\r
- this.check_inGuiStatus = new System.Windows.Forms.CheckBox();\r
+ this.check_trayStatusAlerts = new System.Windows.Forms.CheckBox();\r
this.tab_options.SuspendLayout();\r
this.tab_general.SuspendLayout();\r
this.tab_picture.SuspendLayout();\r
this.tab_general.Controls.Add(this.drp_completeOption);\r
this.tab_general.Location = new System.Drawing.Point(4, 22);\r
this.tab_general.Name = "tab_general";\r
- this.tab_general.Size = new System.Drawing.Size(482, 283);\r
+ this.tab_general.Size = new System.Drawing.Size(482, 295);\r
this.tab_general.TabIndex = 3;\r
this.tab_general.Text = "General";\r
this.tab_general.UseVisualStyleBackColor = true;\r
this.tab_picture.Controls.Add(this.label29);\r
this.tab_picture.Location = new System.Drawing.Point(4, 22);\r
this.tab_picture.Name = "tab_picture";\r
- this.tab_picture.Size = new System.Drawing.Size(482, 283);\r
+ this.tab_picture.Size = new System.Drawing.Size(482, 295);\r
this.tab_picture.TabIndex = 5;\r
this.tab_picture.Text = "Picture";\r
this.tab_picture.UseVisualStyleBackColor = true;\r
this.tab_cli.Controls.Add(this.Label4);\r
this.tab_cli.Location = new System.Drawing.Point(4, 22);\r
this.tab_cli.Name = "tab_cli";\r
- this.tab_cli.Size = new System.Drawing.Size(482, 283);\r
+ this.tab_cli.Size = new System.Drawing.Size(482, 295);\r
this.tab_cli.TabIndex = 2;\r
this.tab_cli.Text = "CLI";\r
this.tab_cli.UseVisualStyleBackColor = true;\r
// \r
// tab_advanced\r
// \r
+ this.tab_advanced.Controls.Add(this.check_trayStatusAlerts);\r
this.tab_advanced.Controls.Add(this.check_inGuiStatus);\r
this.tab_advanced.Controls.Add(this.check_disablePresetNotification);\r
this.tab_advanced.Controls.Add(this.check_dvdnav);\r
this.tab_advanced.Text = "Advanced / Other";\r
this.tab_advanced.UseVisualStyleBackColor = true;\r
// \r
+ // check_inGuiStatus\r
+ // \r
+ this.check_inGuiStatus.AutoSize = true;\r
+ this.check_inGuiStatus.BackColor = System.Drawing.Color.Transparent;\r
+ this.check_inGuiStatus.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.check_inGuiStatus.Location = new System.Drawing.Point(76, 133);\r
+ this.check_inGuiStatus.Name = "check_inGuiStatus";\r
+ this.check_inGuiStatus.Size = new System.Drawing.Size(281, 17);\r
+ this.check_inGuiStatus.TabIndex = 92;\r
+ this.check_inGuiStatus.Text = "Enable in-GUI Encode status. (Experimental)";\r
+ this.ToolTip.SetToolTip(this.check_inGuiStatus, "Displays the CLI status in the GUI windows instead of the CLI window.");\r
+ this.check_inGuiStatus.UseVisualStyleBackColor = false;\r
+ this.check_inGuiStatus.CheckedChanged += new System.EventHandler(this.check_inGuiStatus_CheckedChanged);\r
+ // \r
// check_disablePresetNotification\r
// \r
this.check_disablePresetNotification.AutoSize = true;\r
this.check_disablePresetNotification.BackColor = System.Drawing.Color.Transparent;\r
this.check_disablePresetNotification.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.check_disablePresetNotification.Location = new System.Drawing.Point(76, 87);\r
+ this.check_disablePresetNotification.Location = new System.Drawing.Point(76, 110);\r
this.check_disablePresetNotification.Name = "check_disablePresetNotification";\r
this.check_disablePresetNotification.Size = new System.Drawing.Size(261, 17);\r
this.check_disablePresetNotification.TabIndex = 91;\r
this.check_dvdnav.AutoSize = true;\r
this.check_dvdnav.BackColor = System.Drawing.Color.Transparent;\r
this.check_dvdnav.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.check_dvdnav.Location = new System.Drawing.Point(76, 232);\r
+ this.check_dvdnav.Location = new System.Drawing.Point(76, 257);\r
this.check_dvdnav.Name = "check_dvdnav";\r
this.check_dvdnav.Size = new System.Drawing.Size(297, 17);\r
this.check_dvdnav.TabIndex = 90;\r
// \r
this.label32.AutoSize = true;\r
this.label32.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.label32.Location = new System.Drawing.Point(38, 232);\r
+ this.label32.Location = new System.Drawing.Point(38, 257);\r
this.label32.Name = "label32";\r
this.label32.Size = new System.Drawing.Size(32, 13);\r
this.label32.TabIndex = 89;\r
// label30\r
// \r
this.label30.AutoSize = true;\r
- this.label30.Location = new System.Drawing.Point(73, 190);\r
+ this.label30.Location = new System.Drawing.Point(73, 215);\r
this.label30.Name = "label30";\r
this.label30.Size = new System.Drawing.Size(230, 13);\r
this.label30.TabIndex = 87;\r
"0.50",\r
"0.25",\r
"0.20"});\r
- this.drop_x264step.Location = new System.Drawing.Point(312, 187);\r
+ this.drop_x264step.Location = new System.Drawing.Point(312, 212);\r
this.drop_x264step.Name = "drop_x264step";\r
this.drop_x264step.Size = new System.Drawing.Size(111, 21);\r
this.drop_x264step.TabIndex = 86;\r
// \r
this.label28.AutoSize = true;\r
this.label28.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.label28.Location = new System.Drawing.Point(27, 190);\r
+ this.label28.Location = new System.Drawing.Point(27, 215);\r
this.label28.Name = "label28";\r
this.label28.Size = new System.Drawing.Size(43, 13);\r
this.label28.TabIndex = 85;\r
this.check_queryEditorTab.AutoSize = true;\r
this.check_queryEditorTab.BackColor = System.Drawing.Color.Transparent;\r
this.check_queryEditorTab.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.check_queryEditorTab.Location = new System.Drawing.Point(76, 64);\r
+ this.check_queryEditorTab.Location = new System.Drawing.Point(76, 87);\r
this.check_queryEditorTab.Name = "check_queryEditorTab";\r
this.check_queryEditorTab.Size = new System.Drawing.Size(175, 17);\r
this.check_queryEditorTab.TabIndex = 84;\r
// \r
this.lbl_appcastUnstable.AutoSize = true;\r
this.lbl_appcastUnstable.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.lbl_appcastUnstable.Location = new System.Drawing.Point(6, 153);\r
+ this.lbl_appcastUnstable.Location = new System.Drawing.Point(6, 178);\r
this.lbl_appcastUnstable.Name = "lbl_appcastUnstable";\r
this.lbl_appcastUnstable.Size = new System.Drawing.Size(64, 13);\r
this.lbl_appcastUnstable.TabIndex = 83;\r
this.check_snapshot.AutoSize = true;\r
this.check_snapshot.BackColor = System.Drawing.Color.Transparent;\r
this.check_snapshot.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.check_snapshot.Location = new System.Drawing.Point(76, 152);\r
+ this.check_snapshot.Location = new System.Drawing.Point(76, 177);\r
this.check_snapshot.Name = "check_snapshot";\r
this.check_snapshot.Size = new System.Drawing.Size(273, 17);\r
this.check_snapshot.TabIndex = 80;\r
this.openFile_vlc.DefaultExt = "exe";\r
this.openFile_vlc.Filter = "exe|*.exe";\r
// \r
- // check_inGuiStatus\r
- // \r
- this.check_inGuiStatus.AutoSize = true;\r
- this.check_inGuiStatus.BackColor = System.Drawing.Color.Transparent;\r
- this.check_inGuiStatus.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
- this.check_inGuiStatus.Location = new System.Drawing.Point(76, 110);\r
- this.check_inGuiStatus.Name = "check_inGuiStatus";\r
- this.check_inGuiStatus.Size = new System.Drawing.Size(281, 17);\r
- this.check_inGuiStatus.TabIndex = 92;\r
- this.check_inGuiStatus.Text = "Enable in-GUI Encode status. (Experimental)";\r
- this.ToolTip.SetToolTip(this.check_inGuiStatus, "Displays the CLI status in the GUI windows instead of the CLI window.");\r
- this.check_inGuiStatus.UseVisualStyleBackColor = false;\r
- this.check_inGuiStatus.CheckedChanged += new System.EventHandler(this.check_inGuiStatus_CheckedChanged);\r
+ // check_trayStatusAlerts\r
+ // \r
+ this.check_trayStatusAlerts.AutoSize = true;\r
+ this.check_trayStatusAlerts.BackColor = System.Drawing.Color.Transparent;\r
+ this.check_trayStatusAlerts.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\r
+ this.check_trayStatusAlerts.Location = new System.Drawing.Point(97, 64);\r
+ this.check_trayStatusAlerts.Name = "check_trayStatusAlerts";\r
+ this.check_trayStatusAlerts.Size = new System.Drawing.Size(352, 17);\r
+ this.check_trayStatusAlerts.TabIndex = 93;\r
+ this.check_trayStatusAlerts.Text = "Display status messages from tray icon (balloon popups)";\r
+ this.ToolTip.SetToolTip(this.check_trayStatusAlerts, "Minimize the window to the system tray rather than the task bar.\r\nThe system tray" +\r
+ " icon has encode status notifications.\r\nNote: requires restart to take effect!\r\n" +\r
+ "");\r
+ this.check_trayStatusAlerts.UseVisualStyleBackColor = false;\r
+ this.check_trayStatusAlerts.CheckedChanged += new System.EventHandler(this.check_trayStatusAlerts_CheckedChanged);\r
// \r
// frmOptions\r
// \r
internal System.Windows.Forms.CheckBox check_logsInSpecifiedLocation;\r
internal System.Windows.Forms.CheckBox check_disablePresetNotification;\r
internal System.Windows.Forms.CheckBox check_inGuiStatus;\r
+ internal System.Windows.Forms.CheckBox check_trayStatusAlerts;\r
}\r
}
\ No newline at end of file
// Advanced\r
// #############################\r
\r
- // Unstable Snapshot checking should only be visible for stable builds.\r
- if (Properties.Settings.Default.hb_build.ToString().EndsWith("1"))\r
- {\r
- lbl_appcastUnstable.Visible = false;\r
- check_snapshot.Visible = false;\r
- }\r
-\r
- // Enable snapshot updating\r
- if (Properties.Settings.Default.checkSnapshot == "Checked")\r
- check_snapshot.CheckState = CheckState.Checked;\r
-\r
// Enable GUI DVD Drive detection code\r
if (Properties.Settings.Default.drive_detection == "Checked")\r
btn_drive_detect.CheckState = CheckState.Checked;\r
\r
+ // Minimise to Tray\r
+ if (Properties.Settings.Default.trayIconAlerts == "Checked")\r
+ check_trayStatusAlerts.CheckState = CheckState.Checked;\r
+\r
+ // Tray Balloon popups\r
+ if (Properties.Settings.Default.MainWindowMinimize == "Checked")\r
+ check_mainMinimize.CheckState = CheckState.Checked;\r
+\r
// Enable / Disable Query editor tab\r
if (Properties.Settings.Default.QueryEditorTab == "Checked")\r
check_queryEditorTab.CheckState = CheckState.Checked;\r
// Experimental In-GUI encode status indicator.\r
if (Properties.Settings.Default.enocdeStatusInGui == "Checked")\r
check_inGuiStatus.CheckState = CheckState.Checked;\r
-\r
+ \r
// Enable snapshot updating\r
- if (Properties.Settings.Default.MainWindowMinimize == "Checked")\r
- check_mainMinimize.CheckState = CheckState.Checked;\r
+ if (Properties.Settings.Default.checkSnapshot == "Checked")\r
+ check_snapshot.CheckState = CheckState.Checked;\r
+ \r
+ // Unstable Snapshot checking should only be visible for stable builds.\r
+ if (Properties.Settings.Default.hb_build.ToString().EndsWith("1"))\r
+ {\r
+ lbl_appcastUnstable.Visible = false;\r
+ check_snapshot.Visible = false;\r
+ }\r
\r
// x264 step\r
drop_x264step.SelectedItem = Properties.Settings.Default.x264cqstep;\r
Properties.Settings.Default.MainWindowMinimize = check_mainMinimize.CheckState.ToString();\r
}\r
\r
+ private void check_trayStatusAlerts_CheckedChanged(object sender, EventArgs e)\r
+ {\r
+ Properties.Settings.Default.trayIconAlerts = check_trayStatusAlerts.CheckState.ToString();\r
+ }\r
+\r
private void check_queryEditorTab_CheckedChanged(object sender, EventArgs e)\r
{\r
Properties.Settings.Default.QueryEditorTab = check_queryEditorTab.CheckState.ToString();\r