Changeset 36 for trunk/IDE/UProject.pas
- Timestamp:
- Feb 13, 2012, 4:07:34 PM (13 years ago)
- Location:
- trunk/IDE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE
- Property svn:ignore
-
old new 4 4 Transpascal.lps 5 5 Transpascal.exe 6 heaptrclog.trc
-
- Property svn:ignore
-
trunk/IDE/UProject.pas
r35 r36 9 9 Classes, SysUtils, Dialogs, DOM, XMLWrite, XMLRead, FileUtil, 10 10 SpecializedList; 11 12 const 13 ProjectExt = '.tppr'; 11 14 12 15 type … … 63 66 FActive: Boolean; 64 67 function GetActive: Boolean; 68 function GetFileName: string; 65 69 procedure SetActive(AValue: Boolean); 66 70 public … … 75 79 procedure Clear; 76 80 property Active: Boolean read GetActive write SetActive; 81 property FileName: string read GetFileName; 77 82 end; 78 83 … … 236 241 end; 237 242 243 function TProject.GetFileName: string; 244 begin 245 Result := GetDir(True) + Name + ProjectExt; 246 end; 247 238 248 procedure TProject.SetActive(AValue: Boolean); 239 249 begin 250 if FActive = AValue then Exit; 240 251 FActive := AValue; 252 if FActive then Clear; 241 253 end; 242 254 … … 264 276 Doc.Free; 265 277 end; 278 FModified := False; 266 279 end; 267 280 … … 310 323 Free; 311 324 end; 325 FModified := False; 312 326 inherited Save; 313 327 end;
Note:
See TracChangeset
for help on using the changeset viewer.