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

    r407 r413  
    1010type
    1111  TCommPin = class;
     12  TCommNode = class;
    1213
    1314  TDataDiretion = (ddReceive, ddSend);
     
    3536  public
    3637    RemotePin: TCommPin;
     38    Node: TCommNode;
    3739    constructor Create;
    3840    destructor Destroy; override;
     
    5254  end;
    5355
     56  { TCommNode }
     57
     58  TCommNode = class(TComponent)
     59  private
     60    FActive: Boolean;
     61  protected
     62    procedure SetActive(AValue: Boolean); virtual;
     63  public
     64    property Active: Boolean read FActive write SetActive;
     65  end;
     66
    5467
    5568implementation
     69
     70{ TCommNode }
     71
     72procedure TCommNode.SetActive(AValue: Boolean);
     73begin
     74  if FActive = AValue then Exit;
     75  FActive := AValue;
     76end;
    5677
    5778{ TCommPin }
Note: See TracChangeset for help on using the changeset viewer.