BGE: Save Change id on grid edit

BGE: Save Change id on step edit
BGE: Added user interface for modifying current change id
BGE: Added menu item for removing change ids (no supporting code yet – the actual code to remove ids needs to be developed)
BGE: If format uses ‘ChangeIds’, then use the data from the changed step config for printing the change bar data.
This commit is contained in:
2014-05-07 13:43:07 +00:00
parent b48a813a85
commit c0c9c8e314
7 changed files with 275 additions and 218 deletions

View File

@@ -663,6 +663,7 @@ namespace Volian.Controls.Library
MyStepRTB.SelectedText = "<BackSlash>";
}
SaveText();
MyStepRTB.Visible = true;
SaveConfig(); // This may be redundant
}
@@ -674,6 +675,14 @@ namespace Volian.Controls.Library
bool success = MyStepRTB.OrigDisplayText.Save((RichTextBox)MyStepRTB);
if (success)
{
// if the plant has the change id option, the change id was entered when the program started.
// this should be saved for every piece of edited data. Note that the set of config
// item Step_MultipleChangeID has the save built in to it.
if (MyStepRTB.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.ChgBarMessageFromEdit)
{
StepConfig sc = MyStepRTB.MyItemInfo.MyConfig as StepConfig;
sc.Step_ChangeID = this.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.ChgId;
}
MyStepRTB.FindAllLinks();
MyStepRTB.OrigRTF = MyStepRTB.Rtf;
MyStepRTB.ClearUndo();