Changeset 59 for branches/Transpascal/Forms
- Timestamp:
- Oct 14, 2010, 8:41:34 AM (15 years ago)
- Location:
- branches/Transpascal/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Forms/UMainForm.lfm
r55 r59 65 65 Priority = 0 66 66 end> 67 RightGutter.Width = 0 68 RightGutter.MouseActions = < 69 item 70 Shift = [] 71 ShiftMask = [] 72 Button = mbLeft 73 ClickCount = ccAny 74 ClickDir = cdDown 75 Command = 13 76 MoveCaret = False 77 Option = 0 78 Priority = 0 79 end 80 item 81 Shift = [] 82 ShiftMask = [] 83 Button = mbRight 84 ClickCount = ccSingle 85 ClickDir = cdUp 86 Command = 12 87 MoveCaret = False 88 Option = 0 89 Priority = 0 90 end> 67 91 Highlighter = SynPasSyn1 68 92 Keystrokes = < … … 616 640 inline SynGutterPartList1: TSynGutterPartList 617 641 object SynGutterMarks1: TSynGutterMarks 618 Width = 2 3642 Width = 24 619 643 end 620 644 object SynGutterLineNumber1: TSynGutterLineNumber … … 721 745 end 722 746 end 747 inline SynRightGutterPartList1: TSynRightGutterPartList 748 end 723 749 end 724 750 object ComboBox1: TComboBox … … 773 799 end 774 800 object SynPasSyn1: TSynPasSyn 801 Enabled = False 775 802 CompilerMode = pcmDelphi 776 803 NestedComments = False -
branches/Transpascal/Forms/UMainForm.pas
r55 r59 37 37 procedure UpdateProjectTree; 38 38 procedure UpdateProjectGroup(Node: TTreeNode; Group: TProjectGroup); 39 function GetSource(Name: string; Source: TStringList): Boolean; 39 40 public 40 41 Project: TProject; … … 80 81 // Compile all project files 81 82 Compiler.Init; 82 for I := 0 to Project.Items.Count - 1 do begin 83 if TProjectNode(Project.Items[I]) is TProjectFile then 84 with TProjectFile(Project.Items[I]) do begin 85 Compiler.Compile(Parent.GetDir + Name, Source, ProducedCode); 86 end; 83 Compiler.Parser.OnGetSource := GetSource; 84 with TProjectFile(Project.Items[0]) do begin 85 Compiler.Compile(Parent.GetDir + Name, Source, ProducedCode); 87 86 end; 88 87 … … 179 178 end; 180 179 180 function TMainForm.GetSource(Name: string; Source: TStringList): Boolean; 181 var 182 FileName: string; 183 begin 184 FileName := Project.GetDir(True) + Name + '.pas'; 185 if FileExists(FileName) then begin 186 Source.LoadFromFile(FileName); 187 Result := True; 188 end else Result := False; 189 end; 190 181 191 procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction); 182 192 begin
Note:
See TracChangeset
for help on using the changeset viewer.