Changeset 574 for Generics/TemplateGenerics/Demo
- Timestamp:
- Jun 25, 2024, 11:10:44 AM (5 months ago)
- Location:
- Generics/TemplateGenerics/Demo
- Files:
-
- 4 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Demo
- Property svn:ignore
-
old new 3 3 heaptrclog.trc 4 4 Demo 5 backup
-
- Property svn:ignore
-
Generics/TemplateGenerics/Demo/Demo.lpi
r325 r574 1 <?xml version="1.0" ?>1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <CONFIG> 3 3 <ProjectOptions> 4 <Version Value=" 9"/>4 <Version Value="12"/> 5 5 <General> 6 <MainUnit Value="0"/> 6 <Flags> 7 <CompatibilityMode Value="True"/> 8 </Flags> 7 9 <ResourceType Value="res"/> 8 10 <UseXPManifest Value="True"/> 9 11 <Icon Value="0"/> 10 <ActiveWindowIndexAtStart Value="0"/>11 12 </General> 12 13 <i18n> 13 14 <EnableI18N LFM="False"/> 14 15 </i18n> 15 <VersionInfo>16 <StringTable ProductVersion=""/>17 </VersionInfo>18 16 <BuildModes Count="1"> 19 17 <Item1 Name="default" Default="True"/> … … 21 19 <PublishOptions> 22 20 <Version Value="2"/> 23 <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>24 <ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>25 21 </PublishOptions> 26 22 <RunParams> 27 < local>28 <FormatVersion Value="1"/>29 < LaunchingApplication PathPlusParams="/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>30 </ local>23 <FormatVersion Value="2"/> 24 <Modes Count="1"> 25 <Mode0 Name="default"/> 26 </Modes> 31 27 </RunParams> 32 28 <RequiredPackages Count="2"> … … 43 39 <Filename Value="Demo.lpr"/> 44 40 <IsPartOfProject Value="True"/> 45 <UnitName Value="Demo"/> 46 <WindowIndex Value="0"/> 47 <TopLine Value="1"/> 48 <CursorPos X="26" Y="8"/> 41 <EditorIndex Value="1"/> 42 <CursorPos X="32" Y="17"/> 49 43 <UsageCount Value="233"/> 50 < DefaultSyntaxHighlighter Value="Delphi"/>44 <Loaded Value="True"/> 51 45 </Unit0> 52 46 <Unit1> 53 <Filename Value=" UMainForm.pas"/>47 <Filename Value="FormMain.pas"/> 54 48 <IsPartOfProject Value="True"/> 55 <ComponentName Value="MainForm"/> 49 <ComponentName Value="FormMain"/> 50 <HasResources Value="True"/> 56 51 <ResourceBaseClass Value="Form"/> 57 <UnitName Value="UMainForm"/> 58 <EditorIndex Value="0"/> 59 <WindowIndex Value="0"/> 60 <TopLine Value="640"/> 61 <CursorPos X="20" Y="653"/> 52 <IsVisibleTab Value="True"/> 53 <CursorPos X="61" Y="17"/> 62 54 <UsageCount Value="233"/> 63 55 <Bookmarks Count="1"> 64 <Item0 X="65" Y="27 5" ID="2"/>56 <Item0 X="65" Y="274" ID="2"/> 65 57 </Bookmarks> 66 58 <Loaded Value="True"/> 67 59 <LoadedDesigner Value="True"/> 68 <DefaultSyntaxHighlighter Value="Delphi"/>69 60 </Unit1> 70 61 <Unit2> 71 62 <Filename Value="../Specialized/ListDouble.pas"/> 72 <UnitName Value="ListDouble"/> 73 <WindowIndex Value="0"/> 74 <TopLine Value="1"/> 75 <CursorPos X="1" Y="11"/> 63 <CursorPos Y="11"/> 76 64 <UsageCount Value="3"/> 77 65 </Unit2> 78 66 <Unit3> 79 67 <Filename Value="../Specialized/SpecializedList.pas"/> 80 <UnitName Value="SpecializedList"/> 81 <EditorIndex Value="3"/> 82 <WindowIndex Value="0"/> 68 <EditorIndex Value="2"/> 83 69 <TopLine Value="47"/> 84 70 <CursorPos X="20" Y="60"/> 85 71 <UsageCount Value="15"/> 86 72 <Loaded Value="True"/> 73 <DefaultSyntaxHighlighter Value="Delphi"/> 87 74 </Unit3> 88 75 <Unit4> 89 76 <Filename Value="../Specialized/ListObject.pas"/> 90 <UnitName Value="ListObject"/>91 <WindowIndex Value="0"/>92 77 <TopLine Value="33"/> 93 78 <CursorPos X="12" Y="56"/> … … 96 81 <Unit5> 97 82 <Filename Value="../Specialized/ListPointer.pas"/> 98 <UnitName Value="ListPointer"/>99 <WindowIndex Value="0"/>100 <TopLine Value="1"/>101 83 <CursorPos X="23" Y="21"/> 102 84 <UsageCount Value="3"/> … … 104 86 <Unit6> 105 87 <Filename Value="../Specialized/TreeString.pas"/> 106 <UnitName Value="TreeString"/>107 <WindowIndex Value="0"/>108 <TopLine Value="1"/>109 88 <CursorPos X="23" Y="24"/> 110 89 <UsageCount Value="3"/> … … 112 91 <Unit7> 113 92 <Filename Value="../Specialized/TreePointer.pas"/> 114 <UnitName Value="TreePointer"/>115 <WindowIndex Value="0"/>116 <TopLine Value="1"/>117 93 <CursorPos X="23" Y="13"/> 118 94 <UsageCount Value="3"/> … … 120 96 <Unit8> 121 97 <Filename Value="../Specialized/TreeObject.pas"/> 122 <UnitName Value="TreeObject"/>123 <WindowIndex Value="0"/>124 <TopLine Value="1"/>125 98 <CursorPos X="23" Y="24"/> 126 99 <UsageCount Value="3"/> … … 128 101 <Unit9> 129 102 <Filename Value="../Specialized/TreeInteger.pas"/> 130 <UnitName Value="TreeInteger"/>131 <WindowIndex Value="0"/>132 <TopLine Value="1"/>133 103 <CursorPos X="31" Y="13"/> 134 104 <UsageCount Value="3"/> … … 136 106 <Unit10> 137 107 <Filename Value="../Specialized/ListString.pas"/> 138 <UnitName Value="ListString"/>139 <WindowIndex Value="0"/>140 <TopLine Value="1"/>141 108 <CursorPos X="29" Y="17"/> 142 109 <UsageCount Value="3"/> … … 144 111 <Unit11> 145 112 <Filename Value="../Generic/TreeImplementation.tpl"/> 146 <WindowIndex Value="0"/> 147 <TopLine Value="1"/> 148 <CursorPos X="1" Y="4"/> 113 <CursorPos Y="4"/> 149 114 <UsageCount Value="3"/> 150 115 <DefaultSyntaxHighlighter Value="None"/> … … 152 117 <Unit12> 153 118 <Filename Value="../Generic/TreeInterface.tpl"/> 154 <WindowIndex Value="0"/>155 <TopLine Value="1"/>156 119 <CursorPos X="21" Y="6"/> 157 120 <UsageCount Value="3"/> … … 160 123 <Unit13> 161 124 <Filename Value="../Generic/ListInterface.tpl"/> 162 <WindowIndex Value="0"/>163 <TopLine Value="1"/>164 <CursorPos X="1" Y="1"/>165 125 <UsageCount Value="3"/> 166 126 <DefaultSyntaxHighlighter Value="None"/> … … 168 128 <Unit14> 169 129 <Filename Value="../Generic/ListImplementation.tpl"/> 170 <WindowIndex Value="0"/>171 <TopLine Value="1"/>172 130 <CursorPos X="25" Y="13"/> 173 131 <UsageCount Value="4"/> … … 176 134 <Unit15> 177 135 <Filename Value="../Generic/DictionaryImplementation.tpl"/> 178 <WindowIndex Value="0"/>179 136 <TopLine Value="4"/> 180 137 <CursorPos X="3" Y="6"/> … … 184 141 <Unit16> 185 142 <Filename Value="../Generic/DictionaryInterface.tpl"/> 186 <WindowIndex Value="0"/>187 <TopLine Value="1"/>188 143 <CursorPos X="14" Y="16"/> 189 144 <UsageCount Value="3"/> … … 192 147 <Unit17> 193 148 <Filename Value="../Specialized/DictionaryString.pas"/> 194 <UnitName Value="DictionaryString"/>195 <WindowIndex Value="0"/>196 <TopLine Value="1"/>197 149 <CursorPos X="32" Y="18"/> 198 150 <UsageCount Value="3"/> … … 200 152 <Unit18> 201 153 <Filename Value="../Generic/StackInterface.tpl"/> 202 <WindowIndex Value="0"/>203 <TopLine Value="1"/>204 154 <CursorPos X="20" Y="12"/> 205 155 <UsageCount Value="1"/> … … 208 158 <Unit19> 209 159 <Filename Value="../Specialized/StackString.pas"/> 210 <UnitName Value="StackString"/> 211 <WindowIndex Value="0"/> 212 <TopLine Value="1"/> 213 <CursorPos X="1" Y="22"/> 160 <CursorPos Y="22"/> 214 161 <UsageCount Value="1"/> 215 162 </Unit19> 216 163 <Unit20> 217 164 <Filename Value="../Generic/StackImplementation.tpl"/> 218 <WindowIndex Value="0"/>219 <TopLine Value="1"/>220 <CursorPos X="1" Y="1"/>221 165 <UsageCount Value="1"/> 222 166 <DefaultSyntaxHighlighter Value="None"/> … … 224 168 <Unit21> 225 169 <Filename Value="../Generic/QueueImplementation.tpl"/> 226 <WindowIndex Value="0"/> 227 <TopLine Value="1"/> 228 <CursorPos X="1" Y="3"/> 170 <CursorPos Y="3"/> 229 171 <UsageCount Value="1"/> 230 172 <DefaultSyntaxHighlighter Value="None"/> … … 232 174 <Unit22> 233 175 <Filename Value="../Generic/QueueInterface.tpl"/> 234 <WindowIndex Value="0"/> 235 <TopLine Value="1"/> 236 <CursorPos X="1" Y="3"/> 176 <CursorPos Y="3"/> 237 177 <UsageCount Value="1"/> 238 178 <DefaultSyntaxHighlighter Value="None"/> … … 240 180 <Unit23> 241 181 <Filename Value="../Specialized/ListChar.pas"/> 242 <UnitName Value="ListChar"/>243 <WindowIndex Value="0"/>244 182 <TopLine Value="45"/> 245 183 <CursorPos X="9" Y="79"/> … … 248 186 <Unit24> 249 187 <Filename Value="../Generic/SetInterface.tpl"/> 250 <WindowIndex Value="0"/>251 <TopLine Value="1"/>252 188 <CursorPos X="21" Y="4"/> 253 189 <UsageCount Value="5"/> … … 256 192 <Unit25> 257 193 <Filename Value="../Specialized/SetChar.pas"/> 258 <UnitName Value="SetChar"/> 259 <WindowIndex Value="0"/> 260 <TopLine Value="1"/> 261 <CursorPos X="1" Y="25"/> 194 <CursorPos Y="25"/> 262 195 <UsageCount Value="5"/> 263 196 </Unit25> 264 197 <Unit26> 265 198 <Filename Value="../Generic/SetImplementation.tpl"/> 266 <WindowIndex Value="0"/> 267 <TopLine Value="1"/> 268 <CursorPos X="1" Y="3"/> 199 <CursorPos Y="3"/> 269 200 <UsageCount Value="5"/> 270 201 <DefaultSyntaxHighlighter Value="None"/> … … 272 203 <Unit27> 273 204 <Filename Value="../Generic/RangeInterface.tpl"/> 274 <WindowIndex Value="0"/>275 <TopLine Value="1"/>276 205 <CursorPos X="7" Y="4"/> 277 206 <UsageCount Value="5"/> … … 280 209 <Unit28> 281 210 <Filename Value="../Specialized/RangeDateTime.pas"/> 282 <UnitName Value="RangeDateTime"/>283 <WindowIndex Value="0"/>284 <TopLine Value="1"/>285 211 <CursorPos X="14" Y="15"/> 286 212 <UsageCount Value="5"/> … … 288 214 <Unit29> 289 215 <Filename Value="../Generic/RangeImplementation.tpl"/> 290 <WindowIndex Value="0"/>291 <TopLine Value="1"/>292 216 <CursorPos X="14" Y="18"/> 293 217 <UsageCount Value="5"/> … … 296 220 <Unit30> 297 221 <Filename Value="../Specialized/ListVariant.pas"/> 298 <UnitName Value="ListVariant"/>299 <WindowIndex Value="0"/>300 222 <TopLine Value="2"/> 301 223 <CursorPos X="30" Y="8"/> … … 304 226 <Unit31> 305 227 <Filename Value="ListObject.pas"/> 306 <UnitName Value="ListObject"/>307 <WindowIndex Value="0"/>308 228 <TopLine Value="13"/> 309 229 <CursorPos X="15" Y="12"/> … … 313 233 <Unit32> 314 234 <Filename Value="../Generic/GenericList.inc"/> 315 <EditorIndex Value="4"/> 316 <WindowIndex Value="0"/> 235 <EditorIndex Value="3"/> 317 236 <TopLine Value="42"/> 318 237 <CursorPos X="15" Y="55"/> 319 238 <UsageCount Value="107"/> 320 239 <Loaded Value="True"/> 240 <DefaultSyntaxHighlighter Value="Delphi"/> 321 241 </Unit32> 322 242 <Unit33> 323 243 <Filename Value="../Generic/GenericDictionary.inc"/> 324 <WindowIndex Value="0"/>325 244 <TopLine Value="31"/> 326 245 <CursorPos X="44" Y="47"/> … … 329 248 <Unit34> 330 249 <Filename Value="../Generic/GenericObjectList.inc"/> 331 <WindowIndex Value="0"/>332 <TopLine Value="1"/>333 250 <CursorPos X="36" Y="48"/> 334 251 <UsageCount Value="93"/> … … 336 253 <Unit35> 337 254 <Filename Value="../Generic/GenericQueue.inc"/> 338 <WindowIndex Value="0"/>339 255 <TopLine Value="3"/> 340 <CursorPos X="1"Y="3"/>256 <CursorPos Y="3"/> 341 257 <UsageCount Value="93"/> 342 258 </Unit35> 343 259 <Unit36> 344 260 <Filename Value="../Generic/GenericSet.inc"/> 345 <WindowIndex Value="0"/>346 261 <TopLine Value="11"/> 347 262 <CursorPos X="42" Y="11"/> … … 350 265 <Unit37> 351 266 <Filename Value="../Generic/GenericStack.inc"/> 352 <WindowIndex Value="0"/>353 267 <TopLine Value="3"/> 354 <CursorPos X="1"Y="3"/>268 <CursorPos Y="3"/> 355 269 <UsageCount Value="93"/> 356 270 </Unit37> 357 271 <Unit38> 358 272 <Filename Value="../Generic/GenericTree.inc"/> 359 <WindowIndex Value="0"/>360 <TopLine Value="1"/>361 273 <CursorPos X="22" Y="30"/> 362 274 <UsageCount Value="93"/> … … 364 276 <Unit39> 365 277 <Filename Value="../Specialized/SpecializedDictionary.pas"/> 366 <UnitName Value="SpecializedDictionary"/>367 <WindowIndex Value="0"/>368 278 <TopLine Value="6"/> 369 279 <CursorPos X="56" Y="36"/> … … 372 282 <Unit40> 373 283 <Filename Value="../Specialized/SpecializedStack.pas"/> 374 <UnitName Value="SpecializedStack"/>375 <WindowIndex Value="0"/>376 284 <TopLine Value="27"/> 377 285 <CursorPos X="50" Y="59"/> … … 380 288 <Unit41> 381 289 <Filename Value="../Specialized/SpecializedTree.pas"/> 382 <UnitName Value="SpecializedTree"/>383 <WindowIndex Value="0"/>384 290 <TopLine Value="57"/> 385 291 <CursorPos X="48" Y="85"/> … … 388 294 <Unit42> 389 295 <Filename Value="../Generic/GenericRange.inc"/> 390 <WindowIndex Value="0"/>391 <TopLine Value="1"/>392 296 <CursorPos X="33" Y="14"/> 393 297 <UsageCount Value="91"/> … … 395 299 <Unit43> 396 300 <Filename Value="../Specialized/SpecializedQueue.pas"/> 397 <UnitName Value="SpecializedQueue"/>398 <WindowIndex Value="0"/>399 301 <TopLine Value="52"/> 400 <CursorPos X="1"Y="81"/>302 <CursorPos Y="81"/> 401 303 <UsageCount Value="91"/> 402 304 </Unit43> 403 305 <Unit44> 404 306 <Filename Value="../Specialized/SpecializedSet.pas"/> 405 <UnitName Value="SpecializedSet"/>406 <WindowIndex Value="0"/>407 307 <TopLine Value="29"/> 408 <CursorPos X="1"Y="62"/>308 <CursorPos Y="62"/> 409 309 <UsageCount Value="91"/> 410 310 </Unit44> 411 311 <Unit45> 412 312 <Filename Value="../Specialized/SpecializedObjectList.pas"/> 413 <UnitName Value="SpecializedObjectList"/>414 <WindowIndex Value="0"/>415 313 <TopLine Value="9"/> 416 314 <CursorPos X="60" Y="36"/> … … 419 317 <Unit46> 420 318 <Filename Value="../Generic/GenericMatrix.inc"/> 421 <WindowIndex Value="0"/>422 319 <TopLine Value="9"/> 423 320 <CursorPos X="28" Y="23"/> … … 427 324 <Filename Value="../../../../lazarus/trunk/lcl/graphics.pp"/> 428 325 <UnitName Value="Graphics"/> 429 <WindowIndex Value="0"/>430 326 <TopLine Value="2624"/> 431 327 <CursorPos X="37" Y="2636"/> … … 435 331 <Unit48> 436 332 <Filename Value="../../../../lazarus/trunk/lcl/interfaces/carbon/issues.xml"/> 437 <WindowIndex Value="0"/>438 333 <TopLine Value="94"/> 439 <CursorPos X="1" Y="1"/>440 334 <UsageCount Value="5"/> 441 335 <DefaultSyntaxHighlighter Value="XML"/> … … 443 337 <Unit49> 444 338 <Filename Value="/usr/share/fpcsrc/rtl/objpas/classes/classesh.inc"/> 445 <WindowIndex Value="0"/>446 339 <TopLine Value="199"/> 447 340 <CursorPos X="14" Y="213"/> … … 451 344 <Unit50> 452 345 <Filename Value="/usr/share/fpcsrc/rtl/objpas/classes/lists.inc"/> 453 <WindowIndex Value="0"/>454 346 <TopLine Value="199"/> 455 347 <CursorPos X="3" Y="201"/> … … 459 351 <Unit51> 460 352 <Filename Value="../Generic/GenericListObject.inc"/> 461 <EditorIndex Value="5"/> 462 <WindowIndex Value="0"/> 353 <EditorIndex Value="4"/> 463 354 <TopLine Value="11"/> 464 355 <CursorPos X="34" Y="24"/> 465 356 <UsageCount Value="21"/> 466 357 <Loaded Value="True"/> 358 <DefaultSyntaxHighlighter Value="Delphi"/> 467 359 </Unit51> 468 360 <Unit52> 469 361 <Filename Value="/usr/share/fpcsrc/rtl/objpas/objpas.pp"/> 470 <UnitName Value="objpas"/>471 <WindowIndex Value="0"/>472 <TopLine Value="1"/>473 362 <CursorPos X="27" Y="26"/> 474 363 <UsageCount Value="27"/> … … 477 366 <Unit53> 478 367 <Filename Value="/usr/share/fpcsrc/rtl/inc/systemh.inc"/> 479 <WindowIndex Value="0"/>480 368 <TopLine Value="381"/> 481 369 <CursorPos X="3" Y="398"/> … … 485 373 <Unit54> 486 374 <Filename Value="/usr/share/fpcsrc/rtl/inc/varianth.inc"/> 487 <WindowIndex Value="0"/>488 375 <TopLine Value="475"/> 489 376 <CursorPos X="10" Y="503"/> … … 493 380 <Unit55> 494 381 <Filename Value="../../../../lazarus/trunk/lcl/include/control.inc"/> 495 <WindowIndex Value="0"/>496 382 <TopLine Value="2270"/> 497 383 <CursorPos X="22" Y="2273"/> … … 501 387 <Unit56> 502 388 <Filename Value="../Specialized/SpecializedMatrix.pas"/> 503 <UnitName Value="SpecializedMatrix"/>504 <WindowIndex Value="0"/>505 <TopLine Value="1"/>506 389 <CursorPos X="25" Y="41"/> 507 390 <UsageCount Value="19"/> … … 509 392 <Unit57> 510 393 <Filename Value="../ReadMe.txt"/> 511 <WindowIndex Value="0"/>512 <TopLine Value="1"/>513 394 <CursorPos X="28" Y="10"/> 514 395 <UsageCount Value="8"/> … … 517 398 <Unit58> 518 399 <Filename Value="../../../../Programy/Lazarus/fpc/2.4.3/source/rtl/objpas/dateutil.inc"/> 519 <WindowIndex Value="0"/>520 400 <TopLine Value="38"/> 521 401 <CursorPos X="3" Y="50"/> … … 525 405 <Unit59> 526 406 <Filename Value="../../../../Programy/Lazarus/fpc/2.4.3/source/rtl/objpas/classes/classesh.inc"/> 527 <WindowIndex Value="0"/>528 407 <TopLine Value="649"/> 529 408 <CursorPos X="38" Y="671"/> … … 533 412 <Unit60> 534 413 <Filename Value="../../../../Programy/Lazarus/fpc/2.4.3/source/rtl/objpas/classes/stringl.inc"/> 535 <WindowIndex Value="0"/>536 414 <TopLine Value="1185"/> 537 415 <CursorPos X="22" Y="1196"/> … … 541 419 <Unit61> 542 420 <Filename Value="../../../../Programy/Lazarus/fpc/2.4.3/source/rtl/objpas/types.pp"/> 543 <UnitName Value="types"/>544 <WindowIndex Value="0"/>545 421 <TopLine Value="112"/> 546 422 <CursorPos X="3" Y="124"/> … … 550 426 <Unit62> 551 427 <Filename Value="../../../../Projekty2/FreePascalManager/trunk/Instance/1/FPC/rtl/objpas/sysutils/sysstrh.inc"/> 552 <WindowIndex Value="0"/>553 428 <TopLine Value="71"/> 554 429 <CursorPos X="10" Y="84"/> … … 558 433 <Unit63> 559 434 <Filename Value="../../../../Projekty2/FreePascalManager/trunk/Instance/1/FPC/rtl/objpas/sysutils/sysstr.inc"/> 560 <WindowIndex Value="0"/>561 435 <TopLine Value="148"/> 562 436 <CursorPos X="11" Y="169"/> … … 566 440 <Unit64> 567 441 <Filename Value="../../../../Projekty2/FreePascalManager/trunk/Instance/1/FPC/rtl/inc/systemh.inc"/> 568 <WindowIndex Value="0"/>569 442 <TopLine Value="511"/> 570 443 <CursorPos X="11" Y="524"/> … … 574 447 <Unit65> 575 448 <Filename Value="../../../../Projekty2/FreePascalManager/trunk/Instance/1/FPC/rtl/i386/i386.inc"/> 576 <WindowIndex Value="0"/>577 449 <TopLine Value="411"/> 578 450 <CursorPos X="10" Y="424"/> … … 582 454 <Unit66> 583 455 <Filename Value="../Specialized/SpecializedStream.pas"/> 584 <UnitName Value="SpecializedStream"/> 585 <EditorIndex Value="8"/> 586 <WindowIndex Value="0"/> 456 <EditorIndex Value="7"/> 587 457 <TopLine Value="106"/> 588 458 <CursorPos X="48" Y="107"/> 589 459 <UsageCount Value="15"/> 590 460 <Loaded Value="True"/> 461 <DefaultSyntaxHighlighter Value="Delphi"/> 591 462 </Unit66> 592 463 <Unit67> 593 464 <Filename Value="../../../../../Lazarus/0.9.31_2.6.0/lcl/lclclasses.pp"/> 594 465 <UnitName Value="LCLClasses"/> 595 <WindowIndex Value="0"/>596 466 <TopLine Value="25"/> 597 467 <CursorPos X="32" Y="40"/> … … 601 471 <Filename Value="../../../../../Lazarus/0.9.31_2.6.0/lcl/controls.pp"/> 602 472 <UnitName Value="Controls"/> 603 <WindowIndex Value="0"/>604 <TopLine Value="1"/>605 473 <CursorPos X="39" Y="11"/> 606 474 <UsageCount Value="9"/> … … 608 476 <Unit69> 609 477 <Filename Value="../../../../../Lazarus/0.9.31_2.6.0/fpc/2.6.0/source/rtl/inc/objpash.inc"/> 610 <WindowIndex Value="0"/>611 478 <TopLine Value="179"/> 612 479 <CursorPos X="23" Y="192"/> … … 615 482 <Unit70> 616 483 <Filename Value="../../../../../Lazarus/0.9.31_2.6.0/fpc/2.6.0/source/rtl/inc/objpas.inc"/> 617 <WindowIndex Value="0"/>618 484 <TopLine Value="265"/> 619 485 <CursorPos X="9" Y="267"/> … … 622 488 <Unit71> 623 489 <Filename Value="../Generic/GenericStream.inc"/> 624 <IsVisibleTab Value="True"/> 625 <EditorIndex Value="7"/> 626 <WindowIndex Value="0"/> 627 <TopLine Value="40"/> 628 <CursorPos X="18" Y="20"/> 490 <EditorIndex Value="6"/> 491 <CursorPos X="21"/> 629 492 <UsageCount Value="15"/> 630 493 <Loaded Value="True"/> 494 <DefaultSyntaxHighlighter Value="Delphi"/> 631 495 </Unit71> 632 496 <Unit72> 633 497 <Filename Value="../../../../../Lazarus/0.9.31_2.6.0/fpc/2.6.0/source/rtl/objpas/classes/classesh.inc"/> 634 <EditorIndex Value="1"/> 635 <WindowIndex Value="0"/> 498 <EditorIndex Value="-1"/> 636 499 <TopLine Value="891"/> 637 500 <CursorPos X="18" Y="908"/> 638 501 <UsageCount Value="13"/> 639 <Loaded Value="True"/>640 502 </Unit72> 641 503 <Unit73> 642 504 <Filename Value="../../../../../Lazarus/0.9.31_2.6.0/fpc/2.6.0/source/rtl/objpas/classes/streams.inc"/> 643 <EditorIndex Value="2"/> 644 <WindowIndex Value="0"/> 505 <EditorIndex Value="-1"/> 645 506 <TopLine Value="739"/> 646 507 <CursorPos X="18" Y="750"/> 647 508 <UsageCount Value="13"/> 648 <Loaded Value="True"/>649 509 </Unit73> 650 510 <Unit74> 651 511 <Filename Value="../Generic/GenericListString.inc"/> 652 <EditorIndex Value="6"/> 653 <WindowIndex Value="0"/> 512 <EditorIndex Value="5"/> 654 513 <TopLine Value="8"/> 655 514 <CursorPos X="34" Y="21"/> 656 515 <UsageCount Value="12"/> 657 516 <Loaded Value="True"/> 517 <DefaultSyntaxHighlighter Value="Delphi"/> 658 518 </Unit74> 659 519 </Units> 660 <JumpHistory Count="30" HistoryIndex="2 8">520 <JumpHistory Count="30" HistoryIndex="29"> 661 521 <Position1> 662 <Filename Value=" UMainForm.pas"/>663 <Caret Line=" 142" Column="1" TopLine="128"/>522 <Filename Value="../Specialized/SpecializedStream.pas"/> 523 <Caret Line="93" Column="21" TopLine="80"/> 664 524 </Position1> 665 525 <Position2> 666 <Filename Value=" UMainForm.pas"/>667 <Caret Line=" 143" Column="1" TopLine="128"/>526 <Filename Value="../Generic/GenericStream.inc"/> 527 <Caret Line="22" Column="12" TopLine="9"/> 668 528 </Position2> 669 529 <Position3> 670 <Filename Value="../Generic/Generic List.inc"/>671 <Caret Line=" 161" Column="1" TopLine="148"/>530 <Filename Value="../Generic/GenericStream.inc"/> 531 <Caret Line="37" Column="18" TopLine="35"/> 672 532 </Position3> 673 533 <Position4> 674 534 <Filename Value="../Specialized/SpecializedStream.pas"/> 675 <Caret Line=" 93" Column="21" TopLine="80"/>535 <Caret Line="58" Column="45" TopLine="46"/> 676 536 </Position4> 677 537 <Position5> 678 <Filename Value=" UMainForm.pas"/>679 <Caret Line="1 50" Column="22" TopLine="129"/>538 <Filename Value="../Specialized/SpecializedStream.pas"/> 539 <Caret Line="119" Column="12" TopLine="100"/> 680 540 </Position5> 681 541 <Position6> 682 <Filename Value="../Generic/Generic Stream.inc"/>683 <Caret Line=" 22" Column="12" TopLine="9"/>542 <Filename Value="../Generic/GenericList.inc"/> 543 <Caret Line="197" Column="39" TopLine="182"/> 684 544 </Position6> 685 545 <Position7> 686 <Filename Value="../ Generic/GenericStream.inc"/>687 <Caret Line=" 37" Column="18" TopLine="35"/>546 <Filename Value="../Specialized/SpecializedStream.pas"/> 547 <Caret Line="119" Column="12" TopLine="100"/> 688 548 </Position7> 689 549 <Position8> 690 <Filename Value=" UMainForm.pas"/>691 <Caret Line=" 157" Column="79" TopLine="132"/>550 <Filename Value="../Specialized/SpecializedStream.pas"/> 551 <Caret Line="61" Column="38" TopLine="48"/> 692 552 </Position8> 693 553 <Position9> 694 554 <Filename Value="../Specialized/SpecializedStream.pas"/> 695 <Caret Line=" 58" Column="45" TopLine="46"/>555 <Caret Line="130" Column="15" TopLine="117"/> 696 556 </Position9> 697 557 <Position10> 698 558 <Filename Value="../Specialized/SpecializedStream.pas"/> 699 <Caret Line=" 119" Column="12" TopLine="100"/>559 <Caret Line="64" Column="36" TopLine="51"/> 700 560 </Position10> 701 561 <Position11> 702 <Filename Value="../ Generic/GenericList.inc"/>703 <Caret Line=" 197" Column="39" TopLine="182"/>562 <Filename Value="../Specialized/SpecializedStream.pas"/> 563 <Caret Line="58" Column="29" TopLine="45"/> 704 564 </Position11> 705 565 <Position12> 706 566 <Filename Value="../Specialized/SpecializedStream.pas"/> 707 <Caret Line=" 119" Column="12" TopLine="100"/>567 <Caret Line="78" Column="45" TopLine="78"/> 708 568 </Position12> 709 569 <Position13> 710 570 <Filename Value="../Specialized/SpecializedStream.pas"/> 711 <Caret Line="6 1" Column="38" TopLine="48"/>571 <Caret Line="64" Column="64" TopLine="48"/> 712 572 </Position13> 713 573 <Position14> 714 574 <Filename Value="../Specialized/SpecializedStream.pas"/> 715 <Caret Line=" 130" Column="15" TopLine="117"/>575 <Caret Line="82" Column="3" TopLine="68"/> 716 576 </Position14> 717 577 <Position15> 718 <Filename Value="../ Specialized/SpecializedStream.pas"/>719 <Caret Line=" 64" Column="36" TopLine="51"/>578 <Filename Value="../Generic/GenericListObject.inc"/> 579 <Caret Line="20" Column="21"/> 720 580 </Position15> 721 581 <Position16> 722 <Filename Value="../ Specialized/SpecializedStream.pas"/>723 <Caret Line=" 58" Column="29" TopLine="45"/>582 <Filename Value="../Generic/GenericListObject.inc"/> 583 <Caret Line="24" Column="17" TopLine="11"/> 724 584 </Position16> 725 585 <Position17> 726 <Filename Value="../Specialized/SpecializedStream.pas"/> 727 <Caret Line="78" Column="45" TopLine="78"/> 586 <Filename Value="../Generic/GenericListString.inc"/> 728 587 </Position17> 729 588 <Position18> 730 <Filename Value="../ Specialized/SpecializedStream.pas"/>731 <Caret Line=" 64" Column="64" TopLine="48"/>589 <Filename Value="../Generic/GenericStream.inc"/> 590 <Caret Line="13"/> 732 591 </Position18> 733 592 <Position19> 734 593 <Filename Value="../Specialized/SpecializedStream.pas"/> 735 <Caret Line="8 2" Column="3" TopLine="68"/>594 <Caret Line="84" Column="35" TopLine="40"/> 736 595 </Position19> 737 596 <Position20> 738 <Filename Value="../ Generic/GenericListObject.inc"/>739 <Caret Line=" 20" Column="21" TopLine="1"/>597 <Filename Value="../Specialized/SpecializedStream.pas"/> 598 <Caret Line="126" Column="39" TopLine="111"/> 740 599 </Position20> 741 600 <Position21> 742 <Filename Value="../ Generic/GenericListObject.inc"/>743 <Caret Line=" 24" Column="17" TopLine="11"/>601 <Filename Value="../Specialized/SpecializedStream.pas"/> 602 <Caret Line="128" TopLine="111"/> 744 603 </Position21> 745 604 <Position22> 746 <Filename Value="../ Generic/GenericListString.inc"/>747 <Caret Line=" 1" Column="1" TopLine="1"/>605 <Filename Value="../Specialized/SpecializedStream.pas"/> 606 <Caret Line="68" Column="32" TopLine="55"/> 748 607 </Position22> 749 608 <Position23> 750 <Filename Value=" UMainForm.pas"/>751 <Caret Line=" 43" Column="15" TopLine="28"/>609 <Filename Value="../Specialized/SpecializedStream.pas"/> 610 <Caret Line="121" TopLine="106"/> 752 611 </Position23> 753 612 <Position24> 754 <Filename Value=" ../Generic/GenericStream.inc"/>755 <Caret Line="13" Column="1" TopLine="1"/>613 <Filename Value="FormMain.pas"/> 614 <Caret Column="14"/> 756 615 </Position24> 757 616 <Position25> 758 <Filename Value=" ../Specialized/SpecializedStream.pas"/>759 <Caret Line="8 4" Column="35" TopLine="40"/>617 <Filename Value="Demo.lpr"/> 618 <Caret Line="8" Column="22"/> 760 619 </Position25> 761 620 <Position26> 762 <Filename Value=" ../Specialized/SpecializedStream.pas"/>763 <Caret Line="1 26" Column="39" TopLine="111"/>621 <Filename Value="FormMain.pas"/> 622 <Caret Line="14" Column="12"/> 764 623 </Position26> 765 624 <Position27> 766 <Filename Value=" ../Specialized/SpecializedStream.pas"/>767 <Caret Line=" 128" Column="1" TopLine="111"/>625 <Filename Value="FormMain.pas"/> 626 <Caret Line="50" Column="4" TopLine="13"/> 768 627 </Position27> 769 628 <Position28> 770 <Filename Value=" ../Specialized/SpecializedStream.pas"/>771 <Caret Line=" 68" Column="32" TopLine="55"/>629 <Filename Value="Demo.lpr"/> 630 <Caret Line="18" Column="45"/> 772 631 </Position28> 773 632 <Position29> 774 <Filename Value=" ../Specialized/SpecializedStream.pas"/>775 <Caret Line=" 121" Column="1" TopLine="106"/>633 <Filename Value="Demo.lpr"/> 634 <Caret Line="8" Column="20"/> 776 635 </Position29> 777 636 <Position30> 778 <Filename Value=" ../Generic/GenericList.inc"/>779 <Caret Line=" 55" Column="15" TopLine="42"/>637 <Filename Value="FormMain.pas"/> 638 <Caret Line="21" Column="73"/> 780 639 </Position30> 781 640 </JumpHistory> … … 809 668 <Linking> 810 669 <Debugging> 811 <DebugInfoType Value="ds Stabs"/>670 <DebugInfoType Value="dsDwarf3"/> 812 671 <UseHeaptrc Value="True"/> 813 672 </Debugging> … … 818 677 </Options> 819 678 </Linking> 820 <Other>821 <CompilerMessages>822 <UseMsgFile Value="True"/>823 </CompilerMessages>824 <CompilerPath Value="$(CompPath)"/>825 </Other>826 679 </CompilerOptions> 827 680 <Debugging> -
Generics/TemplateGenerics/Demo/Demo.lpr
r88 r574 1 1 program Demo; 2 3 {$mode objfpc}{$H+}4 2 5 3 uses … … 8 6 {$ENDIF}{$ENDIF} 9 7 Interfaces, // this includes the LCL widgetset 10 Forms, SysUtils, UMainForm, TemplateGenerics;8 Forms, SysUtils, FormMain, TemplateGenerics; 11 9 12 10 {$R *.res} … … 18 16 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLogFileName); 19 17 Application.Initialize; 20 Application.CreateForm(T MainForm, MainForm);18 Application.CreateForm(TFormMain, FormMain.FormMain); 21 19 Application.Run; 22 20 end. -
Generics/TemplateGenerics/Demo/FormMain.lfm
r573 r574 1 object MainForm: TMainForm1 object FormMain: TFormMain 2 2 Left = 261 3 Height = 5203 Height = 780 4 4 Top = 104 5 Width = 6925 Width = 1038 6 6 ActiveControl = ButtonIntegerList 7 7 Caption = 'Template generics demo' 8 ClientHeight = 520 9 ClientWidth = 692 8 ClientHeight = 780 9 ClientWidth = 1038 10 DesignTimePPI = 144 10 11 OnCreate = FormCreate 11 12 OnDestroy = FormDestroy 12 LCLVersion = ' 0.9.31'13 LCLVersion = '3.4.0.0' 13 14 object ButtonIntegerList: TButton 14 Left = 815 Height = 2516 Top = 817 Width = 1 2815 Left = 12 16 Height = 38 17 Top = 12 18 Width = 192 18 19 Caption = 'TListInteger' 20 TabOrder = 0 19 21 OnClick = ButtonIntegerListClick 20 TabOrder = 021 22 end 22 23 object ButtonStringList: TButton 23 Left = 824 Height = 2525 Top = 4026 Width = 1 2824 Left = 12 25 Height = 38 26 Top = 60 27 Width = 192 27 28 Caption = 'TListString' 29 TabOrder = 1 28 30 OnClick = ButtonStringListClick 29 TabOrder = 130 31 end 31 32 object ButtonDictionaryString: TButton 32 Left = 833 Height = 2534 Top = 7235 Width = 1 2833 Left = 12 34 Height = 38 35 Top = 108 36 Width = 192 36 37 Caption = 'TDictionaryString' 38 TabOrder = 2 37 39 OnClick = ButtonDictionaryStringClick 38 TabOrder = 239 40 end 40 41 object ButtonQueueInteger: TButton 41 Left = 842 Height = 2543 Top = 1 0244 Width = 1 2842 Left = 12 43 Height = 38 44 Top = 153 45 Width = 192 45 46 Caption = 'TQueueInteger' 47 TabOrder = 3 46 48 OnClick = ButtonQueueIntegerClick 47 TabOrder = 348 49 end 49 50 object ButtonCharList: TButton 50 Left = 851 Height = 2552 Top = 13453 Width = 1 2851 Left = 12 52 Height = 38 53 Top = 201 54 Width = 192 54 55 Caption = 'TListChar(TString)' 56 TabOrder = 4 55 57 OnClick = ButtonCharListClick 56 TabOrder = 457 58 end 58 59 object ButtonBenchmarkListString: TButton 59 Left = 860 Height = 2461 Top = 45662 Width = 1 2860 Left = 12 61 Height = 36 62 Top = 684 63 Width = 192 63 64 Anchors = [akLeft, akBottom] 64 65 Caption = 'TListString' 66 TabOrder = 5 65 67 OnClick = ButtonBenchmarkListStringClick 66 TabOrder = 567 68 end 68 69 object ButtonListObject: TButton 69 Left = 870 Height = 2571 Top = 16372 Width = 1 2870 Left = 12 71 Height = 38 72 Top = 244 73 Width = 192 73 74 Caption = 'TListObject' 75 TabOrder = 6 74 76 OnClick = ButtonListObjectClick 75 TabOrder = 676 77 end 77 78 object ButtonBenchmarkDictionary: TButton 78 Left = 879 Height = 2580 Top = 42481 Width = 1 2879 Left = 12 80 Height = 38 81 Top = 636 82 Width = 192 82 83 Anchors = [akLeft, akBottom] 83 84 Caption = 'TDictionaryStringString' 85 TabOrder = 7 84 86 OnClick = ButtonBenchmarkDictionaryClick 85 TabOrder = 786 87 end 87 88 object ButtonMatrixInteger: TButton 88 Left = 889 Height = 2590 Top = 19291 Width = 1 2889 Left = 12 90 Height = 38 91 Top = 288 92 Width = 192 92 93 Caption = 'TMatrixInteger' 94 TabOrder = 8 93 95 OnClick = ButtonMatrixIntegerClick 94 TabOrder = 895 96 end 96 97 object ListViewOutput: TListView 97 Left = 14498 Height = 49199 Top = 24100 Width = 54298 Left = 216 99 Height = 736 100 Top = 36 101 Width = 813 101 102 Anchors = [akTop, akLeft, akRight, akBottom] 102 Columns = < 103 Columns = < 103 104 item 104 105 Caption = 'Action' 105 Width = 200106 end 106 Width = 300 107 end 107 108 item 108 109 Caption = 'Value' 109 Width = 321110 Width = 498 110 111 end> 111 112 ReadOnly = True … … 114 115 end 115 116 object LabelTestName: TLabel 116 Left = 144117 Height = 14118 Top = 8119 Width = 1 0117 Left = 216 118 Height = 26 119 Top = 12 120 Width = 15 120 121 Caption = ' ' 121 122 ParentColor = False 122 123 end 123 124 object Label1: TLabel 124 Left = 1 0125 Height = 14126 Top = 408127 Width = 62125 Left = 15 126 Height = 26 127 Top = 607 128 Width = 111 128 129 Anchors = [akLeft, akBottom] 129 130 Caption = 'Benchmarks:' … … 131 132 end 132 133 object ButtonBenchmarkListPointer: TButton 133 Left = 8134 Height = 24135 Top = 488136 Width = 1 28134 Left = 12 135 Height = 36 136 Top = 732 137 Width = 192 137 138 Anchors = [akLeft, akBottom] 138 139 Caption = 'TListPointer' 140 TabOrder = 10 139 141 OnClick = ButtonBenchmarkListPointerClick 140 TabOrder = 10141 142 end 142 143 object ButtonStreamByte: TButton 143 Left = 1 0144 Height = 25145 Top = 224146 Width = 1 28144 Left = 15 145 Height = 38 146 Top = 336 147 Width = 192 147 148 Caption = 'TMemoryStreamByte' 149 TabOrder = 11 148 150 OnClick = ButtonStreamByteClick 149 TabOrder = 11150 151 end 151 152 end -
Generics/TemplateGenerics/Demo/FormMain.pas
r573 r574 1 unit UMainForm; 2 3 {$mode delphi}{$H+} 1 unit FormMain; 4 2 5 3 interface … … 12 10 type 13 11 14 { T MainForm}15 16 T MainForm= class(TForm)12 { TFormMain } 13 14 TFormMain = class(TForm) 17 15 ButtonStreamByte: TButton; 18 16 ButtonBenchmarkDictionary: TButton; … … 50 48 51 49 var 52 MainForm: TMainForm; 50 FormMain: TFormMain; 51 53 52 54 53 implementation … … 56 55 {$R *.lfm} 57 56 58 { T MainForm}59 60 procedure T MainForm.FormCreate(Sender: TObject);57 { TFormMain } 58 59 procedure TFormMain.FormCreate(Sender: TObject); 61 60 begin 62 61 MeasureDuration := 100 * OneMillisecond; 63 62 end; 64 63 65 procedure T MainForm.ButtonIntegerListClick(Sender: TObject);64 procedure TFormMain.ButtonIntegerListClick(Sender: TObject); 66 65 var 67 66 List: TListInteger; … … 105 104 end; 106 105 107 procedure T MainForm.ButtonMatrixIntegerClick(Sender: TObject);106 procedure TFormMain.ButtonMatrixIntegerClick(Sender: TObject); 108 107 var 109 108 Matrix: TMatrixInteger; … … 129 128 end; 130 129 131 procedure T MainForm.ButtonStreamByteClick(Sender: TObject);130 procedure TFormMain.ButtonStreamByteClick(Sender: TObject); 132 131 var 133 132 Stream: TMemoryStreamByte; … … 171 170 end; 172 171 173 procedure T MainForm.ButtonListObjectClick(Sender: TObject);172 procedure TFormMain.ButtonListObjectClick(Sender: TObject); 174 173 var 175 174 List: TListObject; … … 196 195 end; 197 196 198 procedure T MainForm.ButtonQueueIntegerClick(Sender: TObject);197 procedure TFormMain.ButtonQueueIntegerClick(Sender: TObject); 199 198 var 200 199 Queue: TQueueInteger; … … 223 222 end; 224 223 225 procedure T MainForm.ButtonDictionaryStringClick(Sender: TObject);224 procedure TFormMain.ButtonDictionaryStringClick(Sender: TObject); 226 225 var 227 226 Dictionary: TDictionaryStringString; … … 251 250 end; 252 251 253 procedure T MainForm.ButtonCharListClick(Sender: TObject);252 procedure TFormMain.ButtonCharListClick(Sender: TObject); 254 253 var 255 254 List: TListChar; … … 283 282 end; 284 283 285 procedure T MainForm.ButtonBenchmarkListStringClick(Sender: TObject);284 procedure TFormMain.ButtonBenchmarkListStringClick(Sender: TObject); 286 285 var 287 286 List: TListString; … … 431 430 end; 432 431 433 procedure T MainForm.ButtonBenchmarkDictionaryClick(Sender: TObject);432 procedure TFormMain.ButtonBenchmarkDictionaryClick(Sender: TObject); 434 433 var 435 434 Dictionary: TDictionaryStringString; … … 526 525 end; 527 526 528 procedure T MainForm.ButtonBenchmarkListPointerClick(Sender: TObject);527 procedure TFormMain.ButtonBenchmarkListPointerClick(Sender: TObject); 529 528 var 530 529 List: TListPointer; … … 726 725 end; 727 726 728 procedure T MainForm.ButtonStringListClick(Sender: TObject);727 procedure TFormMain.ButtonStringListClick(Sender: TObject); 729 728 var 730 729 List: TListString; … … 753 752 end; 754 753 755 procedure T MainForm.FormDestroy(Sender: TObject);756 begin 757 end; 758 759 procedure T MainForm.UpdateButtonState(Enabled: Boolean);754 procedure TFormMain.FormDestroy(Sender: TObject); 755 begin 756 end; 757 758 procedure TFormMain.UpdateButtonState(Enabled: Boolean); 760 759 begin 761 760 ButtonBenchmarkDictionary.Enabled := Enabled; … … 770 769 end; 771 770 772 procedure T MainForm.WriteOutput(Text1: string = ''; Text2: string = '');771 procedure TFormMain.WriteOutput(Text1: string = ''; Text2: string = ''); 773 772 var 774 773 NewItem: TListItem;
Note:
See TracChangeset
for help on using the changeset viewer.