[xiph-commits] r7987 - trunk/oggdsf/src/tools/DNPlay
illiminable at motherfish-iii.xiph.org
illiminable at motherfish-iii.xiph.org
Tue Oct 12 05:04:04 PDT 2004
Author: illiminable
Date: 2004-10-12 05:04:04 -0700 (Tue, 12 Oct 2004)
New Revision: 7987
Modified:
trunk/oggdsf/src/tools/DNPlay/frmDNPlay.cs
trunk/oggdsf/src/tools/DNPlay/frmDNPlay.resx
Log:
* Clear the text fields from the previous file, when opening a new one.
Modified: trunk/oggdsf/src/tools/DNPlay/frmDNPlay.cs
===================================================================
--- trunk/oggdsf/src/tools/DNPlay/frmDNPlay.cs 2004-10-12 11:46:07 UTC (rev 7986)
+++ trunk/oggdsf/src/tools/DNPlay/frmDNPlay.cs 2004-10-12 12:04:04 UTC (rev 7987)
@@ -45,9 +45,8 @@
private System.Windows.Forms.Button cmdFollowLink;
private System.Windows.Forms.Label lblAnchorLink;
private System.Windows.Forms.Label lblTitle;
- private System.Windows.Forms.Label label1;
protected HeadTag mHeadTag;
- private Int64 evCount;
+ //private Int64 evCount;
private Uri mBaseURI;
private String mFileName;
@@ -107,8 +106,8 @@
}
public bool eventNotification(Int32 inEventCode, Int32 inParam1, Int32 inParam2)
{
- evCount++;
- label1.Text = evCount.ToString();
+ //evCount++;
+ //label1.Text = evCount.ToString();
if (inEventCode == (long)eEventCodes.EC_COMPLETE)
{
tmrUpdateDuration.Enabled = false;
@@ -120,6 +119,7 @@
//Implementing IDNCMMLCallbacks
public bool clipCallback(ClipTag inClipTag)
{
+ MessageBox.Show("Clip Callback");
mCurrentClip = inClipTag;
lblClipDesc.Text = inClipTag.desc().text();
lblAnchorLink.Text = inClipTag.anchor().href();
@@ -127,7 +127,7 @@
}
public bool headCallback(HeadTag inHeadTag)
{
- //MessageBox.Show("Head callback");
+ MessageBox.Show("Head callback");
mHeadTag = inHeadTag;
if (mHeadTag != null)
{
@@ -180,7 +180,7 @@
cmdPlay.Enabled = false;
cmdPause.Enabled = false;
- evCount = 0;
+ //evCount = 0;
}
/// <summary>
@@ -228,7 +228,6 @@
this.cmdFollowLink = new System.Windows.Forms.Button();
this.lblAnchorLink = new System.Windows.Forms.Label();
this.lblTitle = new System.Windows.Forms.Label();
- this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// mainMenu1
@@ -381,9 +380,9 @@
//
// lblAnchorLink
//
- this.lblAnchorLink.Location = new System.Drawing.Point(56, 232);
+ this.lblAnchorLink.Location = new System.Drawing.Point(16, 232);
this.lblAnchorLink.Name = "lblAnchorLink";
- this.lblAnchorLink.Size = new System.Drawing.Size(248, 24);
+ this.lblAnchorLink.Size = new System.Drawing.Size(288, 24);
this.lblAnchorLink.TabIndex = 12;
//
// lblTitle
@@ -394,19 +393,10 @@
this.lblTitle.Size = new System.Drawing.Size(400, 16);
this.lblTitle.TabIndex = 13;
//
- // label1
- //
- this.label1.Location = new System.Drawing.Point(8, 264);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(112, 32);
- this.label1.TabIndex = 14;
- this.label1.Text = "label1";
- //
// frmDNPlay
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(416, 295);
- this.Controls.Add(this.label1);
+ this.ClientSize = new System.Drawing.Size(416, 271);
this.Controls.Add(this.lblTitle);
this.Controls.Add(this.lblAnchorLink);
this.Controls.Add(this.cmdFollowLink);
@@ -476,7 +466,10 @@
{
mFileName = inFileName;
lblFileLocation.Text = inFileName;
+ lblAnchorLink.Text = "";
+ lblClipDesc.Text = "";
+
//Set the base URI from the current file.
setBaseURIFromFullPath(inFileName);
Modified: trunk/oggdsf/src/tools/DNPlay/frmDNPlay.resx
===================================================================
--- trunk/oggdsf/src/tools/DNPlay/frmDNPlay.resx 2004-10-12 11:46:07 UTC (rev 7986)
+++ trunk/oggdsf/src/tools/DNPlay/frmDNPlay.resx 2004-10-12 12:04:04 UTC (rev 7987)
@@ -274,15 +274,6 @@
<data name="lblTitle.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Private</value>
</data>
- <data name="label1.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>False</value>
- </data>
- <data name="label1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>Private</value>
- </data>
- <data name="label1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
- <value>Private</value>
- </data>
<data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
@@ -295,12 +286,12 @@
<data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
- <data name="$this.Name">
- <value>frmDNPlay</value>
- </data>
<data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>8, 8</value>
</data>
+ <data name="$this.Name">
+ <value>frmDNPlay</value>
+ </data>
<data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</data>
More information about the commits
mailing list