diff options
author | sr55 <[email protected]> | 2008-06-27 14:42:17 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-06-27 14:42:17 +0000 |
commit | 45ce65f74863a7ee8d3ccf8978608794f2c91f42 (patch) | |
tree | d0ea243d7b678484994c22a66027008d93e12e21 /win/C#/frmReadDVD.cs | |
parent | 345c583574d3db3a664347304b8eb0495369ea69 (diff) |
WinGui:
- Added: Resolution calculation for non anamorphic encodes in the GUI.
- Added: Ability to minimize to the system tray. Includes popup notifications of encoding status.
- Added: Duration calculation based on Title and selected chapters.
- Added: Some more code comments and summaries
- Change: Activity window now only refreshes if there is an active HandBrakeCLI.exe running.
- Change: Browse button/ File mode checkbox for Source Selection Removed. Replaced with a Source Dropdown button in the main toolbar. (works a bit like the magui but still uses the 2 different dialog boxes)
- Change: Removed "Recommended Crop" label and simply let the dropdown set the cropping values. Added DVD resolution Label.
- Fixed: Preset loader now selects longest title and set's chapters to Auto. Before it would load in the last setting used which is bad.
- Fixed bug in the presetLoader() function with the 2nd audio channel track selection.
Final Note: Quite a bit of code has been moved around in this checkin to clear things up a bit.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1541 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmReadDVD.cs')
-rw-r--r-- | win/C#/frmReadDVD.cs | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index d825d1c56..1b1d70e1a 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -25,6 +25,7 @@ namespace Handbrake private frmMain mainWindow;
private Parsing.DVD thisDvd;
private delegate void UpdateUIHandler();
+ Functions.Common hb_common_func = new Functions.Common();
public frmReadDVD(string inputFile, frmMain parent)
{
@@ -67,40 +68,9 @@ namespace Handbrake mainWindow.drop_chapterStart.Text = "Auto";
// Now select the longest title
- int current_largest = 0;
- Handbrake.Parsing.Title title2Select = thisDvd.Titles[0];
+ hb_common_func.selectLongestTitle(mainWindow);
- foreach (Handbrake.Parsing.Title x in thisDvd.Titles)
- {
- string title = x.ToString();
- if (title != "Automatic")
- {
- string[] y = title.Split(' ');
- string time = y[1].Replace("(", "").Replace(")", "");
- string[] z = time.Split(':');
-
- int hours = int.Parse(z[0]) * 60 * 60;
- int minutes = int.Parse(z[1]) * 60;
- int seconds = int.Parse(z[2]);
- int total_sec = hours + minutes + seconds;
-
- if (current_largest == 0)
- {
- current_largest = hours + minutes + seconds;
- title2Select = x;
- }
- else
- {
- if (total_sec > current_largest)
- {
- current_largest = total_sec;
- title2Select = x;
- }
- }
- }
- }
-
- mainWindow.drp_dvdtitle.SelectedItem = title2Select;
+
this.Close();
}
|