Changeset 123 for branches/generator/Forms
- Timestamp:
- Nov 29, 2017, 3:45:03 PM (7 years ago)
- Location:
- branches/generator/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormMain.pas
r119 r123 52 52 private 53 53 procedure ReloadMemo; 54 procedure UpdateInterface; 54 55 public 55 56 { public declarations } … … 85 86 if SaveDialog1.Execute then begin 86 87 Core.Grammer.SaveToXmlFile(SaveDialog1.FileName); 88 UpdateInterface; 87 89 end; 88 90 end; … … 91 93 begin 92 94 Core.Grammer.SaveToXmlFile(Core.Grammer.FileName); 95 UpdateInterface; 93 96 end; 94 97 … … 102 105 Core.PersistentForm1.Load(Self, True); 103 106 ReloadMemo; 107 UpdateInterface; 104 108 end; 105 109 … … 107 111 begin 108 112 MemoBNF.Lines.Text := Core.Grammer.GetString; 113 end; 114 115 procedure TFormMain.UpdateInterface; 116 begin 117 Caption := Core.Grammer.FileName + ' - ' + Application.Title; 109 118 end; 110 119 … … 118 127 Core.Grammer.Rules.Clear; 119 128 ReloadMemo; 129 UpdateInterface; 120 130 end; 121 131 … … 131 141 Core.Grammer.LoadFromXmlFile(OpenDialog1.FileName); 132 142 ReloadMemo; 143 UpdateInterface; 133 144 end; 134 145 end; -
branches/generator/Forms/UFormRule.pas
r120 r123 43 43 44 44 implementation 45 46 uses47 UCore;48 45 49 46 {$R *.lfm} -
branches/generator/Forms/UFormRuleItem.lfm
r122 r123 159 159 end 160 160 object CheckBoxRepetitive: TCheckBox 161 Left = 336161 Left = 216 162 162 Height = 24 163 163 Top = 56 … … 166 166 TabOrder = 5 167 167 end 168 object CheckBoxAnyExcept: TCheckBox 169 Left = 400 170 Height = 24 171 Top = 56 172 Width = 97 173 Caption = 'Any except' 174 TabOrder = 6 175 end 168 176 end -
branches/generator/Forms/UFormRuleItem.pas
r122 r123 16 16 ButtonCancel: TButton; 17 17 ButtonOk: TButton; 18 CheckBoxAnyExcept: TCheckBox; 18 19 CheckBoxOptional: TCheckBox; 19 20 CheckBoxRepetitive: TCheckBox; … … 134 135 CheckBoxOptional.Checked := RuleItem.Optional; 135 136 CheckBoxRepetitive.Checked := RuleItem.Repetitive; 137 CheckBoxAnyExcept.Checked := RuleItem.AnyExcept; 136 138 TFormRuleItems(FormRuleItems).LoadData(RuleItem.SubItems); 137 139 UpdateInterface; … … 150 152 RuleItem.Optional := CheckBoxOptional.Checked; 151 153 RuleItem.Repetitive := CheckBoxRepetitive.Checked; 154 RuleItem.AnyExcept := CheckBoxAnyExcept.Checked; 152 155 end; 153 156
Note:
See TracChangeset
for help on using the changeset viewer.