Changeset 228 for branches/xpascal/Forms
- Timestamp:
- Jun 24, 2023, 12:33:35 PM (17 months ago)
- Location:
- branches/xpascal/Forms
- Files:
-
- 6 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/xpascal/Forms/FormMain.lfm
r227 r228 1 1 object FormMain: TFormMain 2 Left = 5152 Left = 482 3 3 Height = 993 4 Top = 674 Top = 205 5 5 Width = 1491 6 6 Caption = 'Interpreter' … … 10 10 Menu = MainMenu1 11 11 OnActivate = FormActivate 12 OnClose = FormClose13 12 OnCreate = FormCreate 14 13 OnDestroy = FormDestroy -
branches/xpascal/Forms/FormMain.pas
r227 r228 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Menus, 7 7 ActnList, ExtCtrls, SynHighlighterPas, SynEdit, Source, Optimizer, 8 Generator, FormSource, FormMessages, FormOutput ;8 Generator, FormSource, FormMessages, FormOutput, FormEx; 9 9 10 10 type … … 12 12 { TFormMain } 13 13 14 TFormMain = class(TForm )14 TFormMain = class(TFormEx) 15 15 ACompile: TAction; 16 16 ATest: TAction; … … 46 46 procedure AGenerateXmlExecute(Sender: TObject); 47 47 procedure ATestExecute(Sender: TObject); 48 procedure FormCreate(Sender: TObject);49 48 procedure Optimize(Features: TOptimizeFeatures); 50 49 procedure ARunExecute(Sender: TObject); 51 50 procedure FormActivate(Sender: TObject); 52 procedure FormC lose(Sender: TObject; var CloseAction: TCloseAction);51 procedure FormCreate(Sender: TObject); 53 52 procedure FormDestroy(Sender: TObject); 54 53 procedure FormShow(Sender: TObject); … … 75 74 76 75 uses 77 Parser, Executor, GeneratorPascal, GeneratorPhp, FormTests, 76 Parser, Executor, GeneratorPascal, GeneratorPhp, FormTests, Translator, 78 77 GeneratorCSharp, GeneratorXml, ParserPascal; 79 78 … … 89 88 end; 90 89 91 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);92 begin93 end;94 95 90 procedure TFormMain.FormDestroy(Sender: TObject); 96 91 begin 97 92 if Assigned(Prog) then FreeAndNil(Prog); 98 FreeAndNil(FormSource);99 FreeAndNil(FormMessages);100 FreeAndNil(FormOutput);93 if Assigned(FormSource) then FreeAndNil(FormSource); 94 if Assigned(FormMessages) then FreeAndNil(FormMessages); 95 if Assigned(FormOutput) then FreeAndNil(FormOutput); 101 96 end; 102 97 … … 211 206 procedure TFormMain.FormCreate(Sender: TObject); 212 207 begin 208 Translator.POFilesFolder := 'Languages;Packages/Common/Languages'; 209 Translator.Language := Translator.Languages.SearchByCode(''); 213 210 end; 214 211
Note:
See TracChangeset
for help on using the changeset viewer.