Changeset 414
- Timestamp:
- Aug 17, 2012, 9:53:11 AM (12 years ago)
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Generic/GenericList.inc
r405 r414 86 86 property Items[Index: TGListIndex]: TGListItem read Get write Put; default; 87 87 property Last: TGListItem read GetLast write SetLast; 88 property OnUpdate: TNotifyEvent read FOnUpdate write FOnUpdate; 88 89 end; 89 90 -
ISPProgrammer/PRESTO/UPresto.pas
r370 r414 402 402 constructor TPrestoProgrammer.Create; 403 403 begin 404 inherited Create;404 inherited; 405 405 Capabilities := [ipcErase, ipcWrite, ipcReset]; 406 406 Presto := TPresto.Create; … … 414 414 destructor TPrestoProgrammer.Destroy; 415 415 begin 416 Presto.Free;417 inherited Destroy;416 FreeAndNil(Presto); 417 inherited; 418 418 end; 419 419 -
ISPProgrammer/UISPProgrammer.pas
r413 r414 138 138 begin 139 139 Active := False; 140 ExtPin.Free;141 HexFile.Free;140 FreeAndNil(ExtPin); 141 FreeAndNil(HexFile); 142 142 inherited Destroy; 143 143 end; -
PinConnection/UCommConcentrator.pas
r413 r414 40 40 property Pins: TPinList read FPins write FPins; 41 41 property Main: TCommPin read FMain write FMain; 42 property Active: Boolean read FActive write FActive;43 42 end; 44 43 … … 122 121 destructor TCommConcentrator.Destroy; 123 122 begin 124 FActive := False;125 F Pins.Free;126 F Main.Free;123 Active := False; 124 FreeAndNil(FPins); 125 FreeAndNil(FMain); 127 126 inherited Destroy; 128 127 end; -
PinConnection/UCommDelay.pas
r413 r414 35 35 TCommDelay = class(TCommNode) 36 36 private 37 FActive: Boolean;38 37 FDelay: TDateTime; 39 38 PacketQueue1: TListObject; // TListObject<TDelayedPacket> … … 43 42 procedure ReceiveData1(Sender: TCommPin; AStream: TListByte); 44 43 procedure ReceiveData2(Sender: TCommPin; AStream: TListByte); 45 procedure SetActive(AValue: Boolean); 44 protected 45 procedure SetActive(const AValue: Boolean); override; 46 46 public 47 47 Lock1: TCriticalSection; … … 52 52 destructor Destroy; override; 53 53 property Delay: TDateTime read FDelay write FDelay; 54 property Active: Boolean read FActive write SetActive;55 54 end; 56 55 … … 141 140 end; 142 141 143 procedure TCommDelay.SetActive( AValue: Boolean);142 procedure TCommDelay.SetActive(const AValue: Boolean); 144 143 begin 145 144 if FActive = AValue then Exit; … … 167 166 FreeAndNil(Thread2); 168 167 end; 168 inherited; 169 169 end; 170 170 -
PinConnection/UCommHub.pas
r413 r414 25 25 TCommHub = class(TCommNode) 26 26 private 27 FActive: Boolean;28 27 FPins: TPinList; 29 28 procedure Receive(Sender: TCommPin; Stream: TListByte); … … 33 32 destructor Destroy; override; 34 33 property Pins: TPinList read FPins write FPins; 35 property Active: Boolean read FActive write FActive;36 34 end; 37 35 … … 103 101 begin 104 102 Active := False; 105 F Pins.Free;106 inherited Destroy;103 FreeAndNil(FPins); 104 inherited; 107 105 end; 108 106 -
PinConnection/UCommMark.pas
r413 r414 14 14 TCommMark = class(TCommNode) 15 15 private 16 FActive: Boolean;17 16 FMarkIndex: Integer; 18 17 FFrameData: TListByte; … … 21 20 procedure FrameDataReceive(Sender: TCommPin; Stream: TListByte); 22 21 procedure FrameSetStatus(Sender: TCommPin; Status: Integer); 23 procedure SetActive(AValue: Boolean); 22 protected 23 procedure SetActive(const AValue: Boolean); override; 24 24 public 25 25 PinRaw: TCommPin; … … 29 29 constructor Create(AOwner: TComponent); override; 30 30 destructor Destroy; override; 31 property Active: Boolean read FActive write SetActive;32 31 end; 33 32 … … 75 74 end; 76 75 77 procedure TCommMark.SetActive( AValue: Boolean);76 procedure TCommMark.SetActive(const AValue: Boolean); 78 77 begin 79 78 if FActive = AValue then Exit; 80 79 FActive := AValue; 81 80 if FActive then Reset; 81 inherited; 82 82 end; 83 83 -
PinConnection/UCommPin.pas
r413 r414 58 58 TCommNode = class(TComponent) 59 59 private 60 protected 60 61 FActive: Boolean; 61 protected 62 procedure SetActive(AValue: Boolean); virtual; 62 procedure SetActive(const AValue: Boolean); virtual; 63 63 public 64 64 property Active: Boolean read FActive write SetActive; … … 70 70 { TCommNode } 71 71 72 procedure TCommNode.SetActive( AValue: Boolean);72 procedure TCommNode.SetActive(const AValue: Boolean); 73 73 begin 74 74 if FActive = AValue then Exit; -
PinConnection/UCommSerialPort.pas
r413 r414 19 19 procedure ReceiveData(Stream: TListByte); 20 20 protected 21 procedure SetActive( AValue: Boolean); override;21 procedure SetActive(const AValue: Boolean); override; 22 22 public 23 23 SerialPort: TSerialPort; … … 39 39 end; 40 40 41 procedure TCommSerialPort.SetActive( AValue: Boolean);41 procedure TCommSerialPort.SetActive(const AValue: Boolean); 42 42 begin 43 inherited SetActive(AValue);43 inherited; 44 44 SerialPort.Active := AValue; 45 45 end; -
PinConnection/UCommTelnet.pas
r413 r414 419 419 destructor TCommTelnet.Destroy; 420 420 begin 421 F CommandData.Free;422 Options.Free;423 TelnetPin.Free;424 RawPin.Free;425 F Responses.Free;421 FreeAndNil(FCommandData); 422 FreeAndNil(Options); 423 FreeAndNil(TelnetPin); 424 FreeAndNil(RawPin); 425 FreeAndNil(FResponses); 426 426 inherited Destroy; 427 427 end; -
PinConnection/UCommThread.pas
r413 r414 30 30 TCommThread = class(TCommNode) 31 31 private 32 FActive: Boolean;33 32 FOnReceiveData: TReceiveDataEvent; 34 33 FReceiveThread: TCommThreadReceiveThread; … … 42 41 procedure ExtReceiveData(Sender: TCommPin; Stream: TListByte); 43 42 procedure ExtSetStatus(Sender: TCommPin; AStatus: Integer); 44 procedure SetActive(const AValue: Boolean); 43 protected 44 procedure SetActive(const AValue: Boolean); override; 45 45 public 46 46 Ext: TCommPin; 47 47 Pin: TCommPin; 48 property Active: Boolean read FActive write SetActive;49 48 constructor Create(AOwner: TComponent); override; 50 49 destructor Destroy; override; … … 101 100 FreeAndNil(FReceiveThread); 102 101 end; 102 inherited; 103 103 end; 104 104 -
PinConnection/UPacketBurst.pas
r413 r414 21 21 TPacketBurst = class(TCommNode) 22 22 private 23 FActive: Boolean;24 23 SendThreadEvent: TEvent; 25 24 SendThread: TPacketBurstSendThread; … … 29 28 procedure PacketSingleReceive(Sender: TCommPin; Stream: TListByte); 30 29 procedure PacketBurstReceive(Sender: TCommPin; Stream: TListByte); 31 procedure SetActive(const AValue: Boolean); 30 protected 31 procedure SetActive(const AValue: Boolean); override; 32 32 public 33 33 SendPeriod: Integer; … … 37 37 destructor Destroy; override; 38 38 constructor Create(AOwner: TComponent); override; 39 property Active: Boolean read FActive write SetActive;40 39 end; 41 40 … … 101 100 FreeAndNil(SendThread); 102 101 end; 102 inherited; 103 103 end; 104 104
Note:
See TracChangeset
for help on using the changeset viewer.