Ignore:
Timestamp:
Aug 10, 2010, 10:14:57 AM (15 years ago)
Author:
george
Message:

Project renamed to Transpascal.
Added support for generatin cycle For-to-do.
Added support for parsing and generating structured types as record and array.
Emit procedure in TProducerPascal and TProducerC reworked.

Location:
branches/DelphiToC/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DelphiToC/Forms/UMainForm.lfm

    r52 r53  
    11object MainForm: TMainForm
    2   Left = 176
     2  Left = 141
    33  Height = 498
    4   Top = 77
     4  Top = 105
    55  Width = 881
    6   Caption = 'Pascal Compiler AVR'
     6  Caption = 'Transpascal '
    77  ClientHeight = 498
    88  ClientWidth = 881
     
    1515  Position = poDesktopCenter
    1616  LCLVersion = '0.9.29'
    17   object Button1: TButton
    18     Left = 800
     17  object ButtonCompile: TButton
     18    Left = 801
    1919    Height = 22
    2020    Top = 401
     
    2222    Anchors = [akRight, akBottom]
    2323    Caption = 'Kompilovat'
    24     OnClick = Button1Click
     24    Font.Height = -11
     25    Font.Name = 'Tahoma'
     26    OnClick = ButtonCompileClick
     27    ParentFont = False
    2528    TabOrder = 0
    2629  end
  • branches/DelphiToC/Forms/UMainForm.pas

    r52 r53  
    1818
    1919  TMainForm = class(TForm)
    20     Button1: TButton;
     20    ButtonCompile: TButton;
    2121    ComboBox1: TComboBox;
    2222    ListBox1: TListBox;
     
    2727    procedure FormShow(Sender: TObject);
    2828    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    29     procedure Button1Click(Sender: TObject);
     29    procedure ButtonCompileClick(Sender: TObject);
    3030    procedure FormCreate(Sender: TObject);
    3131    procedure FormDestroy(Sender: TObject);
     
    4848{ TMainForm }
    4949
    50 procedure TMainForm.Button1Click(Sender: TObject);
     50procedure TMainForm.ButtonCompileClick(Sender: TObject);
    5151var
    5252  I: Integer;
     
    6464    ProducerControl.Parent := Panel1;
    6565    ProducerControl.Align := alClient;
     66    ProducerControl.Font.Name := 'Courier New';
     67    TMemo(ProducerControl).ScrollBars := ssAutoBoth;
    6668    with TProducerPascal(Compiler.Producer) do
    6769      TMemo(ProducerControl).Lines.Assign(TextSource);
     
    7577    ProducerControl.Parent := Panel1;
    7678    ProducerControl.Align := alClient;
     79    ProducerControl.Font.Name := 'Courier New';
     80    TMemo(ProducerControl).ScrollBars := ssAutoBoth;
    7781    with TProducerC(Compiler.Producer) do
    7882      TMemo(ProducerControl).Lines.Assign(TextSource);
     
    8690    ProducerControl.Parent := Panel1;
    8791    ProducerControl.Align := alClient;
     92    ProducerControl.Font.Name := 'Courier New';
     93    TMemo(ProducerControl).ScrollBars := ssAutoBoth;
    8894    with TProducerAsm8051(Compiler.Producer) do
    8995    for I := 0 to AssemblyCode.Count - 1 do
     
    143149  WindowState := wsMaximized;
    144150  SynEdit1.Lines.LoadFromFile(ExampleFileName);
    145   Button1Click(Self);
     151  ButtonCompileClick(Self);
    146152end;
    147153
    148154procedure TMainForm.ComboBox1Change(Sender: TObject);
    149155begin
    150   Button1Click(Self);
     156  ButtonCompileClick(Self);
    151157end;
    152158
Note: See TracChangeset for help on using the changeset viewer.