Changeset 224 for branches/interpreter2/Forms/FormMain.pas
- Timestamp:
- Jun 16, 2023, 12:20:51 AM (17 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.