Ignore:
Timestamp:
Jun 16, 2023, 12:20:51 AM (17 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 moved

Legend:

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

    r223 r224  
    1 unit UFormMain;
    2 
    3 {$mode delphi}{$H+}
     1unit FormMain;
    42
    53interface
    64
    75uses
    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;
    119
    1210type
     
    4442    procedure AGeneratePhpExecute(Sender: TObject);
    4543    procedure AGenerateXmlExecute(Sender: TObject);
     44    procedure FormCreate(Sender: TObject);
    4645    procedure Optimize(Features: TOptimizeFeatures);
    4746    procedure ARunExecute(Sender: TObject);
     
    5352    Prog: TProgram;
    5453    Initialized: Boolean;
     54    FormSource: TFormSource;
     55    FormMessages: TFormMessages;
     56    FormOutput: TFormOutput;
    5557    procedure Generate(GeneratorClass: TGeneratorClass);
    5658    procedure ExecutorOutput(Text: string);
     
    5860    procedure UpdateInterface;
    5961    procedure DockForm(Form: TForm; DockSite: TWinControl);
    60   public
    61 
    6262  end;
    6363
     
    7171
    7272uses
    73   UParser, UExecutor, UGeneratorPascal, UGeneratorPhp, UFormMessages, UFormSource,
    74   UGeneratorCSharp, UGeneratorXml, UFormOutput, UParserPascal;
     73  Parser, Executor, GeneratorPascal, GeneratorPhp,
     74  GeneratorCSharp, GeneratorXml, ParserPascal;
    7575
    7676{ TFormMain }
     
    9393begin
    9494  if Assigned(Prog) then FreeAndNil(Prog);
     95  FreeAndNil(FormSource);
     96  FreeAndNil(FormMessages);
    9597end;
    9698
    9799procedure TFormMain.FormShow(Sender: TObject);
    98100begin
     101  FormMessages := TFormMessages.Create(nil);
     102  FormMessages.Show;
    99103  DockForm(FormMessages, PanelMessages);
     104  FormSource := TFormSource.Create(nil);
     105  FormSource.Show;
    100106  DockForm(FormSource, PanelSource);
     107  FormOutput := TFormOutput.Create(nil);
     108  FormOutput.Show;
    101109  DockForm(FormOutput, PanelOutput);
    102110  UpdateInterface;
     
    184192end;
    185193
     194procedure TFormMain.FormCreate(Sender: TObject);
     195begin
     196end;
     197
    186198procedure TFormMain.Optimize(Features: TOptimizeFeatures);
    187199var
Note: See TracChangeset for help on using the changeset viewer.