- Timestamp:
- Nov 10, 2010, 7:26:52 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Demos/Generics/Generics.tppr
r22 r23 1 1 <?xml version="1.0"?> 2 <Project >3 <F ilesName="Generics">4 <File Type="File" Name="Generics.pas"/>5 <File Type="File" Name="System.pas"/>6 <File Type="File" Name="List.pas"/>7 </F iles>2 <Project Name="Generics"> 3 <Folder Name="Generics"> 4 <File Name="Generics.pas"/> 5 <File Name="System.pas"/> 6 <File Name="List.pas"/> 7 </Folder> 8 8 </Project> -
trunk/IDE/Forms/UCodeForm.lfm
r21 r23 1 1 object CodeForm: TCodeForm 2 Left = 35 92 Left = 352 3 3 Height = 426 4 Top = 1274 Top = 95 5 5 Width = 535 6 6 Caption = 'Source code' -
trunk/IDE/Forms/UProjectManager.pas
r10 r23 38 38 if Assigned(Node) then begin 39 39 if TProjectNode(Node.Data) is TProjectFile then begin 40 ProjectFile := TProjectFile(Node.Data); 40 41 SynEditSource.Lines.Assign(TProjectFile(Node.Data).Source); 41 42 (* if FileExists(TProjectFile(Node.Data).ProducedFileName) then -
trunk/IDE/Transpascal.lpi
r22 r23 6 6 <General> 7 7 <MainUnit Value="0"/> 8 <Title Value="Transpascal "/>8 <Title Value="Transpascal IDE"/> 9 9 <ResourceType Value="res"/> 10 10 <UseXPManifest Value="True"/> … … 74 74 <WindowIndex Value="0"/> 75 75 <TopLine Value="284"/> 76 <CursorPos X=" 54" Y="301"/>76 <CursorPos X="1" Y="301"/> 77 77 <UsageCount Value="215"/> 78 78 <Loaded Value="True"/> … … 185 185 <EditorIndex Value="1"/> 186 186 <WindowIndex Value="0"/> 187 <TopLine Value=" 224"/>188 <CursorPos X=" 1" Y="237"/>187 <TopLine Value="164"/> 188 <CursorPos X="21" Y="175"/> 189 189 <UsageCount Value="223"/> 190 190 <Loaded Value="True"/> … … 221 221 <ResourceBaseClass Value="Form"/> 222 222 <UnitName Value="UProjectManager"/> 223 <EditorIndex Value="1 0"/>224 <WindowIndex Value="0"/> 225 <TopLine Value=" 1"/>226 <CursorPos X=" 37" Y="52"/>223 <EditorIndex Value="11"/> 224 <WindowIndex Value="0"/> 225 <TopLine Value="28"/> 226 <CursorPos X="45" Y="40"/> 227 227 <UsageCount Value="207"/> 228 228 <Loaded Value="True"/> 229 <LoadedDesigner Value="True"/> 229 230 <DefaultSyntaxHighlighter Value="Delphi"/> 230 231 </Unit18> … … 237 238 <EditorIndex Value="2"/> 238 239 <WindowIndex Value="0"/> 239 <TopLine Value="1 "/>240 <CursorPos X=" 36" Y="9"/>240 <TopLine Value="19"/> 241 <CursorPos X="1" Y="40"/> 241 242 <UsageCount Value="207"/> 242 243 <Loaded Value="True"/> … … 250 251 <ResourceBaseClass Value="Form"/> 251 252 <UnitName Value="UMessagesForm"/> 253 <EditorIndex Value="3"/> 252 254 <WindowIndex Value="0"/> 253 255 <TopLine Value="51"/> 254 256 <CursorPos X="64" Y="66"/> 255 257 <UsageCount Value="207"/> 258 <Loaded Value="True"/> 256 259 <DefaultSyntaxHighlighter Value="Delphi"/> 257 260 </Unit20> … … 450 453 <Unit43> 451 454 <Filename Value="E:\Projekty\PascalClassLibrary\Generics\TemplateGenerics\Generic\GenericList.inc"/> 452 <EditorIndex Value="1 1"/>453 <WindowIndex Value="0"/> 454 <TopLine Value=" 12"/>455 <CursorPos X="1 4" Y="25"/>456 <UsageCount Value=" 79"/>455 <EditorIndex Value="12"/> 456 <WindowIndex Value="0"/> 457 <TopLine Value="71"/> 458 <CursorPos X="1" Y="85"/> 459 <UsageCount Value="80"/> 457 460 <Loaded Value="True"/> 458 461 </Unit43> … … 475 478 <Filename Value="..\Compiler\UCompiler.pas"/> 476 479 <UnitName Value="UCompiler"/> 477 <EditorIndex Value=" 3"/>480 <EditorIndex Value="4"/> 478 481 <WindowIndex Value="0"/> 479 482 <TopLine Value="60"/> 480 483 <CursorPos X="45" Y="68"/> 481 <UsageCount Value="3 7"/>484 <UsageCount Value="38"/> 482 485 <Loaded Value="True"/> 483 486 </Unit46> … … 493 496 <Filename Value="..\Compiler\Analyze\UAnalyzer.pas"/> 494 497 <UnitName Value="UAnalyzer"/> 495 <EditorIndex Value=" 4"/>498 <EditorIndex Value="5"/> 496 499 <WindowIndex Value="0"/> 497 500 <TopLine Value="66"/> 498 501 <CursorPos X="37" Y="79"/> 499 <UsageCount Value="3 6"/>502 <UsageCount Value="37"/> 500 503 <Loaded Value="True"/> 501 504 </Unit48> … … 503 506 <Filename Value="..\Compiler\Analyze\UAnalyzerPascal.pas"/> 504 507 <UnitName Value="UAnalyzerPascal"/> 505 <EditorIndex Value=" 9"/>506 <WindowIndex Value="0"/> 507 <TopLine Value=" 709"/>508 <CursorPos X=" 36" Y="719"/>509 <UsageCount Value="3 6"/>508 <EditorIndex Value="10"/> 509 <WindowIndex Value="0"/> 510 <TopLine Value="836"/> 511 <CursorPos X="1" Y="849"/> 512 <UsageCount Value="37"/> 510 513 <Loaded Value="True"/> 511 514 </Unit49> … … 513 516 <Filename Value="..\Compiler\Produce\UProducerPascal.pas"/> 514 517 <UnitName Value="UProducerPascal"/> 515 <EditorIndex Value=" 7"/>518 <EditorIndex Value="8"/> 516 519 <WindowIndex Value="0"/> 517 520 <TopLine Value="148"/> 518 521 <CursorPos X="52" Y="171"/> 519 <UsageCount Value="3 6"/>522 <UsageCount Value="37"/> 520 523 <Loaded Value="True"/> 521 524 </Unit50> … … 547 550 <Filename Value="..\Compiler\USourceCode.pas"/> 548 551 <UnitName Value="USourceCode"/> 549 <EditorIndex Value=" 8"/>550 <WindowIndex Value="0"/> 551 <TopLine Value=" 588"/>552 <CursorPos X=" 9" Y="590"/>553 <UsageCount Value="3 6"/>552 <EditorIndex Value="9"/> 553 <WindowIndex Value="0"/> 554 <TopLine Value="727"/> 555 <CursorPos X="1" Y="740"/> 556 <UsageCount Value="37"/> 554 557 <Loaded Value="True"/> 555 558 </Unit54> … … 618 621 <Unit63> 619 622 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\rtl\objpas\classes\classesh.inc"/> 620 <EditorIndex Value=" 5"/>623 <EditorIndex Value="6"/> 621 624 <WindowIndex Value="0"/> 622 625 <TopLine Value="625"/> 623 626 <CursorPos X="36" Y="638"/> 624 <UsageCount Value="1 3"/>627 <UsageCount Value="14"/> 625 628 <Loaded Value="True"/> 626 629 </Unit63> 627 630 <Unit64> 628 631 <Filename Value="E:\Programy\Lazarus\fpc\2.4.3\source\rtl\objpas\classes\stringl.inc"/> 629 <EditorIndex Value=" 6"/>632 <EditorIndex Value="7"/> 630 633 <WindowIndex Value="0"/> 631 634 <TopLine Value="428"/> 632 635 <CursorPos X="3" Y="441"/> 633 <UsageCount Value="1 3"/>636 <UsageCount Value="14"/> 634 637 <Loaded Value="True"/> 635 638 </Unit64> … … 637 640 <JumpHistory Count="30" HistoryIndex="29"> 638 641 <Position1> 639 <Filename Value=" Forms\UMainForm.pas"/>640 <Caret Line=" 300" Column="12" TopLine="283"/>642 <Filename Value="UProject.pas"/> 643 <Caret Line="131" Column="1" TopLine="113"/> 641 644 </Position1> 642 645 <Position2> 643 <Filename Value=" Forms\UMainForm.pas"/>644 <Caret Line=" 294" Column="21" TopLine="283"/>646 <Filename Value="UProject.pas"/> 647 <Caret Line="132" Column="1" TopLine="113"/> 645 648 </Position2> 646 649 <Position3> 647 650 <Filename Value="UProject.pas"/> 648 <Caret Line=" 42" Column="1" TopLine="93"/>651 <Caret Line="134" Column="1" TopLine="113"/> 649 652 </Position3> 650 653 <Position4> 651 654 <Filename Value="UProject.pas"/> 652 <Caret Line=" 268" Column="17" TopLine="248"/>655 <Caret Line="135" Column="1" TopLine="114"/> 653 656 </Position4> 654 657 <Position5> 655 <Filename Value=" UProject.pas"/>656 <Caret Line=" 266" Column="3" TopLine="259"/>658 <Filename Value="E:\Projekty\PascalClassLibrary\Generics\TemplateGenerics\Generic\GenericList.inc"/> 659 <Caret Line="84" Column="1" TopLine="71"/> 657 660 </Position5> 658 661 <Position6> 659 <Filename Value=" UProject.pas"/>660 <Caret Line=" 277" Column="17" TopLine="260"/>662 <Filename Value="E:\Projekty\PascalClassLibrary\Generics\TemplateGenerics\Generic\GenericList.inc"/> 663 <Caret Line="85" Column="1" TopLine="71"/> 661 664 </Position6> 662 665 <Position7> 663 <Filename Value=" Forms\UMainForm.pas"/>664 <Caret Line="1 38" Column="14" TopLine="133"/>666 <Filename Value="UProject.pas"/> 667 <Caret Line="174" Column="1" TopLine="161"/> 665 668 </Position7> 666 669 <Position8> 667 <Filename Value=" Forms\UMainForm.pas"/>668 <Caret Line=" 301" Column="1" TopLine="284"/>670 <Filename Value="UProject.pas"/> 671 <Caret Line="201" Column="1" TopLine="188"/> 669 672 </Position8> 670 673 <Position9> 671 674 <Filename Value="UProject.pas"/> 672 <Caret Line=" 311" Column="1" TopLine="298"/>675 <Caret Line="175" Column="1" TopLine="162"/> 673 676 </Position9> 674 677 <Position10> 675 <Filename Value=" Forms\UMainForm.pas"/>676 <Caret Line=" 301" Column="35" TopLine="284"/>678 <Filename Value="UProject.pas"/> 679 <Caret Line="191" Column="1" TopLine="178"/> 677 680 </Position10> 678 681 <Position11> 679 682 <Filename Value="UProject.pas"/> 680 <Caret Line=" 67" Column="14" TopLine="54"/>683 <Caret Line="192" Column="1" TopLine="178"/> 681 684 </Position11> 682 685 <Position12> 683 <Filename Value=" Forms\UMainForm.pas"/>684 <Caret Line=" 301" Column="1" TopLine="284"/>686 <Filename Value="UProject.pas"/> 687 <Caret Line="215" Column="1" TopLine="202"/> 685 688 </Position12> 686 689 <Position13> 687 690 <Filename Value="UProject.pas"/> 688 <Caret Line=" 301" Column="1" TopLine="288"/>691 <Caret Line="216" Column="1" TopLine="202"/> 689 692 </Position13> 690 693 <Position14> 691 694 <Filename Value="UProject.pas"/> 692 <Caret Line=" 302" Column="1" TopLine="288"/>695 <Caret Line="193" Column="1" TopLine="180"/> 693 696 </Position14> 694 697 <Position15> 695 <Filename Value=" Forms\UMainForm.pas"/>696 <Caret Line="301" Column="1" TopLine="28 4"/>698 <Filename Value="UProject.pas"/> 699 <Caret Line="301" Column="1" TopLine="288"/> 697 700 </Position15> 698 701 <Position16> 699 702 <Filename Value="UProject.pas"/> 700 <Caret Line="30 1" Column="1" TopLine="288"/>703 <Caret Line="302" Column="1" TopLine="288"/> 701 704 </Position16> 702 705 <Position17> 703 706 <Filename Value="UProject.pas"/> 704 <Caret Line=" 302" Column="1" TopLine="288"/>707 <Caret Line="194" Column="1" TopLine="181"/> 705 708 </Position17> 706 709 <Position18> 707 710 <Filename Value="UProject.pas"/> 708 <Caret Line=" 234" Column="3" TopLine="226"/>711 <Caret Line="176" Column="1" TopLine="163"/> 709 712 </Position18> 710 713 <Position19> 711 714 <Filename Value="UProject.pas"/> 712 <Caret Line=" 237" Column="1" TopLine="226"/>715 <Caret Line="135" Column="1" TopLine="122"/> 713 716 </Position19> 714 717 <Position20> 715 718 <Filename Value="UProject.pas"/> 716 <Caret Line=" 238" Column="1" TopLine="226"/>719 <Caret Line="132" Column="24" TopLine="122"/> 717 720 </Position20> 718 721 <Position21> 719 <Filename Value=" Forms\UMainForm.pas"/>720 <Caret Line=" 301" Column="54" TopLine="284"/>722 <Filename Value="UProject.pas"/> 723 <Caret Line="283" Column="1" TopLine="270"/> 721 724 </Position21> 722 725 <Position22> 723 726 <Filename Value="UProject.pas"/> 724 <Caret Line=" 17" Column="5" TopLine="52"/>727 <Caret Line="284" Column="1" TopLine="270"/> 725 728 </Position22> 726 729 <Position23> 727 730 <Filename Value="UProject.pas"/> 728 <Caret Line="2 37" Column="1" TopLine="224"/>731 <Caret Line="285" Column="1" TopLine="270"/> 729 732 </Position23> 730 733 <Position24> 731 734 <Filename Value="UProject.pas"/> 732 <Caret Line="2 38" Column="1" TopLine="224"/>735 <Caret Line="286" Column="1" TopLine="270"/> 733 736 </Position24> 734 737 <Position25> 735 738 <Filename Value="UProject.pas"/> 736 <Caret Line="2 40" Column="1" TopLine="224"/>739 <Caret Line="287" Column="1" TopLine="270"/> 737 740 </Position25> 738 741 <Position26> 739 742 <Filename Value="UProject.pas"/> 740 <Caret Line="2 42" Column="1" TopLine="224"/>743 <Caret Line="289" Column="1" TopLine="270"/> 741 744 </Position26> 742 745 <Position27> 743 746 <Filename Value="UProject.pas"/> 744 <Caret Line="2 43" Column="1" TopLine="224"/>747 <Caret Line="291" Column="26" TopLine="270"/> 745 748 </Position27> 746 749 <Position28> 747 750 <Filename Value="UProject.pas"/> 748 <Caret Line=" 244" Column="15" TopLine="225"/>751 <Caret Line="133" Column="28" TopLine="122"/> 749 752 </Position28> 750 753 <Position29> 751 754 <Filename Value="UProject.pas"/> 752 <Caret Line=" 321" Column="24" TopLine="305"/>755 <Caret Line="136" Column="35" TopLine="122"/> 753 756 </Position29> 754 757 <Position30> 755 758 <Filename Value="UProject.pas"/> 756 <Caret Line=" 256" Column="3" TopLine="250"/>759 <Caret Line="179" Column="55" TopLine="173"/> 757 760 </Position30> 758 761 </JumpHistory> … … 793 796 </Linking> 794 797 <Other> 798 <CompilerMessages> 799 <UseMsgFile Value="True"/> 800 </CompilerMessages> 795 801 <CompilerPath Value="$(CompPath)"/> 796 802 </Other> 797 803 </CompilerOptions> 798 804 <Debugging> 799 <BreakPoints Count="2">800 <Item1>801 <Source Value="..\Compiler\Analyze\UAnalyzerPascal.pas"/>802 <Line Value="849"/>803 </Item1>804 <Item2>805 <Source Value="Forms\UMainForm.pas"/>806 <Line Value="301"/>807 </Item2>808 </BreakPoints>809 805 <Exceptions Count="3"> 810 806 <Item1> -
trunk/IDE/Transpascal.lpr
r10 r23 18 18 HeapTraceLog = 'heaptrclog.trc'; 19 19 begin 20 Application.Title:='Transpascal IDE'; 20 21 // Heap trace 21 22 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog); -
trunk/IDE/UProject.pas
r21 r23 125 125 NewNode: TDOMNode; 126 126 begin 127 TDOMElement(Node).SetAttribute('Name', UTF8Decode(Name)); 127 128 inherited SaveToXMLNode(Node); 128 129 with Node do begin 129 NewNode := OwnerDocument.CreateElement('F ile');130 NewNode := OwnerDocument.CreateElement('Folder'); 130 131 TDOMElement(NewNode).SetAttribute('Name', UTF8Decode(Name)); 131 TDOMElement(NewNode).SetAttribute('Type', 'File');132 132 AppendChild(NewNode); 133 133 end; … … 171 171 172 172 procedure TProjectFile.SaveToXMLNode(Node: TDOMNode); 173 var 174 NewNode: TDOMNode; 173 175 begin 174 176 inherited SaveToXMLNode(Node); 177 with Node do begin 178 NewNode := OwnerDocument.CreateElement('File'); 179 TDOMElement(NewNode).SetAttribute('Name', UTF8Decode(Name)); 180 AppendChild(NewNode); 181 end; 175 182 Save; 176 183 end; … … 235 242 Clear; 236 243 RootDir := ExtractFileDir(FileName) + '/'; 244 //NewNode := Doc.DocumentElement.FindNode('Files'); 237 245 Name := ExtractFileName(FileName); 238 246 Name := Copy(Name, 1, Length(Name) - Length(ExtractFileExt(FileName))); … … 240 248 ReadXMLFile(Doc, UTF8Decode(FileName)); 241 249 242 NewNode := Doc.DocumentElement.FindNode('F iles');250 NewNode := Doc.DocumentElement.FindNode('Folder'); 243 251 if Assigned(NewNode) then 244 252 LoadFromXMLNode(NewNode); … … 257 265 Child := Node.FirstChild; 258 266 while Assigned(Child) do begin 259 NodeType := TDOMElement(Child).GetAttribute('Type'); 260 if NodeType = 'Folder' then 267 if Child.NodeName = 'Folder' then 261 268 ProjectNode := TProjectGroup.Create 262 else if NodeType = 'File' then269 else if Child.NodeName = 'File' then 263 270 ProjectNode := TProjectFile.Create 264 271 else ProjectNode := nil; … … 287 294 AppendChild(RootNode); 288 295 with RootNode do begin 289 NewNode := OwnerDocument.CreateElement('Files');290 SaveToXMLNode(NewNode);291 296 end; 297 SaveToXMLNode(RootNode); 292 298 WriteXMLFile(Doc, UTF8Decode(FileName)); 293 299 finally
Note:
See TracChangeset
for help on using the changeset viewer.