Added Express format flag; adjust tabs/indents for section, subsection, step and substeps; flag warnings as separate from notes & make boxes different between Notes/Cautions/Warnings
Proms Express: Adjust PrintLevel (of steps) for tabs Proms Express: Added Express flag Proms Express: Put out message when user adds substep that is greater than a level of 4 Proms Express: If a section doesn’t have text & in Proms Express, don’t put out ‘No Section Content’ message
This commit is contained in:
@@ -1227,7 +1227,8 @@ namespace Volian.Controls.Library
|
||||
// if (rno is enabled, set the tag:
|
||||
if (btnInsRNO.Enabled)
|
||||
btnInsRNO.Tag = string.Format("{0} {1}", (int)E_FromTypes.RNOs, MyEditItem.MyItemInfo.ActiveFormat.PlantFormat.FormatData.GetIndexFromType("RNOType"));
|
||||
|
||||
// Proms Express/Message when substep level > 4 may have reset tooltip, so reset:
|
||||
if (btnInsSubstep.Enabled) this.superTooltipRibbon.SetSuperTooltip(this.btnInsSubstep, new DevComponents.DotNetBar.SuperTooltipInfo("Insert Substep [Ctrl] [Shift] [S]", "", "", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
|
||||
// add subitems depending on whether parent type is enabled:
|
||||
if (btnInsHLS.Enabled) GalleryForSubTypes(MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList.HLS, sd, btnInsHLS, 0, btnCMInsHLS, docontextmenus);
|
||||
if (btnInsCaut.Enabled) GalleryForSubTypes(MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList.Caution, sd, btnInsCaut, (int)E_FromType.Caution, btnCMInsCaution, docontextmenus);
|
||||
@@ -1386,6 +1387,13 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
|
||||
}
|
||||
// If in Proms Express, let user know if they are going to create a new substep deeper than 4 levels. This uses the
|
||||
// tool tip to display the message.
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.Express && btn.Name == "btnInsSubstep" && (MyItemInfo.Steps == null || MyItemInfo.Steps.Count == 0))
|
||||
{
|
||||
if (MyItemInfo.GetStepLevel() >= 4)
|
||||
this.superTooltipRibbon.SetSuperTooltip(this.btnInsSubstep, new DevComponents.DotNetBar.SuperTooltipInfo("Per PPA WG Standard If the task exceeds four step levels, consider rewriting the task.", "", "", null, null, DevComponents.DotNetBar.eTooltipColor.Red));
|
||||
}
|
||||
rbnStepParts.Refresh();
|
||||
}
|
||||
|
||||
@@ -2239,6 +2247,9 @@ namespace Volian.Controls.Library
|
||||
moveDown = cnt;
|
||||
cnt++;
|
||||
}
|
||||
// If in Proms Express, let user know if they are going to create a new substep deeper than 4 levels:
|
||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.Express && MyItemInfo.GetStepLevel() >= 4)
|
||||
MessageBox.Show("Per PPA WG Standard If the task exceeds four step levels, consider rewriting the task.", "Warning...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
break;
|
||||
case "InsCaution":
|
||||
displayMenu = ((actable & E_AccStep.AddingCaution) > 0) && btnCMInsCaution.Enabled;
|
||||
|
Reference in New Issue
Block a user