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/UCommThread.pas

    r407 r413  
    2828  { TCommThread }
    2929
    30   TCommThread = class
     30  TCommThread = class(TCommNode)
    3131  private
    3232    FActive: Boolean;
     
    4747    Pin: TCommPin;
    4848    property Active: Boolean read FActive write SetActive;
    49     constructor Create;
     49    constructor Create(AOwner: TComponent); override;
    5050    destructor Destroy; override;
    5151  end;
     
    103103end;
    104104
    105 constructor TCommThread.Create;
     105constructor TCommThread.Create(AOwner: TComponent);
    106106begin
    107   inherited Create;
     107  inherited;
    108108  FInputBuffer := TBinarySerializer.Create;
    109109  FInputBuffer.List := TListByte.Create;
     
    113113  Ext.OnReceive := ExtReceiveData;
    114114  Ext.OnSetSatus := ExtSetStatus;
     115  Ext.Node := Self;
    115116  Pin := TCommPin.Create;
    116117  Pin.OnReceive := PinReceiveData;
    117118  Pin.OnSetSatus := PinSetStatus;
     119  Pin.Node := Self;
    118120  FDataAvailable := TSimpleEvent.Create;
    119121  FStatusEvent := TSimpleEvent.Create;
Note: See TracChangeset for help on using the changeset viewer.