Changeset 32 for trunk/Target/UTarget.pas
- Timestamp:
- Feb 18, 2012, 8:44:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Target/UTarget.pas
r31 r32 12 12 TCompilerOptimization = (coNone, coNormal); 13 13 14 TTargetCapability = (tcRun, tcPause, tcStop, tcStepOut, t sStepOver, tsStepInto,15 t sRunToCursor, tcCompile, tcBreakpoint);14 TTargetCapability = (tcRun, tcPause, tcStop, tcStepOut, tcStepOver, tcStepInto, 15 tcRunToCursor, tcCompile, tcBreakpoint); 16 16 TTargetCapabilities = set of TTargetCapability; 17 17 18 TRunState = (rsStopped, rsPaused, rsRunning); 19 18 20 { TTarget } 19 21 20 22 TTarget = class 23 private 21 24 protected 25 FSource: string; 22 26 Indent: Integer; 27 FState: TRunState; 28 FOnChangeState: TNotifyEvent; 29 procedure SetSource(AValue: string); virtual; 23 30 procedure AddLine(Text: string); 24 31 function LongFileName(FileName: string): string; … … 26 33 Name: string; 27 34 ProgramName: string; 28 Source: string;29 35 Output: string; 30 36 Optimization: TCompilerOptimization; … … 45 51 procedure StepOut; virtual; 46 52 procedure RunToCursor; virtual; 53 procedure LoadFromRegistry(Root: HKEY; Key: string); virtual; 54 procedure SaveToRegistry(Root: HKEY; Key: string); virtual; 55 property State: TRunState read FState; 56 property OnChangeState: TNotifyEvent read FOnChangeState write FOnChangeState; 57 property Source: string write SetSource; 47 58 end; 48 59 … … 52 63 procedure LoadFromRegistry(Root: HKEY; Key: string); 53 64 procedure SaveToRegistry(Root: HKEY; Key: string); 65 function FindByName(Name: string): TTarget; 54 66 end; 55 67 … … 98 110 end; 99 111 112 function TTargetList.FindByName(Name: string): TTarget; 113 var 114 I: Integer; 115 begin 116 I := 0; 117 while (I < Count) and (TTarget(Items[I]).Name <> Name) do Inc(I); 118 if I < Count then Result := TTarget(Items[I]) 119 else Result := nil; 120 end; 121 100 122 { TTarget } 123 124 procedure TTarget.SetSource(AValue: string); 125 begin 126 FSource := AValue; 127 end; 101 128 102 129 procedure TTarget.AddLine(Text: string); … … 209 236 end; 210 237 238 procedure TTarget.LoadFromRegistry(Root: HKEY; Key: string); 239 begin 240 241 end; 242 243 procedure TTarget.SaveToRegistry(Root: HKEY; Key: string); 244 begin 245 246 end; 247 211 248 end. 212 249
Note:
See TracChangeset
for help on using the changeset viewer.