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#/frmActivityWindow.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#/frmActivityWindow.cs')
-rw-r--r-- | win/C#/frmActivityWindow.cs | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/win/C#/frmActivityWindow.cs b/win/C#/frmActivityWindow.cs index 73abbbe77..d0a413e5d 100644 --- a/win/C#/frmActivityWindow.cs +++ b/win/C#/frmActivityWindow.cs @@ -22,15 +22,23 @@ namespace Handbrake {
public partial class frmActivityWindow : Form
{
+
+ Thread monitorFile;
+ String read_file;
+ frmMain mainWindow;
+ frmQueue queueWindow;
+
/// <summary>
/// This window should be used to display the RAW output of the handbrake CLI which is produced during an encode.
/// </summary>
///
- Thread monitorFile;
- String read_file;
- public frmActivityWindow(string file)
+ public frmActivityWindow(string file, frmMain fm, frmQueue fq)
{
InitializeComponent();
+
+ mainWindow = fm;
+ queueWindow = fq;
+
this.rtf_actLog.Text = string.Empty;
read_file = file;
@@ -53,9 +61,11 @@ namespace Handbrake // Update the Activity window every 5 seconds with the latest log data.
private void autoUpdate(object state)
{
+ updateTextFromThread();
while (true)
{
- updateTextFromThread();
+ if ((mainWindow.isEncoding() == true) || (queueWindow.isEncoding() == true))
+ updateTextFromThread();
Thread.Sleep(5000);
}
}
@@ -125,5 +135,6 @@ namespace Handbrake this.Hide();
base.OnClosing(e);
}
+
}
}
\ No newline at end of file |