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

    r407 r413  
    2323  { TCommHub }
    2424
    25   TCommHub = class
     25  TCommHub = class(TCommNode)
    2626  private
    2727    FActive: Boolean;
     
    3030    procedure SetStatus(Sender: TCommPin; Status: Integer);
    3131  public
    32     constructor Create;
     32    constructor Create(AOwner: TComponent); override;
    3333    destructor Destroy; override;
    3434    property Pins: TPinList read FPins write FPins;
     
    5050begin
    5151  Result := TCommPin(Items[Add(TCommPin.Create)]);
     52  Result.Node := Hub;
    5253end;
    5354
     
    9293end;
    9394
    94 constructor TCommHub.Create;
     95constructor TCommHub.Create(AOwner: TComponent);
    9596begin
     97  inherited;
    9698  FPins := TPinList.Create;
    9799  FPins.Hub := Self;
Note: See TracChangeset for help on using the changeset viewer.