Exemplo n.º 1
0
 public override void Execute()
 {
     mParent.Insert(mNode, mIndex);
     if (AllowRoleChangeAccordingToSurroundingSpecialNodes)
     {
         AssignRole.AssignRoleToEmptyNodeSurroundedByCustomRoles(mNode);
     }
     if (UpdateSelection)
     {
         View.Selection = mSelection;
     }
     TriggerProgressChanged();
 }
Exemplo n.º 2
0
 // Perform a split given a time and a node with no audio, optionally updating the selection in the view afterward.
 public static void Split(ProjectView.ProjectView view, PhraseNode node, PhraseNode nodeAfter, Time splitTime,
                          bool updateSelection, bool allowSpecialRoleMarkForSurrounding)
 {
     nodeAfter.Audio = node.SplitAudio(splitTime);
     node.InsertAfterSelf(nodeAfter);
     if (allowSpecialRoleMarkForSurrounding)
     {
         AssignRole.AssignRoleToEmptyNodeSurroundedByCustomRoles(nodeAfter);
     }
     if (updateSelection)
     {
         view.SelectedBlockNode = nodeAfter;
     }
     view.UpdateBlocksLabelInStrip(node.AncestorAs <SectionNode>());
 }
Exemplo n.º 3
0
 public override void Execute()
 {
     mParent.Insert(mCopy, mIndex);
     if (AllowRoleChangeAccordingToSurroundingSpecialNodes)
     {
         AssignRole.AssignRoleToEmptyNodeSurroundedByCustomRoles(mCopy);
     }
     if (UpdateSelection)
     {
         View.Selection = mSelection;
     }
     if (mParent != null && mParent is SectionNode)
     {
         View.UpdateBlocksLabelInStrip((SectionNode)mParent);
     }
 }