Changeset 127 for branches/generator/Forms/UFormMain.pas
- Timestamp:
- Nov 30, 2017, 5:19:57 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormMain.pas
r126 r127 45 45 ToolButton1: TToolButton; 46 46 ToolButton2: TToolButton; 47 ToolButton3: TToolButton; 48 ToolButton4: TToolButton; 49 ToolButton5: TToolButton; 50 ToolButton6: TToolButton; 47 51 procedure ABuildCompilerExecute(Sender: TObject); 48 52 procedure AExitExecute(Sender: TObject); … … 78 82 SUnsavedChanges = 'Unsaved changes'; 79 83 SDoYouWantToSaveProject = 'There are unsaved changes in project. Do you want to save them?'; 80 SNewGrammer = 'New grammer. xtg';84 SNewGrammer = 'New grammer.grm'; 81 85 82 86 { TFormMain } … … 96 100 procedure TFormMain.AProjectSaveAsExecute(Sender: TObject); 97 101 begin 98 SaveDialog1.FileName := Core.Grammer.FileName; 102 SaveDialog1.InitialDir := ExtractFileDir(Core.Grammer.FileName); 103 SaveDialog1.FileName := ExtractFileName(Core.Grammer.FileName); 99 104 if SaveDialog1.Execute then begin 100 105 Core.LastOpenedFile := SaveDialog1.FileName; … … 192 197 AProjectClose.Execute; 193 198 if not Assigned(Core.Grammer) then begin 194 OpenDialog1.FileName := Core.LastOpenedFile; 199 OpenDialog1.InitialDir := ExtractFileDir(Core.LastOpenedFile); 200 OpenDialog1.FileName := ExtractFileName(Core.LastOpenedFile); 195 201 if OpenDialog1.Execute then begin 196 202 Core.LastOpenedFile := OpenDialog1.FileName;
Note:
See TracChangeset
for help on using the changeset viewer.