Changeset 54 for trunk/IDE/UProject.pas
- Timestamp:
- Jun 26, 2012, 7:41:11 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/UProject.pas
r51 r54 75 75 FActive: Boolean; 76 76 FModified: Boolean; 77 function GetActive: Boolean; 78 procedure SetActive(AValue: Boolean); 77 FOnChange: TNotifyEvent; 79 78 procedure SetModified(AValue: Boolean); 80 79 public … … 91 90 constructor Create; 92 91 destructor Destroy; override; 93 property Active: Boolean read GetActive write SetActive;94 92 property Modified: Boolean read FModified write SetModified; 93 property OnChange: TNotifyEvent read FOnChange write FOnChange; 95 94 end; 96 95 … … 100 99 Name: string; 101 100 Description: TStringList; 102 procedure InitProject( Project: TProject); virtual;101 procedure InitProject(var Project: TProject); virtual; 103 102 constructor Create; virtual; 104 103 destructor Destroy; override; … … 111 110 end; 112 111 113 114 implementation115 116 112 resourcestring 117 113 SNewProject = 'New project'; 118 114 115 implementation 116 119 117 { TProjectTemplateList } 120 118 … … 126 124 { TProjectTemplate } 127 125 128 procedure TProjectTemplate.InitProject(Project: TProject); 129 begin 130 Project.Active := False; 131 Project.Active := True; 126 procedure TProjectTemplate.InitProject(var Project: TProject); 127 begin 132 128 Project.FileName := SNewProject; 133 129 end; … … 319 315 { TProject } 320 316 321 function TProject.GetActive: Boolean;322 begin323 Result := FActive;324 end;325 326 procedure TProject.SetActive(AValue: Boolean);327 begin328 if FActive = AValue then Exit;329 FActive := AValue;330 if not FActive then Clear;331 end;332 333 317 procedure TProject.SetModified(AValue: Boolean); 334 318 begin
Note:
See TracChangeset
for help on using the changeset viewer.