summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-08-19 13:27:27 +0000
committersr55 <[email protected]>2009-08-19 13:27:27 +0000
commiteb400c89a2c419b8a886ce25dc4f0de18c515ad0 (patch)
tree9620f27d7ccba5b9bb39880c11a2e051ed47db31 /win/C#/frmMain.cs
parent3b4e2879eb8e8c96285bac452a1be865977bba1e (diff)
WinGui:
- Further improvements to Chapter Marker tab usability, including a reset chapter marker names option on a right click menu. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2768 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs23
1 files changed, 16 insertions, 7 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index b80ae3b10..c0008185d 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -1011,13 +1011,18 @@ namespace Handbrake
// Disable chapter markers if only 1 chapter is selected.
if (chapterStart == chapterEnd)
{
- btn_importChapters.Enabled = false;
Check_ChapterMarkers.Enabled = false;
+ btn_importChapters.Enabled = false;
+ data_chpt.Enabled = false;
}
else
{
- btn_importChapters.Enabled = true;
Check_ChapterMarkers.Enabled = true;
+ if (Check_ChapterMarkers.Checked)
+ {
+ btn_importChapters.Enabled = true;
+ data_chpt.Enabled = true;
+ }
}
}
@@ -1334,18 +1339,13 @@ namespace Handbrake
{
if (drop_format.SelectedIndex != 1)
setExtension(".m4v");
- data_chpt.Rows.Clear();
data_chpt.Enabled = true;
btn_importChapters.Enabled = true;
- DataGridView chapterGridView = Main.chapterNaming(data_chpt, drop_chapterFinish.Text);
- if (chapterGridView != null)
- data_chpt = chapterGridView;
}
else
{
if (drop_format.SelectedIndex != 1 && !Properties.Settings.Default.useM4v)
setExtension(".mp4");
- data_chpt.Rows.Clear();
data_chpt.Enabled = false;
btn_importChapters.Enabled = false;
}
@@ -1360,6 +1360,15 @@ namespace Handbrake
data_chpt = imported;
}
}
+ private void mnu_resetChapters_Click(object sender, EventArgs e)
+ {
+ data_chpt.Rows.Clear();
+ DataGridView chapterGridView = Main.chapterNaming(data_chpt, drop_chapterFinish.Text);
+ if (chapterGridView != null)
+ {
+ data_chpt = chapterGridView;
+ }
+ }
// Query Editor Tab
private void btn_generate_Query_Click(object sender, EventArgs e)