diff options
author | sr55 <[email protected]> | 2008-12-16 18:01:48 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-12-16 18:01:48 +0000 |
commit | 89b5566c50b3f19c760351845a85c3efa4afe10f (patch) | |
tree | a53adf8349e8da34b95f2c61c90d1f9c09b67195 /win/C#/frmMain.cs | |
parent | c26a35a7b7a5839946123c9670aac337c8bcf518 (diff) |
WinGui:
- Preview Generator Window. Can generate previews form 5 to 60 seconds long. Will launch VLC (from a user specified (in options) install path) to play back the clip.
Note: Clip duration is currently waiting for a patch to the CLI, so this part won't work yet.
- Experimental in-gui VLC media player via ActiveX. (This causes a Blue Screen of Death (See comments in code), however if anyone can fix this and submit a patch, id be grateful) Alternative suggestions welcome!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2036 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 0f2d4dfae..adbe7c269 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -36,6 +36,7 @@ namespace Handbrake // Globals: Mainly used for tracking.
private frmQueue queueWindow;
+ private frmGenPreview preview;
private string lastAction = null;
public int maxWidth = 0;
public int maxHeight = 0;
@@ -499,6 +500,26 @@ namespace Handbrake queueWindow.setQueue(encodeQueue);
queueWindow.Show();
}
+ private void btn_vidPreview_Click(object sender, EventArgs e)
+ {
+ if (text_source.Text == "" || text_source.Text == "Click 'Source' to continue" || text_destination.Text == "")
+ MessageBox.Show("No source OR destination selected.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ else
+ {
+ if (preview == null)
+ {
+ preview = new frmGenPreview(this);
+ preview.Show();
+ }
+ else if (preview.IsDisposed)
+ {
+ preview = new frmGenPreview(this);
+ preview.Show();
+ }
+ else
+ MessageBox.Show("The preview window is already open!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
+ }
private void btn_ActivityWindow_Click(object sender, EventArgs e)
{
String file = String.Empty;
@@ -1926,7 +1947,6 @@ namespace Handbrake treeView_presets.Nodes.Add(rootNode);
}
-
// User Presets
presetNames = presetHandler.getUserPresetNames();
foreach (string preset in presetNames)
|