Ignore:
Timestamp:
Jun 24, 2023, 1:20:22 AM (17 months ago)
Author:
chronos
Message:
  • Added: Test form.
  • Added: Interface translation.
  • Added: Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/xpascal/Forms/FormMain.pas

    r225 r227  
    1414  TFormMain = class(TForm)
    1515    ACompile: TAction;
     16    ATest: TAction;
    1617    AGenerateXml: TAction;
    1718    AExit: TAction;
     
    2930    MenuItem6: TMenuItem;
    3031    MenuItem7: TMenuItem;
     32    MenuItem8: TMenuItem;
     33    MenuItem9: TMenuItem;
    3134    MenuItemRun: TMenuItem;
    3235    MenuItemGenerate: TMenuItem;
     
    4245    procedure AGeneratePhpExecute(Sender: TObject);
    4346    procedure AGenerateXmlExecute(Sender: TObject);
     47    procedure ATestExecute(Sender: TObject);
    4448    procedure FormCreate(Sender: TObject);
    4549    procedure Optimize(Features: TOptimizeFeatures);
     
    7175
    7276uses
    73   Parser, Executor, GeneratorPascal, GeneratorPhp,
     77  Parser, Executor, GeneratorPascal, GeneratorPhp, FormTests,
    7478  GeneratorCSharp, GeneratorXml, ParserPascal;
    7579
     
    9498  FreeAndNil(FormSource);
    9599  FreeAndNil(FormMessages);
     100  FreeAndNil(FormOutput);
    96101end;
    97102
     
    194199end;
    195200
     201procedure TFormMain.ATestExecute(Sender: TObject);
     202begin
     203  with TFormTests.Create(nil) do
     204  try
     205    ShowModal;
     206  finally
     207    Free;
     208  end;
     209end;
     210
    196211procedure TFormMain.FormCreate(Sender: TObject);
    197212begin
Note: See TracChangeset for help on using the changeset viewer.