Changeset 127 for branches/generator/Forms
- Timestamp:
- Nov 30, 2017, 5:19:57 PM (7 years ago)
- Location:
- branches/generator/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormMain.lfm
r126 r127 5 5 Width = 1050 6 6 Caption = 'Language generator' 7 ClientHeight = 6 447 ClientHeight = 653 8 8 ClientWidth = 1050 9 9 Menu = MainMenu1 … … 11 11 OnCloseQuery = FormCloseQuery 12 12 OnShow = FormShow 13 LCLVersion = '1. 8.0.4'13 LCLVersion = '1.6.4.0' 14 14 object MemoBNF: TMemo 15 15 Left = 0 16 Height = 6 0916 Height = 618 17 17 Top = 35 18 18 Width = 1050 … … 39 39 Height = 22 40 40 Top = 5 41 Width = 4741 Width = 124 42 42 Align = alNone 43 43 AutoSize = True 44 44 BorderSpacing.Left = 22 45 45 BorderSpacing.Top = 3 46 Caption = 'ToolBar1'47 46 EdgeInner = esNone 48 47 EdgeOuter = esNone … … 53 52 Transparent = True 54 53 object ToolButton1: TToolButton 55 Left = 154 Left = 78 56 55 Top = 0 57 56 Action = ARules 58 57 end 59 58 object ToolButton2: TToolButton 59 Left = 101 60 Top = 0 61 Action = ABuildCompiler 62 end 63 object ToolButton3: TToolButton 64 Left = 1 65 Top = 0 66 Action = AProjectNew 67 end 68 object ToolButton4: TToolButton 60 69 Left = 24 61 70 Top = 0 62 Action = ABuildCompiler 71 Action = AProjectOpen 72 end 73 object ToolButton5: TToolButton 74 Left = 47 75 Top = 0 76 Action = AProjectSave 77 end 78 object ToolButton6: TToolButton 79 Left = 70 80 Height = 22 81 Top = 0 82 Width = 8 83 Caption = 'ToolButton6' 84 Style = tbsSeparator 63 85 end 64 86 end … … 66 88 object MainMenu1: TMainMenu 67 89 Images = Core.ImageList1 68 left = 3 1290 left = 304 69 91 top = 229 70 92 object MenuItem2: TMenuItem … … 161 183 end 162 184 object OpenDialog1: TOpenDialog 185 DefaultExt = '.grm' 186 Filter = 'Grammer (.grm)|*.grm|All files|*.*' 163 187 left = 748 164 188 top = 188 165 189 end 166 190 object SaveDialog1: TSaveDialog 191 DefaultExt = '.grm' 192 Filter = 'Grammer (.grm)|*.grm|All files|*.*' 167 193 left = 587 168 194 top = 414 -
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.