Changeset 470 for GraphicTest
- Timestamp:
- Apr 9, 2015, 8:41:23 PM (10 years ago)
- Location:
- GraphicTest
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GraphicTest/GraphicTest.lpi
r459 r470 1 <?xml version="1.0" ?>1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <CONFIG> 3 3 <ProjectOptions> … … 27 27 <CStyleOperator Value="False"/> 28 28 <AllowLabel Value="False"/> 29 <CPPInline Value="False"/> 29 30 <UseAnsiStrings Value="False"/> 30 31 </SyntaxOptions> … … 47 48 </Options> 48 49 </Linking> 49 <Other>50 <CompilerMessages>51 <UseMsgFile Value="True"/>52 </CompilerMessages>53 <CompilerPath Value="$(CompPath)"/>54 </Other>55 50 </CompilerOptions> 56 51 </Item2> … … 64 59 <local> 65 60 <FormatVersion Value="1"/> 66 <LaunchingApplication PathPlusParams="/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>67 61 </local> 68 62 </RunParams> … … 90 84 <Filename Value="GraphicTest.lpr"/> 91 85 <IsPartOfProject Value="True"/> 92 <UnitName Value="GraphicTest"/>93 86 </Unit0> 94 87 <Unit1> … … 131 124 <Filename Value="Methods/UCanvasPixelsUpdateLock.pas"/> 132 125 <IsPartOfProject Value="True"/> 133 <UnitName Value="UCanvasPixelsUpdateLock"/>134 126 </Unit7> 135 127 <Unit8> 136 128 <Filename Value="Methods/ULazIntfImageColorsCopy.pas"/> 137 129 <IsPartOfProject Value="True"/> 138 <UnitName Value="ULazIntfImageColorsCopy"/>139 130 </Unit8> 140 131 <Unit9> 141 132 <Filename Value="Methods/ULazIntfImageColorsNoCopy.pas"/> 142 133 <IsPartOfProject Value="True"/> 143 <UnitName Value="ULazIntfImageColorsNoCopy"/>144 134 </Unit9> 145 135 <Unit10> … … 156 146 <Filename Value="Methods/UBitmapRawImageData.pas"/> 157 147 <IsPartOfProject Value="True"/> 158 <UnitName Value="UBitmapRawImageData"/>159 148 </Unit12> 160 149 <Unit13> 161 150 <Filename Value="Methods/UDummyMethod.pas"/> 162 151 <IsPartOfProject Value="True"/> 163 <UnitName Value="UDummyMethod"/>164 152 </Unit13> 165 153 <Unit14> 166 154 <Filename Value="Methods/UBitmapRawImageDataMove.pas"/> 167 155 <IsPartOfProject Value="True"/> 168 <UnitName Value="UBitmapRawImageDataMove"/>169 156 </Unit14> 170 157 <Unit15> … … 176 163 <Filename Value="Methods/UOpenGLPBOMethod.pas"/> 177 164 <IsPartOfProject Value="True"/> 178 <UnitName Value="UOpenGLPBOMethod"/>179 165 </Unit16> 180 166 <Unit17> … … 199 185 <SyntaxMode Value="Delphi"/> 200 186 <CStyleOperator Value="False"/> 187 <IncludeAssertionCode Value="True"/> 201 188 <AllowLabel Value="False"/> 189 <CPPInline Value="False"/> 202 190 <UseAnsiStrings Value="False"/> 203 191 </SyntaxOptions> … … 210 198 <StackChecks Value="True"/> 211 199 </Checks> 200 <VerifyObjMethodCallValidity Value="True"/> 212 201 </CodeGeneration> 213 202 <Linking> … … 222 211 </Linking> 223 212 <Other> 224 <CompilerMessages> 225 <UseMsgFile Value="True"/> 226 </CompilerMessages> 227 <CustomOptions Value="-dopengl 228 -dGR32"/> 229 <CompilerPath Value="$(CompPath)"/> 213 <CustomOptions Value="-dopengl"/> 230 214 </Other> 231 215 </CompilerOptions> -
GraphicTest/GraphicTest.lpr
r453 r470 9 9 Interfaces, // this includes the LCL widgetset 10 10 Forms, lazopenglcontext, UMainForm, UPlatform, UDrawMethod, UFastBitmap, 11 UDrawForm, bgrabitmappack, GR32_L, UCanvasPixels, UCanvasPixelsUpdateLock, 11 UDrawForm, bgrabitmappack, 12 {$IFDEF WINDOWS}GR32_L,{$ENDIF} 13 UCanvasPixels, UCanvasPixelsUpdateLock, 12 14 ULazIntfImageColorsCopy, ULazIntfImageColorsNoCopy, UBGRABitmapPaintBox, 13 15 UBitmapRawImageDataPaintBox, UBitmapRawImageData, UDummyMethod, -
GraphicTest/Methods/UGraphics32Method.pas
r459 r470 6 6 7 7 uses 8 Classes, SysUtils, UFastBitmap, UDrawMethod{$IFDEF gr32}, GR32, GR32_Image{$ENDIF}, Controls, 9 Graphics; 8 Classes, SysUtils, UFastBitmap, UDrawMethod, 9 {$IFDEF WINDOWS}GR32, GR32_Image,{$ENDIF} 10 Controls, Graphics; 10 11 11 {$IFDEF gr32}12 {$IFDEF WINDOWS} 12 13 type 13 14 { TGraphics32Method } … … 25 26 implementation 26 27 27 {$IFDEF gr32}28 {$IFDEF WINDOWS} 28 29 { TGraphics32Method } 29 30 -
GraphicTest/UMainForm.lfm
r454 r470 1 1 object MainForm: TMainForm 2 Left = 2583 Height = 4444 Top = 1765 Width = 8572 Left = 561 3 Height = 577 4 Top = 310 5 Width = 998 6 6 Caption = 'Graphic test' 7 ClientHeight = 4258 ClientWidth = 8577 ClientHeight = 548 8 ClientWidth = 998 9 9 Menu = MainMenu1 10 10 OnClose = FormClose … … 12 12 OnDestroy = FormDestroy 13 13 OnShow = FormShow 14 LCLVersion = '1. 1'14 LCLVersion = '1.5' 15 15 object PageControl1: TPageControl 16 Left = 45917 Height = 42516 Left = 600 17 Height = 548 18 18 Top = 0 19 19 Width = 398 … … 24 24 object TabSheet1: TTabSheet 25 25 Caption = 'Description' 26 ClientHeight = 39927 ClientWidth = 39 026 ClientHeight = 505 27 ClientWidth = 392 28 28 object Memo1: TMemo 29 29 Left = 0 30 Height = 39930 Height = 505 31 31 Top = 0 32 Width = 39 032 Width = 392 33 33 Align = alClient 34 34 ReadOnly = True … … 39 39 object TabSheet2: TTabSheet 40 40 Caption = 'Code' 41 ClientHeight = 38842 ClientWidth = 39 041 ClientHeight = 505 42 ClientWidth = 392 43 43 inline SynMemo1: TSynMemo 44 44 Cursor = crIBeam … … 480 480 end> 481 481 MouseActions = <> 482 MouseTextActions = <> 482 483 MouseSelActions = <> 484 VisibleSpecialChars = [vscSpace, vscTabAtLast] 483 485 SelectedColor.BackPriority = 50 484 486 SelectedColor.ForePriority = 50 … … 487 489 SelectedColor.ItalicPriority = 50 488 490 SelectedColor.UnderlinePriority = 50 491 SelectedColor.StrikeOutPriority = 50 489 492 inline SynLeftGutterPartList1: TSynGutterPartList 490 493 object SynGutterMarks1: TSynGutterMarks … … 511 514 Width = 2 512 515 MouseActions = <> 516 MarkupInfo.Background = clWhite 517 MarkupInfo.Foreground = clGray 513 518 end 514 519 object SynGutterCodeFolding1: TSynGutterCodeFolding … … 525 530 object Panel1: TPanel 526 531 Left = 0 527 Height = 425532 Height = 548 528 533 Top = 0 529 Width = 454534 Width = 595 530 535 Align = alClient 531 536 BevelOuter = bvNone 532 ClientHeight = 425533 ClientWidth = 454537 ClientHeight = 548 538 ClientWidth = 595 534 539 TabOrder = 1 535 540 object ListViewMethods: TListView 536 541 Left = 4 537 Height = 324542 Height = 423 538 543 Top = 4 539 Width = 448544 Width = 589 540 545 Anchors = [akTop, akLeft, akRight, akBottom] 541 546 Columns = < … … 569 574 end> 570 575 OwnerData = True 576 PopupMenu = PopupMenu1 571 577 ReadOnly = True 572 578 RowSelect = True … … 577 583 end 578 584 object ButtonSingleTest: TButton 579 Left = 8580 Height = 25581 Top = 336582 Width = 1 15585 Left = 232 586 Height = 32 587 Top = 468 588 Width = 160 583 589 Action = ATestOneMethod 584 590 Anchors = [akLeft, akBottom] … … 586 592 end 587 593 object ButtonBenchmark: TButton 588 Left = 136589 Height = 25590 Top = 336591 Width = 1 12594 Left = 232 595 Height = 33 596 Top = 432 597 Width = 160 592 598 Action = ATestAllMethods 593 599 Anchors = [akLeft, akBottom] … … 595 601 end 596 602 object FloatSpinEdit1: TFloatSpinEdit 597 Left = 88598 Height = 21599 Top = 368603 Left = 152 604 Height = 35 605 Top = 472 600 606 Width = 58 601 607 Anchors = [akLeft, akBottom] … … 607 613 end 608 614 object ButtonStop: TButton 609 Left = 256610 Height = 25611 Top = 336615 Left = 312 616 Height = 33 617 Top = 502 612 618 Width = 75 613 619 Action = ATestStop … … 617 623 object Label1: TLabel 618 624 Left = 8 619 Height = 13620 Top = 372621 Width = 69625 Height = 25 626 Top = 473 627 Width = 131 622 628 Anchors = [akLeft, akBottom] 623 629 Caption = 'Step duration:' … … 625 631 end 626 632 object Label2: TLabel 627 Left = 152628 Height = 13629 Top = 372630 Width = 5633 Left = 216 634 Height = 25 635 Top = 473 636 Width = 9 631 637 Anchors = [akLeft, akBottom] 632 638 Caption = 's' … … 634 640 end 635 641 object SpinEditWidth: TSpinEdit 636 Left = 204637 Height = 21638 Top = 368642 Left = 72 643 Height = 35 644 Top = 432 639 645 Width = 58 640 646 Anchors = [akLeft, akBottom] … … 645 651 end 646 652 object SpinEditHeight: TSpinEdit 647 Left = 273648 Height = 21649 Top = 368653 Left = 152 654 Height = 35 655 Top = 432 650 656 Width = 58 651 657 Anchors = [akLeft, akBottom] … … 656 662 end 657 663 object Label3: TLabel 658 Left = 169659 Height = 13660 Top = 373661 Width = 23664 Left = 8 665 Height = 25 666 Top = 436 667 Width = 42 662 668 Anchors = [akLeft, akBottom] 663 669 Caption = 'Size:' … … 665 671 end 666 672 object Label4: TLabel 667 Left = 265668 Height = 13669 Top = 372670 Width = 6673 Left = 136 674 Height = 25 675 Top = 442 676 Width = 10 671 677 Anchors = [akLeft, akBottom] 672 678 Caption = 'x' … … 674 680 end 675 681 object CheckBoxDoubleBuffered: TCheckBox 676 Left = 336677 Height = 17678 Top = 336679 Width = 98682 Left = 400 683 Height = 27 684 Top = 436 685 Width = 174 680 686 Anchors = [akLeft, akBottom] 681 687 Caption = 'Double buffered' … … 684 690 end 685 691 object CheckBoxEraseBackground: TCheckBox 686 Left = 336687 Height = 17688 Top = 353689 Width = 1 06692 Left = 400 693 Height = 27 694 Top = 468 695 Width = 188 690 696 Anchors = [akLeft, akBottom] 691 697 Caption = 'Erase background' … … 694 700 end 695 701 object CheckBox1: TCheckBox 696 Left = 336697 Height = 17698 Top = 369699 Width = 58702 Left = 400 703 Height = 27 704 Top = 503 705 Width = 96 700 706 Anchors = [akLeft, akBottom] 701 707 Caption = 'Opaque' … … 705 711 object Label5: TLabel 706 712 Left = 8 707 Height = 13708 Top = 399709 Width = 61713 Height = 25 714 Top = 510 715 Width = 118 710 716 Anchors = [akLeft, akBottom] 711 717 Caption = 'Pixel format:' … … 713 719 end 714 720 object ComboBox1: TComboBox 715 Left = 89716 Height = 21717 Top = 394718 Width = 1 00719 Anchors = [akLeft, akBottom] 720 ItemHeight = 13721 Left = 136 722 Height = 37 723 Top = 508 724 Width = 144 725 Anchors = [akLeft, akBottom] 726 ItemHeight = 0 721 727 OnChange = ComboBox1Change 722 728 Style = csDropDownList … … 725 731 end 726 732 object Splitter1: TSplitter 727 Left = 454728 Height = 425733 Left = 595 734 Height = 548 729 735 Top = 0 730 736 Width = 5 … … 734 740 object SynPasSyn1: TSynPasSyn 735 741 Enabled = False 736 AsmAttri.FrameEdges = sfeAround737 CommentAttri.FrameEdges = sfeAround738 IDEDirectiveAttri.FrameEdges = sfeAround739 IdentifierAttri.FrameEdges = sfeAround740 KeyAttri.FrameEdges = sfeAround741 NumberAttri.FrameEdges = sfeAround742 SpaceAttri.FrameEdges = sfeAround743 StringAttri.FrameEdges = sfeAround744 SymbolAttri.FrameEdges = sfeAround745 CaseLabelAttri.FrameEdges = sfeAround746 DirectiveAttri.FrameEdges = sfeAround747 742 CompilerMode = pcmDelphi 748 743 NestedComments = False … … 828 823 top = 76 829 824 end 825 object PopupMenu1: TPopupMenu 826 left = 401 827 top = 176 828 object MenuItem9: TMenuItem 829 Action = ATestOneMethod 830 end 831 object MenuItem10: TMenuItem 832 Action = ATestAllMethods 833 end 834 object MenuItem11: TMenuItem 835 Action = ATestStop 836 end 837 end 830 838 end -
GraphicTest/UMainForm.pas
r459 r470 43 43 Memo1: TMemo; 44 44 MenuItem1: TMenuItem; 45 MenuItem10: TMenuItem; 46 MenuItem11: TMenuItem; 45 47 MenuItem2: TMenuItem; 46 48 MenuItem3: TMenuItem; 47 49 MenuItem4: TMenuItem; 48 50 MenuItem8: TMenuItem; 51 MenuItem9: TMenuItem; 49 52 MenuItemTest: TMenuItem; 50 53 MenuItem5: TMenuItem; … … 53 56 PageControl1: TPageControl; 54 57 Panel1: TPanel; 58 PopupMenu1: TPopupMenu; 55 59 SaveDialog1: TSaveDialog; 56 60 SpinEditHeight: TSpinEdit; … … 378 382 procedure TMainForm.UpdateInterface; 379 383 begin 380 ButtonSingleTest.Enabled := not SingleTestActive and not AllTestActive and Assigned(ListViewMethods.Selected);381 ButtonBenchmark.Enabled := not AllTestActive and not SingleTestActive;382 ButtonStop.Enabled := SingleTestActive or AllTestActive;384 ATestOneMethod.Enabled := not SingleTestActive and not AllTestActive and Assigned(ListViewMethods.Selected); 385 ATestAllMethods.Enabled := not AllTestActive and not SingleTestActive; 386 ATestStop.Enabled := SingleTestActive or AllTestActive; 383 387 SpinEditWidth.MaxValue := Screen.DesktopWidth; 384 388 SpinEditHeight.MaxValue := Screen.DesktopHeight;
Note:
See TracChangeset
for help on using the changeset viewer.