Changeset 209
- Timestamp:
- Mar 18, 2011, 2:16:28 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/IDE.lpi
r208 r209 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count="6 2">49 <Units Count="65"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> … … 63 63 <ResourceBaseClass Value="Form"/> 64 64 <UnitName Value="UMainForm"/> 65 <EditorIndex Value="1"/> 65 <IsVisibleTab Value="True"/> 66 <EditorIndex Value="2"/> 66 67 <WindowIndex Value="0"/> 67 68 <TopLine Value="161"/> … … 106 107 <Unit5> 107 108 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 108 <WindowIndex Value="0"/> 109 <TopLine Value="2414"/> 110 <CursorPos X="1" Y="2427"/> 111 <UsageCount Value="78"/> 109 <EditorIndex Value="8"/> 110 <WindowIndex Value="0"/> 111 <TopLine Value="2415"/> 112 <CursorPos X="43" Y="2423"/> 113 <UsageCount Value="79"/> 114 <Loaded Value="True"/> 112 115 </Unit5> 113 116 <Unit6> … … 124 127 <Unit7> 125 128 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customform.inc"/> 126 <WindowIndex Value="0"/> 127 <TopLine Value="1121"/> 128 <CursorPos X="1" Y="1134"/> 129 <UsageCount Value="31"/> 129 <EditorIndex Value="9"/> 130 <WindowIndex Value="0"/> 131 <TopLine Value="1350"/> 132 <CursorPos X="1" Y="1363"/> 133 <UsageCount Value="32"/> 134 <Loaded Value="True"/> 130 135 </Unit7> 131 136 <Unit8> … … 255 260 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 256 261 <UnitName Value="Controls"/> 257 <EditorIndex Value=" 3"/>262 <EditorIndex Value="4"/> 258 263 <WindowIndex Value="0"/> 259 264 <TopLine Value="508"/> 260 265 <CursorPos X="15" Y="521"/> 261 <UsageCount Value="5 8"/>266 <UsageCount Value="59"/> 262 267 <Loaded Value="True"/> 263 268 </Unit21> 264 269 <Unit22> 265 270 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 266 <EditorIndex Value=" 6"/>267 <WindowIndex Value="0"/> 268 <TopLine Value=" 6712"/>269 <CursorPos X="1" Y=" 6725"/>271 <EditorIndex Value="11"/> 272 <WindowIndex Value="0"/> 273 <TopLine Value="5327"/> 274 <CursorPos X="1" Y="5340"/> 270 275 <UsageCount Value="111"/> 271 276 <Loaded Value="True"/> … … 325 330 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 326 331 <UnitName Value="UCDManagerTabs"/> 327 <IsVisibleTab Value="True"/> 328 <EditorIndex Value="5"/> 329 <WindowIndex Value="0"/> 330 <TopLine Value="32"/> 331 <CursorPos X="1" Y="46"/> 332 <EditorIndex Value="6"/> 333 <WindowIndex Value="0"/> 334 <TopLine Value="264"/> 335 <CursorPos X="8" Y="266"/> 332 336 <UsageCount Value="130"/> 333 337 <Loaded Value="True"/> … … 336 340 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 337 341 <UnitName Value="UCDManagerRegions"/> 338 <EditorIndex Value=" 4"/>339 <WindowIndex Value="0"/> 340 <TopLine Value=" 208"/>341 <CursorPos X=" 3" Y="221"/>342 <EditorIndex Value="5"/> 343 <WindowIndex Value="0"/> 344 <TopLine Value="329"/> 345 <CursorPos X="1" Y="339"/> 342 346 <UsageCount Value="129"/> 343 347 <Loaded Value="True"/> … … 348 352 <EditorIndex Value="0"/> 349 353 <WindowIndex Value="0"/> 350 <TopLine Value=" 259"/>351 <CursorPos X=" 1" Y="266"/>354 <TopLine Value="55"/> 355 <CursorPos X="30" Y="66"/> 352 356 <UsageCount Value="120"/> 353 357 <Loaded Value="True"/> … … 376 380 <Filename Value="..\..\UCDManager.pas"/> 377 381 <UnitName Value="UCDManager"/> 378 <EditorIndex Value=" 2"/>379 <WindowIndex Value="0"/> 380 <TopLine Value=" 458"/>381 <CursorPos X="1 " Y="471"/>382 <EditorIndex Value="3"/> 383 <WindowIndex Value="0"/> 384 <TopLine Value="555"/> 385 <CursorPos X="11" Y="559"/> 382 386 <UsageCount Value="105"/> 383 387 <Loaded Value="True"/> … … 386 390 <Filename Value="..\..\UCDConjoinForm.pas"/> 387 391 <UnitName Value="UCDConjoinForm"/> 388 <WindowIndex Value="0"/> 389 <TopLine Value="38"/> 390 <CursorPos X="17" Y="51"/> 391 <UsageCount Value="99"/> 392 <EditorIndex Value="10"/> 393 <WindowIndex Value="0"/> 394 <TopLine Value="32"/> 395 <CursorPos X="31" Y="34"/> 396 <UsageCount Value="100"/> 397 <Loaded Value="True"/> 392 398 </Unit35> 393 399 <Unit36> … … 522 528 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclproc.pas"/> 523 529 <UnitName Value="LCLProc"/> 524 <WindowIndex Value="0"/> 525 <TopLine Value="1429"/> 526 <CursorPos X="1" Y="1442"/> 530 <EditorIndex Value="7"/> 531 <WindowIndex Value="0"/> 532 <TopLine Value="1531"/> 533 <CursorPos X="1" Y="1544"/> 527 534 <UsageCount Value="25"/> 535 <Loaded Value="True"/> 528 536 </Unit52> 529 537 <Unit53> … … 544 552 <Unit55> 545 553 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\dragmanager.inc"/> 554 <EditorIndex Value="12"/> 546 555 <WindowIndex Value="0"/> 547 556 <TopLine Value="553"/> 548 557 <CursorPos X="1" Y="566"/> 549 <UsageCount Value="10"/> 558 <UsageCount Value="11"/> 559 <Loaded Value="True"/> 550 560 </Unit55> 551 561 <Unit56> … … 566 576 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclmessageglue.pas"/> 567 577 <UnitName Value="LCLMessageGlue"/> 568 <WindowIndex Value="0"/> 569 <TopLine Value="98"/> 570 <CursorPos X="1" Y="111"/> 571 <UsageCount Value="10"/> 578 <EditorIndex Value="15"/> 579 <WindowIndex Value="0"/> 580 <TopLine Value="101"/> 581 <CursorPos X="1" Y="122"/> 582 <UsageCount Value="11"/> 583 <Loaded Value="True"/> 572 584 </Unit58> 573 585 <Unit59> 574 586 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\interfaces\win32\win32proc.pp"/> 575 587 <UnitName Value="win32proc"/> 588 <EditorIndex Value="16"/> 576 589 <WindowIndex Value="0"/> 577 590 <TopLine Value="756"/> 578 <CursorPos X="1" Y="769"/> 579 <UsageCount Value="10"/> 591 <CursorPos X="1" Y="771"/> 592 <UsageCount Value="11"/> 593 <Loaded Value="True"/> 580 594 </Unit59> 581 595 <Unit60> 582 596 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\interfaces\win32\win32wscontrols.pp"/> 583 597 <UnitName Value="Win32WSControls"/> 598 <EditorIndex Value="17"/> 584 599 <WindowIndex Value="0"/> 585 600 <TopLine Value="474"/> 586 <CursorPos X="1" Y="487"/> 587 <UsageCount Value="10"/> 601 <CursorPos X="1" Y="488"/> 602 <UsageCount Value="11"/> 603 <Loaded Value="True"/> 588 604 </Unit60> 589 605 <Unit61> … … 594 610 <UsageCount Value="10"/> 595 611 </Unit61> 612 <Unit62> 613 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\pagecontrol.inc"/> 614 <EditorIndex Value="1"/> 615 <WindowIndex Value="0"/> 616 <TopLine Value="112"/> 617 <CursorPos X="23" Y="123"/> 618 <UsageCount Value="11"/> 619 <Loaded Value="True"/> 620 </Unit62> 621 <Unit63> 622 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customcontrol.inc"/> 623 <EditorIndex Value="13"/> 624 <WindowIndex Value="0"/> 625 <TopLine Value="48"/> 626 <CursorPos X="1" Y="61"/> 627 <UsageCount Value="11"/> 628 <Loaded Value="True"/> 629 </Unit63> 630 <Unit64> 631 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\scrollingwincontrol.inc"/> 632 <EditorIndex Value="14"/> 633 <WindowIndex Value="0"/> 634 <TopLine Value="233"/> 635 <CursorPos X="1" Y="256"/> 636 <UsageCount Value="11"/> 637 <Loaded Value="True"/> 638 </Unit64> 596 639 </Units> 597 <JumpHistory Count=" 30" HistoryIndex="29">640 <JumpHistory Count="29" HistoryIndex="28"> 598 641 <Position1> 599 642 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 600 <Caret Line=" 362" Column="1" TopLine="341"/>643 <Caret Line="100" Column="1" TopLine="87"/> 601 644 </Position1> 602 645 <Position2> 603 646 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 604 <Caret Line=" 365" Column="1" TopLine="344"/>647 <Caret Line="271" Column="1" TopLine="258"/> 605 648 </Position2> 606 649 <Position3> 607 650 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 608 <Caret Line=" 366" Column="1" TopLine="345"/>651 <Caret Line="272" Column="74" TopLine="258"/> 609 652 </Position3> 610 653 <Position4> 611 654 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 612 <Caret Line=" 367" Column="1" TopLine="346"/>655 <Caret Line="276" Column="1" TopLine="258"/> 613 656 </Position4> 614 657 <Position5> 615 658 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 616 <Caret Line=" 368" Column="1" TopLine="347"/>659 <Caret Line="277" Column="1" TopLine="264"/> 617 660 </Position5> 618 661 <Position6> 619 662 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 620 <Caret Line=" 369" Column="1" TopLine="348"/>663 <Caret Line="280" Column="1" TopLine="264"/> 621 664 </Position6> 622 665 <Position7> 623 666 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 624 <Caret Line=" 370" Column="1" TopLine="349"/>667 <Caret Line="282" Column="1" TopLine="267"/> 625 668 </Position7> 626 669 <Position8> 627 670 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 628 <Caret Line=" 371" Column="1" TopLine="350"/>671 <Caret Line="292" Column="21" TopLine="276"/> 629 672 </Position8> 630 673 <Position9> 631 674 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 632 <Caret Line=" 372" Column="1" TopLine="351"/>675 <Caret Line="276" Column="2" TopLine="273"/> 633 676 </Position9> 634 677 <Position10> 635 <Filename Value=" ..\..\Managers\UCDManagerTabs.pas"/>636 <Caret Line=" 373" Column="1" TopLine="352"/>678 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclproc.pas"/> 679 <Caret Line="1544" Column="1" TopLine="1531"/> 637 680 </Position10> 638 681 <Position11> 639 682 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 640 <Caret Line="3 66" Column="1" TopLine="352"/>683 <Caret Line="348" Column="58" TopLine="339"/> 641 684 </Position11> 642 685 <Position12> 643 686 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 644 <Caret Line=" 367" Column="1" TopLine="352"/>687 <Caret Line="277" Column="1" TopLine="264"/> 645 688 </Position12> 646 689 <Position13> 647 690 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 648 <Caret Line=" 368" Column="1" TopLine="352"/>691 <Caret Line="280" Column="1" TopLine="264"/> 649 692 </Position13> 650 693 <Position14> 651 694 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 652 <Caret Line=" 369" Column="1" TopLine="352"/>695 <Caret Line="291" Column="1" TopLine="278"/> 653 696 </Position14> 654 697 <Position15> 655 698 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 656 <Caret Line=" 370" Column="1" TopLine="352"/>699 <Caret Line="293" Column="1" TopLine="278"/> 657 700 </Position15> 658 701 <Position16> 659 702 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 660 <Caret Line=" 371" Column="1" TopLine="352"/>703 <Caret Line="291" Column="4" TopLine="278"/> 661 704 </Position16> 662 705 <Position17> 663 706 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 664 <Caret Line=" 372" Column="1" TopLine="352"/>707 <Caret Line="266" Column="8" TopLine="264"/> 665 708 </Position17> 666 709 <Position18> 667 <Filename Value=" ..\..\Managers\UCDManagerTabs.pas"/>668 <Caret Line=" 373" Column="1" TopLine="352"/>710 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 711 <Caret Line="2415" Column="16" TopLine="2415"/> 669 712 </Position18> 670 713 <Position19> 671 <Filename Value="..\..\Managers\UCDManager Tabs.pas"/>672 <Caret Line=" 378" Column="1" TopLine="365"/>714 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 715 <Caret Line="165" Column="48" TopLine="147"/> 673 716 </Position19> 674 717 <Position20> 675 <Filename Value="..\..\Managers\UCDManager Tabs.pas"/>676 <Caret Line=" 379" Column="1" TopLine="329"/>718 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 719 <Caret Line="19" Column="55" TopLine="12"/> 677 720 </Position20> 678 721 <Position21> 679 <Filename Value="..\..\Managers\UCDManager TabsPopup.pas"/>680 <Caret Line=" 266" Column="18" TopLine="256"/>722 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 723 <Caret Line="63" Column="20" TopLine="59"/> 681 724 </Position21> 682 725 <Position22> 683 <Filename Value="..\..\Managers\UCDManager Tabs.pas"/>684 <Caret Line="2 71" Column="3" TopLine="266"/>726 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 727 <Caret Line="294" Column="3" TopLine="301"/> 685 728 </Position22> 686 729 <Position23> 687 <Filename Value=" ..\..\Managers\UCDManagerTabsPopup.pas"/>688 <Caret Line=" 266" Column="18" TopLine="256"/>730 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\dragmanager.inc"/> 731 <Caret Line="566" Column="1" TopLine="553"/> 689 732 </Position23> 690 733 <Position24> 691 <Filename Value="..\..\Managers\UCDManager TabsPopup.pas"/>692 <Caret Line="2 64" Column="1" TopLine="256"/>734 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 735 <Caret Line="298" Column="24" TopLine="285"/> 693 736 </Position24> 694 737 <Position25> 695 <Filename Value="..\..\ Managers\UCDManagerTabsPopup.pas"/>696 <Caret Line=" 266" Column="1" TopLine="256"/>738 <Filename Value="..\..\UCDConjoinForm.pas"/> 739 <Caret Line="50" Column="20" TopLine="47"/> 697 740 </Position25> 698 741 <Position26> 699 <Filename Value="..\..\UCD Manager.pas"/>700 <Caret Line=" 469" Column="29" TopLine="458"/>742 <Filename Value="..\..\UCDConjoinForm.pas"/> 743 <Caret Line="34" Column="31" TopLine="32"/> 701 744 </Position26> 702 745 <Position27> 703 <Filename Value="..\..\ Managers\UCDManagerTabs.pas"/>704 <Caret Line=" 38" Column="22" TopLine="25"/>746 <Filename Value="..\..\UCDManager.pas"/> 747 <Caret Line="135" Column="40" TopLine="122"/> 705 748 </Position27> 706 749 <Position28> 707 <Filename Value="..\..\ Managers\UCDManagerTabsPopup.pas"/>708 <Caret Line=" 266" Column="12" TopLine="262"/>750 <Filename Value="..\..\UCDManager.pas"/> 751 <Caret Line="559" Column="11" TopLine="555"/> 709 752 </Position28> 710 753 <Position29> 711 <Filename Value="..\..\Managers\UCDManager TabsPopup.pas"/>712 <Caret Line=" 264" Column="1" TopLine="259"/>754 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 755 <Caret Line="339" Column="1" TopLine="329"/> 713 756 </Position29> 714 <Position30>715 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/>716 <Caret Line="266" Column="1" TopLine="259"/>717 </Position30>718 757 </JumpHistory> 719 758 </ProjectOptions> … … 755 794 </CompilerOptions> 756 795 <Debugging> 757 <BreakPoints Count="2">758 <Item1>759 <Source Value="..\..\Managers\UCDManagerTabs.pas"/>760 <Line Value="270"/>761 </Item1>762 <Item2>763 <Source Value="..\..\Managers\UCDManagerTabsPopup.pas"/>764 <Line Value="263"/>765 </Item2>766 </BreakPoints>767 796 <Watches Count="1"> 768 797 <Item1> -
Docking/CoolDocking/Demo/IDE/UMainForm.lfm
r198 r209 18 18 Align = alClient 19 19 BevelOuter = bvNone 20 Color = clWindow 21 ParentColor = False 20 22 TabOrder = 0 21 23 end -
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r207 r209 17 17 PanelHeader: TCDPanelHeader; 18 18 Splitter: TSplitter; 19 procedure VisibleChange(Sender: TObject); override; 19 20 procedure Paint(Sender: TObject); override; 20 21 constructor Create; … … 56 57 { TCDManagerRegionsItem } 57 58 59 procedure TCDManagerRegionsItem.VisibleChange(Sender: TObject); 60 begin 61 inherited VisibleChange(Sender); 62 PanelHeader.Visible := Control.Visible; 63 Manager.UpdateClientSize; 64 end; 65 58 66 procedure TCDManagerRegionsItem.Paint(Sender: TObject); 59 67 var … … 273 281 SplitterTop: Integer; 274 282 BaseAlign: TAlign; 283 VisibleControlsCount: Integer; 275 284 begin 276 285 inherited UpdateClientSize; … … 280 289 SplitterLeft := 0; 281 290 SplitterTop := 0; 291 VisibleControlsCount := DockSite.VisibleDockClientCount; 292 DockSite.Visible := VisibleControlsCount > 0; 293 if VisibleControlsCount = 0 then VisibleControlsCount := 1; 294 282 295 for I := 0 to DockItems.Count - 1 do 283 with TCDManagerRegionsItem(DockItems[I]) do begin 296 with TCDManagerRegionsItem(DockItems[I]) do 297 begin 284 298 PanelHeader.Left := SplitterLeft; 285 299 PanelHeader.Top := SplitterTop; 286 300 PanelHeader.Height := Self.DockSite.Height div 287 Self.DockSite.DockClientCount;301 VisibleControlsCount; 288 302 PanelHeader.Width := Self.DockSite.Width div 289 Self.DockSite.DockClientCount; 290 PanelHeader.Header.Visible := TCDManager(TWinControl(Control).DockManager).HeaderVisible; 303 VisibleControlsCount; 304 if Assigned(TWinControl(Control).DockManager) then 305 PanelHeader.Header.Visible := TCDManager(TWinControl(Control).DockManager).HeaderVisible; 291 306 PanelHeader.Header.Title.Caption := TForm(Control).Caption; 292 307 Paint(Self); -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r208 r209 34 34 procedure InsertControlPanel(AControl: TControl; InsertAt: TAlign; 35 35 DropCtl: TControl); override; 36 procedure UpdateClientSize; override;37 36 function FindControlInPanels(Control: TControl): TCDManagerItem; override; 38 37 function GetHeaderPos: THeaderPos; override; … … 41 40 TabImageList: TImageList; 42 41 PageControl: TPageControl; 42 procedure UpdateClientSize; override; 43 43 procedure SetHeaderPos(const AValue: THeaderPos); override; 44 44 procedure InsertControlNoUpdate(Control: TControl; InsertAt: TAlign); virtual; … … 290 290 end; 291 291 inherited RemoveControl(Control); 292 if ClientCount > 1 then UpdateClientSize; 292 //if ClientCount > 0 then 293 UpdateClientSize; 293 294 end; 294 295 … … 348 349 349 350 while PageControl.PageList.Count > DockItems.Count do begin 350 PageControl.Pages[PageControl.PageCount - 1].Parent := nil;351 //PageControl.Pages[PageControl.PageCount - 1].Parent := nil; 351 352 PageControl.Pages[PageControl.PageCount - 1].Free; 352 353 TabImageList.Delete(TabImageList.Count - 1); -
Docking/CoolDocking/UCDManager.pas
r208 r209 282 282 Temp2: TControl; 283 283 begin 284 284 285 { Temp := TControl(Sender); 285 286 if Assigned(Control) then
Note:
See TracChangeset
for help on using the changeset viewer.