Changeset 52 for trunk


Ignore:
Timestamp:
Jun 25, 2012, 2:07:44 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package to version 0.7.
Location:
trunk
Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/Target/Interpretter/UTargetInterpretter.pas

    r51 r52  
    66
    77uses
    8   Classes, SysUtils, UTarget, UExecutor, USourceCode, Dialogs;
     8  Classes, SysUtils, UTarget, UExecutor, USourceCode, Dialogs, SpecializedList;
    99
    1010type
     
    2020  TExecutorInterpretter = class(TExecutor)
    2121  private
     22    //procedure SystemAdd(FunctionCall: TFunctionCall);
     23    //procedure SystemSub(FunctionCall: TFunctionCall);
     24    //procedure SystemMove(FunctionCall: TFunctionCall);
     25    //procedure SystemFillChar(FunctionCall: TFunctionCall);
     26
    2227    procedure RunCommand(Command: TCommand);
    2328    procedure RunBeginEnd(BeginEnd: TBeginEnd);
     
    3136    function Evaluate(Expression: TExpression): Boolean;
    3237  public
     38    Variables: TListObject;
    3339    procedure Run; override;
     40    constructor Create;
     41    destructor Destroy; override;
    3442  end;
    3543
     
    127135procedure TExecutorInterpretter.Run;
    128136begin
    129   ShowMessage(TModuleProgram(TCompiler(TTarget(Target).Compiler).Analyzer.ProgramCode.MainModule).Name);
    130137  with TModuleProgram(TCompiler(TTarget(Target).Compiler).Analyzer.ProgramCode.MainModule) do begin
    131138    RunBeginEnd(Body.Code);
    132139  end;
     140end;
     141
     142constructor TExecutorInterpretter.Create;
     143begin
     144  Variables := TListObject.Create;
     145end;
     146
     147destructor TExecutorInterpretter.Destroy;
     148begin
     149  Variables.Free;
     150  inherited Destroy;
    133151end;
    134152
  • trunk/IDE/Forms/UFormMain.lfm

    r50 r52  
    1515  OnShow = FormShow
    1616  Position = poDesktopCenter
    17   LCLVersion = '0.9.31'
     17  LCLVersion = '1.1'
    1818  object Splitter3: TSplitter
    1919    Cursor = crVSplit
  • trunk/IDE/Forms/UFormMain.pas

    r51 r52  
    155155    procedure MenuItemTargetClick(Sender: TObject);
    156156    procedure OpenRecentClick(Sender: TObject);
     157    procedure LastOpenedFilesChange(Sender: TObject);
    157158    procedure DockInit;
    158159    procedure LoadFromRegistry(Root: HKEY; Key: string);
     
    494495    end;
    495496  LastOpenedFiles.SaveToRegistry(RegistryRootKey, Key + '\LastOpenedFiles');
    496   LastOpenedFiles.ReloadMenu;
    497497  Compiler.SaveToRegistry(RegistryRootKey, Key + '\Compiler');
    498498end;
     
    503503  Project.LoadFromFile(FileName);
    504504  LastOpenedFiles.AddItem(FileName);
    505   LastOpenedFiles.ReloadMenu;
    506505  UpdateInterface;
    507506end;
     
    554553  ProjectTemplates := TProjectTemplateList.Create;
    555554  TargetProject := TProject.Create;
    556   LastOpenedFiles := TLastOpenedList.Create;
    557   LastOpenedFiles.MenuItem := MenuItemOpenRecent;
     555  LastOpenedFiles := TLastOpenedList.Create(nil);
     556  LastOpenedFiles.OnChange := LastOpenedFilesChange;
    558557  LastOpenedFiles.ClickAction := OpenRecentClick;
    559558end;
     
    587586end;
    588587
     588procedure TFormMain.LastOpenedFilesChange(Sender: TObject);
     589begin
     590  LastOpenedFiles.LoadToMenuItem(MenuItemOpenRecent);
     591end;
     592
    589593procedure TFormMain.FormShow(Sender: TObject);
    590594var
     
    595599  ProjectTemplatesInit;
    596600
    597   if ReopenLastOpenedFile and (LastOpenedFiles.Count > 0) then begin
    598     ProjectOpen(LastOpenedFiles[0]);
     601  if ReopenLastOpenedFile and (LastOpenedFiles.Items.Count > 0) then begin
     602    ProjectOpen(LastOpenedFiles.Items[0]);
    599603  end;
    600604
     
    661665    UpdateInterface;
    662666    LastOpenedFiles.AddItem(SaveDialog1.FileName);
    663     LastOpenedFiles.ReloadMenu;
    664667  end;
    665668end;
  • trunk/IDE/Transpascal.lpi

    r50 r52  
    8383      <Item1>
    8484        <PackageName Value="Common"/>
    85         <MinVersion Minor="5" Valid="True"/>
     85        <MinVersion Minor="7" Valid="True"/>
    8686      </Item1>
    8787      <Item2>
     
    217217        <IsPartOfProject Value="True"/>
    218218        <ComponentName Value="FormTargetProject"/>
     219        <HasResources Value="True"/>
    219220        <ResourceBaseClass Value="Form"/>
    220221        <UnitName Value="UFormTargetProject"/>
  • trunk/IDE/UApplicationInfo.pas

    r45 r52  
    5353  Name := 'Transpascal IDE';
    5454  Identification := 1;
    55   ReleaseDate := EncodeDate(2012, 3, 4);
     55  ReleaseDate := EncodeDate(2012, 6, 25);
    5656  MajorVersion := 0;
    5757  MinorVersion := 1;
Note: See TracChangeset for help on using the changeset viewer.