Changeset 124 for branches/generator/Forms
- Timestamp:
- Nov 29, 2017, 5:09:16 PM (7 years ago)
- Location:
- branches/generator/Forms
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormMain.lfm
r119 r124 80 80 Action = ASaveAs 81 81 end 82 object MenuItem12: TMenuItem 83 Action = AGrammerSettings 84 end 82 85 object MenuItem6: TMenuItem 83 86 Caption = '-' … … 143 146 OnExecute = ANewExecute 144 147 end 148 object AGrammerSettings: TAction 149 Caption = 'Settings' 150 OnExecute = AGrammerSettingsExecute 151 end 145 152 end 146 153 object OpenDialog1: TOpenDialog -
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 -
branches/generator/Forms/UFormRuleItem.pas
r123 r124 100 100 ritNonTerminal: ListBox1.SetFocus; 101 101 ritSubItems: TFormRuleItems(FormRuleItems).ListView1.SetFocus; 102 ritTerminalRange: EditTerminalFrom.SetFocus; 102 103 end; 103 104 end;
Note:
See TracChangeset
for help on using the changeset viewer.