B2024-019 - BNPP - Allow the use to select a sub-step that has a bullet instead of a number/letter step tab, when using the {Step Text} transitions. Also don’t show any Tables in the tree view to select the step to link to.
This commit is contained in:
@@ -199,9 +199,12 @@ namespace VEPROMS.CSLA.Library
|
||||
LoadChildren(true);
|
||||
}
|
||||
private bool _allParts = true;
|
||||
public virtual void LoadChildren(bool allParts)
|
||||
private bool _excludeTablesFigsEqu = false; // used for inserting Step Text transitions (BNPP)
|
||||
public virtual void LoadChildren(bool allParts, bool excldTablesFigEq = false)
|
||||
{
|
||||
_allParts = allParts;
|
||||
// B2024-019 don't show Tables, Figures, or Equations in step tree when inserting Text Transitions
|
||||
_excludeTablesFigsEqu = excldTablesFigEq;
|
||||
if (!_ChildrenLoaded)
|
||||
{
|
||||
this.Nodes.Clear();
|
||||
@@ -262,6 +265,10 @@ namespace VEPROMS.CSLA.Library
|
||||
if (!skipIt)
|
||||
{
|
||||
VETreeNode tmp = new VETreeNode(o, _allParts);
|
||||
// B2024-019 don't show Tables, Figures, or Equations in step tree when inserting Text Transitions
|
||||
bool isTableFigEqu = tmp.Text.Equals("Table") ||
|
||||
tmp.Text.Equals("Figure") ||
|
||||
tmp.Text.Equals("Equation");
|
||||
if (o.HasChildren)
|
||||
{
|
||||
if (o is PartInfo)
|
||||
@@ -279,7 +286,8 @@ namespace VEPROMS.CSLA.Library
|
||||
tmp._ChildrenLoaded = true;// Reset the children loaded flag
|
||||
if (lastWasSection)
|
||||
this.Nodes.Insert(0, tmp);
|
||||
else
|
||||
// B2024-019 don't show Tables, Figures, or Equations in step tree when inserting Text Transitions
|
||||
else if (!_excludeTablesFigsEqu || !isTableFigEqu)
|
||||
this.Nodes.Add(tmp);
|
||||
// if last thing was section & this is step, do insert - i.e. so that steps go before sections.
|
||||
lastWasSection = (o is PartInfo && (o as PartInfo).PartType == E_FromType.Section);
|
||||
|
Reference in New Issue
Block a user