Changeset 24 for trunk/IDE/Forms/UCodeForm.pas
- Timestamp:
- Nov 10, 2010, 9:42:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UCodeForm.pas
r21 r24 19 19 procedure SynEditSourceChange(Sender: TObject); 20 20 private 21 { private declarations } 21 FProjectFile: TProjectFile; 22 procedure SetProjectFile(const AValue: TProjectFile); 22 23 public 23 ProjectFile: TProjectFile; 24 property ProjectFile: TProjectFile read FProjectFile write SetProjectFile; 25 procedure Save; 24 26 end; 25 27 … … 41 43 end; 42 44 45 procedure TCodeForm.SetProjectFile(const AValue: TProjectFile); 46 begin 47 if FProjectFile = AValue then Exit; 48 FProjectFile := AValue; 49 if Assigned(AValue) then 50 SynEditSource.Lines.Assign(FProjectFile.Source) 51 else SynEditSource.ClearAll; 52 end; 53 54 procedure TCodeForm.Save; 55 begin 56 if Assigned(ProjectFile) then 57 ProjectFile.Source.Assign(SynEditSource.Lines); 58 end; 59 43 60 end. 44 61
Note:
See TracChangeset
for help on using the changeset viewer.