Changeset 191
- Timestamp:
- Mar 11, 2011, 10:07:38 AM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 3 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/CoolDocking.lpk
r189 r191 24 24 </CompilerOptions> 25 25 <Description Value="Set of components for docking of windows."/> 26 <Version Minor="2"/> 27 <Files Count="17"> 26 <License Value="GNU/GPL"/> 27 <Version Minor="3"/> 28 <Files Count="16"> 28 29 <Item1> 29 30 <Filename Value="UCDClient.pas"/> … … 61 62 </Item8> 62 63 <Item9> 63 <Filename Value="UCD Style.pas"/>64 <UnitName Value="UCD Style"/>64 <Filename Value="UCDClientPanel.pas"/> 65 <UnitName Value="UCDClientPanel"/> 65 66 </Item9> 66 67 <Item10> 67 <Filename Value="UCD ClientPanel.pas"/>68 <UnitName Value="UCD ClientPanel"/>68 <Filename Value="UCDPopupMenu.pas"/> 69 <UnitName Value="UCDPopupMenu"/> 69 70 </Item10> 70 71 <Item11> 71 <Filename Value="UCDPopupMenu.pas"/>72 <UnitName Value="UCDPopupMenu"/>73 </Item11>74 <Item12>75 72 <Filename Value="UCDLayout.pas"/> 76 73 <HasRegisterProc Value="True"/> 77 74 <UnitName Value="UCDLayout"/> 75 </Item11> 76 <Item12> 77 <Filename Value="URectangle.pas"/> 78 <UnitName Value="URectangle"/> 78 79 </Item12> 79 80 <Item13> 80 <Filename Value="U Rectangle.pas"/>81 <UnitName Value="U Rectangle"/>81 <Filename Value="UCDCommon.pas"/> 82 <UnitName Value="UCDCommon"/> 82 83 </Item13> 83 84 <Item14> 84 <Filename Value="UCD Common.pas"/>85 <UnitName Value="UCD Common"/>85 <Filename Value="UCDManager.pas"/> 86 <UnitName Value="UCDManager"/> 86 87 </Item14> 87 88 <Item15> 88 <Filename Value="UCD Manager.pas"/>89 <UnitName Value="UCD Manager"/>89 <Filename Value="UCDConjoinForm.pas"/> 90 <UnitName Value="UCDConjoinForm"/> 90 91 </Item15> 91 92 <Item16> 92 <Filename Value="UCDConjoinForm.pas"/>93 <UnitName Value="UCDConjoinForm"/>94 </Item16>95 <Item17>96 93 <Filename Value="UCDMaster.pas"/> 97 94 <HasRegisterProc Value="True"/> 98 95 <UnitName Value="UCDMaster"/> 99 </Item1 7>96 </Item16> 100 97 </Files> 101 98 <i18n> -
Docking/CoolDocking/CoolDocking.pas
r189 r191 9 9 uses 10 10 UCDClient, UCDCustomize, UCDWindowList, UCDStyleTabs, UCDStyleRegions, 11 UCDStylePopupTabs, UCDStylePopupRegions, UCD Style, UCDClientPanel,12 UCD PopupMenu, UCDLayout, URectangle, UCDCommon, UCDManager, UCDConjoinForm,13 UCDMaster,LazarusPackageIntf;11 UCDStylePopupTabs, UCDStylePopupRegions, UCDClientPanel, UCDPopupMenu, 12 UCDLayout, URectangle, UCDCommon, UCDManager, UCDConjoinForm, UCDMaster, 13 LazarusPackageIntf; 14 14 15 15 implementation -
Docking/CoolDocking/Demo/IDE/IDE.lpi
r190 r191 43 43 </Item3> 44 44 </RequiredPackages> 45 <Units Count="6 2">45 <Units Count="63"> 46 46 <Unit0> 47 47 <Filename Value="IDE.lpr"/> 48 48 <IsPartOfProject Value="True"/> 49 49 <UnitName Value="IDE"/> 50 <EditorIndex Value="3 0"/>50 <EditorIndex Value="32"/> 51 51 <WindowIndex Value="0"/> 52 52 <TopLine Value="1"/> 53 53 <CursorPos X="1" Y="1"/> 54 <UsageCount Value="12 8"/>54 <UsageCount Value="129"/> 55 55 <Loaded Value="True"/> 56 56 </Unit0> … … 61 61 <ResourceBaseClass Value="Form"/> 62 62 <UnitName Value="UMainForm"/> 63 <EditorIndex Value="3 1"/>63 <EditorIndex Value="33"/> 64 64 <WindowIndex Value="0"/> 65 65 <TopLine Value="1"/> 66 66 <CursorPos X="18" Y="3"/> 67 <UsageCount Value="12 8"/>67 <UsageCount Value="129"/> 68 68 <Loaded Value="True"/> 69 69 </Unit1> … … 78 78 <TopLine Value="1"/> 79 79 <CursorPos X="31" Y="17"/> 80 <UsageCount Value="12 8"/>80 <UsageCount Value="129"/> 81 81 <Loaded Value="True"/> 82 82 </Unit2> … … 91 91 <TopLine Value="4"/> 92 92 <CursorPos X="37" Y="17"/> 93 <UsageCount Value="12 8"/>93 <UsageCount Value="129"/> 94 94 <Loaded Value="True"/> 95 95 </Unit3> … … 104 104 <TopLine Value="4"/> 105 105 <CursorPos X="37" Y="17"/> 106 <UsageCount Value="12 8"/>106 <UsageCount Value="129"/> 107 107 <Loaded Value="True"/> 108 108 </Unit4> 109 109 <Unit5> 110 110 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 111 <IsVisibleTab Value="True"/>112 111 <EditorIndex Value="7"/> 113 112 <WindowIndex Value="0"/> 114 113 <TopLine Value="3176"/> 115 <CursorPos X=" 1" Y="3189"/>116 <UsageCount Value="6 0"/>114 <CursorPos X="46" Y="3187"/> 115 <UsageCount Value="61"/> 117 116 <Loaded Value="True"/> 118 117 </Unit5> … … 127 126 <TopLine Value="4"/> 128 127 <CursorPos X="24" Y="17"/> 129 <UsageCount Value="12 8"/>128 <UsageCount Value="129"/> 130 129 <Loaded Value="True"/> 131 130 </Unit6> … … 147 146 <TopLine Value="4"/> 148 147 <CursorPos X="25" Y="17"/> 149 <UsageCount Value="12 8"/>148 <UsageCount Value="129"/> 150 149 <Loaded Value="True"/> 151 150 </Unit8> … … 160 159 <TopLine Value="3"/> 161 160 <CursorPos X="37" Y="16"/> 162 <UsageCount Value="12 8"/>161 <UsageCount Value="129"/> 163 162 <Loaded Value="True"/> 164 163 <LoadedDesigner Value="True"/> … … 174 173 <TopLine Value="5"/> 175 174 <CursorPos X="37" Y="18"/> 176 <UsageCount Value="12 8"/>175 <UsageCount Value="129"/> 177 176 <Loaded Value="True"/> 178 177 </Unit10> … … 187 186 <TopLine Value="4"/> 188 187 <CursorPos X="26" Y="17"/> 189 <UsageCount Value="12 8"/>188 <UsageCount Value="129"/> 190 189 <Loaded Value="True"/> 191 190 </Unit11> … … 200 199 <TopLine Value="5"/> 201 200 <CursorPos X="37" Y="18"/> 202 <UsageCount Value="12 8"/>201 <UsageCount Value="129"/> 203 202 <Loaded Value="True"/> 204 203 </Unit12> … … 213 212 <TopLine Value="4"/> 214 213 <CursorPos X="37" Y="17"/> 215 <UsageCount Value="12 8"/>214 <UsageCount Value="129"/> 216 215 <Loaded Value="True"/> 217 216 </Unit13> … … 225 224 <TopLine Value="6"/> 226 225 <CursorPos X="75" Y="7"/> 227 <UsageCount Value="12 6"/>226 <UsageCount Value="127"/> 228 227 </Unit14> 229 228 <Unit15> … … 232 231 <EditorIndex Value="0"/> 233 232 <WindowIndex Value="0"/> 234 <TopLine Value=" 8"/>235 <CursorPos X=" 12" Y="21"/>236 <UsageCount Value="6 3"/>233 <TopLine Value="1"/> 234 <CursorPos X="25" Y="14"/> 235 <UsageCount Value="64"/> 237 236 <Loaded Value="True"/> 238 237 </Unit15> … … 240 239 <Filename Value="..\..\UCDLayout.pas"/> 241 240 <UnitName Value="UCDLayout"/> 241 <IsVisibleTab Value="True"/> 242 242 <EditorIndex Value="23"/> 243 243 <WindowIndex Value="0"/> 244 <TopLine Value=" 130"/>245 <CursorPos X=" 18" Y="131"/>246 <UsageCount Value="6 3"/>244 <TopLine Value="45"/> 245 <CursorPos X="45" Y="52"/> 246 <UsageCount Value="64"/> 247 247 <Loaded Value="True"/> 248 248 </Unit16> 249 249 <Unit17> 250 250 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 251 <WindowIndex Value="0"/> 252 <TopLine Value="1644"/> 253 <CursorPos X="14" Y="1657"/> 251 <EditorIndex Value="28"/> 252 <WindowIndex Value="0"/> 253 <TopLine Value="376"/> 254 <CursorPos X="41" Y="389"/> 254 255 <UsageCount Value="35"/> 256 <Loaded Value="True"/> 255 257 </Unit17> 256 258 <Unit18> … … 276 278 <TopLine Value="110"/> 277 279 <CursorPos X="18" Y="126"/> 278 <UsageCount Value="2 6"/>280 <UsageCount Value="27"/> 279 281 <Loaded Value="True"/> 280 282 </Unit20> … … 297 299 <TopLine Value="2"/> 298 300 <CursorPos X="20" Y="15"/> 299 <UsageCount Value="1 0"/>301 <UsageCount Value="11"/> 300 302 <Loaded Value="True"/> 301 303 <LoadedDesigner Value="True"/> … … 304 306 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\forms.pp"/> 305 307 <UnitName Value="Forms"/> 306 <EditorIndex Value="2 7"/>308 <EditorIndex Value="29"/> 307 309 <WindowIndex Value="0"/> 308 310 <TopLine Value="1623"/> 309 311 <CursorPos X="24" Y="1636"/> 310 <UsageCount Value="3 2"/>312 <UsageCount Value="33"/> 311 313 <Loaded Value="True"/> 312 314 </Unit23> … … 343 345 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 344 346 <UnitName Value="Controls"/> 345 <EditorIndex Value=" 29"/>346 <WindowIndex Value="0"/> 347 <TopLine Value=" 497"/>347 <EditorIndex Value="31"/> 348 <WindowIndex Value="0"/> 349 <TopLine Value="521"/> 348 350 <CursorPos X="3" Y="504"/> 349 <UsageCount Value="3 6"/>351 <UsageCount Value="37"/> 350 352 <Loaded Value="True"/> 351 353 </Unit28> 352 354 <Unit29> 353 355 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 354 <WindowIndex Value="0"/> 355 <TopLine Value="7763"/> 356 <CursorPos X="1" Y="7776"/> 356 <EditorIndex Value="27"/> 357 <WindowIndex Value="0"/> 358 <TopLine Value="5374"/> 359 <CursorPos X="38" Y="5384"/> 357 360 <UsageCount Value="29"/> 361 <Loaded Value="True"/> 358 362 </Unit29> 359 363 <Unit30> … … 374 378 <TopLine Value="36"/> 375 379 <CursorPos X="35" Y="49"/> 376 <UsageCount Value=" 49"/>380 <UsageCount Value="50"/> 377 381 <Loaded Value="True"/> 378 382 </Unit31> … … 382 386 <EditorIndex Value="22"/> 383 387 <WindowIndex Value="0"/> 384 <TopLine Value=" 1"/>385 <CursorPos X=" 15" Y="11"/>386 <UsageCount Value="5 4"/>388 <TopLine Value="7"/> 389 <CursorPos X="30" Y="20"/> 390 <UsageCount Value="55"/> 387 391 <Loaded Value="True"/> 388 392 </Unit32> … … 392 396 <EditorIndex Value="20"/> 393 397 <WindowIndex Value="0"/> 394 <TopLine Value="2 0"/>395 <CursorPos X=" 15" Y="15"/>396 <UsageCount Value="4 8"/>398 <TopLine Value="237"/> 399 <CursorPos X="25" Y="250"/> 400 <UsageCount Value="49"/> 397 401 <Loaded Value="True"/> 398 402 </Unit33> … … 444 448 <Filename Value="..\..\UCDStyle.pas"/> 445 449 <UnitName Value="UCDStyle"/> 446 <EditorIndex Value="17"/> 447 <WindowIndex Value="0"/> 448 <TopLine Value="22"/> 449 <CursorPos X="13" Y="14"/> 450 <WindowIndex Value="0"/> 451 <TopLine Value="1"/> 452 <CursorPos X="24" Y="16"/> 450 453 <UsageCount Value="37"/> 451 <Loaded Value="True"/>452 454 </Unit40> 453 455 <Unit41> … … 456 458 <EditorIndex Value="13"/> 457 459 <WindowIndex Value="0"/> 458 <TopLine Value=" 14"/>459 <CursorPos X=" 27" Y="27"/>460 <UsageCount Value="3 7"/>460 <TopLine Value="92"/> 461 <CursorPos X="15" Y="102"/> 462 <UsageCount Value="38"/> 461 463 <Loaded Value="True"/> 462 464 </Unit41> … … 474 476 <EditorIndex Value="14"/> 475 477 <WindowIndex Value="0"/> 476 <TopLine Value=" 336"/>477 <CursorPos X=" 18" Y="91"/>478 <UsageCount Value="3 6"/>478 <TopLine Value="8"/> 479 <CursorPos X="32" Y="15"/> 480 <UsageCount Value="37"/> 479 481 <Loaded Value="True"/> 480 482 </Unit43> … … 507 509 <EditorIndex Value="12"/> 508 510 <WindowIndex Value="0"/> 509 <TopLine Value="1 "/>510 <CursorPos X=" 23" Y="12"/>511 <UsageCount Value="3 5"/>511 <TopLine Value="195"/> 512 <CursorPos X="1" Y="208"/> 513 <UsageCount Value="36"/> 512 514 <Loaded Value="True"/> 513 515 </Unit47> … … 515 517 <Filename Value="..\..\UCDStylePopupTabs.pas"/> 516 518 <UnitName Value="UCDStylePopupTabs"/> 517 <EditorIndex Value="1 5"/>518 <WindowIndex Value="0"/> 519 <TopLine Value=" 41"/>520 <CursorPos X=" 20" Y="42"/>521 <UsageCount Value="2 6"/>519 <EditorIndex Value="16"/> 520 <WindowIndex Value="0"/> 521 <TopLine Value="1"/> 522 <CursorPos X="17" Y="9"/> 523 <UsageCount Value="27"/> 522 524 <Loaded Value="True"/> 523 525 </Unit48> … … 568 570 <TopLine Value="23"/> 569 571 <CursorPos X="15" Y="24"/> 570 <UsageCount Value=" 29"/>572 <UsageCount Value="30"/> 571 573 </Unit54> 572 574 <Unit55> 573 575 <Filename Value="..\..\UCDStylePopupRegions.pas"/> 574 576 <UnitName Value="UCDStylePopupRegions"/> 575 <EditorIndex Value="1 6"/>576 <WindowIndex Value="0"/> 577 <TopLine Value="1"/> 578 <CursorPos X=" 23" Y="11"/>579 <UsageCount Value="1 0"/>577 <EditorIndex Value="17"/> 578 <WindowIndex Value="0"/> 579 <TopLine Value="1"/> 580 <CursorPos X="37" Y="8"/> 581 <UsageCount Value="11"/> 580 582 <Loaded Value="True"/> 581 583 </Unit55> … … 583 585 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\packages\fcl-base\src\custapp.pp"/> 584 586 <UnitName Value="CustApp"/> 585 <EditorIndex Value=" 28"/>587 <EditorIndex Value="30"/> 586 588 <WindowIndex Value="0"/> 587 589 <TopLine Value="13"/> 588 590 <CursorPos X="3" Y="26"/> 589 <UsageCount Value="1 1"/>591 <UsageCount Value="12"/> 590 592 <Loaded Value="True"/> 591 593 </Unit56> … … 595 597 <EditorIndex Value="26"/> 596 598 <WindowIndex Value="0"/> 597 <TopLine Value=" 59"/>598 <CursorPos X=" 12" Y="18"/>599 <UsageCount Value="1 1"/>599 <TopLine Value="325"/> 600 <CursorPos X="7" Y="341"/> 601 <UsageCount Value="12"/> 600 602 <Loaded Value="True"/> 601 603 </Unit57> … … 607 609 <TopLine Value="1"/> 608 610 <CursorPos X="17" Y="13"/> 609 <UsageCount Value="1 0"/>611 <UsageCount Value="11"/> 610 612 <Loaded Value="True"/> 611 613 </Unit58> … … 623 625 <EditorIndex Value="18"/> 624 626 <WindowIndex Value="0"/> 625 <TopLine Value=" 25"/>626 <CursorPos X=" 9" Y="59"/>627 <UsageCount Value="1 0"/>627 <TopLine Value="1"/> 628 <CursorPos X="33" Y="8"/> 629 <UsageCount Value="11"/> 628 630 <Loaded Value="True"/> 629 631 </Unit60> … … 636 638 <UsageCount Value="10"/> 637 639 </Unit61> 640 <Unit62> 641 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\comctrls.pp"/> 642 <UnitName Value="ComCtrls"/> 643 <EditorIndex Value="15"/> 644 <WindowIndex Value="0"/> 645 <TopLine Value="296"/> 646 <CursorPos X="14" Y="309"/> 647 <UsageCount Value="10"/> 648 <Loaded Value="True"/> 649 </Unit62> 638 650 </Units> 639 <JumpHistory Count=" 30" HistoryIndex="29">651 <JumpHistory Count="28" HistoryIndex="26"> 640 652 <Position1> 641 <Filename Value=" UObjectInspectorForm.pas"/>642 <Caret Line="1 8" Column="5" TopLine="5"/>653 <Filename Value="..\..\UCDPopupMenu.pas"/> 654 <Caret Line="15" Column="15" TopLine="20"/> 643 655 </Position1> 644 656 <Position2> 645 <Filename Value=" UProjectManagerForm.pas"/>646 <Caret Line=" 9" Column="12" TopLine="1"/>657 <Filename Value="..\..\UCDPopupMenu.pas"/> 658 <Caret Line="202" Column="18" TopLine="189"/> 647 659 </Position2> 648 660 <Position3> 649 <Filename Value=" UStructureForm.pas"/>650 <Caret Line=" 9" Column="13" TopLine="1"/>661 <Filename Value="..\..\UCDPopupMenu.pas"/> 662 <Caret Line="214" Column="18" TopLine="201"/> 651 663 </Position3> 652 664 <Position4> 653 <Filename Value=" UMessagesForm.pas"/>654 <Caret Line=" 9" Column="12" TopLine="1"/>665 <Filename Value="..\..\UCDPopupMenu.pas"/> 666 <Caret Line="226" Column="25" TopLine="213"/> 655 667 </Position4> 656 668 <Position5> 657 <Filename Value=" UMessagesForm.pas"/>658 <Caret Line=" 17" Column="25" TopLine="4"/>669 <Filename Value="..\..\UCDPopupMenu.pas"/> 670 <Caret Line="238" Column="25" TopLine="225"/> 659 671 </Position5> 660 672 <Position6> 661 <Filename Value=" UCallStackForm.pas"/>662 <Caret Line=" 8" Column="77" TopLine="1"/>673 <Filename Value="..\..\UCDClientPanel.pas"/> 674 <Caret Line="27" Column="27" TopLine="14"/> 663 675 </Position6> 664 676 <Position7> 665 <Filename Value=" ULocalVariablesForm.pas"/>666 <Caret Line=" 9" Column="5" TopLine="1"/>677 <Filename Value="..\..\UCDClientPanel.pas"/> 678 <Caret Line="70" Column="14" TopLine="57"/> 667 679 </Position7> 668 680 <Position8> 669 <Filename Value=" UToDoListForm.pas"/>670 <Caret Line=" 9" Column="6" TopLine="1"/>681 <Filename Value="..\..\UCDClientPanel.pas"/> 682 <Caret Line="86" Column="1" TopLine="73"/> 671 683 </Position8> 672 684 <Position9> 673 <Filename Value=" UToDoListForm.pas"/>674 <Caret Line=" 17" Column="37" TopLine="4"/>685 <Filename Value="..\..\UCDClientPanel.pas"/> 686 <Caret Line="99" Column="1" TopLine="86"/> 675 687 </Position9> 676 688 <Position10> 677 <Filename Value=" UWatchListForm.pas"/>678 <Caret Line=" 9" Column="12" TopLine="1"/>689 <Filename Value="..\..\UCDClientPanel.pas"/> 690 <Caret Line="100" Column="1" TopLine="87"/> 679 691 </Position10> 680 692 <Position11> 681 <Filename Value=" UThreadStatusForm.pas"/>682 <Caret Line=" 1" Column="1" TopLine="1"/>693 <Filename Value="..\..\UCDClientPanel.pas"/> 694 <Caret Line="98" Column="16" TopLine="89"/> 683 695 </Position11> 684 696 <Position12> 685 <Filename Value="..\..\UCD Customize.pas"/>686 <Caret Line=" 49" Column="12" TopLine="46"/>697 <Filename Value="..\..\UCDStyleTabs.pas"/> 698 <Caret Line="15" Column="27" TopLine="14"/> 687 699 </Position12> 688 700 <Position13> 689 <Filename Value="..\..\UCD WindowList.pas"/>690 <Caret Line=" 36" Column="12" TopLine="25"/>701 <Filename Value="..\..\UCDManager.pas"/> 702 <Caret Line="42" Column="47" TopLine="24"/> 691 703 </Position13> 692 704 <Position14> 693 <Filename Value="..\..\UCD WindowList.pas"/>694 <Caret Line=" 15" Column="16" TopLine="11"/>705 <Filename Value="..\..\UCDClientPanel.pas"/> 706 <Caret Line="98" Column="16" TopLine="89"/> 695 707 </Position14> 696 708 <Position15> 697 <Filename Value="..\..\UCD StyleTabs.pas"/>698 <Caret Line="1 5" Column="11" TopLine="2"/>709 <Filename Value="..\..\UCDClientPanel.pas"/> 710 <Caret Line="102" Column="15" TopLine="92"/> 699 711 </Position15> 700 712 <Position16> 701 <Filename Value="..\..\UCDStyle Regions.pas"/>702 <Caret Line="1 2" Column="14" TopLine="5"/>713 <Filename Value="..\..\UCDStyleTabs.pas"/> 714 <Caret Line="15" Column="32" TopLine="8"/> 703 715 </Position16> 704 716 <Position17> 705 <Filename Value="..\..\UCD StylePopupTabs.pas"/>706 <Caret Line=" 14" Column="10" TopLine="1"/>717 <Filename Value="..\..\UCDManager.pas"/> 718 <Caret Line="43" Column="78" TopLine="30"/> 707 719 </Position17> 708 720 <Position18> 709 <Filename Value="..\..\UCD StylePopupTabs.pas"/>710 <Caret Line=" 42" Column="14" TopLine="22"/>721 <Filename Value="..\..\UCDMaster.pas"/> 722 <Caret Line="59" Column="9" TopLine="25"/> 711 723 </Position18> 712 724 <Position19> 713 <Filename Value="..\..\UCD StylePopupRegions.pas"/>714 <Caret Line=" 11" Column="8" TopLine="1"/>725 <Filename Value="..\..\UCDMaster.pas"/> 726 <Caret Line="8" Column="33" TopLine="1"/> 715 727 </Position19> 716 728 <Position20> 717 <Filename Value="..\..\UCD ClientPanel.pas"/>718 <Caret Line=" 19" Column="7" TopLine="1"/>729 <Filename Value="..\..\UCDManager.pas"/> 730 <Caret Line="340" Column="27" TopLine="327"/> 719 731 </Position20> 720 732 <Position21> 721 <Filename Value="..\..\UCD ClientPanel.pas"/>722 <Caret Line=" 35" Column="17" TopLine="22"/>733 <Filename Value="..\..\UCDManager.pas"/> 734 <Caret Line="44" Column="15" TopLine="31"/> 723 735 </Position21> 724 736 <Position22> 725 <Filename Value="..\..\UCD ClientPanel.pas"/>726 <Caret Line=" 17" Column="6" TopLine="4"/>737 <Filename Value="..\..\UCDManager.pas"/> 738 <Caret Line="382" Column="40" TopLine="375"/> 727 739 </Position22> 728 740 <Position23> 729 741 <Filename Value="..\..\UCDManager.pas"/> 730 <Caret Line="3 08" Column="67" TopLine="295"/>742 <Caret Line="384" Column="16" TopLine="375"/> 731 743 </Position23> 732 744 <Position24> 733 <Filename Value="..\..\UCD StyleTabs.pas"/>734 <Caret Line=" 15" Column="15" TopLine="2"/>745 <Filename Value="..\..\UCDManager.pas"/> 746 <Caret Line="385" Column="33" TopLine="371"/> 735 747 </Position24> 736 748 <Position25> 737 <Filename Value="..\..\UCD PopupMenu.pas"/>738 <Caret Line=" 15" Column="10" TopLine="1"/>749 <Filename Value="..\..\UCDManager.pas"/> 750 <Caret Line="344" Column="21" TopLine="331"/> 739 751 </Position25> 740 752 <Position26> 741 753 <Filename Value="..\..\UCDManager.pas"/> 742 <Caret Line=" 81" Column="20" TopLine="75"/>754 <Caret Line="343" Column="1" TopLine="331"/> 743 755 </Position26> 744 756 <Position27> 745 757 <Filename Value="..\..\UCDManager.pas"/> 746 <Caret Line=" 18" Column="15" TopLine="11"/>758 <Caret Line="341" Column="7" TopLine="325"/> 747 759 </Position27> 748 760 <Position28> 749 <Filename Value="..\..\UCD ConjoinForm.pas"/>750 <Caret Line=" 13" Column="6" TopLine="1"/>761 <Filename Value="..\..\UCDLayout.pas"/> 762 <Caret Line="596" Column="1" TopLine="571"/> 751 763 </Position28> 752 <Position29>753 <Filename Value="..\..\UCDMaster.pas"/>754 <Caret Line="13" Column="9" TopLine="2"/>755 </Position29>756 <Position30>757 <Filename Value="UCallStackForm.pas"/>758 <Caret Line="16" Column="37" TopLine="3"/>759 </Position30>760 764 </JumpHistory> 761 765 </ProjectOptions> -
Docking/CoolDocking/UCDClient.pas
r189 r191 12 12 UCDCustomize, DOM, XMLWrite, XMLRead, UCDCommon, 13 13 DateUtils, UCDStyleTabs, UCDStyleRegions, UCDStylePopupTabs, 14 UCDStylePopupRegions, UCD Style, UCDClientPanel,14 UCDStylePopupRegions, UCDClientPanel, 15 15 UCDPopupMenu, UCDManager; 16 16 -
Docking/CoolDocking/UCDClientPanel.pas
r189 r191 68 68 69 69 uses 70 UCDClient, UCD Style, UCDManager;70 UCDClient, UCDManager; 71 71 72 72 { TCDClientPanel } … … 84 84 Temp: TControl; 85 85 Temp2: TControl; 86 Temp3: TCDStyle;87 86 begin 88 87 Temp := TControl(Sender); … … 98 97 if Assigned(OwnerDockManager) then 99 98 with TCDManager(OwnerDockManager) do 100 if Assigned(DockStyleHandler) then 101 with DockStyleHandler do begin 102 Temp3 := DockStyleHandler; 99 begin 103 100 //UpdateClientSize; 104 101 if ControlVisible then -
Docking/CoolDocking/UCDLayout.pas
r189 r191 21 21 HostDockSiteName: string; 22 22 Caption: string; 23 Visible: Boolean;23 Visible: boolean; 24 24 Rect: TRectangle; 25 25 RestoredRect: TRectangle; … … 27 27 UndockSize: TPoint; 28 28 DockStyle: TCDStyleType; 29 Processed: Boolean;29 Processed: boolean; 30 30 procedure SaveToNode(Node: TDOMNode); 31 31 procedure LoadFromNode(Node: TDOMNode); … … 79 79 function FindGlobalComponentDeep(Name: string): TComponent; 80 80 var 81 I: Integer; 82 begin 83 for I := 0 to Application.ComponentCount - 1 do begin 81 I: integer; 82 begin 83 for I := 0 to Application.ComponentCount - 1 do 84 begin 84 85 Result := Application.Components[I]; 85 if Result.Name = Name then Exit 86 else begin 87 Result := Result.FindComponent(Name); 88 if Assigned(Result) and (Result.Name = Name) then Exit; 89 end; 86 if Result.Name = Name then 87 Exit 88 else 89 begin 90 Result := Result.FindComponent(Name); 91 if Assigned(Result) and (Result.Name = Name) then 92 Exit; 93 end; 90 94 end; 91 95 end; … … 116 120 ReadXMLFile(Doc, Stream); 117 121 Items.Clear; 118 with Doc.DocumentElement do begin 122 with Doc.DocumentElement do 123 begin 119 124 NewNode := FindNode('Items'); 120 125 if Assigned(NewNode) then 121 with NewNode do begin 122 Child := FirstChild; 123 while Assigned(Child) do begin 124 NewItem := TCDLayout.Create; 125 NewItem.LoadFromNode(Child); 126 Items.Add(NewItem); 127 Child := Child.NextSibling; 126 with NewNode do 127 begin 128 Child := FirstChild; 129 while Assigned(Child) do 130 begin 131 NewItem := TCDLayout.Create; 132 NewItem.LoadFromNode(Child); 133 Items.Add(NewItem); 134 Child := Child.NextSibling; 135 end; 128 136 end; 129 end;130 137 end; 131 138 finally … … 138 145 Doc: TXMLDocument; 139 146 RootNode: TDOMNode; 140 I: Integer;147 I: integer; 141 148 NewNode: TDOMNode; 142 149 NewNode2: TDOMNode; … … 144 151 try 145 152 Doc := TXMLDocument.Create; 146 with Doc do begin 153 with Doc do 154 begin 147 155 RootNode := CreateElement('CoolDockLayout'); 148 156 AppendChild(RootNode); 149 with RootNode do begin 157 with RootNode do 158 begin 150 159 NewNode := OwnerDocument.CreateElement('Items'); 151 160 with NewNode do 152 for I := 0 to Items.Count - 1 do begin 153 NewNode2 := OwnerDocument.CreateElement('Layout'); 154 TCDLayout(Items[I]).SaveToNode(NewNode2); 155 AppendChild(NewNode2); 156 end; 161 for I := 0 to Items.Count - 1 do 162 begin 163 NewNode2 := OwnerDocument.CreateElement('Layout'); 164 TCDLayout(Items[I]).SaveToNode(NewNode2); 165 AppendChild(NewNode2); 166 end; 157 167 AppendChild(NewNode); 158 168 end; … … 181 191 begin 182 192 try 183 if FileExistsUTF8(FileName) then Stream := TFileStream.Create(FileName, fmOpenReadWrite) 184 else Stream := TFileStream.Create(FileName, fmCreate); 193 if FileExistsUTF8(FileName) then 194 Stream := TFileStream.Create(FileName, fmOpenReadWrite) 195 else 196 Stream := TFileStream.Create(FileName, fmCreate); 185 197 Stream.Size := 0; 186 198 SaveToStream(Stream); … … 192 204 procedure TCDLayoutList.PopulateStringList(List: TStrings); 193 205 var 194 I: Integer;206 I: integer; 195 207 begin 196 208 List.Clear; … … 201 213 function TCDLayoutList.FindByName(Name: string): TCDLayout; 202 214 var 203 I: Integer;215 I: integer; 204 216 begin 205 217 I := 0; 206 while (I < Items.Count) and (TCDLayout(Items[I]).Name <> Name) do Inc(I); 207 if I < Items.Count then Result := TCDLayout(Items[I]) 208 else Result := nil; 218 while (I < Items.Count) and (TCDLayout(Items[I]).Name <> Name) do 219 Inc(I); 220 if I < Items.Count then 221 Result := TCDLayout(Items[I]) 222 else 223 Result := nil; 209 224 end; 210 225 … … 215 230 NewNode: TDOMNode; 216 231 begin 217 with Node do begin 232 with Node do 233 begin 218 234 NewNode := OwnerDocument.CreateElement('Name'); 219 235 NewNode.TextContent := UTF8Decode(Name); … … 232 248 AppendChild(NewNode); 233 249 NewNode := OwnerDocument.CreateElement('WindowState'); 234 NewNode.TextContent := IntToStr( Integer(WindowState));250 NewNode.TextContent := IntToStr(integer(WindowState)); 235 251 AppendChild(NewNode); 236 252 NewNode := OwnerDocument.CreateElement('UndockWidth'); … … 256 272 AppendChild(NewNode); 257 273 NewNode := OwnerDocument.CreateElement('DockStyle'); 258 NewNode.TextContent := IntToStr( Integer(DockStyle));274 NewNode.TextContent := IntToStr(integer(DockStyle)); 259 275 AppendChild(NewNode); 260 276 NewNode := OwnerDocument.CreateElement('RestoredWidth'); … … 277 293 NewNode: TDOMNode; 278 294 begin 279 with TDOMElement(Node) do begin 295 with TDOMElement(Node) do 296 begin 280 297 NewNode := FindNode('Name'); 281 298 if Assigned(NewNode) then … … 349 366 Rect.Width := Form.Width; 350 367 Rect.Height := Form.Height; 351 if Form is TForm then begin 368 if Form is TForm then 369 begin 352 370 RestoredRect.Left := TForm(Form).RestoredLeft; 353 371 RestoredRect.Top := TForm(Form).RestoredTop; … … 358 376 if Assigned(Form.Parent) then 359 377 ParentName := Form.Parent.Name 360 else ParentName := ''; 361 if Assigned(Form.HostDockSite) then begin 378 else 379 ParentName := ''; 380 if Assigned(Form.HostDockSite) then 381 begin 362 382 if Assigned(Form.HostDockSite) then 363 383 begin 364 384 HostDockSiteName := Form.HostDockSite.Name; 365 if not Assigned(Parent.FindByName(HostDockSiteName)) then begin 385 if not Assigned(Parent.FindByName(HostDockSiteName)) then 386 begin 366 387 NewItem := TCDLayoutItem.Create; 367 388 NewItem.Parent := Parent; … … 371 392 end; 372 393 end; 373 end else HostDockSiteName := ''; 394 end 395 else 396 HostDockSiteName := ''; 374 397 end; 375 398 … … 381 404 begin 382 405 if Form is TForm then 383 if WindowState = wsMaximized then begin 384 TForm(Form).SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 385 RestoredRect.Width, RestoredRect.Height); 386 TForm(Form).WindowState := WindowState; 387 end else begin 388 TForm(Form).WindowState := WindowState; 389 TForm(Form).SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 390 RestoredRect.Width, RestoredRect.Height); 391 end; 406 if WindowState = wsMaximized then 407 begin 408 TForm(Form).SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 409 RestoredRect.Width, RestoredRect.Height); 410 TForm(Form).WindowState := WindowState; 411 end 412 else 413 begin 414 TForm(Form).WindowState := WindowState; 415 TForm(Form).SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 416 RestoredRect.Width, RestoredRect.Height); 417 end; 392 418 Form.Name := Name; 393 419 Form.Caption := Caption; … … 396 422 Form.UndockHeight := UndockSize.Y; 397 423 Form.Visible := Visible; 398 if HostDockSiteName <> '' then begin 424 if HostDockSiteName <> '' then 425 begin 399 426 ParentComponent := FindGlobalComponentDeep(HostDockSiteName); 400 if not Assigned(ParentComponent) then begin 427 if not Assigned(ParentComponent) then 428 begin 401 429 ParentLayoutItem := Parent.FindByName(HostDockSiteName); 402 if Assigned(ParentLayoutItem) then begin 403 if ParentLayoutItem.StoredClassName <> '' then begin 430 if Assigned(ParentLayoutItem) then 431 begin 432 if ParentLayoutItem.StoredClassName <> '' then 433 begin 404 434 //ParentComponent := TComponent(FindClass(ParentLayoutItem.StoredClassName).Create); 405 if (ParentLayoutItem.StoredClassName = 'TCoolDockConjoinForm') then begin 406 FormClass := TFormClass(FindClass('TCoolDockConjoinForm')); 407 if FormClass = TCDConjoinForm then begin 435 if (ParentLayoutItem.StoredClassName = 'TCDConjoinForm') then 436 begin 437 FormClass := TFormClass(FindClass('TCDConjoinForm')); 438 if FormClass = TCDConjoinForm then 439 begin 408 440 ParentComponent := TCDManager(Form.DockManager).CreateContainer(alNone); 409 TCDManager(TCDConjoinForm(ParentComponent).DockManager).DockStyle := ParentLayoutItem.DockStyle; 441 TCDManager(TCDConjoinForm(ParentComponent).DockManager).DockStyle := 442 ParentLayoutItem.DockStyle; 410 443 ParentLayoutItem.Restore(TWinControl(ParentComponent)); 411 444 end; … … 439 472 NewNode: TDOMNode; 440 473 NewNode2: TDOMNode; 441 I: Integer; 442 begin 443 with Node do begin 474 I: integer; 475 begin 476 with Node do 477 begin 444 478 NewNode := OwnerDocument.CreateElement('Name'); 445 479 NewNode.TextContent := UTF8Decode(Name); … … 447 481 NewNode := OwnerDocument.CreateElement('Items'); 448 482 with NewNode do 449 for I := 0 to Items.Count - 1 do begin 450 NewNode2 := OwnerDocument.CreateElement('Form'); 451 TCDLayoutItem(Items[I]).SaveToNode(NewNode2); 452 AppendChild(NewNode2); 453 end; 483 for I := 0 to Items.Count - 1 do 484 begin 485 NewNode2 := OwnerDocument.CreateElement('Form'); 486 TCDLayoutItem(Items[I]).SaveToNode(NewNode2); 487 AppendChild(NewNode2); 488 end; 454 489 AppendChild(NewNode); 455 490 end; … … 462 497 NewItem: TCDLayoutItem; 463 498 begin 464 with Node do begin 499 with Node do 500 begin 465 501 NewNode := FindNode('Name'); 466 502 if Assigned(NewNode) then … … 468 504 NewNode := FindNode('Items'); 469 505 if Assigned(NewNode) then 470 with NewNode do begin 471 Child := FirstChild; 472 while Assigned(Child) do begin 473 NewItem := TCDLayoutItem.Create; 474 NewItem.Parent := Self; 475 NewItem.LoadFromNode(Child); 476 Items.Add(NewItem); 477 Child := Child.NextSibling; 506 with NewNode do 507 begin 508 Child := FirstChild; 509 while Assigned(Child) do 510 begin 511 NewItem := TCDLayoutItem.Create; 512 NewItem.Parent := Self; 513 NewItem.LoadFromNode(Child); 514 Items.Add(NewItem); 515 Child := Child.NextSibling; 516 end; 478 517 end; 479 end;480 518 end; 481 519 end; … … 483 521 function TCDLayout.FindByName(Name: string): TCDLayoutItem; 484 522 var 485 I: Integer;523 I: integer; 486 524 begin 487 525 I := 0; 488 while (I < Items.Count) and (TCDLayoutItem(Items[I]).Name <> Name) do Inc(I); 489 if I < Items.Count then Result := TCDLayoutItem(Items[I]) 490 else Result := nil; 526 while (I < Items.Count) and (TCDLayoutItem(Items[I]).Name <> Name) do 527 Inc(I); 528 if I < Items.Count then 529 Result := TCDLayoutItem(Items[I]) 530 else 531 Result := nil; 491 532 end; 492 533 … … 504 545 procedure TCDLayout.Store; 505 546 var 506 I: Integer;547 I: integer; 507 548 Form: TForm; 508 549 NewItem: TCDLayoutItem; … … 510 551 Items.Clear; 511 552 for I := 0 to Application.ComponentCount - 1 do 512 if (Application.Components[I] is TForm) then begin 513 Form := (Application.Components[I] as TForm); 514 NewItem := TCDLayoutItem.Create; 515 NewItem.Parent := Self; 516 NewItem.Store(Form); 517 Items.Add(NewItem); 518 end; 553 if (Application.Components[I] is TForm) then 554 begin 555 Form := (Application.Components[I] as TForm); 556 NewItem := TCDLayoutItem.Create; 557 NewItem.Parent := Self; 558 NewItem.Store(Form); 559 Items.Add(NewItem); 560 end; 519 561 end; 520 562 … … 522 564 var 523 565 Form: TForm; 524 I: Integer;566 I: integer; 525 567 begin 526 568 // Undock all forms 527 569 I := 0; 528 while (I < Application.ComponentCount) do begin 529 if (Application.Components[I] is TForm) then begin 570 while (I < Application.ComponentCount) do 571 begin 572 if (Application.Components[I] is TForm) then 573 begin 530 574 Form := (Application.Components[I] as TForm); 531 575 if Assigned(Form.HostDockSite) then 532 Form.ManualFloat(Rect(Form.Left, Form.Top, Form.Left + Form.Width, Form.Top + Form.Height)); 576 Form.ManualFloat(Rect(Form.Left, Form.Top, Form.Left + 577 Form.Width, Form.Top + Form.Height)); 533 578 end; 534 579 Inc(I); … … 536 581 537 582 for I := 0 to Items.Count - 1 do 538 with TCDLayoutItem(Items[I]) do539 Processed := False;583 with TCDLayoutItem(Items[I]) do 584 Processed := False; 540 585 541 586 for I := 0 to Items.Count - 1 do 542 with TCDLayoutItem(Items[I]) do begin 543 Form := TForm(Application.FindComponent(Name)); 544 if Assigned(Form) and (not Assigned(Form.HostDockSite)) and (not Processed) then Restore(Form); 545 end; 587 with TCDLayoutItem(Items[I]) do 588 begin 589 Form := TForm(Application.FindComponent(Name)); 590 if Assigned(Form) and (not Assigned(Form.HostDockSite)) and (not Processed) then 591 Restore(Form); 592 end; 546 593 end; 547 594 -
Docking/CoolDocking/UCDManager.pas
r189 r191 7 7 uses 8 8 Classes, SysUtils, UCDCommon, Controls, Contnrs, UCDClientPanel, 9 UCDStyle, UCDPopupMenu, LCLType, LMessages, Graphics, 10 UCDConjoinForm, Menus, StdCtrls, ExtCtrls, Forms, 11 UCDStyleRegions, UCDStyleTabs, UCDStylePopupRegions, 12 UCDStylePopupTabs; 9 UCDPopupMenu, LCLType, LMessages, Graphics, 10 UCDConjoinForm, Menus, StdCtrls, ExtCtrls, Forms; 13 11 14 12 type … … 28 26 FDockPanels: TCDPanels; 29 27 function GetDockSite: TWinControl; 28 function GetDockStyle: TCDStyleType; 30 29 function GetHeaderPos: THeaderPos; 31 30 function GetMoveDuration: Integer; … … 36 35 procedure SetMoveDuration(const AValue: Integer); 37 36 procedure SetVisible(const AValue: Boolean); 38 procedure UpdateClientSize;39 37 public 40 DockStyleHandler: TCDStyle;41 38 PopupMenu: TCDPopupMenu; 42 39 constructor Create(ADockSite: TWinControl); override; 43 40 destructor Destroy; override; 41 procedure UpdateClientSize; virtual; 42 procedure Switch(Index: Integer); virtual; 43 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); virtual; 44 procedure Assign(Source: TCDManager); virtual; 44 45 45 46 // Inherited from TDockManager … … 67 68 function CreateContainer(InsertAt: TAlign): TCDConjoinForm; 68 69 property DockPanels: TCDPanels read FDockPanels write FDockPanels; 69 property DockStyle: TCDStyleType read FDockStyle write SetDockStyle;70 property DockStyle: TCDStyleType read GetDockStyle write SetDockStyle; 70 71 property MoveDuration: Integer read GetMoveDuration write SetMoveDuration; 71 72 property DockSite: TWinControl read GetDockSite; … … 76 77 77 78 implementation 79 80 uses 81 UCDStyleRegions, UCDStyleTabs, UCDStylePopupRegions, UCDStylePopupTabs; 78 82 79 83 { TCDManager } … … 96 100 end; 97 101 102 function TCDManager.GetDockStyle: TCDStyleType; 103 begin 104 if Self is TCDStyleRegions then Result := dsList 105 else if Self is TCDStyleTabs then Result := dsTabs 106 else if Self is TCDStylePopupRegions then Result := dsPopupList 107 else if Self is TCDStylePopupTabs then Result := dsPopupTabs; 108 end; 109 98 110 function TCDManager.GetHeaderPos: THeaderPos; 99 111 begin … … 124 136 begin 125 137 PopupMenu.Free; 126 DockStyleHandler.Free;127 138 FDockPanels.Free; 128 139 inherited Destroy; … … 157 168 DropCtl: TControl); 158 169 begin 159 DockStyleHandler.InsertControl(Control, InsertAt);170 //DockStyleHandler.InsertControl(Control, InsertAt); 160 171 end; 161 172 … … 250 261 ClientPanel: TCDClientPanel; 251 262 begin 252 DockStyleHandler.RemoveControl(Control);263 //DockStyleHandler.RemoveControl(Control); 253 264 //inherited; 254 265 (* if Control.HostDockSite = Self.FDockSite then begin … … 309 320 var 310 321 I: Integer; 322 NewManager: TCDManager; 311 323 begin 312 324 if FDockStyle <> AValue then begin 313 325 FDockStyle := AValue; 314 FreeAndNil(DockStyleHandler);315 326 if AValue = dsTabs then begin 316 DockStyleHandler := TCDStyleTabs.Create(Self);317 TCDStyleTabs( DockStyleHandler).TabControlChange(Self);327 NewManager := TCDStyleTabs.Create(Self); 328 TCDStyleTabs(Self).TabControlChange(Self); 318 329 end else 319 330 if AValue = dsList then begin 320 DockStyleHandler := TCDStyleRegions.Create(Self);331 NewManager := TCDStyleRegions.Create(Self); 321 332 end else 322 333 if AValue = dsPopupList then begin 323 DockStyleHandler := TCDStylePopupRegions.Create(Self);334 NewManager := TCDStylePopupRegions.Create(Self); 324 335 end else 325 336 if AValue = dsPopupTabs then begin 326 DockStyleHandler := TCDStylePopupTabs.Create(Self); 327 end; 337 NewManager := TCDStylePopupTabs.Create(Self); 338 end; 339 if DockSite.DockManager is TCDManager then 340 NewManager.Assign(TCDManager(DockSite.DockManager)); 341 DockSite.DockManager := NewManager; 328 342 end; 329 343 UpdateClientSize; … … 343 357 I: Integer; 344 358 begin 345 DockStyleHandler.Visible := AValue;359 Visible := AValue; 346 360 // for I := 0 to DockPanels.Count - 1 do 347 361 // TCDClientPanel(DockPanels[I]).Visible := AValue; … … 350 364 procedure TCDManager.UpdateClientSize; 351 365 begin 352 DockStyleHandler.UpdateClientSize; 366 // DockStyleHandler.UpdateClientSize; 367 end; 368 369 procedure TCDManager.Switch(Index: Integer); 370 begin 371 372 end; 373 374 procedure TCDManager.ChangeVisible(Control: TWinControl; Visible: Boolean); 375 begin 376 377 end; 378 379 procedure TCDManager.Assign(Source: TCDManager); 380 begin 381 FDockStyle := Source.FDockStyle; 382 FDockSite := Source.FDockSite; 353 383 end; 354 384 -
Docking/CoolDocking/UCDMaster.pas
r189 r191 6 6 7 7 uses 8 Classes, SysUtils, UCDCommon, UCD Style, UCDClientPanel;8 Classes, SysUtils, UCDCommon, UCDClientPanel; 9 9 10 10 type -
Docking/CoolDocking/UCDPopupMenu.pas
r189 r191 200 200 if PopupComponent is TPageControl then 201 201 with TPageControl(PopupComponent) do begin 202 TCDStyleTabs( TCDManager(Manager).DockStyleHandler).TabsPos := hpAuto;202 TCDStyleTabs(Manager).TabsPos := hpAuto; 203 203 end else 204 204 if PopupComponent is TCDHeader then … … 212 212 if PopupComponent is TPageControl then 213 213 with TPageControl(PopupComponent) do begin 214 TCDStyleTabs( TCDManager(Manager).DockStyleHandler).TabsPos := hpLeft;214 TCDStyleTabs(Manager).TabsPos := hpLeft; 215 215 end else 216 216 if PopupComponent is TCDHeader then … … 224 224 if PopupComponent is TPageControl then 225 225 with TPageControl(PopupComponent) do begin 226 TCDStyleTabs( TCDManager(Manager).DockStyleHandler).TabsPos := hpRight;226 TCDStyleTabs(Manager).TabsPos := hpRight; 227 227 end else 228 228 if PopupComponent is TCDHeader then … … 236 236 if PopupComponent is TPageControl then 237 237 with TPageControl(PopupComponent) do begin 238 TCDStyleTabs( TCDManager(Manager).DockStyleHandler).TabsPos := hpTop;238 TCDStyleTabs(Manager).TabsPos := hpTop; 239 239 end else 240 240 if PopupComponent is TCDHeader then … … 248 248 if PopupComponent is TPageControl then 249 249 with TPageControl(PopupComponent) do begin 250 TCDStyleTabs( TCDManager(Manager).DockStyleHandler).TabsPos := hpBottom;250 TCDStyleTabs(Manager).TabsPos := hpBottom; 251 251 end else 252 252 if PopupComponent is TCDHeader then -
Docking/CoolDocking/UCDStylePopupRegions.pas
r189 r191 6 6 7 7 uses 8 Classes, SysUtils, UCDStyleRegions , UCDStyle;8 Classes, SysUtils, UCDStyleRegions; 9 9 10 10 type -
Docking/CoolDocking/UCDStylePopupTabs.pas
r189 r191 7 7 uses 8 8 Classes, Controls, SysUtils, ComCtrls, ExtCtrls, UCDCommon, 9 UCDStyleTabs, UCD Style, UCDClientPanel;9 UCDStyleTabs, UCDClientPanel; 10 10 11 11 type -
Docking/CoolDocking/UCDStyleRegions.pas
r189 r191 6 6 7 7 uses 8 Classes, SysUtils, Controls, ExtCtrls, StdCtrls, UCDStyle,Forms,9 Graphics, Contnrs, Buttons, UCDClientPanel, UCDCommon ;8 Classes, SysUtils, Controls, ExtCtrls, StdCtrls, Forms, 9 Graphics, Contnrs, Buttons, UCDClientPanel, UCDCommon, UCDManager; 10 10 11 11 type … … 16 16 { TCDStyleRegions } 17 17 18 TCDStyleRegions = class(TCD Style)18 TCDStyleRegions = class(TCDManager) 19 19 private 20 20 function GetDirection(InsertAt: TAlign): TCDDirection; … … 22 22 FDockDirection: TCDDirection; 23 23 //Panels: TObjectList; // TObjectList<TCDStyleRegionsPanel> 24 procedure InsertControl(AControl: TControl; InsertAt: TAlign); override; 24 procedure InsertControl(Control: TControl; InsertAt: TAlign; 25 DropCtl: TControl); override; 25 26 procedure RemoveControl(Control: TControl); override; 26 function GetHeaderPos: THeaderPos; override;27 procedure SetHeaderPos(const AValue: THeaderPos); override;28 27 constructor Create(AManager: TCDManagerBase); 29 28 destructor Destroy; override; 30 29 procedure UpdateClientSize; override; 31 procedure SetVisible(const AValue: Boolean); override;32 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override;30 procedure DoSetVisible(const AValue: Boolean); 31 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); 33 32 property DockDirection: TCDDirection read FDockDirection 34 33 write FDockDirection; … … 38 37 39 38 uses 40 UCDClient, UCDConjoinForm , UCDManager;39 UCDClient, UCDConjoinForm; 41 40 42 41 … … 54 53 end; 55 54 56 procedure TCDStyleRegions.InsertControl(AControl: TControl; InsertAt: TAlign); 55 procedure TCDStyleRegions.InsertControl(Control: TControl; InsertAt: TAlign; 56 DropCtl: TControl); 57 57 var 58 58 NewPanel: TCDClientPanel; … … 63 63 begin 64 64 inherited; 65 with TCDManager(Manager) dobegin65 begin 66 66 if DockSite.DockClientCount <= 2 then FDockDirection := GetDirection(InsertAt) 67 67 else … … 74 74 // FDockSite.ManualFloat(FDockSite.BoundsRect); 75 75 NewConjoinDockForm.ManualDock(NewDockSite); 76 AControl.ManualDock(NewConjoinDockForm, nil, InsertAt);76 Control.ManualDock(NewConjoinDockForm, nil, InsertAt); 77 77 if DockSite is TForm then 78 78 DockSite.ManualDock(NewConjoinDockForm) … … 87 87 NewPanel := TCDClientPanel.Create(nil); 88 88 with NewPanel do begin 89 Parent := TCDManager(Manager).DockSite;90 OwnerDockManager := Manager;89 Parent := Self.DockSite; 90 OwnerDockManager := Self; 91 91 if DockStyle = dsList then Visible := True; 92 Header.PopupMenu := TCDManager(Manager).PopupMenu;92 Header.PopupMenu := Self.PopupMenu; 93 93 //PopupMenu.Parent := Self.DockSite; 94 94 end; 95 if ( AControl is TForm) and Assigned((AControl as TForm).Icon) then96 NewPanel.Header.Icon.Picture.Assign(( AControl as TForm).Icon);97 98 NewPanel.Control := AControl;99 AControl.AddHandlerOnVisibleChanged(NewPanel.VisibleChange);100 AControl.Parent := NewPanel.ClientAreaPanel;101 AControl.Align := alClient;95 if (Control is TForm) and Assigned((Control as TForm).Icon) then 96 NewPanel.Header.Icon.Picture.Assign((Control as TForm).Icon); 97 98 NewPanel.Control := Control; 99 Control.AddHandlerOnVisibleChanged(NewPanel.VisibleChange); 100 Control.Parent := NewPanel.ClientAreaPanel; 101 Control.Align := alClient; 102 102 if (InsertAt = alTop) or (InsertAt = alLeft) then 103 103 DockPanels.Insert(0, NewPanel) … … 112 112 ClientCount: Integer; 113 113 begin 114 ClientPanel := TCDManager(Manager).FindControlInPanels(Control);114 ClientPanel := FindControlInPanels(Control); 115 115 Control.RemoveHandlerOnVisibleChanged(ClientPanel.VisibleChange); 116 116 117 TCDManager(Manager).DockPanels.Remove(ClientPanel);118 ClientCount := TCDManager(Manager).DockPanels.Count;117 DockPanels.Remove(ClientPanel); 118 ClientCount := DockPanels.Count; 119 119 120 120 //if TCDManager(Manager).DockSite.DockClientCount = 2 then FDockDirection := ddNone; 121 121 if ClientCount = 1 then begin 122 122 // Last removed control => Free parent if it is TCDConjoinForm 123 if TCDManager(Manager).DockSite is TCDConjoinForm then124 with TCDConjoinForm( TCDManager(Manager).DockSite) do begin123 if Self.DockSite is TCDConjoinForm then 124 with TCDConjoinForm(Self.DockSite) do begin 125 125 if Assigned(Parent) then begin 126 TCDClientPanel( TCDManager(Manager).DockPanels[0]).Control.ManualDock(HostDockSite);127 end else TCDClientPanel( TCDManager(Manager).DockPanels[0]).Control.ManualFloat(Rect(Left, Top, Left + Width, Top + Height));126 TCDClientPanel(DockPanels[0]).Control.ManualDock(HostDockSite); 127 end else TCDClientPanel(DockPanels[0]).Control.ManualFloat(Rect(Left, Top, Left + Width, Top + Height)); 128 128 ManualFloat(Rect(Left, Top, Left + Width, Top + Height)); 129 129 Free; … … 134 134 end; 135 135 136 function TCDStyleRegions.GetHeaderPos: THeaderPos;137 begin138 // Result := TCDManager(Manager).;139 end;140 141 procedure TCDStyleRegions.SetHeaderPos(const AValue: THeaderPos);142 begin143 inherited SetHeaderPos(AValue);144 end;145 146 136 constructor TCDStyleRegions.Create(AManager: TCDManagerBase); 147 137 var 148 138 I: Integer; 149 139 begin 150 inherited;140 // inherited; 151 141 //Panels := TObjectList.Create; 152 142 … … 181 171 SplitterLeft := 0; 182 172 SplitterTop := 0; 183 with TCDManager(Manager) do184 173 for I := 0 to DockPanels.Count - 1 do 185 174 with TCDClientPanel(DockPanels[I]) do begin 186 175 Left := SplitterLeft; 187 176 Top := SplitterTop; 188 Height := TCDManager(Manager).DockSite.Height div189 TCDManager(Manager).DockSite.DockClientCount;190 Width := TCDManager(Manager).DockSite.Width div191 TCDManager(Manager).DockSite.DockClientCount;177 Height := Self.DockSite.Height div 178 Self.DockSite.DockClientCount; 179 Width := Self.DockSite.Width div 180 SElf.DockSite.DockClientCount; 192 181 //TCDClientPanel(FDockPanels[I]).DockPanelPaint(Self); 193 182 if I < (DockPanels.Count - 1) then Align := BaseAlign … … 198 187 Splitter.Left := SplitterLeft; 199 188 Splitter.Top := SplitterTop; 200 Splitter.Parent := TCDManager(Manager).DockSite;189 Splitter.Parent := SElf.DockSite; 201 190 Splitter.Align := BaseAlign; 202 191 Splitter.Visible := I < (DockPanels.Count - 1); … … 212 201 end; 213 202 214 procedure TCDStyleRegions.SetVisible(const AValue: Boolean); 215 var 216 I: Integer; 217 begin 218 inherited SetVisible(AValue); 219 with TCDManager(Manager) do 203 procedure TCDStyleRegions.DoSetVisible(const AValue: Boolean); 204 var 205 I: Integer; 206 begin 207 // inherited SetVisible(AValue); 220 208 for I := 0 to DockPanels.Count - 1 do 221 209 -
Docking/CoolDocking/UCDStyleTabs.pas
r189 r191 7 7 uses 8 8 Classes, Controls, ExtCtrls, ComCtrls, SysUtils, Dialogs, 9 Menus, UCDStyle, Forms, UCDClientPanel, UCDCommon;9 Menus, Forms, UCDClientPanel, UCDCommon, UCDManager; 10 10 11 11 type … … 13 13 { TCDStyleTabs } 14 14 15 TCDStyleTabs = class(TCDStyle) 15 TCDStyleTabs = class(TCDManager) 16 public 16 17 MouseDown: Boolean; 17 18 MouseButton: TMouseButton; … … 25 26 procedure TabControlMouseUp(Sender: TObject; Button: TMouseButton; 26 27 Shift: TShiftState; X, Y: Integer); 27 procedure InsertControl(AControl: TControl; InsertAt: TAlign); override; 28 procedure InsertControl(AControl: TControl; InsertAt: TAlign; 29 DropCtl: TControl); override; 28 30 procedure UpdateClientSize; override; 29 31 private … … 33 35 public 34 36 constructor Create(AManager: TCDManagerBase); 35 procedure SetVisible(const AValue: Boolean); override;37 procedure DoSetVisible(const AValue: Boolean); 36 38 destructor Destroy; override; 37 39 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override; … … 45 47 46 48 uses 47 UCDClient , UCDManager;49 UCDClient; 48 50 49 51 { TCDStyleTabs } … … 52 54 begin 53 55 if Assigned(PageControl.ActivePage) then 54 TCDClientPanel( TCDManager(Manager).DockPanels[PageControl.TabIndex]).Control.Hide;56 TCDClientPanel(DockPanels[PageControl.TabIndex]).Control.Hide; 55 57 end; 56 58 … … 58 60 begin 59 61 if MouseDown then 60 with TCDManager(Manager) do61 62 if Assigned(PageControl.ActivePage) then begin 62 63 TCDClientPanel(DockPanels[PageControl.TabIndex]).ClientAreaPanel.DockSite := False; … … 71 72 begin 72 73 // Hide all clients 73 with TCDManager(Manager) do74 74 for I := 0 to DockPanels.Count - 1 do 75 75 if TCDClientPanel(DockPanels[I]).Control.Visible … … 93 93 94 94 // Show selected 95 with TCDManager(Manager) do96 95 if (PageControl.TabIndex <> -1) and (DockPanels.Count > PageControl.TabIndex) 97 96 // and not TCDClientPanel(DockPanels[PageControl.TabIndex]).Control.Visible … … 144 143 NewTabSheet: TTabSheet; 145 144 begin 146 inherited;147 145 148 146 TabImageList := TImageList.Create(TCDManager(AManager).DockSite); //FDockSite); 149 147 with TabImageList do begin 150 Name := TCDManager(Manager).DockSite.Name + '_' + 'ImageList';148 Name := DockSite.Name + '_' + 'ImageList'; 151 149 end; 152 150 PageControl := TPageControl.Create(TCDManager(AManager).DockSite); //FDockSite); 153 151 with PageControl do begin 154 Parent := TCDManager(Manager).DockSite;155 Name := TCDManager(Manager).DockSite.Name + '_' + 'TabControl';152 Parent := Self.DockSite; 153 Name := Self.DockSite.Name + '_' + 'TabControl'; 156 154 Visible := False; 157 155 Align := alTop; … … 160 158 OnChange := TabControlChange; 161 159 MultiLine := True; 162 PopupMenu := TCDManager(Manager).PopupMenu;160 PopupMenu := Self.PopupMenu; 163 161 OnMouseLeave := TabControlMouseLeave; 164 162 OnMouseDown := TabControlMouseDown; … … 174 172 PageControl.Visible := True; 175 173 //TabImageList.Clear; 176 with TCDManager(Manager) do177 174 for I := 0 to DockPanels.Count - 1 do 178 175 Self.InsertControlNoUpdate(TCDClientPanel(DockPanels[I]).Control, alNone); … … 189 186 procedure TCDStyleTabs.Switch(Index: Integer); 190 187 begin 191 inherited Switch(Index);192 188 PageControl.TabIndex := Index; 193 189 end; … … 199 195 begin 200 196 inherited; 201 with TCDManager(Manager) dobegin197 begin 202 198 NewPanel := TCDClientPanel.Create(nil); 203 199 with NewPanel do begin 204 Parent := TCDManager(Manager).DockSite;205 OwnerDockManager := TCDManager(Manager);200 Parent := Self.DockSite; 201 OwnerDockManager := Self; 206 202 if DockStyle = dsList then Visible := True; 207 203 Align := alClient; 208 Header.PopupMenu := TCDManager(Manager).PopupMenu;204 Header.PopupMenu := Self.PopupMenu; 209 205 //PopupMenu.Parent := Self.DockSite; 210 206 end; … … 241 237 end; 242 238 243 procedure TCDStyleTabs.InsertControl(AControl: TControl; InsertAt: TAlign); 239 procedure TCDStyleTabs.InsertControl(AControl: TControl; InsertAt: TAlign; 240 DropCtl: TControl); 244 241 var 245 242 NewTabSheet: TTabSheet; … … 255 252 begin 256 253 inherited UpdateClientSize; 257 with TCDManager(Manager) do258 254 for I := 0 to DockPanels.Count - 1 do begin 259 255 //TCDClientPanel(DockPanels[I]).ClientAreaPanel.Width := DockSite.Width; … … 263 259 end; 264 260 265 procedure TCDStyleTabs.SetVisible(const AValue: Boolean); 266 begin 267 inherited SetVisible(AValue); 268 with TCDManager(Manager) do 261 procedure TCDStyleTabs.DoSetVisible(const AValue: Boolean); 262 begin 269 263 if (PageControl.TabIndex >= 0) and (PageControl.TabIndex < DockPanels.Count) then 270 264 with TCDClientPanel(DockPanels[PageControl.TabIndex]) do begin … … 288 282 //if Assigned(TWinControl(Control).DockManager) then 289 283 //with TCDManager(TWinControl(Control).DockManager) do 290 if Assigned(Manager) then291 with TCDManager(Manager) do292 284 begin 293 285 // ShowMessage(IntToStr(TabControl.TabIndex) + ' ' + IntToStr(DockPanels.Count)); … … 312 304 // if Assigned(TWinControl(Control).DockManager) then 313 305 // with TCDManager(TWinControl(Control).DockManager) do 314 if Assigned(Manager) then315 with TCDManager(Manager) do316 306 begin 317 307 // if Control.Tag = 0 then begin
Note:
See TracChangeset
for help on using the changeset viewer.