summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-09-20 16:28:28 +0000
committersr55 <[email protected]>2008-09-20 16:28:28 +0000
commit31d2d388e9babad4a4260ee267b073adac41b1f1 (patch)
treed9eeac3bc269f505adf4633a41e5febb77e4d70c /win/C#/frmMain.cs
parentb9601981bb42dc82e5d49377fbc6c2de989973cb (diff)
WinGui:
- Removed Red Background colour on chapter selection dropdown menus. This is no longer needed. - Prevent the user from selecting an invalid combination of Chapters. e.g 12-5. Dropdowns now have the same behaviour as the macgui. - Fixed Start/Stop Tooltips on the mainwindow git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1736 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs50
1 files changed, 27 insertions, 23 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 092e9b7de..005ac9b6c 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -313,10 +313,9 @@ namespace Handbrake
lbl_encode.Text = "Encoding in Progress";
btn_start.Text = "Stop";
+ btn_start.ToolTipText = "Stop the encoding process. \nWarning: This may break your file. Press ctrl-c in the CLI window if you wish it to exit cleanly.";
btn_start.Image = Properties.Resources.stop;
}
-
-
}
private void btn_add2Queue_Click(object sender, EventArgs e)
{
@@ -506,36 +505,43 @@ namespace Handbrake
}
private void drop_chapterStart_SelectedIndexChanged(object sender, EventArgs e)
{
- calculateDuration();
+ int c_start, c_end = 1;
- drop_chapterStart.BackColor = Color.White;
- if ((drop_chapterFinish.Text != "Auto") && (drop_chapterStart.Text != "Auto"))
- {
- int chapterFinish, chapterStart = 0;
- int.TryParse(drop_chapterFinish.Text, out chapterFinish);
- int.TryParse(drop_chapterStart.Text, out chapterStart);
+ if (drop_chapterFinish.Text == "Auto" && drop_chapterFinish.Items.Count != 0)
+ drop_chapterFinish.SelectedIndex = drop_chapterFinish.Items.Count-1;
+
+ int.TryParse(drop_chapterStart.Text, out c_start);
+ int.TryParse(drop_chapterFinish.Text, out c_end);
- if (chapterFinish < chapterStart)
- drop_chapterStart.BackColor = Color.LightCoral;
+ if (c_end != 0)
+ {
+ if (c_start > c_end)
+ drop_chapterFinish.Text = c_start.ToString();
}
+
+ calculateDuration();
+
// Run the Autonaming function
hb_common_func.autoName(this);
}
private void drop_chapterFinish_SelectedIndexChanged(object sender, EventArgs e)
{
- calculateDuration();
+ int c_start, c_end = 1;
- drop_chapterFinish.BackColor = Color.White;
- if ((drop_chapterFinish.Text != "Auto") && (drop_chapterStart.Text != "Auto"))
- {
- int chapterFinish, chapterStart = 0;
- int.TryParse(drop_chapterFinish.Text, out chapterFinish);
- int.TryParse(drop_chapterStart.Text, out chapterStart);
+ if (drop_chapterStart.Text == "Auto" && drop_chapterStart.Items.Count >= 1)
+ drop_chapterStart.SelectedIndex = 1;
+
+ int.TryParse(drop_chapterStart.Text, out c_start);
+ int.TryParse(drop_chapterFinish.Text, out c_end);
- if (chapterFinish < chapterStart)
- drop_chapterFinish.BackColor = Color.LightCoral;
+ if (c_start != 0)
+ {
+ if (c_end < c_start)
+ drop_chapterFinish.Text = c_start.ToString();
}
+ calculateDuration();
+
// Run the Autonaming function
hb_common_func.autoName(this);
}
@@ -1846,6 +1852,7 @@ namespace Handbrake
}
lbl_encode.Text = "Encoding Finished";
btn_start.Text = "Start";
+ btn_start.ToolTipText = "Start the encoding process";
btn_start.Image = Properties.Resources.Play;
}
public Boolean isEncoding()
@@ -1894,9 +1901,6 @@ namespace Handbrake
}
#endregion
-
-
-
// This is the END of the road ------------------------------------------------------------------------------
}
} \ No newline at end of file