summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-08-02 14:48:07 +0000
committersr55 <[email protected]>2009-08-02 14:48:07 +0000
commit6f76fa075fe26dbb103c945cdbd55719379f88a4 (patch)
tree513b1778be69ec236b695fe0b9bd7fcc9f27be78 /win/C#/frmMain.cs
parent156bb687bd00bec7c8ac5b27363c5efb27e2626c (diff)
WinGui:
- Fix subtitle offset control. Was limited to 100. Changed increment to 10ms jumps. - Added Import CSV function for the chapter markers tab. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2746 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 97f2cb500..a28597c55 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -1341,6 +1341,7 @@ namespace Handbrake
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;
@@ -1351,6 +1352,17 @@ namespace Handbrake
setExtension(".mp4");
data_chpt.Rows.Clear();
data_chpt.Enabled = false;
+ btn_importChapters.Enabled = false;
+ }
+ }
+ private void btn_importChapters_Click(object sender, EventArgs e)
+ {
+ if (File_ChapterImport.ShowDialog() == DialogResult.OK)
+ {
+ String filename = File_ChapterImport.FileName;
+ DataGridView imported = Main.importChapterNames(data_chpt, filename);
+ if (imported != null)
+ data_chpt = imported;
}
}