From: <avn...@us...> - 2008-01-16 17:13:42
|
Revision: 2826 http://urakawa.svn.sourceforge.net/urakawa/?rev=2826&view=rev Author: avneeshsingh Date: 2008-01-16 09:13:37 -0800 (Wed, 16 Jan 2008) Log Message: ----------- on the fly To do custom node marking added to transport bar Modified Paths: -------------- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs Modified: trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-01-16 07:18:59 UTC (rev 2825) +++ trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-01-16 17:13:37 UTC (rev 2826) @@ -1317,6 +1317,25 @@ EmptyNode.Kind.Custom, Localizer.Message("default_custom_class_name"))); } + public void MarkTodoClass() + { + EmptyNode node; + if (IsRecording) + { + node = mRecordingSection.PhraseChild(mRecordingSection.PhraseChildCount - 1); + mView.Presentation.UndoRedoManager.execute(new Commands.Node.ChangeCustomType(mView, node, + EmptyNode.Kind.Custom, Localizer.Message("CustomClass_Todo_Name"))); + NextPhrase(); + } + else + { + node = mView.SelectedNodeAs<EmptyNode>(); + mView.Presentation.UndoRedoManager.execute(new Commands.Node.ChangeCustomType(mView, node, + EmptyNode.Kind.Custom, Localizer.Message("CustomClass_Todo_Name"))); + } + } + + #endregion } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |