Changeset 365
- Timestamp:
- Jan 2, 2025, 2:29:10 PM (4 days ago)
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r364 r365 499 499 FormTests.TestCases := GetTestCases; 500 500 FormTests.ShowModal; 501 FormTests.TestCases.Free; 502 FormTests.TestCases := nil; 501 503 FormTests.Free; 502 504 end; -
trunk/Forms/FormGameSystem.lfm
r344 r365 1 1 object FormGameSystem: TFormGameSystem 2 2 Left = 954 3 Height = 4 023 Height = 482 4 4 Top = 479 5 Width = 5425 Width = 650 6 6 Caption = 'Game system' 7 ClientHeight = 4 028 ClientWidth = 5429 DesignTimePPI = 1 207 ClientHeight = 482 8 ClientWidth = 650 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 12 LCLVersion = '3.6.0.0' 13 13 object ButtonSave: TButton 14 Left = 1 3315 Height = 3 216 Top = 36017 Width = 9414 Left = 144 15 Height = 38 16 Top = 432 17 Width = 113 18 18 Anchors = [akLeft, akBottom] 19 19 Caption = 'Save' … … 23 23 end 24 24 object ButtonLoad: TButton 25 Left = 2026 Height = 3 227 Top = 36028 Width = 9425 Left = 16 26 Height = 38 27 Top = 432 28 Width = 113 29 29 Anchors = [akLeft, akBottom] 30 30 Caption = 'Load' … … 34 34 end 35 35 object ButtonCancel: TButton 36 Left = 31137 Height = 3 238 Top = 36039 Width = 9436 Left = 515 37 Height = 38 38 Top = 432 39 Width = 113 40 40 Anchors = [akRight, akBottom] 41 41 Caption = 'Cancel' … … 45 45 end 46 46 object ButtonOk: TButton 47 Left = 43048 Height = 3 249 Top = 36050 Width = 9447 Left = 384 48 Height = 38 49 Top = 432 50 Width = 113 51 51 Anchors = [akRight, akBottom] 52 52 Caption = 'OK' … … 56 56 end 57 57 object PageControl1: TPageControl 58 Left = 1 359 Height = 33460 Top = 1 361 Width = 51158 Left = 16 59 Height = 400 60 Top = 16 61 Width = 612 62 62 ActivePage = TabSheetGeneral 63 63 Anchors = [akTop, akLeft, akRight, akBottom] … … 67 67 object TabSheetGeneral: TTabSheet 68 68 Caption = 'General' 69 ClientHeight = 3 0170 ClientWidth = 50369 ClientHeight = 360 70 ClientWidth = 602 71 71 ParentFont = False 72 72 object CheckBoxEmptyCellsNeutral: TCheckBox 73 Left = 1 374 Height = 2475 Top = 1 376 Width = 27773 Left = 16 74 Height = 30 75 Top = 16 76 Width = 357 77 77 Caption = 'Set cells without player units as neutral' 78 78 ParentFont = False … … 80 80 end 81 81 object CheckBoxUnitsSplitMerge: TCheckBox 82 Left = 1 383 Height = 2484 Top = 4685 Width = 17882 Left = 16 83 Height = 30 84 Top = 55 85 Width = 229 86 86 Caption = 'Units can split or merge' 87 87 ParentFont = False … … 89 89 end 90 90 object CheckBoxUnitsMoveImmediately: TCheckBox 91 Left = 1 392 Height = 2493 Top = 7994 Width = 18291 Left = 16 92 Height = 30 93 Top = 95 94 Width = 232 95 95 Caption = 'Units move immediately' 96 96 ParentFont = False … … 98 98 end 99 99 object Label5: TLabel 100 Left = 1 3101 Height = 2 0102 Top = 1 13103 Width = 1 28100 Left = 16 101 Height = 26 102 Top = 136 103 Width = 164 104 104 Caption = 'Preferred grid type:' 105 105 ParentColor = False … … 107 107 end 108 108 object ComboBoxPreferredGridType: TComboBox 109 Left = 2 27110 Height = 28111 Top = 1 13112 Width = 253113 ItemHeight = 20109 Left = 272 110 Height = 38 111 Top = 136 112 Width = 304 113 ItemHeight = 0 114 114 Items.Strings = ( 115 115 'None' … … 140 140 end 141 141 object OpenDialog1: TOpenDialog 142 Left = 367143 Top = 1 33142 Left = 440 143 Top = 160 144 144 end 145 145 object SaveDialog1: TSaveDialog 146 Left = 193147 Top = 1 33146 Left = 232 147 Top = 160 148 148 end 149 149 end -
trunk/Forms/FormMove.lfm
r317 r365 1 1 object FormMove: TFormMove 2 2 Left = 1104 3 Height = 2 783 Height = 299 4 4 Top = 604 5 Width = 4 215 Width = 467 6 6 ActiveControl = ButtonOk 7 7 Caption = 'Move' 8 ClientHeight = 2 789 ClientWidth = 4 2110 Constraints.MinHeight = 27811 Constraints.MinWidth = 4218 ClientHeight = 299 9 ClientWidth = 467 10 Constraints.MinHeight = 100 11 Constraints.MinWidth = 350 12 12 DesignTimePPI = 144 13 13 OnKeyPress = FormKeyPress 14 14 OnShow = FormShow 15 15 Position = poMainFormCenter 16 LCLVersion = '3.4.0.0' 17 object SpinEditOnce: TSpinEdit 18 Left = 208 19 Height = 43 20 Top = 40 21 Width = 98 22 OnChange = SpinEditOnceChange 23 OnKeyPress = FormKeyPress 24 ParentFont = False 25 TabOrder = 0 26 end 27 object Label1: TLabel 28 Left = 16 29 Height = 26 30 Top = 40 31 Width = 49 32 Caption = 'Once:' 33 ParentColor = False 34 ParentFont = False 35 end 16 LCLVersion = '3.6.0.0' 36 17 object ButtonOk: TButton 37 Left = 29618 Left = 134 38 19 Height = 38 39 Top = 2 2420 Top = 253 40 21 Width = 100 22 Anchors = [akRight, akBottom] 41 23 Caption = 'Ok' 42 24 Default = True 43 25 ModalResult = 1 44 26 ParentFont = False 45 TabOrder = 1 27 TabOrder = 0 28 OnClick = ButtonOkClick 46 29 end 47 30 object ButtonCancel: TButton 48 Left = 17631 Left = 246 49 32 Height = 38 50 Top = 2 2433 Top = 253 51 34 Width = 100 35 Anchors = [akRight, akBottom] 52 36 Caption = 'Cancel' 53 37 ModalResult = 2 54 38 ParentFont = False 55 TabOrder = 2 56 end 57 object Label2: TLabel 58 Left = 24 59 Height = 26 60 Top = 136 61 Width = 90 62 Caption = 'Every turn:' 63 ParentColor = False 64 ParentFont = False 65 end 66 object SpinEditRepeat: TSpinEdit 67 Left = 208 68 Height = 43 69 Top = 128 70 Width = 98 71 OnChange = SpinEditRepeatChange 72 OnKeyPress = FormKeyPress 73 ParentFont = False 74 TabOrder = 3 75 end 76 object TrackBarOnce: TTrackBar 77 Left = 88 78 Height = 58 79 Top = 80 80 Width = 245 81 OnChange = TrackBarOnceChange 82 PageSize = 1 83 Position = 0 84 TickStyle = tsNone 85 Anchors = [akTop, akLeft, akRight] 86 OnKeyPress = FormKeyPress 87 ParentFont = False 88 TabOrder = 4 89 end 90 object TrackBarRepeat: TTrackBar 91 Left = 96 92 Height = 58 93 Top = 168 94 Width = 231 95 OnChange = TrackBarRepeatChange 96 PageSize = 1 97 Position = 0 98 TickStyle = tsNone 99 Anchors = [akTop, akLeft, akRight] 100 OnKeyPress = FormKeyPress 101 ParentFont = False 102 TabOrder = 5 103 end 104 object ButtonOnceMin: TButton 105 Left = 8 106 Height = 38 107 Top = 88 108 Width = 80 109 Caption = 'Min' 110 ParentFont = False 111 TabOrder = 6 112 OnClick = ButtonOnceMinClick 113 end 114 object ButtonOnceMax: TButton 115 Left = 333 116 Height = 38 117 Top = 88 118 Width = 80 119 Anchors = [akTop, akRight] 120 Caption = 'Max' 121 ParentFont = False 122 TabOrder = 7 123 OnClick = ButtonOnceMaxClick 124 end 125 object ButtonRepeatMin: TButton 126 Left = 8 127 Height = 38 128 Top = 176 129 Width = 80 130 Caption = 'Min' 131 ParentFont = False 132 TabOrder = 8 133 OnClick = ButtonRepeatMinClick 134 end 135 object ButtonRepeatMax: TButton 136 Left = 333 137 Height = 38 138 Top = 176 139 Width = 80 140 Anchors = [akTop, akRight] 141 Caption = 'Max' 142 ParentFont = False 143 TabOrder = 9 144 OnClick = ButtonRepeatMaxClick 145 end 146 object Label3: TLabel 147 Left = 16 148 Height = 26 149 Top = 8 150 Width = 134 151 Caption = 'Win probability:' 152 ParentColor = False 153 ParentFont = False 39 TabOrder = 1 154 40 end 155 41 object LabelWinProbability: TLabel … … 163 49 end 164 50 object ButtonRemove: TButton 165 Left = 4851 Left = 358 166 52 Height = 38 167 Top = 2 2453 Top = 253 168 54 Width = 100 55 Anchors = [akRight, akBottom] 169 56 Caption = 'Delete' 170 57 ParentFont = False 171 TabOrder = 1058 TabOrder = 2 172 59 OnClick = ButtonRemoveClick 173 60 end 61 object ScrollBox1: TScrollBox 62 Left = 8 63 Height = 231 64 Top = 8 65 Width = 451 66 HorzScrollBar.Page = 298 67 VertScrollBar.Page = 214 68 Align = alTop 69 Anchors = [akTop, akLeft, akRight, akBottom] 70 BorderSpacing.Around = 8 71 ClientHeight = 229 72 ClientWidth = 449 73 TabOrder = 3 74 object Label3: TLabel 75 Left = 8 76 Height = 26 77 Top = 8 78 Width = 134 79 Caption = 'Win probability:' 80 ParentColor = False 81 ParentFont = False 82 end 83 object Label1: TLabel 84 Left = 8 85 Height = 26 86 Top = 48 87 Width = 49 88 Caption = 'Once:' 89 ParentColor = False 90 ParentFont = False 91 end 92 object SpinEditOnce: TSpinEdit 93 Left = 200 94 Height = 43 95 Top = 40 96 Width = 98 97 OnChange = SpinEditOnceChange 98 OnKeyPress = FormKeyPress 99 ParentFont = False 100 TabOrder = 0 101 end 102 object ButtonOnceMin: TButton 103 Left = 8 104 Height = 38 105 Top = 88 106 Width = 80 107 Caption = 'Min' 108 ParentFont = False 109 TabOrder = 1 110 OnClick = ButtonOnceMinClick 111 end 112 object TrackBarOnce: TTrackBar 113 Left = 96 114 Height = 58 115 Top = 80 116 Width = 275 117 OnChange = TrackBarOnceChange 118 PageSize = 1 119 Position = 0 120 TickStyle = tsNone 121 Anchors = [akTop, akLeft, akRight] 122 OnKeyPress = FormKeyPress 123 ParentFont = False 124 TabOrder = 2 125 end 126 object ButtonOnceMax: TButton 127 Left = 361 128 Height = 38 129 Top = 88 130 Width = 80 131 Anchors = [akTop, akRight] 132 Caption = 'Max' 133 ParentFont = False 134 TabOrder = 3 135 OnClick = ButtonOnceMaxClick 136 end 137 object ButtonRepeatMax: TButton 138 Left = 361 139 Height = 38 140 Top = 176 141 Width = 80 142 Anchors = [akTop, akRight] 143 Caption = 'Max' 144 ParentFont = False 145 TabOrder = 4 146 OnClick = ButtonRepeatMaxClick 147 end 148 object SpinEditRepeat: TSpinEdit 149 Left = 200 150 Height = 43 151 Top = 128 152 Width = 98 153 OnChange = SpinEditRepeatChange 154 OnKeyPress = FormKeyPress 155 ParentFont = False 156 TabOrder = 5 157 end 158 object TrackBarRepeat: TTrackBar 159 Left = 96 160 Height = 58 161 Top = 156 162 Width = 269 163 OnChange = TrackBarRepeatChange 164 PageSize = 1 165 Position = 0 166 TickStyle = tsNone 167 Anchors = [akTop, akLeft, akRight] 168 OnKeyPress = FormKeyPress 169 ParentFont = False 170 TabOrder = 6 171 end 172 object ButtonRepeatMin: TButton 173 Left = 8 174 Height = 38 175 Top = 176 176 Width = 80 177 Caption = 'Min' 178 ParentFont = False 179 TabOrder = 7 180 OnClick = ButtonRepeatMinClick 181 end 182 object Label2: TLabel 183 Left = 8 184 Height = 26 185 Top = 136 186 Width = 90 187 Caption = 'Every turn:' 188 ParentColor = False 189 ParentFont = False 190 end 191 end 174 192 end -
trunk/Forms/FormMove.lrj
r317 r365 1 1 {"version":1,"strings":[ 2 2 {"hash":345797,"name":"tformmove.caption","sourcebytes":[77,111,118,101],"value":"Move"}, 3 {"hash":5654922,"name":"tformmove.label1.caption","sourcebytes":[79,110,99,101,58],"value":"Once:"},4 3 {"hash":1371,"name":"tformmove.buttonok.caption","sourcebytes":[79,107],"value":"Ok"}, 5 4 {"hash":77089212,"name":"tformmove.buttoncancel.caption","sourcebytes":[67,97,110,99,101,108],"value":"Cancel"}, 6 {"hash":188155274,"name":"tformmove.label2.caption","sourcebytes":[69,118,101,114,121,32,116,117,114,110,58],"value":"Every turn:"}, 5 {"hash":8736,"name":"tformmove.labelwinprobability.caption","sourcebytes":[32,32,32],"value":" "}, 6 {"hash":78392485,"name":"tformmove.buttonremove.caption","sourcebytes":[68,101,108,101,116,101],"value":"Delete"}, 7 {"hash":261993402,"name":"tformmove.label3.caption","sourcebytes":[87,105,110,32,112,114,111,98,97,98,105,108,105,116,121,58],"value":"Win probability:"}, 8 {"hash":5654922,"name":"tformmove.label1.caption","sourcebytes":[79,110,99,101,58],"value":"Once:"}, 7 9 {"hash":21502,"name":"tformmove.buttononcemin.caption","sourcebytes":[77,105,110],"value":"Min"}, 8 10 {"hash":21384,"name":"tformmove.buttononcemax.caption","sourcebytes":[77,97,120],"value":"Max"}, 11 {"hash":21384,"name":"tformmove.buttonrepeatmax.caption","sourcebytes":[77,97,120],"value":"Max"}, 9 12 {"hash":21502,"name":"tformmove.buttonrepeatmin.caption","sourcebytes":[77,105,110],"value":"Min"}, 10 {"hash":21384,"name":"tformmove.buttonrepeatmax.caption","sourcebytes":[77,97,120],"value":"Max"}, 11 {"hash":261993402,"name":"tformmove.label3.caption","sourcebytes":[87,105,110,32,112,114,111,98,97,98,105,108,105,116,121,58],"value":"Win probability:"}, 12 {"hash":8736,"name":"tformmove.labelwinprobability.caption","sourcebytes":[32,32,32],"value":" "}, 13 {"hash":78392485,"name":"tformmove.buttonremove.caption","sourcebytes":[68,101,108,101,116,101],"value":"Delete"} 13 {"hash":188155274,"name":"tformmove.label2.caption","sourcebytes":[69,118,101,114,121,32,116,117,114,110,58],"value":"Every turn:"} 14 14 ]} -
trunk/Forms/FormMove.pas
r318 r365 12 12 13 13 TFormMove = class(TFormEx) 14 ButtonOnceMax: TButton; 15 ButtonOnceMin: TButton; 14 16 ButtonRemove: TButton; 15 ButtonRepeatMax: TButton;16 ButtonOnceMin: TButton;17 ButtonOnceMax: TButton;18 17 ButtonOk: TButton; 19 18 ButtonCancel: TButton; 19 ButtonRepeatMax: TButton; 20 20 ButtonRepeatMin: TButton; 21 21 Label1: TLabel; … … 23 23 Label3: TLabel; 24 24 LabelWinProbability: TLabel; 25 ScrollBox1: TScrollBox; 25 26 SpinEditOnce: TSpinEdit; 26 27 SpinEditRepeat: TSpinEdit; 27 28 TrackBarOnce: TTrackBar; 28 29 TrackBarRepeat: TTrackBar; 30 procedure ButtonOkClick(Sender: TObject); 29 31 procedure ButtonOnceMaxClick(Sender: TObject); 30 32 procedure ButtonRemoveClick(Sender: TObject); … … 107 109 end; 108 110 111 procedure TFormMove.ButtonOkClick(Sender: TObject); 112 begin 113 114 end; 115 109 116 procedure TFormMove.ButtonRemoveClick(Sender: TObject); 110 117 begin -
trunk/Forms/FormNew.lfm
r364 r365 3 3 Height = 794 4 4 Top = 155 5 Width = 1 2185 Width = 1401 6 6 Caption = 'New game' 7 7 ClientHeight = 794 8 ClientWidth = 1 2188 ClientWidth = 1401 9 9 Constraints.MinHeight = 502 10 10 Constraints.MinWidth = 667 … … 19 19 Height = 676 20 20 Top = 60 21 Width = 81321 Width = 996 22 22 ActivePage = TabSheetMap 23 23 Align = alClient … … 30 30 Caption = 'Mode' 31 31 ClientHeight = 636 32 ClientWidth = 80332 ClientWidth = 986 33 33 ParentFont = False 34 34 object Panel3: TPanel … … 36 36 Height = 636 37 37 Top = 0 38 Width = 80338 Width = 986 39 39 Align = alClient 40 40 BevelOuter = bvNone 41 41 ClientHeight = 636 42 ClientWidth = 80342 ClientWidth = 986 43 43 ParentFont = False 44 44 TabOrder = 0 … … 173 173 Caption = 'Players' 174 174 ClientHeight = 636 175 ClientWidth = 803175 ClientWidth = 986 176 176 ParentFont = False 177 177 object Panel2: TPanel … … 179 179 Height = 636 180 180 Top = 0 181 Width = 803181 Width = 986 182 182 Align = alClient 183 183 BevelOuter = bvNone … … 189 189 Caption = 'Map' 190 190 ClientHeight = 636 191 ClientWidth = 803191 ClientWidth = 986 192 192 OnShow = TabSheetMapShow 193 193 ParentFont = False … … 196 196 Height = 636 197 197 Top = 0 198 Width = 803198 Width = 986 199 199 Align = alClient 200 200 BevelOuter = bvNone 201 201 ClientHeight = 636 202 ClientWidth = 803202 ClientWidth = 986 203 203 ParentFont = False 204 204 TabOrder = 0 … … 247 247 Height = 58 248 248 Top = 8 249 Width = 552249 Width = 735 250 250 Max = 100 251 251 Min = 2 … … 261 261 Height = 58 262 262 Top = 49 263 Width = 552263 Width = 735 264 264 Max = 100 265 265 Min = 2 … … 418 418 Height = 43 419 419 Top = 184 420 Width = 533420 Width = 716 421 421 Anchors = [akTop, akLeft, akRight] 422 422 ParentFont = False … … 425 425 end 426 426 object ButtonImageBrowse: TButton 427 Left = 688427 Left = 871 428 428 Height = 43 429 429 Top = 184 … … 489 489 Height = 360 490 490 Top = 272 491 Width = 374491 Width = 557 492 492 Anchors = [akTop, akLeft, akRight, akBottom] 493 493 OnResize = Image1Resize … … 517 517 Caption = 'Rules' 518 518 ClientHeight = 636 519 ClientWidth = 803519 ClientWidth = 986 520 520 ParentFont = False 521 521 object Panel4: TPanel … … 523 523 Height = 636 524 524 Top = 0 525 Width = 803525 Width = 986 526 526 Align = alClient 527 527 BevelOuter = bvNone 528 528 ClientHeight = 636 529 ClientWidth = 803529 ClientWidth = 986 530 530 ParentFont = False 531 531 TabOrder = 0 … … 616 616 Height = 110 617 617 Top = 314 618 Width = 780618 Width = 963 619 619 ActivePage = TabSheetCaptureEntireMap 620 620 Anchors = [akTop, akLeft, akRight] … … 631 631 object TabSheetCaptureCells: TTabSheet 632 632 ClientHeight = 67 633 ClientWidth = 770633 ClientWidth = 953 634 634 ParentFont = False 635 635 object Label14: TLabel … … 656 656 object TabSheetStayAliveTurns: TTabSheet 657 657 ClientHeight = 67 658 ClientWidth = 770658 ClientWidth = 953 659 659 ParentFont = False 660 660 object Label13: TLabel … … 693 693 Height = 54 694 694 Top = 740 695 Width = 1 218695 Width = 1401 696 696 Align = alBottom 697 697 BevelOuter = bvNone 698 698 ClientHeight = 54 699 ClientWidth = 1 218699 ClientWidth = 1401 700 700 ParentFont = False 701 701 TabOrder = 1 702 702 object ButtonOk: TButton 703 Left = 1 098703 Left = 1152 704 704 Height = 38 705 705 Top = 8 … … 713 713 end 714 714 object ButtonCancel: TButton 715 Left = 967715 Left = 1272 716 716 Height = 38 717 717 Top = 8 … … 725 725 end 726 726 object PanelChat: TPanel 727 Left = 827727 Left = 1010 728 728 Height = 684 729 729 Top = 56 … … 735 735 end 736 736 object Splitter1: TSplitter 737 Left = 821737 Left = 1004 738 738 Height = 684 739 739 Top = 56 … … 746 746 Height = 56 747 747 Top = 0 748 Width = 1 218748 Width = 1401 749 749 Align = alTop 750 750 BevelOuter = bvNone 751 751 ClientHeight = 56 752 ClientWidth = 1 218752 ClientWidth = 1401 753 753 ParentFont = False 754 754 TabOrder = 4 -
trunk/Forms/FormServer.lfm
r364 r365 10 10 LCLVersion = '3.6.0.0' 11 11 object ButtonCancel: TButton 12 Left = 33112 Left = 472 13 13 Height = 38 14 14 Top = 241 … … 21 21 end 22 22 object ButtonOk: TButton 23 Left = 46623 Left = 344 24 24 Height = 38 25 25 Top = 241 -
trunk/Forms/FormSettings.lfm
r364 r365 16 16 LCLVersion = '3.6.0.0' 17 17 object ButtonOk: TButton 18 Left = 73518 Left = 608 19 19 Height = 38 20 20 Top = 568 … … 27 27 end 28 28 object ButtonCancel: TButton 29 Left = 60029 Left = 735 30 30 Height = 38 31 31 Top = 568 -
trunk/Packages/Common/Forms/FormAbout.lfm
r315 r365 1 1 object FormAbout: TFormAbout 2 2 Left = 624 3 Height = 4023 Height = 397 4 4 Top = 622 5 Width = 7 025 Width = 714 6 6 Caption = 'About' 7 ClientHeight = 4028 ClientWidth = 7 027 ClientHeight = 397 8 ClientWidth = 714 9 9 DesignTimePPI = 144 10 10 OnShow = FormShow 11 11 Position = poScreenCenter 12 LCLVersion = ' 2.2.6.0'12 LCLVersion = '3.6.0.0' 13 13 object LabelDescription: TLabel 14 14 Left = 30 15 15 Height = 26 16 Top = 13517 Width = 6 4216 Top = 0 17 Width = 654 18 18 Align = alTop 19 19 BorderSpacing.Left = 30 … … 28 28 Left = 30 29 29 Height = 26 30 Top = 19131 Width = 6 4230 Top = 221 31 Width = 654 32 32 Align = alTop 33 33 BorderSpacing.Around = 30 … … 39 39 Left = 0 40 40 Height = 135 41 Top = 042 Width = 7 0241 Top = 56 42 Width = 714 43 43 Align = alTop 44 44 BevelOuter = bvNone 45 45 ClientHeight = 135 46 ClientWidth = 7 0246 ClientWidth = 714 47 47 FullRepaint = False 48 48 ParentFont = False … … 52 52 Height = 84 53 53 Top = 20 54 Width = 5 6454 Width = 576 55 55 Anchors = [akTop, akLeft, akRight] 56 56 AutoSize = False … … 74 74 Left = 0 75 75 Height = 75 76 Top = 32 777 Width = 7 0276 Top = 322 77 Width = 714 78 78 Align = alBottom 79 79 BevelOuter = bvNone 80 80 ClientHeight = 75 81 ClientWidth = 7 0281 ClientWidth = 714 82 82 TabOrder = 1 83 83 object ButtonHomePage: TButton … … 88 88 Anchors = [akLeft, akBottom] 89 89 Caption = 'Home page' 90 OnClick = ButtonHomePageClick91 90 ParentFont = False 92 91 TabOrder = 0 92 OnClick = ButtonHomePageClick 93 93 end 94 94 object ButtonClose: TButton 95 Left = 5 3195 Left = 543 96 96 Height = 38 97 97 Top = 24 -
trunk/Packages/Common/Forms/FormItem.lfm
r355 r365 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 LCLVersion = '3. 4.0.0'12 LCLVersion = '3.6.0.0' 13 13 object ButtonOk: TButton 14 Left = 34414 Left = 224 15 15 Height = 38 16 16 Top = 353 … … 24 24 end 25 25 object ButtonCancel: TButton 26 Left = 20826 Left = 348 27 27 Height = 38 28 28 Top = 353 -
trunk/Packages/Common/Forms/FormKeyShortcuts.lfm
r362 r365 1 1 object FormKeyShortcuts: TFormKeyShortcuts 2 2 Left = 839 3 Height = 2743 Height = 329 4 4 Top = 609 5 Width = 5875 Width = 704 6 6 Caption = 'Key shortcuts' 7 ClientHeight = 2748 ClientWidth = 5879 DesignTimePPI = 1 207 ClientHeight = 329 8 ClientWidth = 704 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy … … 13 13 LCLVersion = '3.6.0.0' 14 14 object ListView1: TListView 15 Left = 816 Height = 2 1217 Top = 818 Width = 57115 Left = 10 16 Height = 262 17 Top = 10 18 Width = 684 19 19 Align = alTop 20 20 Anchors = [akTop, akLeft, akRight, akBottom] 21 BorderSpacing.Around = 821 BorderSpacing.Around = 10 22 22 Columns = < 23 23 item 24 24 Caption = 'Action' 25 Width = 2 0025 Width = 240 26 26 end 27 27 item 28 28 Caption = 'Window' 29 Width = 2 0029 Width = 240 30 30 end 31 31 item 32 32 Caption = 'Shortcut' 33 Width = 1 6633 Width = 199 34 34 end> 35 35 OwnerData = True … … 44 44 end 45 45 object ButtonClose: TButton 46 Left = 48547 Height = 3 148 Top = 2 3249 Width = 9446 Left = 581 47 Height = 37 48 Top = 284 49 Width = 113 50 50 Anchors = [akRight, akBottom] 51 51 Caption = 'Close' … … 55 55 end 56 56 object PopupMenu1: TPopupMenu 57 Left = 34058 Top = 1 2057 Left = 408 58 Top = 144 59 59 object MenuItem1: TMenuItem 60 60 Caption = 'Execute' … … 67 67 Column = 0 68 68 Order = soNone 69 Left = 18470 Top = 1 2069 Left = 221 70 Top = 144 71 71 end 72 72 end -
trunk/Packages/Common/Forms/FormTest.lfm
r315 r365 8 8 ClientWidth = 865 9 9 DesignTimePPI = 144 10 LCLVersion = '2.2.6.0' 10 OnShow = FormShow 11 LCLVersion = '3.6.0.0' 11 12 object MemoLog: TMemo 12 13 Left = 8 13 Height = 50514 Height = 464 14 15 Top = 8 15 16 Width = 849 16 Align = alClient 17 Align = alTop 18 Anchors = [akTop, akLeft, akRight, akBottom] 17 19 BorderSpacing.Around = 8 18 20 ReadOnly = True … … 20 22 TabOrder = 0 21 23 end 24 object ButtonRun: TButton 25 Left = 616 26 Height = 37 27 Top = 480 28 Width = 112 29 Anchors = [akRight, akBottom] 30 Caption = 'Run' 31 TabOrder = 1 32 OnClick = ButtonRunClick 33 end 34 object ButtonClose: TButton 35 Left = 745 36 Height = 37 37 Top = 480 38 Width = 112 39 Anchors = [akRight, akBottom] 40 Caption = 'Close' 41 ModalResult = 11 42 TabOrder = 2 43 OnClick = ButtonRunClick 44 end 22 45 end -
trunk/Packages/Common/Forms/FormTest.lrj
r315 r365 1 1 {"version":1,"strings":[ 2 {"hash":371876,"name":"tformtest.caption","sourcebytes":[84,101,115,116],"value":"Test"} 2 {"hash":371876,"name":"tformtest.caption","sourcebytes":[84,101,115,116],"value":"Test"}, 3 {"hash":22974,"name":"tformtest.buttonrun.caption","sourcebytes":[82,117,110],"value":"Run"}, 4 {"hash":4863637,"name":"tformtest.buttonclose.caption","sourcebytes":[67,108,111,115,101],"value":"Close"} 3 5 ]} -
trunk/Packages/Common/Forms/FormTest.pas
r315 r365 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, FormEx; 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, FormEx, 7 TestCase; 7 8 8 9 type … … 11 12 12 13 TFormTest = class(TFormEx) 14 ButtonRun: TButton; 15 ButtonClose: TButton; 13 16 MemoLog: TMemo; 17 procedure FormShow(Sender: TObject); 18 procedure ButtonRunClick(Sender: TObject); 19 private 20 FTestCase: TTestCase; 21 procedure SetTestCase(AValue: TTestCase); 22 public 23 property TestCase: TTestCase read FTestCase write SetTestCase; 14 24 end; 15 25 … … 19 29 {$R *.lfm} 20 30 31 { TFormTest } 32 33 procedure TFormTest.FormShow(Sender: TObject); 34 begin 35 if Assigned(FTestCase) then MemoLog.Text := FTestCase.Log; 36 end; 37 38 procedure TFormTest.SetTestCase(AValue: TTestCase); 39 begin 40 if FTestCase = AValue then Exit; 41 FTestCase := AValue; 42 end; 43 44 procedure TFormTest.ButtonRunClick(Sender: TObject); 45 begin 46 if Assigned(FTestCase) then begin 47 FTestCase.Run; 48 MemoLog.Text := FTestCase.Log; 49 end; 50 end; 51 21 52 end. 22 53 -
trunk/Packages/Common/Forms/FormTests.lfm
r315 r365 9 9 DesignTimePPI = 144 10 10 OnShow = FormShow 11 LCLVersion = ' 2.2.6.0'11 LCLVersion = '3.6.0.0' 12 12 object ListViewTestCases: TListView 13 13 Left = 19 … … 36 36 end 37 37 object ButtonRun: TButton 38 Left = 94538 Left = 816 39 39 Height = 37 40 40 Top = 585 … … 42 42 Anchors = [akRight, akBottom] 43 43 Caption = 'Run' 44 TabOrder = 1 44 45 OnClick = ButtonRunClick 45 TabOrder = 146 46 end 47 47 object LabelResult: TLabel … … 53 53 Caption = ' ' 54 54 ParentColor = False 55 end 56 object ButtonClose: TButton 57 Left = 945 58 Height = 37 59 Top = 585 60 Width = 112 61 Anchors = [akRight, akBottom] 62 Caption = 'Close' 63 ModalResult = 11 64 TabOrder = 2 65 OnClick = ButtonRunClick 55 66 end 56 67 object ActionList1: TActionList -
trunk/Packages/Common/Forms/FormTests.lrj
r315 r365 5 5 {"hash":22974,"name":"tformtests.buttonrun.caption","sourcebytes":[82,117,110],"value":"Run"}, 6 6 {"hash":8736,"name":"tformtests.labelresult.caption","sourcebytes":[32,32,32],"value":" "}, 7 {"hash":4863637,"name":"tformtests.buttonclose.caption","sourcebytes":[67,108,111,115,101],"value":"Close"}, 7 8 {"hash":368487,"name":"tformtests.ashow.caption","sourcebytes":[83,104,111,119],"value":"Show"}, 8 9 {"hash":22974,"name":"tformtests.arun.caption","sourcebytes":[82,117,110],"value":"Run"} -
trunk/Packages/Common/Forms/FormTests.pas
r315 r365 16 16 ActionList1: TActionList; 17 17 ButtonRun: TButton; 18 ButtonClose: TButton; 18 19 LabelResult: TLabel; 19 20 ListViewTestCases: TListView; … … 119 120 with TFormTest.Create(nil) do 120 121 try 121 MemoLog.Text := TTestCase(ListViewTestCases.Selected.Data).Log;122 TestCase := TTestCase(ListViewTestCases.Selected.Data); 122 123 ShowModal; 124 ReloadList; 123 125 finally 124 126 Free;
Note:
See TracChangeset
for help on using the changeset viewer.