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:
parent
ce2f89f848
commit
c72522730c
@ -3073,7 +3073,7 @@ namespace VEPROMS
|
|||||||
if (_LastStepRTB != null)
|
if (_LastStepRTB != null)
|
||||||
{
|
{
|
||||||
infotabRO.Visible = _LastStepRTB.MyItemInfo.MyDocVersion.DocVersionAssociationCount > 0;
|
infotabRO.Visible = _LastStepRTB.MyItemInfo.MyDocVersion.DocVersionAssociationCount > 0;
|
||||||
infotabTransition.Visible = true;
|
infotabTransition.Visible = !_CurrentItem.IsFigure;
|
||||||
displayRO.Enabled = _LastStepRTB.EditMode || _LastStepRTB.IsRoTable;
|
displayRO.Enabled = _LastStepRTB.EditMode || _LastStepRTB.IsRoTable;
|
||||||
displayTransition.Enabled = _LastStepRTB.EditMode;
|
displayTransition.Enabled = _LastStepRTB.EditMode;
|
||||||
}
|
}
|
||||||
|
@ -990,6 +990,13 @@ namespace Volian.Controls.Library
|
|||||||
btnInsNote.Enabled = true;
|
btnInsNote.Enabled = true;
|
||||||
btnInsCaut.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 in Calvert Alarms Condition/Response, disable insert of Cautions and Notes
|
||||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
|
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
|
||||||
btnInsCaut.Enabled = btnInsNote.Enabled = btnCMInsCaution.Enabled = btnCMInsNote.Enabled = setting && !MyItemInfo.IsInCalvertConditionResponse;
|
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 (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);
|
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 in Calvert Alarms Condition/Response, disable insert of Cautions and Notes
|
||||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
|
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user