From: <avn...@us...> - 2008-05-22 19:45:28
|
Revision: 3097 http://urakawa.svn.sourceforge.net/urakawa/?rev=3097&view=rev Author: avneeshsingh Date: 2008-05-22 12:45:22 -0700 (Thu, 22 May 2008) Log Message: ----------- New To_do implementation works from front end. remaining work : make it work for transport bar and cleaning of old implementation. Modified Paths: -------------- trunk/urakawa/application/Obi/Obi/ObiForm.cs trunk/urakawa/application/Obi/Obi/ProjectView/StripsView.cs Modified: trunk/urakawa/application/Obi/Obi/ObiForm.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/ObiForm.cs 2008-05-22 19:09:54 UTC (rev 3096) +++ trunk/urakawa/application/Obi/Obi/ObiForm.cs 2008-05-22 19:45:22 UTC (rev 3097) @@ -1557,12 +1557,15 @@ } else { + mProjectView.ToggleEmptyNodeTo_DoMark(); + /* EmptyNode node = mProjectView.SelectedNodeAs<EmptyNode>(); if (node != null) { mProjectView.Presentation.getUndoRedoManager().execute(new Commands.Node.ChangeCustomType(mProjectView, node, EmptyNode.Kind.TODO)); } + */ } } Modified: trunk/urakawa/application/Obi/Obi/ProjectView/StripsView.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/ProjectView/StripsView.cs 2008-05-22 19:09:54 UTC (rev 3096) +++ trunk/urakawa/application/Obi/Obi/ProjectView/StripsView.cs 2008-05-22 19:45:22 UTC (rev 3097) @@ -945,7 +945,7 @@ { for (ObiNode n = mView.SelectedNodeAs<ObiNode>().FollowingNode; n != null; n = n.FollowingNode) { - if (n is EmptyNode && ((EmptyNode)n).NodeKind == EmptyNode.Kind.TODO) + if (n is EmptyNode && ((EmptyNode)n).IsTo_Do) { mView.Selection = new NodeSelection(n, this); return; @@ -954,7 +954,7 @@ } for (ObiNode n = mView.Presentation.RootNode.FirstLeaf; n != null; n = n.FollowingNode) { - if (n is EmptyNode && ((EmptyNode)n).NodeKind == EmptyNode.Kind.TODO) + if (n is EmptyNode && ((EmptyNode)n).IsTo_Do) { mView.Selection = new NodeSelection(n, this); return; @@ -971,7 +971,7 @@ { for (ObiNode n = mView.SelectedNodeAs<ObiNode>().PrecedingNode; n != null; n = n.PrecedingNode) { - if (n is EmptyNode && ((EmptyNode)n).NodeKind == EmptyNode.Kind.TODO) + if (n is EmptyNode && ((EmptyNode)n).IsTo_Do ) { mView.Selection = new NodeSelection(n, this); return; @@ -980,7 +980,7 @@ } for (ObiNode n = mView.Presentation.RootNode.LastLeaf; n != null; n = n.PrecedingNode) { - if (n is EmptyNode && ((EmptyNode)n).NodeKind == EmptyNode.Kind.TODO) + if (n is EmptyNode && ((EmptyNode)n).IsTo_Do) { mView.Selection = new NodeSelection(n, this); return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |