diff options
author | brianmario <[email protected]> | 2007-07-11 02:24:48 +0000 |
---|---|---|
committer | brianmario <[email protected]> | 2007-07-11 02:24:48 +0000 |
commit | 1f013f7fed5b0103afe4e33a860be91b2e94f660 (patch) | |
tree | 752287ade8c65dc22edac75af53d526081869d11 /win/C#/Parsing | |
parent | ec8aaeacdf2eebb162abb54f419035e10cdd2e73 (diff) |
updated some Form.Show calls to Form.ShowDialog
updating frmReadDVD to throw CLI call on it's own thread to prevent UI lockup
added ToString overrides in Parsing.AudioTrack, Parsing.Subtitle and Parsing.Title
misc interface/notification updates to frmReadDVD upon starting the scan process
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@671 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Parsing')
-rw-r--r-- | win/C#/Parsing/AudioTrack.cs | 5 | ||||
-rw-r--r-- | win/C#/Parsing/Subtitle.cs | 5 | ||||
-rw-r--r-- | win/C#/Parsing/Title.cs | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/win/C#/Parsing/AudioTrack.cs b/win/C#/Parsing/AudioTrack.cs index 6232da2a9..0f89d3d37 100644 --- a/win/C#/Parsing/AudioTrack.cs +++ b/win/C#/Parsing/AudioTrack.cs @@ -61,6 +61,11 @@ namespace Handbrake.Parsing }
}
+ public override string ToString()
+ {
+ return string.Format("{0} ({1}) ({2})", this.m_language, this.m_format, this.m_subFormat);
+ }
+
public static AudioTrack Parse(StreamReader output)
{
string curLine = output.ReadLine();
diff --git a/win/C#/Parsing/Subtitle.cs b/win/C#/Parsing/Subtitle.cs index a9c169ddc..ba037b545 100644 --- a/win/C#/Parsing/Subtitle.cs +++ b/win/C#/Parsing/Subtitle.cs @@ -25,6 +25,11 @@ namespace Handbrake.Parsing }
}
+ public override string ToString()
+ {
+ return this.m_language;
+ }
+
public static Subtitle Parse(StreamReader output)
{
string curLine = output.ReadLine();
diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs index 5df7a6bb4..99b32cd70 100644 --- a/win/C#/Parsing/Title.cs +++ b/win/C#/Parsing/Title.cs @@ -133,6 +133,12 @@ namespace Handbrake.Parsing this.m_cellRange = new int[2];
}
+ public override string ToString()
+ {
+ return string.Format("{0} - {1}h{2}m{3}s", this.m_titleNumber, this.m_duration.Hours,
+ this.m_duration.Minutes, this.m_duration.Seconds);
+ }
+
public static Title Parse(StreamReader output)
{
Title thisTitle = new Title();
|