// Set the anamorphic mode 0,1,2,3\r
mainWindow.PictureSettings.drp_anamorphic.SelectedIndex = presetQuery.AnamorphicMode;\r
\r
- // Aspect Ratio\r
+ // Keep Aspect Ration Anamorphic Setting.\r
mainWindow.PictureSettings.check_KeepAR.CheckState = presetQuery.keepDisplayAsect ? CheckState.Checked : CheckState.Unchecked;\r
\r
// Set the Width and height as Required.\r
if (mainWindow.selectedTitle != null && mainWindow.selectedTitle.Resolution.Width != 0)\r
mainWindow.PictureSettings.text_width.Value = mainWindow.selectedTitle.Resolution.Width;\r
\r
+ // Aspect Ratio for non anamorphic sources\r
+ if (presetQuery.AnamorphicMode == 0)\r
+ mainWindow.PictureSettings.check_KeepAR.CheckState = presetQuery.Height == 0 ? CheckState.Checked : CheckState.Unchecked;\r
+\r
// Custom Anamorphic Controls\r
mainWindow.PictureSettings.updownDisplayWidth.Text = presetQuery.displayWidthValue.ToString();\r
mainWindow.PictureSettings.updownParHeight.Text = presetQuery.pixelAspectWidth.ToString();\r
double x264step = cqStep;\r
double presetValue = presetQuery.VideoQuality;\r
\r
- double x = 51/x264step;\r
+ double x = 51 / x264step;\r
\r
- double calculated = presetValue/x264step;\r
+ double calculated = presetValue / x264step;\r
calculated = x - calculated;\r
\r
int.TryParse(calculated.ToString(), out value);\r
newTrack.SubItems.Add(track.Encoder);\r
newTrack.SubItems.Add(track.MixDown);\r
newTrack.SubItems.Add(track.SampleRate);\r
- if (track.Encoder.Contains("AC3"))\r
- newTrack.SubItems.Add("Auto");\r
- else\r
- newTrack.SubItems.Add(track.Bitrate);\r
+ newTrack.SubItems.Add(track.Encoder.Contains("AC3") ? "Auto" : track.Bitrate);\r
newTrack.SubItems.Add(track.DRC);\r
mainWindow.AudioSettings.AddTrackForPreset(newTrack);\r
}\r
// Enable / Disable Query editor tab\r
if (Properties.Settings.Default.QueryEditorTab)\r
check_queryEditorTab.CheckState = CheckState.Checked;\r
+ check_promptOnUnmatchingQueries.Enabled = check_queryEditorTab.Checked;\r
\r
// Prompt on inconsistant queries\r
check_promptOnUnmatchingQueries.Checked = Properties.Settings.Default.PromptOnUnmatchingQueries;\r
if (Properties.Settings.Default.enocdeStatusInGui)\r
check_inGuiStatus.CheckState = CheckState.Checked;\r
\r
- check_showCliForInGUIEncode.Checked = Properties.Settings.Default.showCliForInGuiEncodeStatus;\r
+ check_showCliForInGUIEncode.Checked = Properties.Settings.Default.showCliForInGuiEncodeStatus;\r
+ check_showCliForInGUIEncode.Enabled = check_inGuiStatus.Checked;\r
\r
// Set the preview count\r
drop_previewScanCount.SelectedItem = Properties.Settings.Default.previewScanCount.ToString();\r
{\r
Properties.Settings.Default.enocdeStatusInGui = check_inGuiStatus.Checked;\r
\r
+ check_showCliForInGUIEncode.Enabled = check_inGuiStatus.Checked;\r
+\r
if (this.IsHandleCreated)\r
if (check_inGuiStatus.Checked)\r
{\r
MessageBox.Show("This feature is experimental!\n\n You will not be able to \91Stop\92 an encode mid-process.\n"\r
+ "Doing so will render the file unplayable.\n" +\r
- "If you enable 'Show CLI Window', you'll be ablt to hit ctrl-c in the encode window to cleanly exit the CLI. This will give you a playable file.\n\n" + \r
+ "If you enable 'Show CLI Window', you'll be ablt to hit ctrl-c in the encode window to cleanly exit the CLI. This will give you a playable file.\n\n" +\r
"You are also limited to 1 instance of HandBrakeCLI on your system.",\r
"Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);\r
}\r