Ignore:
Timestamp:
Aug 16, 2012, 12:59:53 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Classes using TCommPin class now inherits from TCommNode which inherits from TComponent. All TCommNodes are now registred as components in PinConnection group on component palette.
  • Modified: TCommPin now have reference to parent TCommNode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UPacketBurst.pas

    r407 r413  
    1919  { TPacketBurst }
    2020
    21   TPacketBurst = class
     21  TPacketBurst = class(TCommNode)
    2222  private
    2323    FActive: Boolean;
     
    3636    PacketBurstPin: TCommPin;
    3737    destructor Destroy; override;
    38     constructor Create;
     38    constructor Create(AOwner: TComponent); override;
    3939    property Active: Boolean read FActive write SetActive;
    4040  end;
     
    4444{ TSerialPort }
    4545
    46 constructor TPacketBurst.Create;
     46constructor TPacketBurst.Create(AOwner: TComponent);
    4747begin
     48  inherited;
    4849  PacketSinglePin := TCommPin.Create;
    4950  PacketSinglePin.OnReceive := PacketSingleReceive;
     51  PacketSinglePin.Node := Self;
    5052  PacketBurstPin := TCommPin.Create;
    5153  PacketBurstPin.OnReceive := PacketBurstReceive;
     54  PacketBurstPin.Node := Self;
    5255  SendThreadEvent := TSimpleEvent.Create;
    5356  SendPeriod := 1;
Note: See TracChangeset for help on using the changeset viewer.