Changeset 52
- Timestamp:
- Jun 25, 2012, 2:07:44 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Target/Interpretter/UTargetInterpretter.pas
r51 r52 6 6 7 7 uses 8 Classes, SysUtils, UTarget, UExecutor, USourceCode, Dialogs ;8 Classes, SysUtils, UTarget, UExecutor, USourceCode, Dialogs, SpecializedList; 9 9 10 10 type … … 20 20 TExecutorInterpretter = class(TExecutor) 21 21 private 22 //procedure SystemAdd(FunctionCall: TFunctionCall); 23 //procedure SystemSub(FunctionCall: TFunctionCall); 24 //procedure SystemMove(FunctionCall: TFunctionCall); 25 //procedure SystemFillChar(FunctionCall: TFunctionCall); 26 22 27 procedure RunCommand(Command: TCommand); 23 28 procedure RunBeginEnd(BeginEnd: TBeginEnd); … … 31 36 function Evaluate(Expression: TExpression): Boolean; 32 37 public 38 Variables: TListObject; 33 39 procedure Run; override; 40 constructor Create; 41 destructor Destroy; override; 34 42 end; 35 43 … … 127 135 procedure TExecutorInterpretter.Run; 128 136 begin 129 ShowMessage(TModuleProgram(TCompiler(TTarget(Target).Compiler).Analyzer.ProgramCode.MainModule).Name);130 137 with TModuleProgram(TCompiler(TTarget(Target).Compiler).Analyzer.ProgramCode.MainModule) do begin 131 138 RunBeginEnd(Body.Code); 132 139 end; 140 end; 141 142 constructor TExecutorInterpretter.Create; 143 begin 144 Variables := TListObject.Create; 145 end; 146 147 destructor TExecutorInterpretter.Destroy; 148 begin 149 Variables.Free; 150 inherited Destroy; 133 151 end; 134 152 -
trunk/IDE/Forms/UFormMain.lfm
r50 r52 15 15 OnShow = FormShow 16 16 Position = poDesktopCenter 17 LCLVersion = ' 0.9.31'17 LCLVersion = '1.1' 18 18 object Splitter3: TSplitter 19 19 Cursor = crVSplit -
trunk/IDE/Forms/UFormMain.pas
r51 r52 155 155 procedure MenuItemTargetClick(Sender: TObject); 156 156 procedure OpenRecentClick(Sender: TObject); 157 procedure LastOpenedFilesChange(Sender: TObject); 157 158 procedure DockInit; 158 159 procedure LoadFromRegistry(Root: HKEY; Key: string); … … 494 495 end; 495 496 LastOpenedFiles.SaveToRegistry(RegistryRootKey, Key + '\LastOpenedFiles'); 496 LastOpenedFiles.ReloadMenu;497 497 Compiler.SaveToRegistry(RegistryRootKey, Key + '\Compiler'); 498 498 end; … … 503 503 Project.LoadFromFile(FileName); 504 504 LastOpenedFiles.AddItem(FileName); 505 LastOpenedFiles.ReloadMenu;506 505 UpdateInterface; 507 506 end; … … 554 553 ProjectTemplates := TProjectTemplateList.Create; 555 554 TargetProject := TProject.Create; 556 LastOpenedFiles := TLastOpenedList.Create ;557 LastOpenedFiles. MenuItem := MenuItemOpenRecent;555 LastOpenedFiles := TLastOpenedList.Create(nil); 556 LastOpenedFiles.OnChange := LastOpenedFilesChange; 558 557 LastOpenedFiles.ClickAction := OpenRecentClick; 559 558 end; … … 587 586 end; 588 587 588 procedure TFormMain.LastOpenedFilesChange(Sender: TObject); 589 begin 590 LastOpenedFiles.LoadToMenuItem(MenuItemOpenRecent); 591 end; 592 589 593 procedure TFormMain.FormShow(Sender: TObject); 590 594 var … … 595 599 ProjectTemplatesInit; 596 600 597 if ReopenLastOpenedFile and (LastOpenedFiles. Count > 0) then begin598 ProjectOpen(LastOpenedFiles [0]);601 if ReopenLastOpenedFile and (LastOpenedFiles.Items.Count > 0) then begin 602 ProjectOpen(LastOpenedFiles.Items[0]); 599 603 end; 600 604 … … 661 665 UpdateInterface; 662 666 LastOpenedFiles.AddItem(SaveDialog1.FileName); 663 LastOpenedFiles.ReloadMenu;664 667 end; 665 668 end; -
trunk/IDE/Transpascal.lpi
r50 r52 83 83 <Item1> 84 84 <PackageName Value="Common"/> 85 <MinVersion Minor=" 5" Valid="True"/>85 <MinVersion Minor="7" Valid="True"/> 86 86 </Item1> 87 87 <Item2> … … 217 217 <IsPartOfProject Value="True"/> 218 218 <ComponentName Value="FormTargetProject"/> 219 <HasResources Value="True"/> 219 220 <ResourceBaseClass Value="Form"/> 220 221 <UnitName Value="UFormTargetProject"/> -
trunk/IDE/UApplicationInfo.pas
r45 r52 53 53 Name := 'Transpascal IDE'; 54 54 Identification := 1; 55 ReleaseDate := EncodeDate(2012, 3, 4);55 ReleaseDate := EncodeDate(2012, 6, 25); 56 56 MajorVersion := 0; 57 57 MinorVersion := 1;
Note:
See TracChangeset
for help on using the changeset viewer.