Changeset 49 for trunk/IDE/Forms/UFormTargetCode.pas
- Timestamp:
- Mar 4, 2012, 5:26:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormTargetCode.pas
r46 r49 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, SynEdit, 9 9 SynHighlighterMulti, SynHighlighterVB, SynHighlighterPas, SynHighlighterCpp, 10 SynHighlighterXML ;10 SynHighlighterXML, UProject; 11 11 12 12 type … … 20 20 SynXMLSyn1: TSynXMLSyn; 21 21 private 22 { private declarations } 22 FProjectFile: TProjectFile; 23 procedure SetProjectFile(AValue: TProjectFile); 23 24 public 24 { public declarations } 25 end; 25 procedure UpdateInterface; 26 property ProjectFile: TProjectFile read FProjectFile write SetProjectFile; 27 end; 26 28 27 29 var … … 32 34 {$R *.lfm} 33 35 36 uses 37 UFormMain; 38 39 procedure TFormTargetCode.SetProjectFile(AValue: TProjectFile); 40 begin 41 if FProjectFile = AValue then Exit; 42 FProjectFile := AValue; 43 if Assigned(AValue) then 44 SynEdit1.Lines.Assign(FProjectFile.Source) 45 else SynEdit1.ClearAll; 46 end; 47 48 procedure TFormTargetCode.UpdateInterface; 49 begin 50 SynEdit1.Enabled := FormMain.Project.Active; 51 if not FormMain.Project.Active then SynEdit1.ClearAll; 52 end; 53 54 34 55 end. 35 56
Note:
See TracChangeset
for help on using the changeset viewer.