Ignore:
Timestamp:
Jun 16, 2023, 12:20:51 AM (17 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
Location:
branches/interpreter2/Forms
Files:
8 moved

Legend:

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

    r223 r224  
    1111  OnActivate = FormActivate
    1212  OnClose = FormClose
     13  OnCreate = FormCreate
    1314  OnDestroy = FormDestroy
    1415  OnShow = FormShow
    15   LCLVersion = '2.0.10.0'
     16  LCLVersion = '2.2.6.0'
    1617  object PanelMessages: TPanel
    1718    Left = 0
  • 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
  • branches/interpreter2/Forms/FormMessages.pas

    r223 r224  
    1 unit UFormMessages;
    2 
    3 {$mode delphi}
     1unit FormMessages;
    42
    53interface
     
    1513    Label1: TLabel;
    1614    MemoLog: TMemo;
    17   private
    18 
    1915  public
    2016    procedure Clear;
     
    2218  end;
    2319
    24 var
    25   FormMessages: TFormMessages;
    2620
    2721implementation
  • branches/interpreter2/Forms/FormOutput.pas

    r223 r224  
    1 unit UFormOutput;
    2 
    3 {$mode delphi}
     1unit FormOutput;
    42
    53interface
     
    2119    SynPHPSyn1: TSynPHPSyn;
    2220    SynXMLSyn1: TSynXMLSyn;
    23   private
    24 
    2521  public
    2622    procedure Clear;
     
    2824  end;
    2925
    30 var
    31   FormOutput: TFormOutput;
    3226
    3327implementation
  • branches/interpreter2/Forms/FormSource.pas

    r223 r224  
    1 unit UFormSource;
    2 
    3 {$mode delphi}
     1unit FormSource;
    42
    53interface
     
    1715    SynEditSource: TSynEdit;
    1816    SynFreePascalSyn1: TSynFreePascalSyn;
    19   private
    20 
    21   public
    22 
    2317  end;
    24 
    25 var
    26   FormSource: TFormSource;
    2718
    2819implementation
Note: See TracChangeset for help on using the changeset viewer.