Changeset 124 for branches/generator/Forms/UFormMain.pas
- Timestamp:
- Nov 29, 2017, 5:09:16 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormMain.pas
r123 r124 15 15 TFormMain = class(TForm) 16 16 ABuildCompiler: TAction; 17 AGrammerSettings: TAction; 17 18 ANew: TAction; 18 19 ASave: TAction; … … 28 29 MenuItem10: TMenuItem; 29 30 MenuItem11: TMenuItem; 31 MenuItem12: TMenuItem; 30 32 MenuItem2: TMenuItem; 31 33 MenuItem3: TMenuItem; … … 43 45 procedure ABuildCompilerExecute(Sender: TObject); 44 46 procedure AExitExecute(Sender: TObject); 47 procedure AGrammerSettingsExecute(Sender: TObject); 45 48 procedure ANewExecute(Sender: TObject); 46 49 procedure AOpenExecute(Sender: TObject); … … 66 69 67 70 uses 68 UFormRules, UCore ;71 UFormRules, UCore, UFormGrammer; 69 72 70 73 { TFormMain } … … 123 126 end; 124 127 128 procedure TFormMain.AGrammerSettingsExecute(Sender: TObject); 129 var 130 FormGrammer: TFormGrammer; 131 begin 132 FormGrammer := TFormGrammer.Create(nil); 133 FormGrammer.LoadData(Core.Grammer); 134 if FormGrammer.ShowModal = mrOk then begin 135 FormGrammer.SaveData(Core.Grammer); 136 end; 137 FreeAndNil(FormGrammer); 138 end; 139 125 140 procedure TFormMain.ANewExecute(Sender: TObject); 126 141 begin
Note:
See TracChangeset
for help on using the changeset viewer.