This commit is contained in:
@@ -135,6 +135,12 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
WordSectionDeleted(sender, args);
|
||||
}
|
||||
// if item pasted, have event to flag in other UI panels
|
||||
public event StepPanelItemPastedEvent ItemPasted;
|
||||
internal void OnItemPasted(object sender, vlnTreeItemInfoPasteEventArgs args)
|
||||
{
|
||||
ItemPasted(sender, args);
|
||||
}
|
||||
#endregion
|
||||
#region Link Events
|
||||
/// <summary>
|
||||
@@ -684,11 +690,11 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
// if on RNO, check display mode (1 column/2 column, etc) and how deep RNO is before going to
|
||||
// parents substeps.
|
||||
if (ii.IsRNO && ii.MyParent.Steps != null && ii.RNOLevel >= ii.ColumnMode) return BottomPart(ii.MyParent.Steps[0].LastSibling);
|
||||
if (ii.IsRNOPart && ii.MyParent.Steps != null && ii.RNOLevel >= ii.ColumnMode) return BottomPart(ii.MyParent.Steps[0].LastSibling);
|
||||
|
||||
// If on top note and parent has cautions - go to bottom caution
|
||||
if (ii.IsNoteStructure && ii.MyParent != null && ii.MyParent.Cautions != null) return BottomPart(ii.MyParent.Cautions[0].LastSibling);
|
||||
if (ii.IsCautionStructure || ii.IsNoteStructure)
|
||||
if (ii.IsFirstNotePart && ii.MyParent != null && ii.MyParent.Cautions != null) return BottomPart(ii.MyParent.Cautions[0].LastSibling);
|
||||
if (ii.IsFirstCautionPart || ii.IsFirstNotePart)
|
||||
{
|
||||
if (ii.MyParent.MyPrevious != null) return BottomPart(ii.MyParent.MyPrevious);
|
||||
return ii.MyParent.MyParent;
|
||||
@@ -728,9 +734,9 @@ namespace Volian.Controls.Library
|
||||
// TODO: RHM - NextItems was not null when it should have been after delete of a note below a caution
|
||||
if (ii.NextItems != null && ii.NextItemCount > 0) return TopPart(ii.NextItems[0]);
|
||||
// If on caution, if parent has note - go to note
|
||||
if (ii.IsCautionStructureFirstSib && ii.MyParent.Notes != null) return ii.MyParent.Notes[0];
|
||||
if (ii.IsCautionPart && ii.MyParent.Notes != null) return ii.MyParent.Notes[0];
|
||||
// If on caution, if parent !has note or if on note go to parent
|
||||
if ((ii.IsCautionStructureFirstSib && ii.MyParent.Notes == null) || ii.IsNoteStructureFirstSib) return ii.MyParent;
|
||||
if ((ii.IsCautionPart && ii.MyParent.Notes == null) || ii.IsNotePart) return ii.MyParent;
|
||||
// Recursively call with parent until at procedure
|
||||
if (!ii.IsProcedure) return (ArrowDown(ii.MyParent, false, ii.MyParent.RNOLevel==ii.RNOLevel));
|
||||
}
|
||||
@@ -1041,4 +1047,5 @@ namespace Volian.Controls.Library
|
||||
public delegate void StepPanelTabDisplayEvent(object sender, StepPanelTabDisplayEventArgs args);
|
||||
public delegate void StepPanelWordSectionCloseEvent(object sender, WordSectionEventArgs args);
|
||||
public delegate void StepPanelWordSectionDeletedEvent(object sender, WordSectionEventArgs args);
|
||||
public delegate void StepPanelItemPastedEvent(object sender, vlnTreeItemInfoPasteEventArgs args);
|
||||
}
|
||||
|
Reference in New Issue
Block a user