Changeset 224 for branches/interpreter2/Forms
- Timestamp:
- Jun 16, 2023, 12:20:51 AM (17 months ago)
- Location:
- branches/interpreter2/Forms
- Files:
-
- 8 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/interpreter2/Forms/FormMain.lfm
r223 r224 11 11 OnActivate = FormActivate 12 12 OnClose = FormClose 13 OnCreate = FormCreate 13 14 OnDestroy = FormDestroy 14 15 OnShow = FormShow 15 LCLVersion = '2. 0.10.0'16 LCLVersion = '2.2.6.0' 16 17 object PanelMessages: TPanel 17 18 Left = 0 -
branches/interpreter2/Forms/FormMain.pas
r223 r224 1 unit UFormMain; 2 3 {$mode delphi}{$H+} 1 unit FormMain; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,Menus,9 ActnList, ExtCtrls, SynHighlighterPas, SynEdit, USource, UOptimizer,10 UGenerator;6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Menus, 7 ActnList, ExtCtrls, SynHighlighterPas, SynEdit, Source, Optimizer, 8 Generator, FormSource, FormMessages, FormOutput; 11 9 12 10 type … … 44 42 procedure AGeneratePhpExecute(Sender: TObject); 45 43 procedure AGenerateXmlExecute(Sender: TObject); 44 procedure FormCreate(Sender: TObject); 46 45 procedure Optimize(Features: TOptimizeFeatures); 47 46 procedure ARunExecute(Sender: TObject); … … 53 52 Prog: TProgram; 54 53 Initialized: Boolean; 54 FormSource: TFormSource; 55 FormMessages: TFormMessages; 56 FormOutput: TFormOutput; 55 57 procedure Generate(GeneratorClass: TGeneratorClass); 56 58 procedure ExecutorOutput(Text: string); … … 58 60 procedure UpdateInterface; 59 61 procedure DockForm(Form: TForm; DockSite: TWinControl); 60 public61 62 62 end; 63 63 … … 71 71 72 72 uses 73 UParser, UExecutor, UGeneratorPascal, UGeneratorPhp, UFormMessages, UFormSource,74 UGeneratorCSharp, UGeneratorXml, UFormOutput, UParserPascal;73 Parser, Executor, GeneratorPascal, GeneratorPhp, 74 GeneratorCSharp, GeneratorXml, ParserPascal; 75 75 76 76 { TFormMain } … … 93 93 begin 94 94 if Assigned(Prog) then FreeAndNil(Prog); 95 FreeAndNil(FormSource); 96 FreeAndNil(FormMessages); 95 97 end; 96 98 97 99 procedure TFormMain.FormShow(Sender: TObject); 98 100 begin 101 FormMessages := TFormMessages.Create(nil); 102 FormMessages.Show; 99 103 DockForm(FormMessages, PanelMessages); 104 FormSource := TFormSource.Create(nil); 105 FormSource.Show; 100 106 DockForm(FormSource, PanelSource); 107 FormOutput := TFormOutput.Create(nil); 108 FormOutput.Show; 101 109 DockForm(FormOutput, PanelOutput); 102 110 UpdateInterface; … … 184 192 end; 185 193 194 procedure TFormMain.FormCreate(Sender: TObject); 195 begin 196 end; 197 186 198 procedure TFormMain.Optimize(Features: TOptimizeFeatures); 187 199 var -
branches/interpreter2/Forms/FormMessages.pas
r223 r224 1 unit UFormMessages; 2 3 {$mode delphi} 1 unit FormMessages; 4 2 5 3 interface … … 15 13 Label1: TLabel; 16 14 MemoLog: TMemo; 17 private18 19 15 public 20 16 procedure Clear; … … 22 18 end; 23 19 24 var25 FormMessages: TFormMessages;26 20 27 21 implementation -
branches/interpreter2/Forms/FormOutput.pas
r223 r224 1 unit UFormOutput; 2 3 {$mode delphi} 1 unit FormOutput; 4 2 5 3 interface … … 21 19 SynPHPSyn1: TSynPHPSyn; 22 20 SynXMLSyn1: TSynXMLSyn; 23 private24 25 21 public 26 22 procedure Clear; … … 28 24 end; 29 25 30 var31 FormOutput: TFormOutput;32 26 33 27 implementation -
branches/interpreter2/Forms/FormSource.pas
r223 r224 1 unit UFormSource; 2 3 {$mode delphi} 1 unit FormSource; 4 2 5 3 interface … … 17 15 SynEditSource: TSynEdit; 18 16 SynFreePascalSyn1: TSynFreePascalSyn; 19 private20 21 public22 23 17 end; 24 25 var26 FormSource: TFormSource;27 18 28 19 implementation
Note:
See TracChangeset
for help on using the changeset viewer.