- Timestamp:
- Mar 23, 2011, 12:22:26 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/IDE.lpi
r217 r218 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count="5 1">49 <Units Count="55"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> … … 65 65 <EditorIndex Value="1"/> 66 66 <WindowIndex Value="0"/> 67 <TopLine Value="1 71"/>68 <CursorPos X=" 32" Y="185"/>67 <TopLine Value="162"/> 68 <CursorPos X="79" Y="183"/> 69 69 <UsageCount Value="314"/> 70 70 <Loaded Value="True"/> … … 106 106 <Unit5> 107 107 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 108 <EditorIndex Value="1 2"/>108 <EditorIndex Value="16"/> 109 109 <WindowIndex Value="0"/> 110 110 <TopLine Value="2412"/> … … 119 119 <ResourceBaseClass Value="Form"/> 120 120 <UnitName Value="UProjectManagerForm"/> 121 <EditorIndex Value="2"/> 121 122 <WindowIndex Value="0"/> 122 123 <TopLine Value="4"/> 123 124 <CursorPos X="50" Y="6"/> 124 125 <UsageCount Value="314"/> 126 <Loaded Value="True"/> 127 <LoadedDesigner Value="True"/> 125 128 </Unit6> 126 129 <Unit7> … … 211 214 <Filename Value="..\..\UCDClient.pas"/> 212 215 <UnitName Value="UCDClient"/> 213 <EditorIndex Value=" 2"/>216 <EditorIndex Value="3"/> 214 217 <WindowIndex Value="0"/> 215 218 <TopLine Value="81"/> … … 221 224 <Filename Value="..\..\UCDLayout.pas"/> 222 225 <UnitName Value="UCDLayout"/> 223 <EditorIndex Value="1 5"/>226 <EditorIndex Value="19"/> 224 227 <WindowIndex Value="0"/> 225 228 <TopLine Value="361"/> 226 229 <CursorPos X="49" Y="376"/> 227 <UsageCount Value=" 49"/>230 <UsageCount Value="51"/> 228 231 <Loaded Value="True"/> 229 232 </Unit16> 230 233 <Unit17> 231 234 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 232 <EditorIndex Value=" 5"/>233 <WindowIndex Value="0"/> 234 <TopLine Value="1 883"/>235 <CursorPos X="1 0" Y="1896"/>236 <UsageCount Value="1 0"/>235 <EditorIndex Value="8"/> 236 <WindowIndex Value="0"/> 237 <TopLine Value="1644"/> 238 <CursorPos X="14" Y="1657"/> 239 <UsageCount Value="12"/> 237 240 <Loaded Value="True"/> 238 241 </Unit17> … … 240 243 <Filename Value="..\..\Common\URectangle.pas"/> 241 244 <UnitName Value="URectangle"/> 242 <EditorIndex Value=" 3"/>245 <EditorIndex Value="4"/> 243 246 <WindowIndex Value="0"/> 244 247 <TopLine Value="22"/> 245 248 <CursorPos X="26" Y="32"/> 246 <UsageCount Value=" 19"/>249 <UsageCount Value="21"/> 247 250 <Loaded Value="True"/> 248 251 </Unit18> … … 250 253 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 251 254 <UnitName Value="Controls"/> 252 <EditorIndex Value=" 9"/>255 <EditorIndex Value="13"/> 253 256 <WindowIndex Value="0"/> 254 257 <TopLine Value="126"/> … … 259 262 <Unit20> 260 263 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 261 <EditorIndex Value="11"/> 262 <WindowIndex Value="0"/> 263 <TopLine Value="6263"/> 264 <CursorPos X="1" Y="6280"/> 264 <IsVisibleTab Value="True"/> 265 <EditorIndex Value="15"/> 266 <WindowIndex Value="0"/> 267 <TopLine Value="6722"/> 268 <CursorPos X="19" Y="6733"/> 265 269 <UsageCount Value="111"/> 266 270 <Loaded Value="True"/> … … 280 284 <Filename Value="..\..\UCDCommon.pas"/> 281 285 <UnitName Value="UCDCommon"/> 282 <EditorIndex Value=" 8"/>283 <WindowIndex Value="0"/> 284 <TopLine Value="1 "/>285 <CursorPos X="1" Y=" 78"/>286 <UsageCount Value=" 48"/>286 <EditorIndex Value="7"/> 287 <WindowIndex Value="0"/> 288 <TopLine Value="191"/> 289 <CursorPos X="1" Y="216"/> 290 <UsageCount Value="50"/> 287 291 <Loaded Value="True"/> 288 292 </Unit22> … … 290 294 <Filename Value="..\..\UCDPopupMenu.pas"/> 291 295 <UnitName Value="UCDPopupMenu"/> 292 <EditorIndex Value=" 7"/>293 <WindowIndex Value="0"/> 294 <TopLine Value=" 219"/>295 <CursorPos X=" 18" Y="232"/>296 <EditorIndex Value="6"/> 297 <WindowIndex Value="0"/> 298 <TopLine Value="301"/> 299 <CursorPos X="23" Y="310"/> 296 300 <UsageCount Value="128"/> 297 301 <Loaded Value="True"/> … … 300 304 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 301 305 <UnitName Value="UCDManagerTabs"/> 302 <EditorIndex Value=" 16"/>303 <WindowIndex Value="0"/> 304 <TopLine Value=" 243"/>305 <CursorPos X=" 44" Y="256"/>306 <EditorIndex Value="20"/> 307 <WindowIndex Value="0"/> 308 <TopLine Value="376"/> 309 <CursorPos X="53" Y="383"/> 306 310 <UsageCount Value="130"/> 307 311 <Loaded Value="True"/> … … 310 314 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 311 315 <UnitName Value="UCDManagerRegions"/> 312 <EditorIndex Value="1 0"/>313 <WindowIndex Value="0"/> 314 <TopLine Value=" 301"/>315 <CursorPos X=" 1" Y="314"/>316 <EditorIndex Value="14"/> 317 <WindowIndex Value="0"/> 318 <TopLine Value="10"/> 319 <CursorPos X="43" Y="16"/> 316 320 <UsageCount Value="129"/> 317 321 <Loaded Value="True"/> … … 323 327 <WindowIndex Value="0"/> 324 328 <TopLine Value="235"/> 325 <CursorPos X="1 " Y="248"/>329 <CursorPos X="13" Y="251"/> 326 330 <UsageCount Value="120"/> 327 331 <Loaded Value="True"/> … … 342 346 <Filename Value="..\..\UCDManager.pas"/> 343 347 <UnitName Value="UCDManager"/> 344 <IsVisibleTab Value="True"/> 345 <EditorIndex Value="4"/> 346 <WindowIndex Value="0"/> 347 <TopLine Value="723"/> 348 <CursorPos X="30" Y="744"/> 348 <EditorIndex Value="5"/> 349 <WindowIndex Value="0"/> 350 <TopLine Value="50"/> 351 <CursorPos X="1" Y="72"/> 349 352 <UsageCount Value="105"/> 350 353 <Loaded Value="True"/> … … 353 356 <Filename Value="..\..\UCDConjoinForm.pas"/> 354 357 <UnitName Value="UCDConjoinForm"/> 355 <EditorIndex Value="1 4"/>358 <EditorIndex Value="18"/> 356 359 <WindowIndex Value="0"/> 357 360 <TopLine Value="33"/> … … 512 515 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\stdctrls.pp"/> 513 516 <UnitName Value="StdCtrls"/> 514 <EditorIndex Value="1 3"/>517 <EditorIndex Value="17"/> 515 518 <WindowIndex Value="0"/> 516 519 <TopLine Value="1447"/> 517 520 <CursorPos X="14" Y="1460"/> 518 <UsageCount Value="1 2"/>521 <UsageCount Value="14"/> 519 522 <Loaded Value="True"/> 520 523 </Unit49> … … 522 525 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\graphics.pp"/> 523 526 <UnitName Value="Graphics"/> 524 <EditorIndex Value="6"/>525 527 <WindowIndex Value="0"/> 526 528 <TopLine Value="959"/> 527 529 <CursorPos X="14" Y="1161"/> 528 530 <UsageCount Value="10"/> 529 <Loaded Value="True"/>530 531 </Unit50> 532 <Unit51> 533 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classes.inc"/> 534 <EditorIndex Value="12"/> 535 <WindowIndex Value="0"/> 536 <TopLine Value="514"/> 537 <CursorPos X="5" Y="518"/> 538 <UsageCount Value="12"/> 539 <Loaded Value="True"/> 540 </Unit51> 541 <Unit52> 542 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\compon.inc"/> 543 <EditorIndex Value="9"/> 544 <WindowIndex Value="0"/> 545 <TopLine Value="539"/> 546 <CursorPos X="15" Y="547"/> 547 <UsageCount Value="11"/> 548 <Loaded Value="True"/> 549 </Unit52> 550 <Unit53> 551 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\sysutils\sysstrh.inc"/> 552 <EditorIndex Value="10"/> 553 <WindowIndex Value="0"/> 554 <TopLine Value="72"/> 555 <CursorPos X="10" Y="85"/> 556 <UsageCount Value="11"/> 557 <Loaded Value="True"/> 558 </Unit53> 559 <Unit54> 560 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\sysutils\sysstr.inc"/> 561 <EditorIndex Value="11"/> 562 <WindowIndex Value="0"/> 563 <TopLine Value="194"/> 564 <CursorPos X="3" Y="200"/> 565 <UsageCount Value="11"/> 566 <Loaded Value="True"/> 567 </Unit54> 531 568 </Units> 532 569 <JumpHistory Count="30" HistoryIndex="29"> 533 570 <Position1> 534 <Filename Value="..\..\UCD PopupMenu.pas"/>535 <Caret Line=" 257" Column="16" TopLine="244"/>571 <Filename Value="..\..\UCDManager.pas"/> 572 <Caret Line="39" Column="1" TopLine="21"/> 536 573 </Position1> 537 574 <Position2> 538 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>539 <Caret Line=" 126" Column="1" TopLine="113"/>575 <Filename Value="..\..\UCDManager.pas"/> 576 <Caret Line="742" Column="16" TopLine="729"/> 540 577 </Position2> 541 578 <Position3> 542 <Filename Value="..\..\UCD Manager.pas"/>543 <Caret Line=" 32" Column="19" TopLine="27"/>579 <Filename Value="..\..\UCDPopupMenu.pas"/> 580 <Caret Line="215" Column="53" TopLine="199"/> 544 581 </Position3> 545 582 <Position4> 546 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>547 <Caret Line=" 18" Column="15" TopLine="5"/>583 <Filename Value="..\..\UCDPopupMenu.pas"/> 584 <Caret Line="210" Column="11" TopLine="197"/> 548 585 </Position4> 549 586 <Position5> 550 <Filename Value="..\..\ Managers\UCDManagerRegions.pas"/>551 <Caret Line=" 92" Column="1" TopLine="79"/>587 <Filename Value="..\..\UCDPopupMenu.pas"/> 588 <Caret Line="229" Column="14" TopLine="216"/> 552 589 </Position5> 553 590 <Position6> 554 <Filename Value="..\..\ Managers\UCDManagerTabsPopup.pas"/>555 <Caret Line=" 330" Column="44" TopLine="317"/>591 <Filename Value="..\..\UCDPopupMenu.pas"/> 592 <Caret Line="231" Column="7" TopLine="218"/> 556 593 </Position6> 557 594 <Position7> 558 <Filename Value="..\..\UCD Manager.pas"/>559 <Caret Line=" 668" Column="3" TopLine="657"/>595 <Filename Value="..\..\UCDPopupMenu.pas"/> 596 <Caret Line="245" Column="28" TopLine="232"/> 560 597 </Position7> 561 598 <Position8> 562 <Filename Value="..\..\UCD Manager.pas"/>563 <Caret Line=" 605" Column="1" TopLine="592"/>599 <Filename Value="..\..\UCDPopupMenu.pas"/> 600 <Caret Line="258" Column="28" TopLine="245"/> 564 601 </Position8> 565 602 <Position9> 566 <Filename Value="..\..\UCD Manager.pas"/>567 <Caret Line=" 679" Column="31" TopLine="665"/>603 <Filename Value="..\..\UCDPopupMenu.pas"/> 604 <Caret Line="271" Column="28" TopLine="258"/> 568 605 </Position9> 569 606 <Position10> 570 607 <Filename Value="..\..\UCDPopupMenu.pas"/> 571 <Caret Line="2 46" Column="16" TopLine="237"/>608 <Caret Line="284" Column="28" TopLine="271"/> 572 609 </Position10> 573 610 <Position11> 574 611 <Filename Value="..\..\UCDPopupMenu.pas"/> 575 <Caret Line="2 32" Column="18" TopLine="219"/>612 <Caret Line="297" Column="28" TopLine="284"/> 576 613 </Position11> 577 614 <Position12> 578 <Filename Value="..\..\UCD Manager.pas"/>579 <Caret Line=" 602" Column="20" TopLine="594"/>615 <Filename Value="..\..\UCDPopupMenu.pas"/> 616 <Caret Line="304" Column="9" TopLine="299"/> 580 617 </Position12> 581 618 <Position13> 582 <Filename Value="..\..\UCD Manager.pas"/>583 <Caret Line=" 727" Column="11" TopLine="708"/>619 <Filename Value="..\..\UCDPopupMenu.pas"/> 620 <Caret Line="313" Column="18" TopLine="300"/> 584 621 </Position13> 585 622 <Position14> 586 623 <Filename Value="..\..\UCDManager.pas"/> 587 <Caret Line=" 659" Column="17" TopLine="643"/>624 <Caret Line="79" Column="66" TopLine="61"/> 588 625 </Position14> 589 626 <Position15> 590 <Filename Value="..\..\ UCDManager.pas"/>591 <Caret Line=" 729" Column="32" TopLine="8"/>627 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 628 <Caret Line="21" Column="62" TopLine="4"/> 592 629 </Position15> 593 630 <Position16> 594 <Filename Value="..\..\ UCDManager.pas"/>595 <Caret Line=" 660" Column="14" TopLine="638"/>631 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 632 <Caret Line="16" Column="35" TopLine="8"/> 596 633 </Position16> 597 634 <Position17> 598 <Filename Value="..\..\ UCDManager.pas"/>599 <Caret Line=" 731" Column="70" TopLine="719"/>635 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 636 <Caret Line="21" Column="1" TopLine="8"/> 600 637 </Position17> 601 638 <Position18> 602 <Filename Value="..\..\ UCDManager.pas"/>603 <Caret Line=" 743" Column="47" TopLine="730"/>639 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 640 <Caret Line="23" Column="1" TopLine="8"/> 604 641 </Position18> 605 642 <Position19> 606 <Filename Value="..\..\ UCDManager.pas"/>607 <Caret Line=" 740" Column="9" TopLine="730"/>643 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 644 <Caret Line="117" Column="39" TopLine="114"/> 608 645 </Position19> 609 646 <Position20> 610 <Filename Value="..\..\ UCDManager.pas"/>611 <Caret Line=" 738" Column="1" TopLine="730"/>647 <Filename Value="..\..\Managers\UCDManagerRegions.pas"/> 648 <Caret Line="16" Column="43" TopLine="10"/> 612 649 </Position20> 613 650 <Position21> 614 <Filename Value="..\..\ UCDManager.pas"/>615 <Caret Line=" 729" Column="1" TopLine="718"/>651 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 652 <Caret Line="252" Column="15" TopLine="235"/> 616 653 </Position21> 617 654 <Position22> 618 <Filename Value="..\..\ UCDManager.pas"/>619 <Caret Line=" 730" Column="1" TopLine="718"/>655 <Filename Value="..\..\Managers\UCDManagerTabsPopup.pas"/> 656 <Caret Line="251" Column="13" TopLine="235"/> 620 657 </Position22> 621 658 <Position23> 622 <Filename Value=" ..\..\UCDManager.pas"/>623 <Caret Line=" 731" Column="33" TopLine="718"/>659 <Filename Value="UMainForm.pas"/> 660 <Caret Line="188" Column="7" TopLine="172"/> 624 661 </Position23> 625 662 <Position24> 626 <Filename Value=" ..\..\UCDManager.pas"/>627 <Caret Line=" 732" Column="3" TopLine="718"/>663 <Filename Value="UMainForm.pas"/> 664 <Caret Line="167" Column="1" TopLine="150"/> 628 665 </Position24> 629 666 <Position25> 630 <Filename Value=" ..\..\UCDManager.pas"/>631 <Caret Line=" 736" Column="1" TopLine="718"/>667 <Filename Value="UMainForm.pas"/> 668 <Caret Line="163" Column="73" TopLine="150"/> 632 669 </Position25> 633 670 <Position26> 634 <Filename Value=" ..\..\UCDManager.pas"/>635 <Caret Line=" 729" Column="36" TopLine="718"/>671 <Filename Value="UMainForm.pas"/> 672 <Caret Line="183" Column="79" TopLine="162"/> 636 673 </Position26> 637 674 <Position27> 638 <Filename Value=" ..\..\UCDManager.pas"/>639 <Caret Line=" 740" Column="1" TopLine="719"/>675 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 676 <Caret Line="6735" Column="1" TopLine="6722"/> 640 677 </Position27> 641 678 <Position28> 642 <Filename Value="..\..\ UCDManager.pas"/>643 <Caret Line=" 744" Column="8" TopLine="723"/>679 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 680 <Caret Line="395" Column="1" TopLine="373"/> 644 681 </Position28> 645 682 <Position29> 646 <Filename Value="..\..\ UCDManager.pas"/>647 <Caret Line=" 739" Column="1" TopLine="723"/>683 <Filename Value="..\..\Managers\UCDManagerTabs.pas"/> 684 <Caret Line="170" Column="1" TopLine="157"/> 648 685 </Position29> 649 686 <Position30> 650 <Filename Value=" ..\..\UCDManager.pas"/>651 <Caret Line=" 740" Column="1" TopLine="723"/>687 <Filename Value="UProjectManagerForm.pas"/> 688 <Caret Line="6" Column="50" TopLine="4"/> 652 689 </Position30> 653 690 </JumpHistory> … … 690 727 </CompilerOptions> 691 728 <Debugging> 729 <BreakPoints Count="2"> 730 <Item1> 731 <Source Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classes.inc"/> 732 <Line Value="517"/> 733 </Item1> 734 <Item2> 735 <Source Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\compon.inc"/> 736 <Line Value="371"/> 737 </Item2> 738 </BreakPoints> 692 739 <Watches Count="1"> 693 740 <Item1> -
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r205 r218 161 161 DefaultLayout := CoolDockLayoutList1.FindByName(DefaultLayoutName); 162 162 if not Assigned(DefaultLayout) then begin 163 NewContainer1 := TCDManager(DockPanel.DockManager).CreateCon tainer(alRight);163 NewContainer1 := TCDManager(DockPanel.DockManager).CreateConjoinForm; 164 164 TCDManager(NewContainer1.DockManager).DockStyle := dsPopupTabs; 165 165 TCDManager(NewContainer1.DockManager).HeaderPos := hpLeft; 166 NewContainer1.Visible := True; 166 167 167 168 StructureForm.ManualDock(NewContainer1, nil, alTop); … … 170 171 ObjectInspectorForm.Show; 171 172 172 NewContainer2 := TCDManager(DockPanel.DockManager).CreateCon tainer(alRight);173 NewContainer2 := TCDManager(DockPanel.DockManager).CreateConjoinForm; 173 174 TCDManager(NewContainer2.DockManager).DockStyle := dsPopupTabs; 174 175 TCDManager(NewContainer2.DockManager).HeaderPos := hpRight; 176 NewContainer2.Visible := True; 177 175 178 ProjectManagerForm.ManualDock(NewContainer2, nil, alTop); 176 179 ProjectManagerForm.Show; … … 178 181 ToolPaletteForm.Show; 179 182 180 SourceCodeContainer := TCDManager(DockPanel.DockManager).CreateCon tainer(alRight);183 SourceCodeContainer := TCDManager(DockPanel.DockManager).CreateConjoinForm; 181 184 TCDManager(SourceCodeContainer.DockManager).DockStyle := dsTabs; 182 185 TCDManager(SourceCodeContainer.DockManager).HeaderPos := hpTop; 183 184 NewContainer1.ManualDock(DockPanel); 186 SourceCodeContainer.Visible := True; 187 188 //NewContainer1.ManualDock(DockPanel); 185 189 NewContainer1.Show; 186 //SourceCodeContainer.ManualDock(DockPanel);187 //SourceCodeContainer.Show;188 NewContainer2.ManualDock(DockPanel);190 SourceCodeContainer.ManualDock(DockPanel); 191 SourceCodeContainer.Show; 192 //NewContainer2.ManualDock(DockPanel); 189 193 NewContainer2.Show; 190 194 -
Docking/CoolDocking/Demo/IDE/UProjectManagerForm.lfm
r198 r218 17 17 DefaultItemHeight = 15 18 18 TabOrder = 0 19 Items.Data = { 20 F9FFFFFF020004000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF020000000000 21 00000109000000506F6C6FC5BE6B6130FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 22 00000000000000000009000000506F6C6FC5BE6B6131FFFFFFFFFFFFFFFFFFFF 23 FFFFFFFFFFFF00000000000000000009000000506F6C6FC5BE6B6132FFFFFFFF 24 FFFFFFFFFFFFFFFFFFFFFFFF00000000000000000009000000506F6C6FC5BE6B 25 6133FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000900000050 26 6F6C6FC5BE6B6134FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000 27 0009000000506F6C6FC5BE6B6135 28 } 19 29 end 20 30 object CoolDockClient1: TCDClient -
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r217 r218 21 21 constructor Create; 22 22 destructor Destroy; override; 23 procedure SetControl(const AValue: TWinControl); override; 23 24 end; 24 25 … … 43 44 procedure PaintSite(DC: HDC); override; 44 45 procedure UpdateClientSize; override; 45 procedure DoSetVisible(const AValue: Boolean); override;46 procedure SetVisible(const AValue: Boolean); override; 46 47 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); 47 48 property DockDirection: TCDDirection read FDockDirection … … 88 89 begin 89 90 PanelHeader := TCDPanelHeader.Create(nil); 90 PanelHeader.Header.ManagerItem := Self;91 // PanelHeader.Header.ManagerItem := Self; 91 92 PanelHeader.Header.OnMouseDown := DockPanelMouseDown; 92 93 PanelHeader.Header.Icon.OnMouseDown := DockPanelMouseDown; … … 109 110 Control.Parent := nil; 110 111 inherited Destroy; 112 end; 113 114 procedure TCDManagerRegionsItem.SetControl(const AValue: TWinControl); 115 begin 116 inherited SetControl(AValue); 117 PanelHeader.Header.Control := AValue; 111 118 end; 112 119 … … 175 182 NewItem.Control := TWinControl(Control); 176 183 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 184 Control.AddHandlerOnVisibleChanging(NewItem.VisibleChanging); 177 185 Control.Parent := NewItem.PanelHeader.ControlPanel; 178 186 Control.Align := alClient; … … 199 207 if (NewDirection <> FDockDirection) then begin 200 208 // Direction change, create conjoin form 201 NewConjoinDockForm := CreateCon tainer(InsertAt);209 NewConjoinDockForm := CreateConjoinForm; 202 210 try 203 211 FreeParentIfEmpty := False; … … 228 236 if Assigned(ManagerItem) then begin 229 237 Control.RemoveHandlerOnVisibleChanged(ManagerItem.VisibleChange); 238 Control.RemoveHandlerOnVisibleChanging(ManagerItem.VisibleChanging); 230 239 end; 231 240 … … 335 344 end; 336 345 337 procedure TCDManagerRegions. DoSetVisible(const AValue: Boolean);346 procedure TCDManagerRegions.SetVisible(const AValue: Boolean); 338 347 var 339 348 I: Integer; … … 341 350 inherited; 342 351 for I := 0 to DockItems.Count - 1 do 343 344 //Show;345 //ShowMessage(IntToStr(Control.Tag));346 352 with TCDManagerRegionsItem(DockItems[I]) do begin 347 353 if AValue and (not Control.Visible) and (Control.Tag = Integer(dhtTemporal)) then begin -
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r217 r218 49 49 procedure TabControlChange(Sender: TObject); virtual; 50 50 procedure PaintSite(DC: HDC); override; 51 procedure DoSetVisible(const AValue: Boolean); override;52 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override;53 51 procedure Switch(Index: Integer); override; 54 52 procedure PopupMenuTabCloseClick(Sender: TObject); 53 procedure SetVisible(const AValue: Boolean); override; 55 54 property DockItems: TObjectList read FDockItems write FDockItems; 56 55 end; … … 82 81 with TCDManagerTabs(Manager) do begin 83 82 if TControl(Sender).Visible then begin 83 UpdateClientSize; 84 84 Switch(DockItems.IndexOf(FindControlInPanels(TControl(Sender)))); 85 TCDManagerTabsItem(DockItems[DockItems.IndexOf( FindControlInPanels(TControl(Sender)))]).HideType := dhtPermanent;86 end;87 UpdateClientSize;85 TCDManagerTabsItem(DockItems[DockItems.IndexOf( 86 FindControlInPanels(TControl(Sender)))]).HideType := dhtPermanent; 87 end else UpdateClientSize; 88 88 end; 89 89 90 90 // Show current dock clients in parent dock sites 91 91 if TControl(Sender).Visible then 92 if Assigned(TControl(Sender).HostDockSite) then 92 if Assigned(TControl(Sender).HostDockSite) then begin 93 //TControl(Sender).HostDockSite.DockManager.; 93 94 TControl(Sender).HostDockSite.Visible := True; 94 95 {Temp := TControl(Sender); 96 if Assigned(Control) then 97 begin 98 ControlVisible := TControl(Sender).Visible; 99 (*if Assigned(ClientAreaPanel) then 100 ClientAreaPanel.Visible := ControlVisible; 101 if Assigned(Splitter) then 102 Splitter.Visible := ControlVisible; 103 *) 104 // if Assigned(TCDManager(OwnerDockManager).DockStyleHandler) then 105 if Assigned(Manager) then 106 with TCDManagerTabs(Manager) do 107 begin 108 //UpdateClientSize; 109 if ControlVisible then 110 Switch(FDockItems.IndexOf(FindControlInPanels(TControl(Sender)))); 111 if not (Control is TWinControl) then raise Exception.Create('Not TWinControl'); 112 if not Assigned(Control) then raise Exception.Create('Control not assigned'); 113 ChangeVisible(TWinControl(Control), ControlVisible); 114 // Show parent control 115 Temp := TControl(Sender).HostDockSite; 116 117 if ControlVisible then 118 TControl(Sender).HostDockSite.Visible := ControlVisible; 119 end; 120 if csDestroying in Control.ComponentState then Control := nil; 121 end; 122 } 95 end; 123 96 end; 124 97 … … 141 114 if Assigned(PageControl.ActivePage) then 142 115 TCDManagerItem(DockItems[PageControl.TabIndex]).Control.Hide; 116 end; 117 118 procedure TCDManagerTabs.SetVisible(const AValue: Boolean); 119 begin 120 inherited; 121 if (PageControl.TabIndex >= 0) and (PageControl.TabIndex < DockItems.Count) then 122 with TCDManagerItem(DockItems[PageControl.TabIndex]) do begin 123 if AValue and (not Control.Visible) and (Control.Tag = Integer(dhtTemporal)) then begin 124 Control.Show; 125 Control.Tag := Integer(dhtPermanent); 126 end; 127 end; 143 128 end; 144 129 … … 255 240 256 241 NewItem.Control := TWinControl(Control); 242 //NewItem.HideType := dhtTemporal; 257 243 Control.AddHandlerOnVisibleChanged(NewItem.VisibleChange); 244 Control.AddHandlerOnVisibleChanging(NewItem.VisibleChanging); 258 245 //AControl.Parent := NewItem.ClientAreaPanel; 259 246 Control.Align := alClient; … … 272 259 if Assigned(ManagerItem) then begin 273 260 Control.RemoveHandlerOnVisibleChanged(ManagerItem.VisibleChange); 261 Control.RemoveHandlerOnVisibleChanging(ManagerItem.VisibleChanging); 274 262 end; //else raise Exception.Create(Format('Control %s not found in DockItems', [Control.Name])); 275 263 … … 388 376 end; 389 377 390 procedure TCDManagerTabs.DoSetVisible(const AValue: Boolean);391 begin392 inherited;393 if (PageControl.TabIndex >= 0) and (PageControl.TabIndex < DockItems.Count) then394 with TCDManagerItem(DockItems[PageControl.TabIndex]) do begin395 //Show;396 //ShowMessage(IntToStr(Control.Tag));397 if AValue and (not Control.Visible) and (Control.Tag = Integer(dhtTemporal)) then begin398 Control.Show;399 Control.Tag := Integer(dhtPermanent);400 end;401 //TabControl.Show;402 //ClientAreaPanel.Show;403 end;404 end;405 406 procedure TCDManagerTabs.ChangeVisible(Control: TWinControl; Visible: Boolean);407 var408 I: Integer;409 begin410 inherited;411 if not Visible then begin412 //if Assigned(TWinControl(Control).DockManager) then413 //with TCDManager(TWinControl(Control).DockManager) do414 begin415 // ShowMessage(IntToStr(TabControl.TabIndex) + ' ' + IntToStr(DockPanels.Count));416 // TabControl.Tabs[0].;417 // if (TabControl.TabIndex >= 0) and (TabControl.TabIndex < DockPanels.Count) then begin418 // TCDClientPanel(DockPanels[TabControl.TabIndex]).Show;419 // TCDClientPanel(DockPanels[TabControl.TabIndex]).Control.Show;420 // end;421 // ShowMessage(IntToStr(DockPanels.Count));422 //TabImageList.Delete(PageControl.Tabs.IndexOf(Control.Caption));423 424 I := DockItems.IndexOf(FindControlInPanels(Control));425 if Control.Tag = Integer(dhtPermanent) then426 if (I <> -1) and (I < PageControl.PageCount) then427 // Control.Hide;428 PageControl.Page[I].TabVisible := False;429 //Control.Tag := 0;430 // end;431 end;432 end else433 begin434 // if Assigned(TWinControl(Control).DockManager) then435 // with TCDManager(TWinControl(Control).DockManager) do436 begin437 // if Control.Tag = 0 then begin438 I := DockItems.IndexOf(FindControlInPanels(Control));439 //if then440 if I <> -1 then441 PageControl.Page[I].TabVisible := True;442 // TabImageList.Add(TCDClientPanel(TCDManager(Manager).FindControlInPanels(Control)).Header.Icon.Picture.Bitmap, nil);443 // TabControl.Tabs.Add(Control.Caption);444 445 // end;446 end;447 end;448 end;449 450 378 end. 451 379 -
Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas
r217 r218 246 246 C.Align := alClient; 247 247 C.Parent := HeaderPanel.ControlPanel; 248 HeaderPanel.Header.Control := C; 248 249 //AutoHide.Control.Align := alCustom; 249 250 //Pos := DockSite.ClientToScreen(Pos); -
Docking/CoolDocking/UCDCommon.pas
r217 r218 79 79 implementation 80 80 81 var 82 UniqueNameCounter: Integer; 83 81 84 function GetUniqueName(BaseName: string): string; 82 var 83 I: Integer; 84 begin 85 I := 1; 86 while Assigned(FindGlobalComponent(BaseName + IntToStr(I))) do Inc(I); 87 Result := BaseName + IntToStr(I); 85 begin 86 Result := BaseName + IntToStr(UniqueNameCounter); 87 Inc(UniqueNameCounter); 88 88 end; 89 89 … … 211 211 end; 212 212 213 initialization 214 215 UniqueNameCounter := 1; 216 213 217 end. 214 218 -
Docking/CoolDocking/UCDConjoinForm.pas
r216 r218 14 14 public 15 15 CoolDockClient: TCDClientBase; 16 UpdateCaptionEnable: Boolean; 16 17 procedure UpdateCaption; 17 18 procedure FormShow(Sender : TObject); … … 36 37 I: Integer; 37 38 begin 38 NewCaption := ''; 39 for I := 0 to DockClientCount - 1 do begin 40 //if DockClients[I] is TCDConjoinForm then 41 // TCDConjoinForm(DockClients[I]).UpdateCaption; 42 NewCaption := NewCaption + DockClients[I].Caption + ', '; 39 if UpdateCaptionEnable then begin 40 NewCaption := ''; 41 for I := 0 to DockClientCount - 1 do begin 42 //if DockClients[I] is TCDConjoinForm then 43 // TCDConjoinForm(DockClients[I]).UpdateCaption; 44 NewCaption := NewCaption + DockClients[I].Caption + ', '; 45 end; 46 Caption := Copy(NewCaption, 1, Length(NewCaption) - 2); 47 48 if Assigned(HostDockSite) and (HostDockSite is TCDConjoinForm) then 49 TCDConjoinForm(HostDockSite).UpdateCaption; 43 50 end; 44 Caption := Copy(NewCaption, 1, Length(NewCaption) - 2);45 46 if Assigned(HostDockSite) and (HostDockSite is TCDConjoinForm) then47 TCDConjoinForm(HostDockSite).UpdateCaption;48 51 end; 49 52 … … 68 71 OnShow := FormShow; 69 72 OnHide := FormHide; 73 UpdateCaptionEnable := True; 70 74 end; 71 75 -
Docking/CoolDocking/UCDLayout.pas
r216 r218 449 449 if FormClass = TCDConjoinForm then 450 450 begin 451 ParentComponent := TCDManager(Form.DockManager).CreateCon tainer(alNone);451 ParentComponent := TCDManager(Form.DockManager).CreateConjoinForm; 452 452 TCDManager(TCDConjoinForm(ParentComponent).DockManager).DockStyle := 453 453 ParentLayoutItem.DockStyle; -
Docking/CoolDocking/UCDManager.pas
r217 r218 16 16 TCDManager = class; 17 17 TCDManagerItem = class; 18 19 TCDPanelForm = class(TForm) 20 Panel: TPanel; 21 end; 18 22 19 23 { TCDHeaderButton } … … 37 41 Buttons: TObjectList; // TList<TCDHeaderButton> 38 42 Icon: TImage; 39 ManagerItem: TCDManagerItem;43 Control: TControl; 40 44 constructor Create(TheOwner: TComponent); override; 41 45 destructor Destroy; override; … … 63 67 TCDManagerItem = class 64 68 private 69 FControl: TWinControl; 65 70 function GetHideType: TCDHideType; 66 71 procedure ResizeExecute(Sender: TObject); 67 72 procedure SetHideType(const AValue: TCDHideType); 68 73 public 69 Control: TWinControl;70 74 Manager: TCDManager; 75 procedure SetControl(const AValue: TWinControl); virtual; 71 76 procedure DockPanelMouseDown(Sender: TObject; Button: TMouseButton; 72 77 Shift: TShiftState; X, Y: Integer); 73 78 procedure Paint(Sender: TObject); virtual; 74 79 procedure VisibleChange(Sender: TObject); virtual; 80 procedure VisibleChanging(Sender: TObject); virtual; 75 81 constructor Create; virtual; 76 82 destructor Destroy; override; 77 83 property HideType: TCDHideType read GetHideType write SetHideType; 84 property Control: TWinControl read FControl write SetControl; 78 85 end; 79 86 … … 90 97 procedure SetHeaderVisible(const AValue: Boolean); 91 98 procedure SetMoveDuration(const AValue: Integer); 92 procedure SetVisible(const AValue: Boolean);93 99 public 94 100 Locked: Boolean; … … 96 102 FDockStyle: TCDStyleType; 97 103 FreeParentIfEmpty: Boolean; // Free or not parent conjoin forms 104 procedure SetVisible(const AValue: Boolean); virtual; 98 105 constructor Create(ADockSite: TWinControl); override; 99 106 destructor Destroy; override; … … 104 111 procedure InsertControlPanel(Control: TControl; InsertAt: TAlign; 105 112 DropCtl: TControl); virtual; 106 procedure DoSetVisible(const AValue: Boolean); virtual;107 113 procedure SetHeaderPos(const AValue: THeaderPos); virtual; 108 114 function GetHeaderPos: THeaderPos; virtual; … … 130 136 131 137 function FindControlInPanels(Control: TControl): TCDManagerItem; virtual; 132 function CreateContainer(InsertAt: TAlign): TCDConjoinForm; 138 function CreateConjoinForm: TCDConjoinForm; 139 function CreateDockableForm: TCDPanelForm; 133 140 property DockStyle: TCDStyleType read FDockStyle write SetDockStyle; 134 141 property MoveDuration: Integer read GetMoveDuration write SetMoveDuration; … … 144 151 uses 145 152 UCDManagerRegions, UCDManagerTabs, UCDManagerRegionsPopup, UCDManagerTabsPopup, 146 UCDResource ;153 UCDResource, UCDClient; 147 154 148 155 function CreateRotatedFont(F: TFont; Angle: Integer): Integer; … … 281 288 end; 282 289 290 procedure TCDManagerItem.SetControl(const AValue: TWinControl); 291 begin 292 if FControl = AValue then Exit; 293 FControl := AValue; 294 end; 295 283 296 procedure TCDManagerItem.SetHideType(const AValue: TCDHideType); 284 297 begin … … 314 327 end; 315 328 329 procedure TCDManagerItem.VisibleChanging(Sender: TObject); 330 begin 331 332 end; 333 316 334 { TCDManager } 317 335 … … 388 406 DropCtl: TControl); 389 407 begin 390 end;391 392 procedure TCDManager.DoSetVisible(const AValue: Boolean);393 begin394 395 408 end; 396 409 … … 409 422 if (not Assigned(FDockSite.Parent)) then begin 410 423 // Create conjointed form 411 NewConjoinDockForm := CreateCon tainer(InsertAt);424 NewConjoinDockForm := CreateConjoinForm; 412 425 FDockSite.ManualDock(NewConjoinDockForm); 413 426 Control.ManualDock(NewConjoinDockForm, nil, InsertAt); 414 427 NewConjoinDockForm.UpdateCaption; 415 428 end else begin 416 NewConjoinDockForm := CreateCon tainer(InsertAt);429 NewConjoinDockForm := CreateConjoinForm; 417 430 NewDockSite := FDockSite.HostDockSite; 418 431 // FDockSite.ManualFloat(FDockSite.BoundsRect); … … 504 517 end; 505 518 506 function TCDManager.CreateCon tainer(InsertAt: TAlign): TCDConjoinForm;519 function TCDManager.CreateConjoinForm: TCDConjoinForm; 507 520 var 508 521 NewDockSite: TWinControl; … … 511 524 NewConjoinDockForm := TCDConjoinForm.Create(Application); 512 525 NewConjoinDockForm.Name := GetUniqueName('ConjoinForm'); 513 NewConjoinDockForm.Visible := True;526 //NewConjoinDockForm.Visible := True; 514 527 NewConjoinDockForm.BoundsRect := FDockSite.BoundsRect; 515 528 NewConjoinDockForm.CoolDockClient.Master := Self.Master; … … 518 531 //NewConjoinDockForm.ManualDock(NewDockSite, nil, InsertAt); 519 532 Result := NewConjoinDockForm; 533 end; 534 535 function TCDManager.CreateDockableForm: TCDPanelForm; 536 var 537 NewClient: TCDClient; 538 begin 539 Application.CreateForm(TCDPanelForm, Result); 540 Result.Name := GetUniqueName('DockForm'); 541 NewClient := TCDClient.Create(Result); 542 Result.Panel := TPanel.Create(Result); 543 Result.Panel.Parent := Result; 544 //Result.Panel.Visible := True; 545 Result.Panel.BevelInner := bvNone; 546 Result.Panel.BevelOuter := bvNone; 547 NewClient.Panel := Result.Panel; 548 NewClient.Master := Self.Master; 549 NewClient.Dockable := False; 520 550 end; 521 551 … … 564 594 565 595 procedure TCDManager.SetVisible(const AValue: Boolean); 566 var 567 I: Integer; 568 begin 569 DoSetVisible(AValue); 570 //Visible := AValue; 571 // for I := 0 to DockPanels.Count - 1 do 572 // TCDClientPanel(DockPanels[I]).Visible := AValue; 596 begin 573 597 end; 574 598 … … 638 662 Visible := True; 639 663 end; 664 665 BevelInner := bvNone; 666 BevelOuter := bvNone; 640 667 end; 641 668 … … 662 689 R: TRect; 663 690 begin 664 with TCDManager(TWinControl(ManagerItem.Control).DockManager) do 691 if Assigned(Control) then 692 with TCDManager(TWinControl(Control).DockManager) do 665 693 case HeaderPos of 666 694 hpLeft: begin … … 682 710 end; 683 711 684 if (ManagerItem.Control as TWinControl).Focused then 685 Canvas.Font.Style := Canvas.Font.Style + [fsBold] 686 else Canvas.Font.Style := Canvas.Font.Style - [fsBold]; 712 if Assigned(Control) then 713 if (Control as TWinControl).Focused then 714 Canvas.Font.Style := Canvas.Font.Style + [fsBold] 715 else Canvas.Font.Style := Canvas.Font.Style - [fsBold]; 687 716 688 717 RearrangeButtons; … … 737 766 738 767 //SelectObject(Canvas.Handle, MyFont); 739 Title := ManagerItem.Control.Caption; 768 if Assigned(Control) then 769 Title := Control.Caption else Title := ''; 740 770 if (TextWidth(Title) > TitleMaxWidth) then begin 741 771 while (Length(Title) > 0) and (TextWidth(Title + '...') > TitleMaxWidth) do begin … … 776 806 procedure TCDHeader.CloseButtonClick(Sender: TObject); 777 807 begin 778 ManagerItem.Control.Hide; 779 end; 780 781 808 if Assigned(Control) then 809 Control.Hide; 810 end; 782 811 783 812 end. -
Docking/CoolDocking/UCDPopupMenu.pas
r217 r218 208 208 if PopupComponent is TCDHeader then 209 209 with TCDHeader(PopupComponent) do begin 210 TForm( ManagerItem.Control).Close;210 TForm(Control).Close; 211 211 end; 212 212 end; … … 227 227 if PopupComponent is TCDHeader then 228 228 with TCDHeader(PopupComponent) do begin 229 Value := ManagerItem.Control.Caption;229 Value := Control.Caption; 230 230 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin 231 ManagerItem.Control.Caption := Value;231 Control.Caption := Value; 232 232 Invalidate; 233 233 end; … … 243 243 if PopupComponent is TCDHeader then 244 244 with TCDHeader(PopupComponent) do begin 245 TCDManager(TWinControl( ManagerItem.Control).DockManager).HeaderPos := hpTop;245 TCDManager(TWinControl(Control).DockManager).HeaderPos := hpTop; 246 246 Invalidate; 247 247 end; … … 256 256 if PopupComponent is TCDHeader then 257 257 with TCDHeader(PopupComponent) do begin 258 TCDManager(TWinControl( ManagerItem.Control).DockManager).HeaderPos := hpLeft;258 TCDManager(TWinControl(Control).DockManager).HeaderPos := hpLeft; 259 259 Invalidate; 260 260 end; … … 269 269 if PopupComponent is TCDHeader then 270 270 with TCDHeader(PopupComponent) do begin 271 TCDManager(TWinControl( ManagerItem.Control).DockManager).HeaderPos := hpRight;271 TCDManager(TWinControl(Control).DockManager).HeaderPos := hpRight; 272 272 Invalidate; 273 273 end; … … 282 282 if PopupComponent is TCDHeader then 283 283 with TCDHeader(PopupComponent) do begin 284 TCDManager(TWinControl( ManagerItem.Control).DockManager).HeaderPos := hpTop;284 TCDManager(TWinControl(Control).DockManager).HeaderPos := hpTop; 285 285 Invalidate; 286 286 end; … … 295 295 if PopupComponent is TCDHeader then 296 296 with TCDHeader(PopupComponent) do begin 297 TCDManager(TWinControl( ManagerItem.Control).DockManager).HeaderPos := hpBottom;297 TCDManager(TWinControl(Control).DockManager).HeaderPos := hpBottom; 298 298 Invalidate; 299 299 end; … … 302 302 procedure TCDPopupMenu.PopupMenuUndockClick(Sender: TObject); 303 303 var 304 Control: TControl;305 begin 306 if PopupComponent is TPageControl then 307 with TPageControl(PopupComponent) do begin 308 Control := TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control;309 end else 310 if PopupComponent is TCDHeader then 311 with TCDHeader(PopupComponent) do begin 312 Control := ManagerItem.Control;313 end else Control := nil;314 if Assigned( Control) then315 Control.ManualFloat(Control.BoundsRect);304 UndockControl: TControl; 305 begin 306 if PopupComponent is TPageControl then 307 with TPageControl(PopupComponent) do begin 308 UndockControl := TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control; 309 end else 310 if PopupComponent is TCDHeader then 311 with TCDHeader(PopupComponent) do begin 312 UndockControl := Control; 313 end else UndockControl := nil; 314 if Assigned(UndockControl) then 315 UndockControl.ManualFloat(UndockControl.BoundsRect); 316 316 end; 317 317
Note:
See TracChangeset
for help on using the changeset viewer.