Changeset 63
- Timestamp:
- Oct 15, 2010, 10:04:55 AM (14 years ago)
- Location:
- branches/Transpascal
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Forms/UCompiledForm.lfm
r62 r63 733 733 top = 62 734 734 end 735 object SynPasSyn1: TSynPasSyn 736 CompilerMode = pcmDelphi 737 NestedComments = False 738 left = 174 739 top = 38 740 end 741 object SynCppSyn1: TSynCppSyn 742 DefaultFilter = 'Soubory C++ (*.c,*.cpp,*.h,*.hpp,*.hh)|*.c;*.cpp;*.h;*.hpp;*.hh' 743 left = 176 744 top = 85 745 end 746 object SynXMLSyn1: TSynXMLSyn 747 DefaultFilter = 'XML Dokument (*.xml,*.xsd,*.xsl,*.xslt,*.dtd)|*.xml;*.xsd;*.xsl;*.xslt;*.dtd' 748 WantBracesParsed = False 749 left = 178 750 top = 133 751 end 735 752 end -
branches/Transpascal/Forms/UCompiledForm.pas
r62 r63 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, SynEdit, 9 UCoolDocking; 9 SynHighlighterMulti, SynHighlighterVB, SynHighlighterPas, SynHighlighterCpp, 10 SynHighlighterXML, UCoolDocking; 10 11 11 12 type … … 15 16 TCompiledForm = class(TForm) 16 17 CoolDockClient1: TCoolDockClient; 18 SynCppSyn1: TSynCppSyn; 17 19 SynEdit1: TSynEdit; 20 SynPasSyn1: TSynPasSyn; 21 SynXMLSyn1: TSynXMLSyn; 18 22 private 19 23 { private declarations } -
branches/Transpascal/Forms/UMainForm.lfm
r62 r63 41 41 Caption = 'ToolBar1' 42 42 TabOrder = 2 43 object ComboBox 1: TComboBox43 object ComboBoxTargetSelection: TComboBox 44 44 Left = 1 45 45 Height = 21 … … 54 54 'XML' 55 55 ) 56 OnChange = ComboBoxTargetSelectionChange 56 57 Style = csDropDownList 57 58 TabOrder = 0 -
branches/Transpascal/Forms/UMainForm.pas
r62 r63 27 27 ActionList1: TActionList; 28 28 Button1: TButton; 29 ComboBox 1: TComboBox;29 ComboBoxTargetSelection: TComboBox; 30 30 CoolDockClient1: TCoolDockClient; 31 31 CoolDockMaster1: TCoolDockMaster; … … 43 43 ToolBar1: TToolBar; 44 44 procedure ComboBox1Change(Sender: TObject); 45 procedure ComboBoxTargetSelectionChange(Sender: TObject); 45 46 procedure FormShow(Sender: TObject); 46 47 procedure FormClose(Sender: TObject; var Action: TCloseAction); … … 79 80 I: Integer; 80 81 begin 81 if ComboBox 1.ItemIndex = 0 then begin82 if ComboBoxTargetSelection.ItemIndex = 0 then begin 82 83 Compiler.Producer.Free; 83 84 Compiler.Producer := TProducerPascal.Create; 84 85 end else 85 if ComboBox 1.ItemIndex = 1 then begin86 if ComboBoxTargetSelection.ItemIndex = 1 then begin 86 87 Compiler.Producer.Free; 87 88 Compiler.Producer := TProducerC.Create; 88 89 end else 89 if ComboBox 1.ItemIndex = 2 then begin90 if ComboBoxTargetSelection.ItemIndex = 2 then begin 90 91 Compiler.Producer.Free; 91 92 Compiler.Producer := TProducerAsm8051.Create; 92 93 end else 93 if ComboBox 1.ItemIndex = 3 then begin94 if ComboBoxTargetSelection.ItemIndex = 3 then begin 94 95 Compiler.Producer.Free; 95 96 Compiler.Producer := TProducerTreeView.Create; … … 103 104 end; 104 105 106 ProjectManager.TreeViewProjectChange(Self, ProjectManager.TreeViewProject.Selected); 105 107 LoadErrorMessages; 106 108 end; … … 276 278 end; 277 279 280 procedure TMainForm.ComboBoxTargetSelectionChange(Sender: TObject); 281 begin 282 ButtonCompileClick(Self); 283 end; 284 278 285 end. -
branches/Transpascal/Forms/UProjectManager.pas
r62 r63 46 46 CompiledForm.SynEdit1.Lines.LoadFromFile(FileName) else 47 47 CompiledForm.SynEdit1.Lines.Clear; 48 if ComboBoxTargetSelection.ItemIndex = 0 then 49 CompiledForm.SynEdit1.Highlighter := CompiledForm.SynPasSyn1; 50 if ComboBoxTargetSelection.ItemIndex = 1 then 51 CompiledForm.SynEdit1.Highlighter := CompiledForm.SynCppSyn1; 52 if ComboBoxTargetSelection.ItemIndex = 2 then 53 CompiledForm.SynEdit1.Highlighter := nil; 54 if ComboBoxTargetSelection.ItemIndex = 3 then 55 CompiledForm.SynEdit1.Highlighter := CompiledForm.SynXMLSyn1; 48 56 49 // Load code tree view57 (*// Load code tree view 50 58 Compiler.Producer.Free; 51 59 Compiler.Producer := TProducerTreeView.Create; … … 56 64 end; 57 65 //CodeTreeForm.TreeView1.Assign(TProducerTreeView(Compiler.Producer).TreeView); 66 *) 58 67 end; 59 68 end; -
branches/Transpascal/Project/System.pas
r60 r63 3 3 interface 4 4 5 const 6 MemoryManagerSizeType: TType = Integer; 7 5 8 type 9 TType = internal; 6 10 Void = internal; 7 11 Byte = internal; … … 16 20 Char = internal; 17 21 String = array of Char; 22 Pointer = ^Void; 23 Ordinal = (Byte, ShortInt, Word, SmallInt, Cardinal, DWord, Integer, QWord, Int64, Char); 24 Float = (Single, Double, Extended) 25 TObject = class; 18 26 27 PMemoryManager = ^TMemoryManager; 28 TMemoryManager<TSizeType: Ordinal> = record 29 GetMem: function(Size: TSizeType): Pointer; 30 FreeMem: function(P: Pointer): TSizeType; 31 ReallocMem: function(P: Pointer; Size: TSizeType): Pointer; 32 end; 33 TSystemMemoryManager = TMemoryManager<MemoryManagerSizeType>; 34 35 TSystem = record 36 MemoryManager: TMemoryManager; 37 end; 19 38 20 39 procedure Exit; internal; … … 23 42 procedure WriteLn; internal; 24 43 44 25 45 implementation 26 46 47 uses 48 MemoryManager; 49 50 initialization 51 52 finalization 27 53 28 54 end. -
branches/Transpascal/Transpascal.lpi
r62 r63 46 46 </Item4> 47 47 </RequiredPackages> 48 <Units Count="3 2">48 <Units Count="33"> 49 49 <Unit0> 50 50 <Filename Value="Transpascal.lpr"/> 51 51 <IsPartOfProject Value="True"/> 52 52 <UnitName Value="Transpascal"/> 53 <EditorIndex Value="1 0"/>53 <EditorIndex Value="11"/> 54 54 <WindowIndex Value="0"/> 55 55 <TopLine Value="2"/> … … 66 66 <ResourceBaseClass Value="Form"/> 67 67 <UnitName Value="UMainForm"/> 68 <EditorIndex Value="7"/> 69 <WindowIndex Value="0"/> 70 <TopLine Value="82"/> 71 <CursorPos X="14" Y="62"/> 68 <IsVisibleTab Value="True"/> 69 <EditorIndex Value="8"/> 70 <WindowIndex Value="0"/> 71 <TopLine Value="93"/> 72 <CursorPos X="57" Y="106"/> 72 73 <UsageCount Value="166"/> 73 74 <Loaded Value="True"/> … … 234 235 <TopLine Value="1"/> 235 236 <CursorPos X="33" Y="1"/> 236 <UsageCount Value="1 1"/>237 <UsageCount Value="12"/> 237 238 <Loaded Value="True"/> 238 239 </Unit21> … … 279 280 <ResourceBaseClass Value="Form"/> 280 281 <UnitName Value="UProjectManager"/> 281 <IsVisibleTab Value="True"/>282 282 <EditorIndex Value="2"/> 283 283 <WindowIndex Value="0"/> 284 <TopLine Value="3 8"/>285 <CursorPos X=" 9" Y="57"/>284 <TopLine Value="31"/> 285 <CursorPos X="15" Y="40"/> 286 286 <UsageCount Value="22"/> 287 287 <Loaded Value="True"/> … … 310 310 <ResourceBaseClass Value="Form"/> 311 311 <UnitName Value="UMessagesForm"/> 312 <EditorIndex Value=" 8"/>312 <EditorIndex Value="9"/> 313 313 <WindowIndex Value="0"/> 314 314 <TopLine Value="1"/> … … 327 327 <EditorIndex Value="6"/> 328 328 <WindowIndex Value="0"/> 329 <TopLine Value=" 1"/>330 <CursorPos X=" 1" Y="1"/>329 <TopLine Value="5"/> 330 <CursorPos X="28" Y="21"/> 331 331 <UsageCount Value="21"/> 332 332 <Loaded Value="True"/> … … 340 340 <ResourceBaseClass Value="Form"/> 341 341 <UnitName Value="UCodeTreeForm"/> 342 <EditorIndex Value=" 9"/>342 <EditorIndex Value="10"/> 343 343 <WindowIndex Value="0"/> 344 344 <TopLine Value="1"/> 345 345 <CursorPos X="1" Y="1"/> 346 <UsageCount Value="2 0"/>346 <UsageCount Value="21"/> 347 347 <Loaded Value="True"/> 348 348 <LoadedDesigner Value="True"/> … … 359 359 <Loaded Value="True"/> 360 360 </Unit31> 361 <Unit32> 362 <Filename Value="E:\Programy\Lazarus\components\synedit\synhighlightermulti.pas"/> 363 <UnitName Value="SynHighlighterMulti"/> 364 <EditorIndex Value="7"/> 365 <WindowIndex Value="0"/> 366 <TopLine Value="316"/> 367 <CursorPos X="14" Y="329"/> 368 <UsageCount Value="10"/> 369 <Loaded Value="True"/> 370 </Unit32> 361 371 </Units> 362 <JumpHistory Count=" 29" HistoryIndex="28">372 <JumpHistory Count="30" HistoryIndex="29"> 363 373 <Position1> 364 <Filename Value="Forms\U ProjectManager.pas"/>365 <Caret Line="9 " Column="11" TopLine="1"/>374 <Filename Value="Forms\UMainForm.pas"/> 375 <Caret Line="95" Column="1" TopLine="81"/> 366 376 </Position1> 367 377 <Position2> 368 <Filename Value="Forms\U ProjectManager.pas"/>369 <Caret Line=" 32" Column="23" TopLine="21"/>378 <Filename Value="Forms\UMainForm.pas"/> 379 <Caret Line="96" Column="1" TopLine="83"/> 370 380 </Position2> 371 381 <Position3> 372 <Filename Value="Forms\U ProjectManager.pas"/>373 <Caret Line=" 43" Column="16" TopLine="30"/>382 <Filename Value="Forms\UMainForm.pas"/> 383 <Caret Line="106" Column="1" TopLine="103"/> 374 384 </Position3> 375 385 <Position4> 376 <Filename Value="Forms\U ProjectManager.pas"/>377 <Caret Line=" 41" Column="19" TopLine="21"/>386 <Filename Value="Forms\UCodeForm.pas"/> 387 <Caret Line="16" Column="32" TopLine="7"/> 378 388 </Position4> 379 389 <Position5> 380 <Filename Value="Forms\U ProjectManager.pas"/>381 <Caret Line=" 35" Column="22" TopLine="22"/>390 <Filename Value="Forms\UMainForm.pas"/> 391 <Caret Line="216" Column="70" TopLine="201"/> 382 392 </Position5> 383 393 <Position6> 384 <Filename Value="Forms\U ProjectManager.pas"/>385 <Caret Line=" 47" Column="22" TopLine="33"/>394 <Filename Value="Forms\UCodeTreeForm.pas"/> 395 <Caret Line="1" Column="1" TopLine="1"/> 386 396 </Position6> 387 397 <Position7> 388 <Filename Value="Forms\U CompiledForm.pas"/>389 <Caret Line="1 " Column="1" TopLine="1"/>398 <Filename Value="Forms\UMainForm.pas"/> 399 <Caret Line="196" Column="18" TopLine="185"/> 390 400 </Position7> 391 401 <Position8> 392 <Filename Value="Forms\U ProjectManager.pas"/>393 <Caret Line=" 47" Column="1" TopLine="32"/>402 <Filename Value="Forms\UMainForm.pas"/> 403 <Caret Line="93" Column="50" TopLine="73"/> 394 404 </Position8> 395 405 <Position9> 396 406 <Filename Value="Forms\UProjectManager.pas"/> 397 <Caret Line=" 48" Column="22" TopLine="32"/>407 <Caret Line="32" Column="72" TopLine="14"/> 398 408 </Position9> 399 409 <Position10> 400 410 <Filename Value="Forms\UProjectManager.pas"/> 401 <Caret Line=" 32" Column="38" TopLine="19"/>411 <Caret Line="55" Column="43" TopLine="40"/> 402 412 </Position10> 403 413 <Position11> 404 <Filename Value="Forms\U ProjectManager.pas"/>405 <Caret Line=" 48" Column="37" TopLine="32"/>414 <Filename Value="Forms\UMainForm.pas"/> 415 <Caret Line="100" Column="39" TopLine="79"/> 406 416 </Position11> 407 417 <Position12> 408 418 <Filename Value="Forms\UProjectManager.pas"/> 409 <Caret Line=" 49" Column="1" TopLine="32"/>419 <Caret Line="3" Column="1" TopLine="1"/> 410 420 </Position12> 411 421 <Position13> 412 <Filename Value="Forms\U MainForm.pas"/>413 <Caret Line=" 62" Column="1" TopLine="49"/>422 <Filename Value="Forms\UProjectManager.pas"/> 423 <Caret Line="18" Column="43" TopLine="1"/> 414 424 </Position13> 415 425 <Position14> 416 <Filename Value="Forms\U MainForm.pas"/>417 <Caret Line=" 95" Column="1" TopLine="81"/>426 <Filename Value="Forms\UProjectManager.pas"/> 427 <Caret Line="54" Column="27" TopLine="38"/> 418 428 </Position14> 419 429 <Position15> 420 <Filename Value="Forms\U MainForm.pas"/>421 <Caret Line=" 96" Column="1" TopLine="83"/>430 <Filename Value="Forms\UProjectManager.pas"/> 431 <Caret Line="57" Column="80" TopLine="38"/> 422 432 </Position15> 423 433 <Position16> 424 <Filename Value="Forms\U MainForm.pas"/>425 <Caret Line=" 106" Column="1" TopLine="103"/>434 <Filename Value="Forms\UProjectManager.pas"/> 435 <Caret Line="55" Column="23" TopLine="38"/> 426 436 </Position16> 427 437 <Position17> 428 <Filename Value="Forms\U CodeForm.pas"/>429 <Caret Line=" 16" Column="32" TopLine="7"/>438 <Filename Value="Forms\UProjectManager.pas"/> 439 <Caret Line="57" Column="9" TopLine="38"/> 430 440 </Position17> 431 441 <Position18> 432 <Filename Value="Forms\U MainForm.pas"/>433 <Caret Line=" 216" Column="70" TopLine="201"/>442 <Filename Value="Forms\UCompiledForm.pas"/> 443 <Caret Line="1" Column="1" TopLine="1"/> 434 444 </Position18> 435 445 <Position19> 436 <Filename Value="Forms\U CodeTreeForm.pas"/>437 <Caret Line=" 1" Column="1" TopLine="1"/>446 <Filename Value="Forms\UProjectManager.pas"/> 447 <Caret Line="48" Column="29" TopLine="29"/> 438 448 </Position19> 439 449 <Position20> 440 <Filename Value="Forms\U MainForm.pas"/>441 <Caret Line="1 96" Column="18" TopLine="185"/>450 <Filename Value="Forms\UCompiledForm.pas"/> 451 <Caret Line="18" Column="25" TopLine="5"/> 442 452 </Position20> 443 453 <Position21> 444 <Filename Value="Forms\U MainForm.pas"/>445 <Caret Line=" 93" Column="50" TopLine="73"/>454 <Filename Value="Forms\UProjectManager.pas"/> 455 <Caret Line="48" Column="45" TopLine="29"/> 446 456 </Position21> 447 457 <Position22> 448 <Filename Value="Forms\U ProjectManager.pas"/>449 <Caret Line=" 32" Column="72" TopLine="14"/>458 <Filename Value="Forms\UCompiledForm.pas"/> 459 <Caret Line="18" Column="25" TopLine="5"/> 450 460 </Position22> 451 461 <Position23> 452 <Filename Value="Forms\U ProjectManager.pas"/>453 <Caret Line=" 55" Column="43" TopLine="40"/>462 <Filename Value="Forms\UCompiledForm.pas"/> 463 <Caret Line="17" Column="24" TopLine="5"/> 454 464 </Position23> 455 465 <Position24> 456 <Filename Value="Forms\U MainForm.pas"/>457 <Caret Line="1 00" Column="39" TopLine="79"/>466 <Filename Value="Forms\UCompiledForm.pas"/> 467 <Caret Line="18" Column="28" TopLine="5"/> 458 468 </Position24> 459 469 <Position25> 460 <Filename Value="Forms\U ProjectManager.pas"/>461 <Caret Line=" 3" Column="1" TopLine="1"/>470 <Filename Value="Forms\UCompiledForm.pas"/> 471 <Caret Line="20" Column="28" TopLine="5"/> 462 472 </Position25> 463 473 <Position26> 464 474 <Filename Value="Forms\UProjectManager.pas"/> 465 <Caret Line=" 18" Column="43" TopLine="1"/>475 <Caret Line="48" Column="19" TopLine="31"/> 466 476 </Position26> 467 477 <Position27> 468 <Filename Value="Forms\U ProjectManager.pas"/>469 <Caret Line=" 54" Column="27" TopLine="38"/>478 <Filename Value="Forms\UMainForm.pas"/> 479 <Caret Line="60" Column="40" TopLine="60"/> 470 480 </Position27> 471 481 <Position28> 472 <Filename Value="Forms\U ProjectManager.pas"/>473 <Caret Line=" 57" Column="80" TopLine="38"/>482 <Filename Value="Forms\UMainForm.pas"/> 483 <Caret Line="281" Column="17" TopLine="259"/> 474 484 </Position28> 475 485 <Position29> 476 <Filename Value="Forms\U ProjectManager.pas"/>477 <Caret Line=" 55" Column="23" TopLine="38"/>486 <Filename Value="Forms\UMainForm.pas"/> 487 <Caret Line="106" Column="1" TopLine="93"/> 478 488 </Position29> 489 <Position30> 490 <Filename Value="Forms\UProjectManager.pas"/> 491 <Caret Line="38" Column="1" TopLine="25"/> 492 </Position30> 479 493 </JumpHistory> 480 494 </ProjectOptions> … … 489 503 <SyntaxOptions> 490 504 <SyntaxMode Value="Delphi"/> 505 <CStyleOperator Value="False"/> 506 <CPPInline Value="False"/> 491 507 </SyntaxOptions> 492 508 </Parsing> … … 503 519 <Debugging> 504 520 <GenerateDebugInfo Value="True"/> 505 <GenerateDwarf Value="True"/>506 521 <UseHeaptrc Value="True"/> 507 522 </Debugging> … … 520 535 </CompilerOptions> 521 536 <Debugging> 522 <BreakPoints Count=" 2">537 <BreakPoints Count="1"> 523 538 <Item1> 524 539 <Source Value="USourceCode.pas"/> 525 540 <Line Value="723"/> 526 541 </Item1> 527 <Item2>528 <Source Value="Forms\UProjectManager.pas"/>529 <Line Value="57"/>530 </Item2>531 542 </BreakPoints> 532 543 <Exceptions Count="3">
Note:
See TracChangeset
for help on using the changeset viewer.