From: <mar...@us...> - 2006-07-21 22:44:20
|
Revision: 632 Author: marisademeglio Date: 2006-07-21 15:44:10 -0700 (Fri, 21 Jul 2006) ViewCVS: http://svn.sourceforge.net/urakawa/?rev=632&view=rev Log Message: ----------- Added some vaguely useful debug.print statements Modified Paths: -------------- trunk/urakawa/application/Obi/Obi/Project.cs trunk/urakawa/application/Obi/Obi/UserControls/ProjectPanel.cs trunk/urakawa/application/Obi/Obi/UserControls/TOCPanel.cs Modified: trunk/urakawa/application/Obi/Obi/Project.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/Project.cs 2006-07-21 15:43:31 UTC (rev 631) +++ trunk/urakawa/application/Obi/Obi/Project.cs 2006-07-21 22:44:10 UTC (rev 632) @@ -350,6 +350,7 @@ public void CreateSiblingSectionRequested(object sender, Events.Node.AddSiblingSectionEventArgs e) { + System.Diagnostics.Debug.WriteLine("create sibling request from " + sender.ToString() + " with hash: " + sender.GetHashCode()); CreateSiblingSection(sender, e.ContextNode); } Modified: trunk/urakawa/application/Obi/Obi/UserControls/ProjectPanel.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/UserControls/ProjectPanel.cs 2006-07-21 15:43:31 UTC (rev 631) +++ trunk/urakawa/application/Obi/Obi/UserControls/ProjectPanel.cs 2006-07-21 22:44:10 UTC (rev 632) @@ -33,6 +33,7 @@ mTOCPanel.AddSiblingSection += new Events.Node.AddSiblingSectionHandler(mProject.CreateSiblingSectionRequested); mProject.AddedSiblingNode += new Events.Sync.AddedSiblingNodeHandler(mTOCPanel.SyncAddedSiblingNode); mProject.AddedSiblingNode += new Events.Sync.AddedSiblingNodeHandler(mStripManagerPanel.SyncAddedSiblingNode); + mTOCPanel.AddChildSection += new Events.Node.AddChildSectionHandler(mProject.CreateChildSectionRequested); mProject.AddedChildNode += new Events.Sync.AddedChildNodeHandler(mTOCPanel.SyncAddedChildNode); mProject.AddedChildNode += new Events.Sync.AddedChildNodeHandler(mStripManagerPanel.SyncAddedChildNode); Modified: trunk/urakawa/application/Obi/Obi/UserControls/TOCPanel.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/UserControls/TOCPanel.cs 2006-07-21 15:43:31 UTC (rev 631) +++ trunk/urakawa/application/Obi/Obi/UserControls/TOCPanel.cs 2006-07-21 22:44:10 UTC (rev 632) @@ -381,6 +381,8 @@ /// </summary> internal void addSectionAtSameLevelToolStripMenuItem_Click(object sender, EventArgs e) { + System.Diagnostics.Debug.WriteLine("TOC panel click!\n"); + AddSiblingSection(this, new Events.Node.AddSiblingSectionEventArgs(GetSelectedSection())); } @@ -555,6 +557,9 @@ { System.Windows.Forms.TreeNode newTreeNode; string label = Project.GetTextMedia(e.Node).getText(); + + System.Diagnostics.Debug.WriteLine("TocPanel: SyncAddedChildNode -- " + label); + if (e.Node.getParent().getParent() != null) { System.Windows.Forms.TreeNode relTreeNode = findTreeNodeFromCoreNode((CoreNode)e.Node.getParent()); @@ -573,8 +578,12 @@ internal void SyncAddedSiblingNode(object sender, Events.Sync.AddedSiblingNodeEventArgs e) { + System.Windows.Forms.TreeNode relTreeNode = findTreeNodeFromCoreNode(e.ContextNode); string label = Project.GetTextMedia(e.Node).getText(); + + System.Diagnostics.Debug.WriteLine("TocPanel: SyncAddedSiblingNode -- " + label); + //add as a sibling System.Windows.Forms.TreeNodeCollection siblingCollection = null; if (relTreeNode.Parent != null) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |