Changeset 194
- Timestamp:
- Mar 11, 2011, 1:00:06 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 1 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/CoolDocking.lpk
r193 r194 27 27 <License Value="GNU/GPL"/> 28 28 <Version Minor="3"/> 29 <Files Count="1 6">29 <Files Count="15"> 30 30 <Item1> 31 31 <Filename Value="UCDClient.pas"/> … … 63 63 </Item8> 64 64 <Item9> 65 <Filename Value="UCD ClientPanel.pas"/>66 <UnitName Value="UCD ClientPanel"/>65 <Filename Value="UCDPopupMenu.pas"/> 66 <UnitName Value="UCDPopupMenu"/> 67 67 </Item9> 68 68 <Item10> 69 <Filename Value="UCDPopupMenu.pas"/>70 <UnitName Value="UCDPopupMenu"/>71 </Item10>72 <Item11>73 69 <Filename Value="UCDLayout.pas"/> 74 70 <HasRegisterProc Value="True"/> 75 71 <UnitName Value="UCDLayout"/> 72 </Item10> 73 <Item11> 74 <Filename Value="URectangle.pas"/> 75 <UnitName Value="URectangle"/> 76 76 </Item11> 77 77 <Item12> 78 <Filename Value="U Rectangle.pas"/>79 <UnitName Value="U Rectangle"/>78 <Filename Value="UCDCommon.pas"/> 79 <UnitName Value="UCDCommon"/> 80 80 </Item12> 81 81 <Item13> 82 <Filename Value="UCD Common.pas"/>83 <UnitName Value="UCD Common"/>82 <Filename Value="UCDManager.pas"/> 83 <UnitName Value="UCDManager"/> 84 84 </Item13> 85 85 <Item14> 86 <Filename Value="UCD Manager.pas"/>87 <UnitName Value="UCD Manager"/>86 <Filename Value="UCDConjoinForm.pas"/> 87 <UnitName Value="UCDConjoinForm"/> 88 88 </Item14> 89 89 <Item15> 90 <Filename Value="UCDConjoinForm.pas"/>91 <UnitName Value="UCDConjoinForm"/>92 </Item15>93 <Item16>94 90 <Filename Value="UCDMaster.pas"/> 95 91 <HasRegisterProc Value="True"/> 96 92 <UnitName Value="UCDMaster"/> 97 </Item1 6>93 </Item15> 98 94 </Files> 99 95 <i18n> -
Docking/CoolDocking/CoolDocking.pas
r192 r194 9 9 uses 10 10 UCDClient, UCDCustomize, UCDWindowList, UCDManagerTabs, UCDManagerRegions, 11 UCDManagerTabsPopup, UCDManagerRegionsPopup, UCD ClientPanel, UCDPopupMenu,12 U CDLayout, URectangle, UCDCommon, UCDManager, UCDConjoinForm, UCDMaster,11 UCDManagerTabsPopup, UCDManagerRegionsPopup, UCDPopupMenu, UCDLayout, 12 URectangle, UCDCommon, UCDManager, UCDConjoinForm, UCDMaster, 13 13 LazarusPackageIntf; 14 14 -
Docking/CoolDocking/Demo/IDE/IDE.lpi
r193 r194 43 43 </Item3> 44 44 </RequiredPackages> 45 <Units Count="6 3">45 <Units Count="66"> 46 46 <Unit0> 47 47 <Filename Value="IDE.lpr"/> … … 51 51 <TopLine Value="1"/> 52 52 <CursorPos X="1" Y="1"/> 53 <UsageCount Value="13 1"/>53 <UsageCount Value="134"/> 54 54 </Unit0> 55 55 <Unit1> … … 62 62 <TopLine Value="1"/> 63 63 <CursorPos X="18" Y="3"/> 64 <UsageCount Value="13 1"/>64 <UsageCount Value="134"/> 65 65 </Unit1> 66 66 <Unit2> … … 73 73 <TopLine Value="1"/> 74 74 <CursorPos X="31" Y="17"/> 75 <UsageCount Value="13 1"/>75 <UsageCount Value="134"/> 76 76 </Unit2> 77 77 <Unit3> … … 84 84 <TopLine Value="4"/> 85 85 <CursorPos X="37" Y="17"/> 86 <UsageCount Value="13 1"/>86 <UsageCount Value="134"/> 87 87 </Unit3> 88 88 <Unit4> … … 95 95 <TopLine Value="4"/> 96 96 <CursorPos X="37" Y="17"/> 97 <UsageCount Value="13 1"/>97 <UsageCount Value="134"/> 98 98 </Unit4> 99 99 <Unit5> … … 113 113 <TopLine Value="4"/> 114 114 <CursorPos X="24" Y="17"/> 115 <UsageCount Value="13 1"/>115 <UsageCount Value="134"/> 116 116 </Unit6> 117 117 <Unit7> … … 120 120 <TopLine Value="941"/> 121 121 <CursorPos X="1" Y="954"/> 122 <UsageCount Value="5 9"/>122 <UsageCount Value="58"/> 123 123 </Unit7> 124 124 <Unit8> … … 131 131 <TopLine Value="4"/> 132 132 <CursorPos X="25" Y="17"/> 133 <UsageCount Value="13 1"/>133 <UsageCount Value="134"/> 134 134 </Unit8> 135 135 <Unit9> … … 142 142 <TopLine Value="3"/> 143 143 <CursorPos X="37" Y="16"/> 144 <UsageCount Value="13 1"/>144 <UsageCount Value="134"/> 145 145 </Unit9> 146 146 <Unit10> … … 153 153 <TopLine Value="5"/> 154 154 <CursorPos X="37" Y="18"/> 155 <UsageCount Value="13 1"/>155 <UsageCount Value="134"/> 156 156 </Unit10> 157 157 <Unit11> … … 164 164 <TopLine Value="4"/> 165 165 <CursorPos X="26" Y="17"/> 166 <UsageCount Value="13 1"/>166 <UsageCount Value="134"/> 167 167 </Unit11> 168 168 <Unit12> … … 175 175 <TopLine Value="5"/> 176 176 <CursorPos X="37" Y="18"/> 177 <UsageCount Value="13 1"/>177 <UsageCount Value="134"/> 178 178 </Unit12> 179 179 <Unit13> … … 186 186 <TopLine Value="4"/> 187 187 <CursorPos X="37" Y="17"/> 188 <UsageCount Value="13 1"/>188 <UsageCount Value="134"/> 189 189 </Unit13> 190 190 <Unit14> … … 197 197 <TopLine Value="6"/> 198 198 <CursorPos X="75" Y="7"/> 199 <UsageCount Value="1 29"/>199 <UsageCount Value="132"/> 200 200 </Unit14> 201 201 <Unit15> … … 204 204 <EditorIndex Value="0"/> 205 205 <WindowIndex Value="0"/> 206 <TopLine Value=" 81"/>207 <CursorPos X="1 " Y="97"/>208 <UsageCount Value="6 4"/>206 <TopLine Value="1"/> 207 <CursorPos X="14" Y="13"/> 208 <UsageCount Value="66"/> 209 209 <Loaded Value="True"/> 210 210 </Unit15> … … 219 219 <Unit17> 220 220 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 221 <WindowIndex Value="0"/> 222 <TopLine Value="376"/> 223 <CursorPos X="41" Y="389"/> 221 <EditorIndex Value="9"/> 222 <WindowIndex Value="0"/> 223 <TopLine Value="1524"/> 224 <CursorPos X="5" Y="1537"/> 224 225 <UsageCount Value="36"/> 226 <Loaded Value="True"/> 225 227 </Unit17> 226 228 <Unit18> … … 230 232 <TopLine Value="274"/> 231 233 <CursorPos X="10" Y="287"/> 232 <UsageCount Value="1 4"/>234 <UsageCount Value="13"/> 233 235 </Unit18> 234 236 <Unit19> … … 237 239 <TopLine Value="220"/> 238 240 <CursorPos X="16" Y="233"/> 239 <UsageCount Value=" 4"/>241 <UsageCount Value="3"/> 240 242 </Unit19> 241 243 <Unit20> … … 253 255 <TopLine Value="34"/> 254 256 <CursorPos X="11" Y="47"/> 255 <UsageCount Value=" 4"/>257 <UsageCount Value="3"/> 256 258 </Unit21> 257 259 <Unit22> … … 280 282 <TopLine Value="835"/> 281 283 <CursorPos X="3" Y="837"/> 282 <UsageCount Value=" 1"/>284 <UsageCount Value="0"/> 283 285 </Unit24> 284 286 <Unit25> … … 287 289 <TopLine Value="913"/> 288 290 <CursorPos X="1" Y="930"/> 289 <UsageCount Value="2 7"/>291 <UsageCount Value="26"/> 290 292 </Unit25> 291 293 <Unit26> … … 294 296 <TopLine Value="91"/> 295 297 <CursorPos X="1" Y="104"/> 296 <UsageCount Value=" 10"/>298 <UsageCount Value="9"/> 297 299 </Unit26> 298 300 <Unit27> … … 301 303 <TopLine Value="239"/> 302 304 <CursorPos X="1" Y="252"/> 303 <UsageCount Value=" 5"/>305 <UsageCount Value="4"/> 304 306 </Unit27> 305 307 <Unit28> … … 323 325 <TopLine Value="751"/> 324 326 <CursorPos X="1" Y="764"/> 325 <UsageCount Value="2 5"/>327 <UsageCount Value="24"/> 326 328 </Unit30> 327 329 <Unit31> … … 331 333 <ResourceBaseClass Value="Form"/> 332 334 <UnitName Value="UCDCustomize"/> 333 <WindowIndex Value="0"/> 334 <TopLine Value="2"/> 335 <CursorPos X="36" Y="15"/> 335 <IsVisibleTab Value="True"/> 336 <EditorIndex Value="5"/> 337 <WindowIndex Value="0"/> 338 <TopLine Value="1"/> 339 <CursorPos X="61" Y="9"/> 336 340 <UsageCount Value="50"/> 341 <Loaded Value="True"/> 337 342 </Unit31> 338 343 <Unit32> 339 344 <Filename Value="..\..\UCDCommon.pas"/> 340 345 <UnitName Value="UCDCommon"/> 341 <EditorIndex Value="8"/>342 346 <WindowIndex Value="0"/> 343 347 <TopLine Value="1"/> 344 348 <CursorPos X="1" Y="1"/> 345 349 <UsageCount Value="55"/> 346 <Loaded Value="True"/>347 350 </Unit32> 348 351 <Unit33> … … 351 354 <EditorIndex Value="3"/> 352 355 <WindowIndex Value="0"/> 353 <TopLine Value=" 31"/>354 <CursorPos X=" 38" Y="9"/>355 <UsageCount Value=" 49"/>356 <TopLine Value="255"/> 357 <CursorPos X="27" Y="268"/> 358 <UsageCount Value="51"/> 356 359 <Loaded Value="True"/> 357 360 </Unit33> … … 362 365 <TopLine Value="503"/> 363 366 <CursorPos X="10" Y="516"/> 364 <UsageCount Value="2 1"/>367 <UsageCount Value="20"/> 365 368 </Unit34> 366 369 <Unit35> … … 369 372 <TopLine Value="539"/> 370 373 <CursorPos X="3" Y="544"/> 371 <UsageCount Value=" 4"/>374 <UsageCount Value="3"/> 372 375 </Unit35> 373 376 <Unit36> … … 376 379 <TopLine Value="224"/> 377 380 <CursorPos X="29" Y="238"/> 378 <UsageCount Value=" 6"/>381 <UsageCount Value="5"/> 379 382 </Unit36> 380 383 <Unit37> … … 383 386 <TopLine Value="514"/> 384 387 <CursorPos X="60" Y="523"/> 385 <UsageCount Value="1 1"/>388 <UsageCount Value="10"/> 386 389 </Unit37> 387 390 <Unit38> … … 390 393 <TopLine Value="79"/> 391 394 <CursorPos X="14" Y="82"/> 392 <UsageCount Value=" 5"/>395 <UsageCount Value="4"/> 393 396 </Unit38> 394 397 <Unit39> … … 398 401 <TopLine Value="32"/> 399 402 <CursorPos X="20" Y="45"/> 400 <UsageCount Value="2 9"/>403 <UsageCount Value="28"/> 401 404 </Unit39> 402 405 <Unit40> … … 406 409 <TopLine Value="1"/> 407 410 <CursorPos X="24" Y="16"/> 408 <UsageCount Value="3 7"/>411 <UsageCount Value="36"/> 409 412 </Unit40> 410 413 <Unit41> 411 414 <Filename Value="..\..\UCDClientPanel.pas"/> 412 415 <UnitName Value="UCDClientPanel"/> 413 <EditorIndex Value="4"/> 414 <WindowIndex Value="0"/> 415 <TopLine Value="75"/> 416 <CursorPos X="54" Y="81"/> 417 <UsageCount Value="38"/> 418 <Loaded Value="True"/> 416 <WindowIndex Value="0"/> 417 <TopLine Value="1"/> 418 <CursorPos X="5" Y="11"/> 419 <UsageCount Value="39"/> 419 420 </Unit41> 420 421 <Unit42> … … 424 425 <TopLine Value="1531"/> 425 426 <CursorPos X="33" Y="1544"/> 426 <UsageCount Value=" 5"/>427 <UsageCount Value="4"/> 427 428 </Unit42> 428 429 <Unit43> 429 430 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 430 431 <UnitName Value="UCDManagerTabs"/> 431 <EditorIndex Value=" 9"/>432 <WindowIndex Value="0"/> 433 <TopLine Value=" 262"/>434 <CursorPos X=" 13" Y="264"/>435 <UsageCount Value="3 7"/>432 <EditorIndex Value="11"/> 433 <WindowIndex Value="0"/> 434 <TopLine Value="6"/> 435 <CursorPos X="3" Y="19"/> 436 <UsageCount Value="39"/> 436 437 <Loaded Value="True"/> 437 438 </Unit43> … … 442 443 <TopLine Value="45"/> 443 444 <CursorPos X="28" Y="558"/> 444 <UsageCount Value=" 5"/>445 <UsageCount Value="4"/> 445 446 </Unit44> 446 447 <Unit45> … … 450 451 <TopLine Value="344"/> 451 452 <CursorPos X="1" Y="357"/> 452 <UsageCount Value=" 5"/>453 <UsageCount Value="4"/> 453 454 </Unit45> 454 455 <Unit46> … … 457 458 <TopLine Value="2403"/> 458 459 <CursorPos X="74" Y="2413"/> 459 <UsageCount Value=" 5"/>460 <UsageCount Value="4"/> 460 461 </Unit46> 461 462 <Unit47> 462 463 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 463 464 <UnitName Value="UCDManagerRegions"/> 464 <EditorIndex Value=" 6"/>465 <WindowIndex Value="0"/> 466 <TopLine Value=" 17"/>467 <CursorPos X="1 5" Y="30"/>468 <UsageCount Value="3 6"/>465 <EditorIndex Value="7"/> 466 <WindowIndex Value="0"/> 467 <TopLine Value="259"/> 468 <CursorPos X="12" Y="272"/> 469 <UsageCount Value="38"/> 469 470 <Loaded Value="True"/> 470 471 </Unit47> … … 474 475 <EditorIndex Value="2"/> 475 476 <WindowIndex Value="0"/> 476 <TopLine Value="1 76"/>477 <CursorPos X=" 4" Y="189"/>478 <UsageCount Value="2 7"/>477 <TopLine Value="190"/> 478 <CursorPos X="3" Y="202"/> 479 <UsageCount Value="29"/> 479 480 <Loaded Value="True"/> 480 481 </Unit48> … … 484 485 <TopLine Value="762"/> 485 486 <CursorPos X="1" Y="775"/> 486 <UsageCount Value="2 6"/>487 <UsageCount Value="25"/> 487 488 </Unit49> 488 489 <Unit50> … … 491 492 <TopLine Value="148"/> 492 493 <CursorPos X="32" Y="160"/> 493 <UsageCount Value="2 6"/>494 <UsageCount Value="25"/> 494 495 </Unit50> 495 496 <Unit51> … … 498 499 <TopLine Value="53"/> 499 500 <CursorPos X="11" Y="66"/> 500 <UsageCount Value="2 6"/>501 <UsageCount Value="25"/> 501 502 </Unit51> 502 503 <Unit52> … … 505 506 <TopLine Value="141"/> 506 507 <CursorPos X="3" Y="143"/> 507 <UsageCount Value="2 6"/>508 <UsageCount Value="25"/> 508 509 </Unit52> 509 510 <Unit53> … … 512 513 <TopLine Value="2"/> 513 514 <CursorPos X="40" Y="3"/> 514 <UsageCount Value="2 5"/>515 <UsageCount Value="24"/> 515 516 <DefaultSyntaxHighlighter Value="None"/> 516 517 </Unit53> … … 525 526 <TopLine Value="23"/> 526 527 <CursorPos X="15" Y="24"/> 527 <UsageCount Value="3 2"/>528 <UsageCount Value="35"/> 528 529 </Unit54> 529 530 <Unit55> 530 531 <Filename Value="..\..\Managers\UCDManagerRegionsPopup.pas"/> 531 532 <UnitName Value="UCDManagerRegionsPopup"/> 532 <EditorIndex Value=" 5"/>533 <WindowIndex Value="0"/> 534 <TopLine Value=" 8"/>535 <CursorPos X=" 4" Y="29"/>536 <UsageCount Value="1 1"/>533 <EditorIndex Value="6"/> 534 <WindowIndex Value="0"/> 535 <TopLine Value="14"/> 536 <CursorPos X="25" Y="27"/> 537 <UsageCount Value="13"/> 537 538 <Loaded Value="True"/> 538 539 </Unit55> … … 548 549 <Filename Value="..\..\UCDManager.pas"/> 549 550 <UnitName Value="UCDManager"/> 550 <IsVisibleTab Value="True"/> 551 <EditorIndex Value="7"/> 552 <WindowIndex Value="0"/> 553 <TopLine Value="167"/> 554 <CursorPos X="1" Y="180"/> 555 <UsageCount Value="12"/> 551 <EditorIndex Value="8"/> 552 <WindowIndex Value="0"/> 553 <TopLine Value="567"/> 554 <CursorPos X="14" Y="586"/> 555 <UsageCount Value="14"/> 556 556 <Loaded Value="True"/> 557 557 </Unit57> … … 561 561 <EditorIndex Value="1"/> 562 562 <WindowIndex Value="0"/> 563 <TopLine Value=" 32"/>564 <CursorPos X="3 0" Y="34"/>565 <UsageCount Value="1 1"/>563 <TopLine Value="1"/> 564 <CursorPos X="31" Y="8"/> 565 <UsageCount Value="13"/> 566 566 <Loaded Value="True"/> 567 567 </Unit58> … … 572 572 <TopLine Value="1129"/> 573 573 <CursorPos X="3" Y="1142"/> 574 <UsageCount Value=" 10"/>574 <UsageCount Value="9"/> 575 575 </Unit59> 576 576 <Unit60> 577 577 <Filename Value="..\..\UCDMaster.pas"/> 578 578 <UnitName Value="UCDMaster"/> 579 <WindowIndex Value="0"/> 580 <TopLine Value="1"/> 581 <CursorPos X="33" Y="8"/> 579 <EditorIndex Value="4"/> 580 <WindowIndex Value="0"/> 581 <TopLine Value="2"/> 582 <CursorPos X="38" Y="8"/> 582 583 <UsageCount Value="11"/> 584 <Loaded Value="True"/> 583 585 </Unit60> 584 586 <Unit61> … … 588 590 <TopLine Value="1"/> 589 591 <CursorPos X="1" Y="1"/> 590 <UsageCount Value=" 10"/>592 <UsageCount Value="9"/> 591 593 </Unit61> 592 594 <Unit62> … … 598 600 <UsageCount Value="11"/> 599 601 </Unit62> 602 <Unit63> 603 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customnotebook.inc"/> 604 <WindowIndex Value="0"/> 605 <TopLine Value="679"/> 606 <CursorPos X="1" Y="692"/> 607 <UsageCount Value="10"/> 608 </Unit63> 609 <Unit64> 610 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\menuitem.inc"/> 611 <WindowIndex Value="0"/> 612 <TopLine Value="64"/> 613 <CursorPos X="26" Y="74"/> 614 <UsageCount Value="10"/> 615 </Unit64> 616 <Unit65> 617 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lcltype.pp"/> 618 <UnitName Value="LCLType"/> 619 <EditorIndex Value="10"/> 620 <WindowIndex Value="0"/> 621 <TopLine Value="114"/> 622 <CursorPos X="3" Y="127"/> 623 <UsageCount Value="11"/> 624 <Loaded Value="True"/> 625 </Unit65> 600 626 </Units> 601 627 <JumpHistory Count="30" HistoryIndex="29"> 602 628 <Position1> 603 <Filename Value="..\..\ UCDManager.pas"/>604 <Caret Line="11 5" Column="1" TopLine="102"/>629 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 630 <Caret Line="11" Column="5" TopLine="1"/> 605 631 </Position1> 606 632 <Position2> 607 633 <Filename Value="..\..\UCDManager.pas"/> 608 <Caret Line=" 124" Column="1" TopLine="103"/>634 <Caret Line="34" Column="3" TopLine="27"/> 609 635 </Position2> 610 636 <Position3> 611 637 <Filename Value="..\..\UCDManager.pas"/> 612 <Caret Line="1 16" Column="1" TopLine="103"/>638 <Caret Line="129" Column="5" TopLine="116"/> 613 639 </Position3> 614 640 <Position4> 615 641 <Filename Value="..\..\UCDManager.pas"/> 616 <Caret Line=" 118" Column="1" TopLine="103"/>642 <Caret Line="46" Column="15" TopLine="33"/> 617 643 </Position4> 618 644 <Position5> 619 645 <Filename Value="..\..\UCDManager.pas"/> 620 <Caret Line="1 19" Column="1" TopLine="103"/>646 <Caret Line="139" Column="9" TopLine="116"/> 621 647 </Position5> 622 648 <Position6> 623 649 <Filename Value="..\..\UCDManager.pas"/> 624 <Caret Line="1 21" Column="1" TopLine="103"/>650 <Caret Line="144" Column="5" TopLine="131"/> 625 651 </Position6> 626 652 <Position7> 627 653 <Filename Value="..\..\UCDManager.pas"/> 628 <Caret Line="1 22" Column="1" TopLine="103"/>654 <Caret Line="147" Column="5" TopLine="134"/> 629 655 </Position7> 630 656 <Position8> 631 657 <Filename Value="..\..\UCDManager.pas"/> 632 <Caret Line="1 23" Column="1" TopLine="103"/>658 <Caret Line="149" Column="5" TopLine="135"/> 633 659 </Position8> 634 660 <Position9> 635 661 <Filename Value="..\..\UCDManager.pas"/> 636 <Caret Line="1 24" Column="1" TopLine="103"/>662 <Caret Line="153" Column="33" TopLine="140"/> 637 663 </Position9> 638 664 <Position10> 639 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>640 <Caret Line="1 41" Column="1" TopLine="128"/>665 <Filename Value="..\..\UCDManager.pas"/> 666 <Caret Line="155" Column="18" TopLine="142"/> 641 667 </Position10> 642 668 <Position11> 643 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>644 <Caret Line="1 44" Column="1" TopLine="128"/>669 <Filename Value="..\..\UCDManager.pas"/> 670 <Caret Line="13" Column="20" TopLine="1"/> 645 671 </Position11> 646 672 <Position12> 647 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>648 <Caret Line="15 2" Column="1" TopLine="131"/>673 <Filename Value="..\..\UCDManager.pas"/> 674 <Caret Line="157" Column="10" TopLine="149"/> 649 675 </Position12> 650 676 <Position13> 651 <Filename Value="..\..\UCD Client.pas"/>652 <Caret Line=" 97" Column="1" TopLine="81"/>677 <Filename Value="..\..\UCDManager.pas"/> 678 <Caret Line="162" Column="16" TopLine="149"/> 653 679 </Position13> 654 680 <Position14> 655 <Filename Value="..\..\UCD ConjoinForm.pas"/>656 <Caret Line=" 55" Column="1" TopLine="49"/>681 <Filename Value="..\..\UCDManager.pas"/> 682 <Caret Line="175" Column="9" TopLine="158"/> 657 683 </Position14> 658 684 <Position15> 659 <Filename Value="..\..\UCD ConjoinForm.pas"/>660 <Caret Line=" 57" Column="1" TopLine="49"/>685 <Filename Value="..\..\UCDManager.pas"/> 686 <Caret Line="183" Column="5" TopLine="170"/> 661 687 </Position15> 662 688 <Position16> 663 <Filename Value="..\..\UCD ConjoinForm.pas"/>664 <Caret Line=" 58" Column="1" TopLine="49"/>689 <Filename Value="..\..\UCDManager.pas"/> 690 <Caret Line="187" Column="7" TopLine="174"/> 665 691 </Position16> 666 692 <Position17> 667 <Filename Value="..\..\UCD ConjoinForm.pas"/>668 <Caret Line=" 59" Column="1" TopLine="49"/>693 <Filename Value="..\..\UCDManager.pas"/> 694 <Caret Line="188" Column="7" TopLine="174"/> 669 695 </Position17> 670 696 <Position18> 671 697 <Filename Value="..\..\UCDManager.pas"/> 672 <Caret Line="2 99" Column="1" TopLine="286"/>698 <Caret Line="216" Column="17" TopLine="203"/> 673 699 </Position18> 674 700 <Position19> 675 701 <Filename Value="..\..\UCDManager.pas"/> 676 <Caret Line=" 300" Column="15" TopLine="286"/>702 <Caret Line="217" Column="21" TopLine="204"/> 677 703 </Position19> 678 704 <Position20> 679 705 <Filename Value="..\..\UCDManager.pas"/> 680 <Caret Line="2 96" Column="30" TopLine="283"/>706 <Caret Line="232" Column="8" TopLine="208"/> 681 707 </Position20> 682 708 <Position21> 683 <Filename Value="..\..\UCD ConjoinForm.pas"/>684 <Caret Line="3 4" Column="30" TopLine="32"/>709 <Filename Value="..\..\UCDManager.pas"/> 710 <Caret Line="317" Column="31" TopLine="304"/> 685 711 </Position21> 686 712 <Position22> 687 713 <Filename Value="..\..\UCDManager.pas"/> 688 <Caret Line=" 73" Column="43" TopLine="60"/>714 <Caret Line="339" Column="61" TopLine="326"/> 689 715 </Position22> 690 716 <Position23> 691 <Filename Value="..\..\ Managers\UCDManagerTabs.pas"/>692 <Caret Line=" 15" Column="33" TopLine="11"/>717 <Filename Value="..\..\UCDManager.pas"/> 718 <Caret Line="391" Column="3" TopLine="388"/> 693 719 </Position23> 694 720 <Position24> 695 <Filename Value="..\..\UCD Manager.pas"/>696 <Caret Line=" 44" Column="15" TopLine="31"/>721 <Filename Value="..\..\UCDPopupMenu.pas"/> 722 <Caret Line="8" Column="55" TopLine="1"/> 697 723 </Position24> 698 724 <Position25> 699 <Filename Value="..\..\UCD Manager.pas"/>700 <Caret Line="1 66" Column="3" TopLine="164"/>725 <Filename Value="..\..\UCDPopupMenu.pas"/> 726 <Caret Line="171" Column="22" TopLine="158"/> 701 727 </Position25> 702 728 <Position26> 703 <Filename Value="..\..\UCD Manager.pas"/>704 <Caret Line="1 16" Column="1" TopLine="103"/>729 <Filename Value="..\..\UCDPopupMenu.pas"/> 730 <Caret Line="190" Column="25" TopLine="177"/> 705 731 </Position26> 706 732 <Position27> 707 <Filename Value="..\..\UCD Manager.pas"/>708 <Caret Line="1 80" Column="1" TopLine="167"/>733 <Filename Value="..\..\UCDPopupMenu.pas"/> 734 <Caret Line="192" Column="18" TopLine="179"/> 709 735 </Position27> 710 736 <Position28> 711 <Filename Value="..\..\UCDMa nager.pas"/>712 <Caret Line=" 181" Column="1" TopLine="167"/>737 <Filename Value="..\..\UCDMaster.pas"/> 738 <Caret Line="8" Column="31" TopLine="1"/> 713 739 </Position28> 714 740 <Position29> 715 <Filename Value="..\..\UCD Manager.pas"/>716 <Caret Line="1 83" Column="1" TopLine="167"/>741 <Filename Value="..\..\UCDCustomize.pas"/> 742 <Caret Line="15" Column="36" TopLine="2"/> 717 743 </Position29> 718 744 <Position30> 719 <Filename Value="..\..\UCD Manager.pas"/>720 <Caret Line=" 184" Column="1" TopLine="167"/>745 <Filename Value="..\..\UCDCustomize.pas"/> 746 <Caret Line="66" Column="23" TopLine="53"/> 721 747 </Position30> 722 748 </JumpHistory> … … 747 773 <Item1> 748 774 <Source Value="..\..\UCDManager.pas"/> 749 <Line Value=" 319"/>775 <Line Value="454"/> 750 776 </Item1> 751 777 </BreakPoints> -
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r193 r194 7 7 uses 8 8 Classes, SysUtils, Controls, ExtCtrls, StdCtrls, Forms, 9 Graphics, Contnrs, Buttons, UCDClientPanel, UCDCommon, UCDManager; 9 Graphics, Contnrs, Buttons, UCDCommon, UCDManager, 10 LCLType, LMessages; 10 11 11 12 type 12 TCDStyleRegionsPanel = class(TPanel) 13 13 14 { TCDManagerRegionsItem } 15 16 TCDManagerRegionsItem = class(TCDManagerItem) 17 Panel: TPanel; 18 Splitter: TSplitter; 19 ClientAreaPanel: TPanel; 20 constructor Create; 14 21 end; 15 22 … … 18 25 TCDManagerRegions = class(TCDManager) 19 26 private 27 FDockItems: TObjectList; // TList<TCDManagerRegionsItem> 20 28 function GetDirection(InsertAt: TAlign): TCDDirection; 21 29 public 22 30 FDockDirection: TCDDirection; 23 31 //Panels: TObjectList; // TObjectList<TCDStyleRegionsPanel> 32 function FindControlInPanels(Control: TControl): TCDManagerItem; override; 24 33 procedure InsertControlPanel(Control: TControl; InsertAt: TAlign; 25 34 DropCtl: TControl); override; … … 27 36 constructor Create(ADockSite: TWinControl); 28 37 destructor Destroy; override; 38 procedure PaintSite(DC: HDC); override; 29 39 procedure UpdateClientSize; override; 30 40 procedure DoSetVisible(const AValue: Boolean); override; … … 32 42 property DockDirection: TCDDirection read FDockDirection 33 43 write FDockDirection; 44 property DockItems: TObjectList read FDockItems write FDockItems; 34 45 end; 35 46 … … 38 49 uses 39 50 UCDClient, UCDConjoinForm; 51 52 { TCDManagerRegionsItem } 53 54 constructor TCDManagerRegionsItem.Create; 55 begin 56 Panel := TPanel.Create(nil); 57 58 ClientAreaPanel := TPanel.Create(Panel); 59 with ClientAreaPanel do begin 60 Parent := Panel; 61 Visible := True; 62 DockSite := True; 63 UseDockManager := True; 64 Align := alClient; 65 BevelInner := bvNone; 66 BevelOuter := bvNone; 67 //Color := clGreen; 68 end; 69 Splitter := TSplitter.Create(Panel); 70 with Splitter do begin 71 Parent := Panel; 72 //Color := clRed; 73 end; 74 end; 40 75 41 76 … … 53 88 end; 54 89 90 function TCDManagerRegions.FindControlInPanels(Control: TControl 91 ): TCDManagerItem; 92 var 93 I: Integer; 94 begin 95 I := 0; 96 while (I < FDockItems.Count) and 97 (TCDManagerItem(FDockItems[I]).Control <> Control) do Inc(I); 98 if I < FDockItems.Count then Result := TCDManagerItem(FDockItems[I]) 99 else Result := nil; 100 end; 101 55 102 procedure TCDManagerRegions.InsertControlPanel(Control: TControl; InsertAt: TAlign; 56 103 DropCtl: TControl); 57 104 var 58 NewPanel: TCD ClientPanel;105 NewPanel: TCDManagerRegionsItem; 59 106 I: Integer; 60 107 NewDirection: TCDDirection; … … 85 132 end; 86 133 87 NewPanel := TCD ClientPanel.Create(nil);134 NewPanel := TCDManagerRegionsItem.Create; 88 135 with NewPanel do begin 89 Pa rent := Self.DockSite;90 OwnerDockManager := Self;136 Panel.Parent := Self.DockSite; 137 Manager := Self; 91 138 if DockStyle = dsList then Visible := True; 92 139 Header.PopupMenu := Self.PopupMenu; … … 101 148 Control.Align := alClient; 102 149 if (InsertAt = alTop) or (InsertAt = alLeft) then 103 Dock Panels.Insert(0, NewPanel)104 else Dock Panels.Add(NewPanel);150 DockItems.Insert(0, NewPanel) 151 else DockItems.Add(NewPanel); 105 152 end; 106 153 UpdateClientSize; … … 109 156 procedure TCDManagerRegions.RemoveControl(Control: TControl); 110 157 var 111 ClientPanel: TCD ClientPanel;158 ClientPanel: TCDManagerItem; 112 159 ClientCount: Integer; 113 160 begin … … 115 162 Control.RemoveHandlerOnVisibleChanged(ClientPanel.VisibleChange); 116 163 117 Dock Panels.Remove(ClientPanel);118 ClientCount := Dock Panels.Count;164 DockItems.Remove(ClientPanel); 165 ClientCount := DockItems.Count; 119 166 120 167 //if TCDManager(Manager).DockSite.DockClientCount = 2 then FDockDirection := ddNone; … … 124 171 with TCDConjoinForm(Self.DockSite) do begin 125 172 if Assigned(Parent) then begin 126 TCD ClientPanel(DockPanels[0]).Control.ManualDock(HostDockSite);127 end else TCD ClientPanel(DockPanels[0]).Control.ManualFloat(Rect(Left, Top, Left + Width, Top + Height));173 TCDManagerItem(DockItems[0]).Control.ManualDock(HostDockSite); 174 end else TCDManagerItem(DockItems[0]).Control.ManualFloat(Rect(Left, Top, Left + Width, Top + Height)); 128 175 ManualFloat(Rect(Left, Top, Left + Width, Top + Height)); 129 176 Free; … … 140 187 inherited; 141 188 FDockStyle := dsList; 142 //Panels := TObjectList.Create; 143 144 for I := 0 to DockPanels.Count - 1 do begin 145 if Assigned(TCDClientPanel(DockPanels[I]).Splitter) then 146 TCDClientPanel(DockPanels[I]).Splitter.Visible := True; 147 TCDClientPanel(DockPanels[I]).Visible := True; 148 TCDClientPanel(DockPanels[I]).ClientAreaPanel.Parent := TCDClientPanel(DockPanels[I]); 149 TCDClientPanel(DockPanels[I]).ClientAreaPanel.Visible := True; 150 TCDClientPanel(DockPanels[I]).Control.Visible := True; 189 FDockItems := TObjectList.Create; 190 191 for I := 0 to DockItems.Count - 1 do begin 192 if Assigned(TCDManagerRegionsItem(DockItems[I]).Splitter) then 193 with TCDManagerRegionsItem(DockItems[I]) do begin 194 Splitter.Visible := True; 195 Panel.Visible := True; 196 ClientAreaPanel.Parent := TCDManagerRegionsItem(DockItems[I]).Panel; 197 ClientAreaPanel.Visible := True; 198 Control.Visible := True; 199 end; 151 200 end; 152 201 end; … … 154 203 destructor TCDManagerRegions.Destroy; 155 204 begin 156 //Panels.Free;205 FDockItems.Free; 157 206 inherited Destroy; 207 end; 208 209 procedure TCDManagerRegions.PaintSite(DC: HDC); 210 var 211 I: Integer; 212 begin 213 inherited PaintSite(DC); 214 for I := 0 to FDockItems.Count - 1 do 215 with TCDManagerRegionsItem(FDockItems[I]) do begin 216 Panel.Invalidate; 217 end; 158 218 end; 159 219 … … 171 231 SplitterLeft := 0; 172 232 SplitterTop := 0; 173 for I := 0 to Dock Panels.Count - 1 do174 with TCD ClientPanel(DockPanels[I]) do begin175 Left := SplitterLeft;176 Top := SplitterTop;177 Height := Self.DockSite.Height div233 for I := 0 to DockItems.Count - 1 do 234 with TCDManagerRegionsItem(DockItems[I]) do begin 235 Panel.Left := SplitterLeft; 236 Panel.Top := SplitterTop; 237 Panel.Height := Self.DockSite.Height div 178 238 Self.DockSite.DockClientCount; 179 Width := Self.DockSite.Width div180 S Elf.DockSite.DockClientCount;239 Panel.Width := Self.DockSite.Width div 240 Self.DockSite.DockClientCount; 181 241 //TCDClientPanel(FDockPanels[I]).DockPanelPaint(Self); 182 if I < (Dock Panels.Count - 1) thenAlign := BaseAlign183 else Align := alClient;184 185 Inc(SplitterLeft, Width);186 Inc(SplitterTop, Height);242 if I < (DockItems.Count - 1) then Panel.Align := BaseAlign 243 else Panel.Align := alClient; 244 245 Inc(SplitterLeft, Panel.Width); 246 Inc(SplitterTop, Panel.Height); 187 247 Splitter.Left := SplitterLeft; 188 248 Splitter.Top := SplitterTop; 189 Splitter.Parent := S Elf.DockSite;249 Splitter.Parent := Self.DockSite; 190 250 Splitter.Align := BaseAlign; 191 Splitter.Visible := I < (Dock Panels.Count - 1);251 Splitter.Visible := I < (DockItems.Count - 1); 192 252 Inc(SplitterLeft, Splitter.Width); 193 253 Inc(SplitterTop, Splitter.Height); 194 254 195 DockPanelPaint(Self);196 if I < (Dock Panels.Count - 1) then begin197 if DockDirection = ddHorizontal then Align := alLeft198 else Align := alTop;199 end else Align := alClient;255 Paint(Self); 256 if I < (DockItems.Count - 1) then begin 257 if DockDirection = ddHorizontal then Panel.Align := alLeft 258 else Panel.Align := alTop; 259 end else Panel.Align := alClient; 200 260 end; 201 261 end; … … 206 266 begin 207 267 inherited; 208 for I := 0 to Dock Panels.Count - 1 do268 for I := 0 to DockItems.Count - 1 do 209 269 210 270 //Show; 211 271 //ShowMessage(IntToStr(Control.Tag)); 212 with TCD ClientPanel(DockPanels[I]) do begin272 with TCDManagerRegionsItem(DockItems[I]) do begin 213 273 if AValue and (not Control.Visible) and (Control.Tag = Integer(dhtTemporal)) then begin 214 274 Control.Show; -
Docking/CoolDocking/Managers/UCDManagerRegionsPopup.pas
r193 r194 10 10 type 11 11 12 { TCD StylePopupRegions}12 { TCDManagerPopupRegionsItem } 13 13 14 TCDStylePopupRegions = class(TCDManagerRegions) 14 TCDManagerPopupRegionsItem = class(TCDManagerRegionsItem) 15 private 16 FAutoHide: Boolean; 17 function GetAutoHideEnabled: Boolean; 18 procedure SetAutoHide(const AValue: Boolean); 19 procedure SetAutoHideEnabled(const AValue: Boolean); 20 public 21 property AutoHideEnabled: Boolean read GetAutoHideEnabled 22 write SetAutoHideEnabled; 23 end; 24 25 { TCDManagerPopupRegions } 26 27 TCDManagerPopupRegions = class(TCDManagerRegions) 15 28 constructor Create(ADockSite: TWinControl); 16 29 end; … … 22 35 UCDClient; 23 36 24 { TCD StylePopupRegions}37 { TCDManagerPopupRegionsItem } 25 38 26 constructor TCDStylePopupRegions.Create(ADockSite: TWinControl); 39 function TCDManagerPopupRegionsItem.GetAutoHideEnabled: Boolean; 40 begin 41 42 end; 43 44 procedure TCDManagerPopupRegionsItem.SetAutoHide(const AValue: Boolean); 45 begin 46 47 end; 48 49 procedure TCDManagerPopupRegionsItem.SetAutoHideEnabled(const AValue: Boolean); 50 begin 51 52 end; 53 54 { TCDManagerPopupRegions } 55 56 constructor TCDManagerPopupRegions.Create(ADockSite: TWinControl); 27 57 begin 28 58 inherited; -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r193 r194 6 6 7 7 uses 8 Classes, Controls, ExtCtrls, ComCtrls, SysUtils, Dialogs, 9 Menus, Forms, UCDClientPanel, UCDCommon, UCDManager; 8 Classes, Controls, ExtCtrls, ComCtrls, SysUtils, Dialogs, Contnrs, 9 Menus, Forms, UCDCommon, UCDManager, 10 LCLType, LMessages, Graphics; 10 11 11 12 type 13 TCDManagerTabsITem = class(TCDManagerItem) 14 15 end; 12 16 13 17 { TCDManagerTabs } … … 20 24 PageControl: TPageControl; 21 25 TabImageList: TImageList; 26 FDockItems: TObjectList; // TList<TCDManagerRegionsItem> 22 27 procedure TabControlMouseLeave(Sender: TObject); 23 28 procedure TabControlChange(Sender: TObject); … … 31 36 private 32 37 FTabsPos: THeaderPos; 38 function FindControlInPanels(Control: TControl): TCDManagerItem; override; 33 39 procedure InsertControlNoUpdate(AControl: TControl; InsertAt: TAlign); 34 40 procedure RemoveControl(Control: TControl); override; 35 41 public 36 42 constructor Create(ADockSite: TWinControl); 43 destructor Destroy; override; 44 procedure PaintSite(DC: HDC); override; 37 45 procedure DoSetVisible(const AValue: Boolean); override; 38 destructor Destroy; override;39 46 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override; 40 47 procedure Switch(Index: Integer); override; … … 42 49 procedure PopupMenuTabCloseClick(Sender: TObject); 43 50 property TabsPos: THeaderPos read FTabsPos write SetTabsPos; 51 property DockItems: TObjectList read FDockItems write FDockItems; 44 52 end; 45 53 … … 51 59 { TCDManagerTabs } 52 60 61 function TCDManagerTabs.FindControlInPanels(Control: TControl 62 ): TCDManagerItem; 63 var 64 I: Integer; 65 begin 66 I := 0; 67 while (I < FDockItems.Count) and 68 (TCDManagerItem(FDockItems[I]).Control <> Control) do Inc(I); 69 if I < FDockItems.Count then Result := TCDManagerItem(FDockItems[I]) 70 else Result := nil; 71 end; 72 53 73 procedure TCDManagerTabs.PopupMenuTabCloseClick(Sender: TObject); 54 74 begin 55 75 if Assigned(PageControl.ActivePage) then 56 TCD ClientPanel(DockPanels[PageControl.TabIndex]).Control.Hide;76 TCDManagerItem(DockItems[PageControl.TabIndex]).Control.Hide; 57 77 end; 58 78 … … 61 81 if MouseDown then 62 82 if Assigned(PageControl.ActivePage) then begin 63 TCDClientPanel(DockPanels[PageControl.TabIndex]).ClientAreaPanel.DockSite := False;64 DragManager.DragStart(TCD ClientPanel(DockPanels[PageControl.TabIndex]).Control, False, 1);83 //TCDManagerItem(DockItems[PageControl.TabIndex]).ClientAreaPanel.DockSite := False; 84 DragManager.DragStart(TCDManagerItem(DockItems[PageControl.TabIndex]).Control, False, 1); 65 85 end; 66 86 MouseDown := False; … … 72 92 begin 73 93 // Hide all clients 74 for I := 0 to Dock Panels.Count - 1 do75 if TCD ClientPanel(DockPanels[I]).Control.Visible94 for I := 0 to DockItems.Count - 1 do 95 if TCDManagerItem(DockItems[I]).Control.Visible 76 96 //and (PageControl.TabIndex <> I) 77 97 then 78 98 begin 79 TCD ClientPanel(DockPanels[I]).Control.Tag := Integer(dhtTemporal);80 TCD ClientPanel(DockPanels[I]).Control.Hide;81 TCDClientPanel(DockPanels[I]).ClientAreaPanel.Hide;82 TCDClientPanel(DockPanels[I]).ClientAreaPanel.Parent := PageControl.Pages[I];99 TCDManagerItem(DockItems[I]).Control.Tag := Integer(dhtTemporal); 100 TCDManagerItem(DockItems[I]).Control.Hide; 101 //TCDClientPanel(DockItems[I]).ClientAreaPanel.Hide; 102 //TCDClientPanel(DockItems[I]).ClientAreaPanel.Parent := PageControl.Pages[I]; 83 103 //TCDClientPanel(DockPanels[I]).ClientAreaPanel.Parent := DockSite; 84 TCD ClientPanel(DockPanels[I]).Control.Align := alClient;104 TCDManagerItem(DockItems[I]).Control.Align := alClient; 85 105 //TCDClientPanel(DockPanels[I]).Control.Parent := 86 106 // TCDClientPanel(DockPanels[I]).ClientAreaPanel; 87 107 //ShowMessage(TCDClientPanel(DockPanels[I]).Control.ClassName); 88 Application.ProcessMessages;108 //Application.ProcessMessages; 89 109 90 110 // Workaround for "Cannot focus" error 91 TForm(TCD ClientPanel(DockPanels[I]).Control).ActiveControl := nil;111 TForm(TCDManagerItem(DockItems[I]).Control).ActiveControl := nil; 92 112 end; 93 113 94 114 // Show selected 95 if (PageControl.TabIndex <> -1) and (Dock Panels.Count > PageControl.TabIndex)115 if (PageControl.TabIndex <> -1) and (DockItems.Count > PageControl.TabIndex) 96 116 // and not TCDClientPanel(DockPanels[PageControl.TabIndex]).Control.Visible 97 117 then begin 98 with TCD ClientPanel(DockPanels[PageControl.TabIndex]), ClientAreaPaneldo begin118 with TCDManagerItem(DockItems[PageControl.TabIndex]) do begin 99 119 Control.Show; 100 120 (*AutoHide.Enable := True; … … 145 165 inherited; 146 166 FDockStyle := dsTabs; 167 FDockItems := TObjectList.Create; 168 147 169 TabImageList := TImageList.Create(ADockSite); //FDockSite); 148 170 with TabImageList do begin … … 173 195 PageControl.Visible := True; 174 196 //TabImageList.Clear; 175 for I := 0 to Dock Panels.Count - 1 do176 Self.InsertControlNoUpdate(TCD ClientPanel(DockPanels[I]).Control, alNone);197 for I := 0 to DockItems.Count - 1 do 198 Self.InsertControlNoUpdate(TCDManagerItem(DockItems[I]).Control, alNone); 177 199 TabControlChange(Self); 178 200 end; … … 180 202 destructor TCDManagerTabs.Destroy; 181 203 begin 204 FDockItems.Free; 182 205 PageControl.Free; 183 206 TabImageList.Free; … … 185 208 end; 186 209 210 procedure TCDManagerTabs.PaintSite(DC: HDC); 211 var 212 I: Integer; 213 begin 214 inherited PaintSite(DC); 215 PageControl.Invalidate; 216 end; 217 187 218 procedure TCDManagerTabs.Switch(Index: Integer); 188 219 begin … … 193 224 var 194 225 NewTabSheet: TTabSheet; 195 NewPanel: TCD ClientPanel;226 NewPanel: TCDManagerTabsItem; 196 227 begin 197 228 inherited; 198 229 begin 199 NewPanel := TCD ClientPanel.Create(nil);230 NewPanel := TCDManagerTabsItem.Create; 200 231 with NewPanel do begin 201 Parent := Self.DockSite;202 OwnerDockManager := Self;232 //Panel.Parent := Self.DockSite; 233 Manager := Self; 203 234 if DockStyle = dsList then Visible := True; 204 Align := alClient;235 //Align := alClient; 205 236 Header.PopupMenu := Self.PopupMenu; 206 237 //PopupMenu.Parent := Self.DockSite; … … 211 242 NewPanel.Control := AControl; 212 243 AControl.AddHandlerOnVisibleChanged(NewPanel.VisibleChange); 213 AControl.Parent := NewPanel.ClientAreaPanel;244 //AControl.Parent := NewPanel.ClientAreaPanel; 214 245 AControl.Align := alClient; 215 246 if (InsertAt = alTop) or (InsertAt = alLeft) then 216 Dock Panels.Insert(0, NewPanel)217 else Dock Panels.Add(NewPanel);247 DockItems.Insert(0, NewPanel) 248 else DockItems.Add(NewPanel); 218 249 219 250 end; … … 225 256 NewTabSheet.ImageIndex := TabImageList.Count; 226 257 TabImageList.Add(NewPanel.Header.Icon.Picture.Bitmap, nil); 227 if Assigned(NewPanel.Splitter) then228 NewPanel.Splitter.Visible := False;229 NewPanel.ClientAreaPanel.Visible := False;230 NewPanel.Visible := False;258 // if Assigned(NewPanel.Splitter) then 259 // NewPanel.Splitter.Visible := False; 260 // NewPanel.ClientAreaPanel.Visible := False; 261 // NewPanel.Visible := False; 231 262 //NewPanel.Parent := NewTabSheet; 232 263 end; … … 253 284 begin 254 285 inherited UpdateClientSize; 255 for I := 0 to Dock Panels.Count - 1 do begin286 for I := 0 to DockItems.Count - 1 do begin 256 287 //TCDClientPanel(DockPanels[I]).ClientAreaPanel.Width := DockSite.Width; 257 288 //TCDClientPanel(DockPanels[I]).ClientAreaPanel.Height := DockSite.Height - PageControl.Height; … … 263 294 begin 264 295 inherited; 265 if (PageControl.TabIndex >= 0) and (PageControl.TabIndex < Dock Panels.Count) then266 with TCD ClientPanel(DockPanels[PageControl.TabIndex]) do begin296 if (PageControl.TabIndex >= 0) and (PageControl.TabIndex < DockItems.Count) then 297 with TCDManagerItem(DockItems[PageControl.TabIndex]) do begin 267 298 //Show; 268 299 //ShowMessage(IntToStr(Control.Tag)); … … 294 325 //TabImageList.Delete(PageControl.Tabs.IndexOf(Control.Caption)); 295 326 296 I := Dock Panels.IndexOf(FindControlInPanels(Control));327 I := DockItems.IndexOf(FindControlInPanels(Control)); 297 328 if Control.Tag = Integer(dhtPermanent) then 298 329 if I <> -1 then … … 308 339 begin 309 340 // if Control.Tag = 0 then begin 310 I := Dock Panels.IndexOf(FindControlInPanels(Control));341 I := DockItems.IndexOf(FindControlInPanels(Control)); 311 342 //if then 312 343 if I <> -1 then -
Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas
r193 r194 7 7 uses 8 8 Classes, Controls, SysUtils, ComCtrls, ExtCtrls, UCDCommon, 9 UCDManagerTabs , UCDClientPanel;9 UCDManagerTabs; 10 10 11 11 type … … 38 38 end; 39 39 40 { TCDManagerTabsPopupItem } 41 42 TCDManagerTabsPopupItem = class 43 constructor Create; 44 end; 45 40 46 { TCDStylePopupTabs } 41 47 42 48 TCDStylePopupTabs = class(TCDManagerTabs) 49 public 43 50 TabControl: TTabControl; 44 51 TabImageList: TImageList; 52 AutoHideEnabled: Boolean; 45 53 AutoHide: TCDAutoHide; 46 54 procedure TabControlMouseLeave(Sender: TObject); … … 61 69 UCDClient; 62 70 71 { TCDManagerTabsPopupItem } 72 73 constructor TCDManagerTabsPopupItem.Create; 74 begin 75 end; 76 63 77 { TCDAutoHide } 64 78 -
Docking/CoolDocking/UCDClient.pas
r193 r194 11 11 Buttons, ExtCtrls, Contnrs, Forms, ComCtrls, Dialogs, Menus, FileUtil, 12 12 UCDCustomize, DOM, XMLWrite, XMLRead, UCDCommon, 13 DateUtils, UCD ClientPanel, UCDPopupMenu, UCDManager;13 DateUtils, UCDPopupMenu, UCDManager; 14 14 15 15 const -
Docking/CoolDocking/UCDConjoinForm.pas
r189 r194 6 6 7 7 uses 8 Classes, SysUtils, UCDCommon , UCDClientPanel;8 Classes, SysUtils, UCDCommon; 9 9 10 10 type … … 40 40 begin 41 41 TCDManager(DockManager).Visible := False; 42 // Hide all docked childs43 with TCDManager(DockManager) do44 for I := 0 to DockPanels.Count - 1 do45 if Assigned(TCDClientPanel(DockPanels[I]).Control) then begin46 TCDClientPanel(DockPanels[I]).Control.Tag := Integer(dhtTemporal);47 TCDClientPanel(DockPanels[I]).Control.Hide;48 end;49 42 end; 50 43 -
Docking/CoolDocking/UCDCustomize.pas
r192 r194 7 7 uses 8 8 Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, 9 ComCtrls, StdCtrls, Spin, UCDLayout, UCDCommon ;9 ComCtrls, StdCtrls, Spin, UCDLayout, UCDCommon, UCDManager; 10 10 11 11 type … … 64 64 65 65 uses 66 UCDClient, UCDMaster , UCDClientPanel;66 UCDClient, UCDMaster; 67 67 68 68 resourcestring -
Docking/CoolDocking/UCDManager.pas
r193 r194 1 1 unit UCDManager; 2 2 3 {$mode objfpc}{$H+}3 {$mode Delphi}{$H+} 4 4 5 5 interface 6 6 7 7 uses 8 Classes, SysUtils, UCDCommon, Controls, Contnrs, UCDClientPanel,9 UCDPopupMenu, LCLType, LMessages, Graphics, 8 Classes, SysUtils, UCDCommon, Controls, Contnrs, 9 UCDPopupMenu, LCLType, LMessages, Graphics, Buttons, 10 10 UCDConjoinForm, Menus, StdCtrls, ExtCtrls, Forms; 11 11 12 const 13 GrabberSize = 22; 14 12 15 type 13 { TCoolDockPanels } 14 15 // TCoolDockPanels = TObjectList<TCDClientPanel> 16 TCDPanels = class(TObjectList) 16 THeaderPos = (hpAuto, hpLeft, hpTop, hpRight, hpBottom); 17 18 TCDManager = class; 19 TCDManagerItem = class; 20 21 TCDHeader = class(TPanel) 22 private 23 procedure CloseButtonClick(Sender: TObject); 24 procedure DrawGrabber(Canvas: TCanvas; AControl: TControl); 25 public 26 CloseButton: TSpeedButton; 27 Title: TLabel; 28 Icon: TImage; 29 ManagerItem: TCDManagerItem; 30 Shape: TShape; 31 constructor Create(TheOwner: TComponent); override; 17 32 destructor Destroy; override; 33 end; 34 35 { TCDManagerItem } 36 37 TCDManagerItem = class 38 private 39 FHeaderPos: THeaderPos; 40 FShowHeader: Boolean; 41 procedure DockPanelMouseDown(Sender: TObject; Button: TMouseButton; 42 Shift: TShiftState; X, Y: Integer); 43 procedure ResizeExecute(Sender: TObject); 44 procedure SetHeaderPos(const AValue: THeaderPos); 45 public 46 Header: TCDHeader; 47 Control: TControl; 48 Manager: TCDManager; 49 procedure Paint(Sender: TObject); virtual; 50 procedure VisibleChange(Sender: TObject); virtual; 51 constructor Create; 52 destructor Destroy; override; 53 property ShowHeader: Boolean read FShowHeader write FShowHeader; 54 property HeaderPos: THeaderPos read FHeaderPos write SetHeaderPos; 18 55 end; 19 56 … … 23 60 private 24 61 FDockSite: TWinControl; 25 FDockPanels: TCDPanels;26 62 function GetDockSite: TWinControl; 27 63 function GetHeaderPos: THeaderPos; … … 65 101 function AutoFreeByControl: Boolean; override; 66 102 67 function FindControlInPanels(Control: TControl): TCD ClientPanel;103 function FindControlInPanels(Control: TControl): TCDManagerItem; virtual; 68 104 function CreateContainer(InsertAt: TAlign): TCDConjoinForm; 69 property DockPanels: TCDPanels read FDockPanels write FDockPanels;70 105 property DockStyle: TCDStyleType read FDockStyle write SetDockStyle; 71 106 property MoveDuration: Integer read GetMoveDuration write SetMoveDuration; … … 81 116 UCDManagerRegions, UCDManagerTabs, UCDManagerRegionsPopup, UCDManagerTabsPopup; 82 117 118 { TCDManagerItem } 119 120 procedure TCDManagerItem.SetHeaderPos(const AValue: THeaderPos); 121 begin 122 if FHeaderPos=AValue then exit; 123 FHeaderPos:=AValue; 124 Paint(Self); 125 end; 126 127 procedure TCDManagerItem.Paint(Sender: TObject); 128 var 129 I: Integer; 130 R: TRect; 131 begin 132 (* if not (csDesigning in ComponentState) then 133 if Assigned(Control) then begin 134 R := Control.ClientRect; 135 Canvas.FillRect(R); 136 Header.Visible := ShowHeader; 137 if ShowHeader then begin 138 if ClientAreaPanel.DockClientCount = 0 then 139 Header.DrawGrabber(Canvas, Control) else 140 Header.DrawGrabber(Canvas, ClientAreaPanel); 141 end; 142 end;*) 143 end; 144 145 constructor TCDManagerItem.Create; 146 begin 147 //Paint.OnPaint := Paint; 148 Header.Shape.OnMouseDown := DockPanelMouseDown; 149 Header.Title.OnMouseDown := DockPanelMouseDown; 150 //OnResize := ResizeExecute; 151 //BevelInner := bvNone; 152 //BevelOuter := bvNone; 153 HeaderPos := hpTop; 154 155 ShowHeader := True; 156 Header := TCDHeader.Create(nil); 157 with Header do begin 158 Parent := nil; 159 Visible := ShowHeader; 160 Align := alTop; 161 Height := GrabberSize; 162 ManagerItem := Self; 163 end; 164 end; 165 166 procedure TCDManagerItem.ResizeExecute(Sender: TObject); 167 begin 168 (* if Assigned(Control) then begin 169 Control.Top := GrabberSize; 170 Control.Left := 0; 171 Control.Width := Width; 172 Control.Height := Height - GrabberSize; 173 //Control.SetBounds(0, GrabberSize, Width - Control.Left, 174 // Height - Control.Top); 175 end;*) 176 end; 177 178 procedure TCDManagerItem.DockPanelMouseDown(Sender: TObject; 179 Button: TMouseButton; Shift: TShiftState; X, Y: Integer); 180 begin 181 if Control is TForm then begin 182 //TForm(Control).SetFocus; 183 Paint(Self); 184 end; 185 if (Button = mbLeft) then begin 186 //(Control as TWinControl).DockSite := False; 187 //ClientAreaPanel.DockSite := False; 188 //(Control as TWinControl).BeginDrag(False, 10); 189 //DragManager.DragStart(Control, False, 1); 190 end; 191 end; 192 193 destructor TCDManagerItem.Destroy; 194 begin 195 if Assigned(Control) then 196 Control.RemoveHandlerOnVisibleChanged(VisibleChange); 197 inherited Destroy; 198 end; 199 200 procedure TCDManagerItem.VisibleChange(Sender: TObject); 201 var 202 ControlVisible: Boolean; 203 Temp: TControl; 204 Temp2: TControl; 205 begin 206 { Temp := TControl(Sender); 207 if Assigned(Control) then 208 begin 209 ControlVisible := TControl(Sender).Visible; 210 (*if Assigned(ClientAreaPanel) then 211 ClientAreaPanel.Visible := ControlVisible; 212 if Assigned(Splitter) then 213 Splitter.Visible := ControlVisible; 214 *) 215 // if Assigned(TCDManager(OwnerDockManager).DockStyleHandler) then 216 if Assigned(Manager) then 217 with TCDManager(Manager) do 218 begin 219 //UpdateClientSize; 220 if ControlVisible then 221 Switch(DockItems.IndexOf(FindControlInPanels(TControl(Sender)))); 222 if not (Control is TWinControl) then raise Exception.Create('Not TWinControl'); 223 if not Assigned(Control) then raise Exception.Create('Control not assigned'); 224 ChangeVisible(TWinControl(Control), ControlVisible); 225 // Show parent control 226 Temp := TControl(Sender).HostDockSite; 227 228 if ControlVisible then 229 TControl(Sender).HostDockSite.Visible := ControlVisible; 230 end; 231 if csDestroying in Control.ComponentState then Control := nil; 232 end;} 233 end; 234 83 235 { TCDManager } 84 236 85 237 function TCDManager.FindControlInPanels(Control: TControl 86 ): TCDClientPanel; 87 var 88 I: Integer; 89 begin 90 I := 0; 91 while (I < FDockPanels.Count) and 92 (TCDClientPanel(FDockPanels[I]).Control <> Control) do Inc(I); 93 if I < FDockPanels.Count then Result := TCDClientPanel(FDockPanels[I]) 94 else Result := nil; 238 ): TCDManagerItem; 239 begin 240 Result := nil; 95 241 end; 96 242 … … 118 264 119 265 FDockSite := ADockSite; 120 FDockPanels := TCDPanels.Create;121 266 122 267 FDockStyle := dsList; // dsNone … … 128 273 begin 129 274 PopupMenu.Free; 130 FDockPanels.Free;131 275 inherited Destroy; 132 276 end; … … 171 315 var 172 316 NewSplitter: TSplitter; 173 NewDockPanel: TCD ClientPanel;317 NewDockPanel: TCDManagerItem; 174 318 NewPanel: TPanel; 175 319 I: Integer; … … 193 337 end; 194 338 end else 195 if (FDockSite is TCDConjoinForm) or (FDockSite is TPanel) or (FDockSite is TCDClientPanel)then begin339 if (FDockSite is TCDConjoinForm) or (FDockSite is TPanel) then begin 196 340 InsertControlPanel(Control, InsertAt, DropCtl); 197 341 end; … … 206 350 207 351 procedure TCDManager.PaintSite(DC: HDC); 208 var 209 Canvas: TControlCanvas; 210 Control: TControl; 211 I: Integer; 212 R: TRect; 213 begin 214 for I := 0 to FDockPanels.Count - 1 do 215 with TCDClientPanel(FDockPanels[I]) do begin 216 Invalidate; 217 end; 352 begin 218 353 end; 219 354 … … 254 389 255 390 procedure TCDManager.RemoveControl(Control: TControl); 256 var257 ClientPanel: TCDClientPanel;391 //var 392 // ClientPanel: TCDClientPanel; 258 393 begin 259 394 //DockStyleHandler.RemoveControl(Control); … … 322 457 if AValue = dsTabs then begin 323 458 NewManager := TCDManagerTabs.Create(FDockSite); 324 TCDManagerTabs(Self).TabControlChange(Self);459 //TCDManagerTabs(Self).TabControlChange(Self); 325 460 end else 326 461 if AValue = dsList then begin … … 328 463 end else 329 464 if AValue = dsPopupList then begin 330 NewManager := TCD StylePopupRegions.Create(FDockSite);465 NewManager := TCDManagerPopupRegions.Create(FDockSite); 331 466 end else 332 467 if AValue = dsPopupTabs then begin … … 336 471 NewManager.Assign(TCDManager(DockSite.DockManager)); 337 472 DockSite.DockManager := NewManager; 338 end;339 UpdateClientSize;473 NewManager.UpdateClientSize; 474 end; 340 475 end; 341 476 … … 379 514 end; 380 515 381 { TCDPanels } 382 383 destructor TCDPanels.Destroy; 384 var 385 Temp: Integer; 386 begin 387 Temp := Count; 516 { TCDHeader } 517 518 constructor TCDHeader.Create(TheOwner: TComponent); 519 begin 520 inherited Create(TheOwner); 521 Shape := TShape.Create(Self); 522 with Shape do begin 523 Parent := Self; 524 Anchors := [akRight, akBottom, akLeft, akTop]; 525 Left := 1; 526 Top := 1; 527 Width := Self.Width - 2; 528 Height := Self.Height - 2; 529 Brush.Style := bsClear; 530 end; 531 Title := TLabel.Create(Self); 532 with Title do begin 533 Parent := Self; 534 Visible := True; 535 Top := 4; 536 Left := 6; 537 BevelInner := bvNone; 538 BevelOuter := bvNone; 539 end; 540 CloseButton := TSpeedButton.Create(Self); 541 with CloseButton do begin 542 Parent := Self; 543 Caption := 'X'; 544 Font.Size := 6; 545 Width := GrabberSize - 8; 546 Height := GrabberSize - 8; 547 Anchors := [akRight, akTop]; 548 Left := Self.Width - Width - 4; 549 Top := 4; 550 Visible := True; 551 OnClick := CloseButtonClick; 552 end; 553 Icon := TImage.Create(Self); 554 with Icon do begin 555 Parent := Self; 556 Left := 4; 557 Top := 2; 558 Visible := True; 559 end; 560 end; 561 562 destructor TCDHeader.Destroy; 563 begin 388 564 inherited Destroy; 389 565 end; 390 566 567 procedure TCDHeader.DrawGrabber(Canvas: TCanvas; AControl: TControl); 568 begin 569 with Canvas do begin 570 Brush.Color := clBtnFace; 571 Pen.Color := clBlack; 572 //FillRect(0, 0, AControl.Width, GrabberSize); 573 574 if (AControl as TWinControl).Focused then 575 Title.Font.Style := Font.Style + [fsBold] 576 else Title.Font.Style := Font.Style - [fsBold]; 577 Rectangle(1, 1, AControl.Width - 1, GrabberSize - 1); 578 if Icon.Picture.Width > 0 then Title.Left := 8 + Icon.Picture.Width 579 else Title.Left := 6; 580 Title.Caption := AControl.Caption; 581 end; 582 end; 583 584 procedure TCDHeader.CloseButtonClick(Sender: TObject); 585 begin 586 ManagerItem.Control.Hide; 587 end; 588 391 589 392 590 -
Docking/CoolDocking/UCDMaster.pas
r191 r194 6 6 7 7 uses 8 Classes, SysUtils, UCDCommon, UCD ClientPanel;8 Classes, SysUtils, UCDCommon, UCDManager; 9 9 10 10 type -
Docking/CoolDocking/UCDPopupMenu.pas
r193 r194 6 6 7 7 uses 8 Classes, SysUtils, Menus, Forms, Controls, Dialogs, UCDClientPanel,8 Classes, SysUtils, Menus, Forms, Controls, Dialogs, 9 9 ExtCtrls, ComCtrls, UCDCommon; 10 10 … … 165 165 if PopupComponent is TPageControl then 166 166 with TPageControl(PopupComponent) do begin 167 TForm(TCD ClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control).Close;168 end; 169 if PopupComponent is TCDHeader then 170 with TCDHeader(PopupComponent) do begin 171 TForm( ParentClientPanel.Control).Close;167 TForm(TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control).Close; 168 end; 169 if PopupComponent is TCDHeader then 170 with TCDHeader(PopupComponent) do begin 171 TForm(ManagerItem.Control).Close; 172 172 end; 173 173 end; … … 180 180 if PopupComponent is TPageControl then 181 181 with TPageControl(PopupComponent) do begin 182 Value := TCD ClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control.Caption;182 Value := TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control.Caption; 183 183 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin 184 TCD ClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control.Caption := Value;184 TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control.Caption := Value; 185 185 Pages[TabIndex].Caption := Value; 186 186 end; … … 188 188 if PopupComponent is TCDHeader then 189 189 with TCDHeader(PopupComponent) do begin 190 Value := ParentClientPanel.Control.Caption;190 Value := ManagerItem.Control.Caption; 191 191 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin 192 ParentClientPanel.Control.Caption := Value;192 ManagerItem.Control.Caption := Value; 193 193 Title.Caption := Value; 194 194 end; … … 262 262 if PopupComponent is TPageControl then 263 263 with TPageControl(PopupComponent) do begin 264 Control := TCD ClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control;265 end else 266 if PopupComponent is TCDHeader then 267 with TCDHeader(PopupComponent) do begin 268 Control := ParentClientPanel.Control;264 Control := TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control; 265 end else 266 if PopupComponent is TCDHeader then 267 with TCDHeader(PopupComponent) do begin 268 Control := ManagerItem.Control; 269 269 end else Control := nil; 270 270 if Assigned(Control) then
Note:
See TracChangeset
for help on using the changeset viewer.