Hide the Step Properties Transition tab when on a Figure substep (B2014-093)

Disable the Transition, Hard Space, Symbol, and Indent buttons on the Insert Ribbon when on a Figure substep (B2014-093)
This commit is contained in:
John Jenko 2016-04-12 17:43:09 +00:00
parent ce2f89f848
commit c72522730c
2 changed files with 10 additions and 2 deletions

View File

@ -3073,7 +3073,7 @@ namespace VEPROMS
if (_LastStepRTB != null)
{
infotabRO.Visible = _LastStepRTB.MyItemInfo.MyDocVersion.DocVersionAssociationCount > 0;
infotabTransition.Visible = true;
infotabTransition.Visible = !_CurrentItem.IsFigure;
displayRO.Enabled = _LastStepRTB.EditMode || _LastStepRTB.IsRoTable;
displayTransition.Enabled = _LastStepRTB.EditMode;
}

View File

@ -990,6 +990,13 @@ namespace Volian.Controls.Library
btnInsNote.Enabled = true;
btnInsCaut.Enabled = true;
}
if (MyItemInfo.IsFigure)
{
btnInsTrans.Enabled = btnCMTransition.Enabled = false;
btnCMSymbol.Enabled = btnSymbols.Enabled = false;
btnCMHardSpace.Enabled = btnInsHrdSpc.Enabled = false;
btnIndent.Enabled = false;
}
// if in Calvert Alarms Condition/Response, disable insert of Cautions and Notes
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
btnInsCaut.Enabled = btnInsNote.Enabled = btnCMInsCaution.Enabled = btnCMInsNote.Enabled = setting && !MyItemInfo.IsInCalvertConditionResponse;
@ -1407,7 +1414,8 @@ namespace Volian.Controls.Library
if (btnInsSubstep.Enabled) GalleryForSubTypes(MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList.Substep, sd, btnInsSubstep, (int)E_FromType.Step, btnCMInsSubStps, docontextmenus);
if (btnInsRNO.Enabled) GalleryForSubTypes(MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList.RNO, sd, btnInsRNO, 0, btnCMInsRNO, docontextmenus);
btnInsTrans.Enabled = btnCMTransition.Enabled = btnInsRO.Enabled = btnCMRO.Enabled = true;
btnInsTrans.Enabled = btnCMTransition.Enabled = !MyItemInfo.IsFigure;
btnInsRO.Enabled = btnCMRO.Enabled = true;
// if in Calvert Alarms Condition/Response, disable insert of Cautions and Notes
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)