diff options
author | sr55 <[email protected]> | 2008-03-18 16:35:28 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-03-18 16:35:28 +0000 |
commit | f63833727ecf1725bb36b5d6d7dfc1353259a0e8 (patch) | |
tree | 520ef582dc695072c6949f6f8142e2c91d0ea943 /win/C# | |
parent | 6449e976291b94d5bd70a7d2c0e74c5e722098c2 (diff) |
WinGui:
- Few bug fixes in the preset system
- File > open is now Import preset. Loads in old presets into the preset bar.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1345 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/Functions/Common.cs | 8 | ||||
-rw-r--r-- | win/C#/frmMain.Designer.cs | 11 | ||||
-rw-r--r-- | win/C#/frmMain.cs | 4 |
3 files changed, 15 insertions, 8 deletions
diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index 8d70523c3..7100eb58d 100644 --- a/win/C#/Functions/Common.cs +++ b/win/C#/Functions/Common.cs @@ -143,7 +143,7 @@ namespace Handbrake.Functions if (presetQuery.DVDChapterFinish != 0)
mainWindow.drop_chapterFinish.Text = presetQuery.DVDChapterFinish.ToString();
- if (presetQuery.Format != "")
+ if (presetQuery.Format != null)
{
string destination = mainWindow.text_destination.Text;
destination = destination.Replace(".mp4", "." + presetQuery.Format);
@@ -345,8 +345,10 @@ namespace Handbrake.Functions int totalChapters = mainWindow.drop_chapterFinish.Items.Count - 1;
string dvdChapter = "";
- if ((source != "") || (source != "Click 'Browse' to continue"))
+ if ((source != "") && (source.Trim() != "Click 'Browse' to continue"))
source = " -i " + '"' + source + '"';
+ else
+ source = "";
if (dvdTitle == "Automatic")
dvdTitle = "";
@@ -738,7 +740,7 @@ namespace Handbrake.Functions if (mainWindow.Check_ChapterMarkers.Checked)
{
- if (source_name.Trim().Replace("-i ", "") != "Click \'Browse\' to continue")
+ if ((source_name.Trim().Replace("-i ", "") != "Click 'Browse' to continue") && (source_name.Trim().Replace("-i ", "") != ""))
{
if (source_title != "Automatic")
{
diff --git a/win/C#/frmMain.Designer.cs b/win/C#/frmMain.Designer.cs index 331271fe0..f722d180e 100644 --- a/win/C#/frmMain.Designer.cs +++ b/win/C#/frmMain.Designer.cs @@ -760,8 +760,8 @@ namespace Handbrake this.mnu_open.ImageTransparentColor = System.Drawing.Color.Magenta;
this.mnu_open.Name = "mnu_open";
this.mnu_open.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
- this.mnu_open.Size = new System.Drawing.Size(201, 22);
- this.mnu_open.Text = "&Open Preset";
+ this.mnu_open.Size = new System.Drawing.Size(210, 22);
+ this.mnu_open.Text = "&Import Preset";
this.mnu_open.Click += new System.EventHandler(this.mnu_open_Click);
//
// mnu_save
@@ -770,19 +770,20 @@ namespace Handbrake this.mnu_save.ImageTransparentColor = System.Drawing.Color.Magenta;
this.mnu_save.Name = "mnu_save";
this.mnu_save.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
- this.mnu_save.Size = new System.Drawing.Size(201, 22);
+ this.mnu_save.Size = new System.Drawing.Size(210, 22);
this.mnu_save.Text = "&Save Preset";
+ this.mnu_save.Visible = false;
this.mnu_save.Click += new System.EventHandler(this.mnu_save_Click);
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
- this.toolStripSeparator2.Size = new System.Drawing.Size(198, 6);
+ this.toolStripSeparator2.Size = new System.Drawing.Size(207, 6);
//
// mnu_exit
//
this.mnu_exit.Name = "mnu_exit";
- this.mnu_exit.Size = new System.Drawing.Size(201, 22);
+ this.mnu_exit.Size = new System.Drawing.Size(210, 22);
this.mnu_exit.Text = "E&xit";
this.mnu_exit.Click += new System.EventHandler(this.mnu_exit_Click);
//
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index b83137278..a9ddbbd0e 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -195,6 +195,10 @@ namespace Handbrake // Close the stream
line.Close();
+
+ Form preset = new frmAddPreset(this);
+ preset.ShowDialog();
+
}
catch (Exception exc)
{
|