- Timestamp:
- Mar 9, 2011, 2:11:40 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/IDE.lpi
r181 r182 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count=" 42">49 <Units Count="53"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> 52 52 <IsPartOfProject Value="True"/> 53 53 <UnitName Value="IDE"/> 54 <UsageCount Value=" 76"/>54 <UsageCount Value="81"/> 55 55 </Unit0> 56 56 <Unit1> … … 60 60 <ResourceBaseClass Value="Form"/> 61 61 <UnitName Value="UMainForm"/> 62 <EditorIndex Value="5"/> 63 <WindowIndex Value="0"/> 64 <TopLine Value="1"/> 65 <CursorPos X="21" Y="13"/> 66 <UsageCount Value="76"/> 67 <Loaded Value="True"/> 62 <EditorIndex Value="8"/> 63 <WindowIndex Value="0"/> 64 <TopLine Value="138"/> 65 <CursorPos X="18" Y="150"/> 66 <UsageCount Value="81"/> 67 <Loaded Value="True"/> 68 <LoadedDesigner Value="True"/> 68 69 </Unit1> 69 70 <Unit2> … … 76 77 <TopLine Value="1"/> 77 78 <CursorPos X="12" Y="16"/> 78 <UsageCount Value=" 76"/>79 <UsageCount Value="81"/> 79 80 </Unit2> 80 81 <Unit3> … … 87 88 <TopLine Value="1"/> 88 89 <CursorPos X="3" Y="16"/> 89 <UsageCount Value=" 76"/>90 <UsageCount Value="81"/> 90 91 </Unit3> 91 92 <Unit4> … … 98 99 <TopLine Value="1"/> 99 100 <CursorPos X="15" Y="10"/> 100 <UsageCount Value=" 76"/>101 <UsageCount Value="81"/> 101 102 </Unit4> 102 103 <Unit5> 103 104 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 104 <WindowIndex Value="0"/> 105 <TopLine Value="1070"/> 106 <CursorPos X="1" Y="1083"/> 107 <UsageCount Value="37"/> 105 <EditorIndex Value="3"/> 106 <WindowIndex Value="0"/> 107 <TopLine Value="1672"/> 108 <CursorPos X="1" Y="1685"/> 109 <UsageCount Value="38"/> 110 <Loaded Value="True"/> 108 111 </Unit5> 109 112 <Unit6> … … 116 119 <TopLine Value="1"/> 117 120 <CursorPos X="20" Y="16"/> 118 <UsageCount Value=" 76"/>121 <UsageCount Value="81"/> 119 122 </Unit6> 120 123 <Unit7> 121 124 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customform.inc"/> 122 <EditorIndex Value=" 12"/>125 <EditorIndex Value="21"/> 123 126 <WindowIndex Value="0"/> 124 127 <TopLine Value="2822"/> 125 128 <CursorPos X="1" Y="2835"/> 126 <UsageCount Value=" 38"/>129 <UsageCount Value="41"/> 127 130 <Loaded Value="True"/> 128 131 </Unit7> … … 136 139 <TopLine Value="1"/> 137 140 <CursorPos X="7" Y="16"/> 138 <UsageCount Value=" 76"/>141 <UsageCount Value="81"/> 139 142 </Unit8> 140 143 <Unit9> … … 147 150 <TopLine Value="1"/> 148 151 <CursorPos X="12" Y="15"/> 149 <UsageCount Value=" 76"/>152 <UsageCount Value="81"/> 150 153 </Unit9> 151 154 <Unit10> … … 158 161 <TopLine Value="1"/> 159 162 <CursorPos X="21" Y="4"/> 160 <UsageCount Value=" 76"/>163 <UsageCount Value="81"/> 161 164 </Unit10> 162 165 <Unit11> … … 169 172 <TopLine Value="1"/> 170 173 <CursorPos X="12" Y="16"/> 171 <UsageCount Value=" 76"/>174 <UsageCount Value="81"/> 172 175 </Unit11> 173 176 <Unit12> … … 180 183 <TopLine Value="1"/> 181 184 <CursorPos X="12" Y="17"/> 182 <UsageCount Value=" 76"/>185 <UsageCount Value="81"/> 183 186 </Unit12> 184 187 <Unit13> … … 191 194 <TopLine Value="1"/> 192 195 <CursorPos X="12" Y="16"/> 193 <UsageCount Value=" 76"/>196 <UsageCount Value="81"/> 194 197 </Unit13> 195 198 <Unit14> … … 202 205 <TopLine Value="1"/> 203 206 <CursorPos X="41" Y="17"/> 204 <UsageCount Value="7 4"/>207 <UsageCount Value="79"/> 205 208 </Unit14> 206 209 <Unit15> … … 209 212 <EditorIndex Value="0"/> 210 213 <WindowIndex Value="0"/> 211 <TopLine Value=" 1"/>212 <CursorPos X=" 50" Y="179"/>213 <UsageCount Value="3 6"/>214 <TopLine Value="87"/> 215 <CursorPos X="34" Y="100"/> 216 <UsageCount Value="39"/> 214 217 <Loaded Value="True"/> 215 218 </Unit15> … … 217 220 <Filename Value="..\..\UCoolDockLayout.pas"/> 218 221 <UnitName Value="UCoolDockLayout"/> 219 <IsVisibleTab Value="True"/> 220 <EditorIndex Value="6"/> 221 <WindowIndex Value="0"/> 222 <TopLine Value="376"/> 223 <CursorPos X="1" Y="383"/> 224 <UsageCount Value="36"/> 222 <EditorIndex Value="9"/> 223 <WindowIndex Value="0"/> 224 <TopLine Value="379"/> 225 <CursorPos X="101" Y="394"/> 226 <UsageCount Value="39"/> 225 227 <Loaded Value="True"/> 226 228 </Unit16> 227 229 <Unit17> 228 230 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 229 <EditorIndex Value=" 11"/>231 <EditorIndex Value="20"/> 230 232 <WindowIndex Value="0"/> 231 233 <TopLine Value="1638"/> 232 234 <CursorPos X="17" Y="1651"/> 233 <UsageCount Value="1 2"/>235 <UsageCount Value="15"/> 234 236 <Loaded Value="True"/> 235 237 </Unit17> … … 240 242 <TopLine Value="70"/> 241 243 <CursorPos X="21" Y="83"/> 242 <UsageCount Value=" 10"/>244 <UsageCount Value="9"/> 243 245 </Unit18> 244 246 <Unit19> … … 247 249 <TopLine Value="220"/> 248 250 <CursorPos X="16" Y="233"/> 249 <UsageCount Value=" 10"/>251 <UsageCount Value="9"/> 250 252 </Unit19> 251 253 <Unit20> … … 263 265 <TopLine Value="34"/> 264 266 <CursorPos X="11" Y="47"/> 265 <UsageCount Value=" 10"/>267 <UsageCount Value="9"/> 266 268 </Unit21> 267 269 <Unit22> … … 279 281 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\forms.pp"/> 280 282 <UnitName Value="Forms"/> 281 <EditorIndex Value=" 8"/>283 <EditorIndex Value="14"/> 282 284 <WindowIndex Value="0"/> 283 285 <TopLine Value="776"/> 284 286 <CursorPos X="3" Y="789"/> 285 <UsageCount Value="1 3"/>287 <UsageCount Value="16"/> 286 288 <Loaded Value="True"/> 287 289 </Unit23> … … 292 294 <TopLine Value="835"/> 293 295 <CursorPos X="3" Y="837"/> 294 <UsageCount Value=" 7"/>296 <UsageCount Value="6"/> 295 297 </Unit24> 296 298 <Unit25> … … 299 301 <TopLine Value="913"/> 300 302 <CursorPos X="1" Y="930"/> 301 <UsageCount Value="2 9"/>303 <UsageCount Value="28"/> 302 304 </Unit25> 303 305 <Unit26> … … 306 308 <TopLine Value="91"/> 307 309 <CursorPos X="1" Y="104"/> 308 <UsageCount Value=" 6"/>310 <UsageCount Value="10"/> 309 311 </Unit26> 310 312 <Unit27> … … 313 315 <TopLine Value="239"/> 314 316 <CursorPos X="1" Y="252"/> 315 <UsageCount Value=" 6"/>317 <UsageCount Value="10"/> 316 318 </Unit27> 317 319 <Unit28> 318 320 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 319 321 <UnitName Value="Controls"/> 320 <EditorIndex Value=" 9"/>321 <WindowIndex Value="0"/> 322 <TopLine Value=" 2000"/>323 <CursorPos X=" 22" Y="2013"/>324 <UsageCount Value="1 3"/>322 <EditorIndex Value="15"/> 323 <WindowIndex Value="0"/> 324 <TopLine Value="432"/> 325 <CursorPos X="15" Y="446"/> 326 <UsageCount Value="16"/> 325 327 <Loaded Value="True"/> 326 328 </Unit28> 327 329 <Unit29> 328 330 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 329 <WindowIndex Value="0"/> 330 <TopLine Value="6327"/> 331 <CursorPos X="18" Y="6332"/> 332 <UsageCount Value="11"/> 331 <EditorIndex Value="2"/> 332 <WindowIndex Value="0"/> 333 <TopLine Value="5229"/> 334 <CursorPos X="1" Y="5242"/> 335 <UsageCount Value="12"/> 336 <Loaded Value="True"/> 333 337 </Unit29> 334 338 <Unit30> … … 345 349 <ResourceBaseClass Value="Form"/> 346 350 <UnitName Value="UCoolDockCustomize"/> 347 <EditorIndex Value=" 4"/>351 <EditorIndex Value="7"/> 348 352 <WindowIndex Value="0"/> 349 353 <TopLine Value="36"/> 350 354 <CursorPos X="3" Y="49"/> 351 <UsageCount Value="3 1"/>355 <UsageCount Value="34"/> 352 356 <Loaded Value="True"/> 353 357 </Unit31> … … 355 359 <Filename Value="..\..\UCoolDockCommon.pas"/> 356 360 <UnitName Value="UCoolDockCommon"/> 357 <EditorIndex Value=" 7"/>358 <WindowIndex Value="0"/> 359 <TopLine Value="1"/> 360 <CursorPos X=" 14" Y="33"/>361 <UsageCount Value=" 28"/>361 <EditorIndex Value="13"/> 362 <WindowIndex Value="0"/> 363 <TopLine Value="1"/> 364 <CursorPos X="3" Y="11"/> 365 <UsageCount Value="31"/> 362 366 <Loaded Value="True"/> 363 367 </Unit32> … … 365 369 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 366 370 <UnitName Value="UCoolDockPopupMenu"/> 367 <EditorIndex Value=" 3"/>368 <WindowIndex Value="0"/> 369 <TopLine Value="2 9"/>370 <CursorPos X=" 55" Y="37"/>371 <UsageCount Value="3 0"/>371 <EditorIndex Value="6"/> 372 <WindowIndex Value="0"/> 373 <TopLine Value="223"/> 374 <CursorPos X="85" Y="202"/> 375 <UsageCount Value="33"/> 372 376 <Loaded Value="True"/> 373 377 </Unit33> … … 392 396 <TopLine Value="224"/> 393 397 <CursorPos X="29" Y="238"/> 394 <UsageCount Value="1 2"/>398 <UsageCount Value="11"/> 395 399 </Unit36> 396 400 <Unit37> … … 399 403 <TopLine Value="7"/> 400 404 <CursorPos X="3" Y="20"/> 401 <UsageCount Value="1 1"/>405 <UsageCount Value="10"/> 402 406 </Unit37> 403 407 <Unit38> … … 411 415 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclclasses.pp"/> 412 416 <UnitName Value="LCLClasses"/> 413 <EditorIndex Value="1 0"/>417 <EditorIndex Value="19"/> 414 418 <WindowIndex Value="0"/> 415 419 <TopLine Value="32"/> 416 420 <CursorPos X="20" Y="45"/> 417 <UsageCount Value="1 1"/>421 <UsageCount Value="14"/> 418 422 <Loaded Value="True"/> 419 423 </Unit39> … … 421 425 <Filename Value="..\..\UCoolDockStyle.pas"/> 422 426 <UnitName Value="UCoolDockStyle"/> 423 <EditorIndex Value=" 2"/>424 <WindowIndex Value="0"/> 425 <TopLine Value=" 1"/>426 <CursorPos X="1 " Y="1"/>427 <UsageCount Value="1 0"/>427 <EditorIndex Value="5"/> 428 <WindowIndex Value="0"/> 429 <TopLine Value="9"/> 430 <CursorPos X="15" Y="22"/> 431 <UsageCount Value="13"/> 428 432 <Loaded Value="True"/> 429 433 </Unit40> … … 431 435 <Filename Value="..\..\UCoolDockClientPanel.pas"/> 432 436 <UnitName Value="UCoolDockClientPanel"/> 437 <EditorIndex Value="4"/> 438 <WindowIndex Value="0"/> 439 <TopLine Value="210"/> 440 <CursorPos X="3" Y="215"/> 441 <UsageCount Value="13"/> 442 <Loaded Value="True"/> 443 </Unit41> 444 <Unit42> 445 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclproc.pas"/> 446 <UnitName Value="LCLProc"/> 447 <WindowIndex Value="0"/> 448 <TopLine Value="1531"/> 449 <CursorPos X="33" Y="1544"/> 450 <UsageCount Value="10"/> 451 </Unit42> 452 <Unit43> 453 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 454 <UnitName Value="UCoolDockStyleTabs"/> 455 <IsVisibleTab Value="True"/> 456 <EditorIndex Value="11"/> 457 <WindowIndex Value="0"/> 458 <TopLine Value="292"/> 459 <CursorPos X="1" Y="305"/> 460 <UsageCount Value="12"/> 461 <Loaded Value="True"/> 462 </Unit43> 463 <Unit44> 464 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\themes.pas"/> 465 <UnitName Value="Themes"/> 466 <WindowIndex Value="0"/> 467 <TopLine Value="45"/> 468 <CursorPos X="28" Y="558"/> 469 <UsageCount Value="10"/> 470 </Unit44> 471 <Unit45> 472 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\interfaces\win32\win32wsforms.pp"/> 473 <UnitName Value="Win32WSForms"/> 474 <WindowIndex Value="0"/> 475 <TopLine Value="344"/> 476 <CursorPos X="1" Y="357"/> 477 <UsageCount Value="10"/> 478 </Unit45> 479 <Unit46> 480 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\interfaces\win32\win32callback.inc"/> 481 <WindowIndex Value="0"/> 482 <TopLine Value="2403"/> 483 <CursorPos X="74" Y="2413"/> 484 <UsageCount Value="10"/> 485 </Unit46> 486 <Unit47> 487 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 488 <UnitName Value="UCoolDockStyleRegions"/> 489 <EditorIndex Value="10"/> 490 <WindowIndex Value="0"/> 491 <TopLine Value="99"/> 492 <CursorPos X="1" Y="120"/> 493 <UsageCount Value="11"/> 494 <Loaded Value="True"/> 495 </Unit47> 496 <Unit48> 497 <Filename Value="..\..\UCoolDockStylePopupTabs.pas"/> 498 <UnitName Value="UCoolDockStylePopupTabs"/> 499 <EditorIndex Value="12"/> 500 <WindowIndex Value="0"/> 501 <TopLine Value="1"/> 502 <CursorPos X="26" Y="12"/> 503 <UsageCount Value="11"/> 504 <Loaded Value="True"/> 505 </Unit48> 506 <Unit49> 507 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\dragmanager.inc"/> 433 508 <EditorIndex Value="1"/> 434 509 <WindowIndex Value="0"/> 435 <TopLine Value="1"/> 436 <CursorPos X="6" Y="1"/> 437 <UsageCount Value="10"/> 438 <Loaded Value="True"/> 439 </Unit41> 510 <TopLine Value="762"/> 511 <CursorPos X="1" Y="775"/> 512 <UsageCount Value="11"/> 513 <Loaded Value="True"/> 514 </Unit49> 515 <Unit50> 516 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\dragobject.inc"/> 517 <EditorIndex Value="16"/> 518 <WindowIndex Value="0"/> 519 <TopLine Value="148"/> 520 <CursorPos X="32" Y="160"/> 521 <UsageCount Value="11"/> 522 <Loaded Value="True"/> 523 </Unit50> 524 <Unit51> 525 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\lclintfh.inc"/> 526 <EditorIndex Value="17"/> 527 <WindowIndex Value="0"/> 528 <TopLine Value="53"/> 529 <CursorPos X="11" Y="66"/> 530 <UsageCount Value="11"/> 531 <Loaded Value="True"/> 532 </Unit51> 533 <Unit52> 534 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\lclintf.inc"/> 535 <EditorIndex Value="18"/> 536 <WindowIndex Value="0"/> 537 <TopLine Value="141"/> 538 <CursorPos X="3" Y="143"/> 539 <UsageCount Value="11"/> 540 <Loaded Value="True"/> 541 </Unit52> 440 542 </Units> 441 543 <JumpHistory Count="30" HistoryIndex="29"> 442 544 <Position1> 443 <Filename Value="..\..\UCoolDock Layout.pas"/>444 <Caret Line="3 90" Column="27" TopLine="377"/>545 <Filename Value="..\..\UCoolDocking.pas"/> 546 <Caret Line="367" Column="12" TopLine="358"/> 445 547 </Position1> 446 548 <Position2> 447 <Filename Value="..\..\UCoolDock Layout.pas"/>448 <Caret Line="3 82" Column="1" TopLine="377"/>549 <Filename Value="..\..\UCoolDocking.pas"/> 550 <Caret Line="318" Column="20" TopLine="318"/> 449 551 </Position2> 450 552 <Position3> 451 <Filename Value="..\..\UCoolDock Layout.pas"/>452 <Caret Line=" 383" Column="1" TopLine="377"/>553 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 554 <Caret Line="115" Column="1" TopLine="94"/> 453 555 </Position3> 454 556 <Position4> 455 <Filename Value="..\..\UCoolDock Layout.pas"/>456 <Caret Line="3 91" Column="1" TopLine="377"/>557 <Filename Value="..\..\UCoolDocking.pas"/> 558 <Caret Line="334" Column="1" TopLine="318"/> 457 559 </Position4> 458 560 <Position5> 459 <Filename Value="..\..\UCoolDock Layout.pas"/>460 <Caret Line="3 92" Column="1" TopLine="377"/>561 <Filename Value="..\..\UCoolDocking.pas"/> 562 <Caret Line="336" Column="1" TopLine="318"/> 461 563 </Position5> 462 564 <Position6> 463 <Filename Value="..\..\UCoolDock Layout.pas"/>464 <Caret Line="3 98" Column="1" TopLine="377"/>565 <Filename Value="..\..\UCoolDocking.pas"/> 566 <Caret Line="334" Column="1" TopLine="318"/> 465 567 </Position6> 466 568 <Position7> 467 <Filename Value="..\..\UCoolDock Layout.pas"/>468 <Caret Line="3 99" Column="1" TopLine="378"/>569 <Filename Value="..\..\UCoolDocking.pas"/> 570 <Caret Line="310" Column="13" TopLine="291"/> 469 571 </Position7> 470 572 <Position8> 471 <Filename Value="..\..\UCoolDock Layout.pas"/>472 <Caret Line=" 382" Column="1" TopLine="377"/>573 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 574 <Caret Line="86" Column="10" TopLine="73"/> 473 575 </Position8> 474 576 <Position9> 475 <Filename Value="..\..\UCoolDock Layout.pas"/>476 <Caret Line=" 383" Column="1" TopLine="377"/>577 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 578 <Caret Line="81" Column="20" TopLine="68"/> 477 579 </Position9> 478 580 <Position10> 479 <Filename Value="..\..\UCoolDock Layout.pas"/>480 <Caret Line=" 384" Column="1" TopLine="377"/>581 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 582 <Caret Line="82" Column="33" TopLine="68"/> 481 583 </Position10> 482 584 <Position11> 483 <Filename Value="..\..\UCoolDock Layout.pas"/>484 <Caret Line=" 391" Column="77" TopLine="377"/>585 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 586 <Caret Line="84" Column="33" TopLine="70"/> 485 587 </Position11> 486 588 <Position12> 487 <Filename Value="..\..\UCoolDock Layout.pas"/>488 <Caret Line=" 382" Column="1" TopLine="377"/>589 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 590 <Caret Line="88" Column="17" TopLine="74"/> 489 591 </Position12> 490 592 <Position13> 491 <Filename Value="..\..\UCoolDock Layout.pas"/>492 <Caret Line=" 391" Column="1" TopLine="377"/>593 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 594 <Caret Line="89" Column="85" TopLine="76"/> 493 595 </Position13> 494 596 <Position14> 495 <Filename Value="..\..\UCoolDock Layout.pas"/>496 <Caret Line=" 392" Column="1" TopLine="377"/>597 <Filename Value="..\..\UCoolDockStyleRegions.pas"/> 598 <Caret Line="90" Column="24" TopLine="76"/> 497 599 </Position14> 498 600 <Position15> 499 <Filename Value="..\..\UCoolDock Layout.pas"/>500 <Caret Line="3 66" Column="1" TopLine="353"/>601 <Filename Value="..\..\UCoolDocking.pas"/> 602 <Caret Line="336" Column="1" TopLine="323"/> 501 603 </Position15> 502 604 <Position16> 503 <Filename Value="..\..\UCoolDock Layout.pas"/>504 <Caret Line=" 367" Column="1" TopLine="353"/>605 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 606 <Caret Line="207" Column="1" TopLine="202"/> 505 607 </Position16> 506 608 <Position17> 507 <Filename Value="..\..\UCoolDock Layout.pas"/>508 <Caret Line=" 372" Column="1" TopLine="359"/>609 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 610 <Caret Line="209" Column="56" TopLine="201"/> 509 611 </Position17> 510 612 <Position18> 511 <Filename Value="..\..\UCoolDock Layout.pas"/>512 <Caret Line=" 374" Column="1" TopLine="359"/>613 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 614 <Caret Line="10" Column="36" TopLine="4"/> 513 615 </Position18> 514 616 <Position19> 515 <Filename Value="..\..\UCoolDock Layout.pas"/>516 <Caret Line=" 376" Column="1" TopLine="362"/>617 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 618 <Caret Line="61" Column="49" TopLine="55"/> 517 619 </Position19> 518 620 <Position20> 519 <Filename Value="..\..\UCoolDock Layout.pas"/>520 <Caret Line=" 377" Column="1" TopLine="362"/>621 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 622 <Caret Line="204" Column="1" TopLine="202"/> 521 623 </Position20> 522 624 <Position21> 523 <Filename Value="..\..\UCoolDock Layout.pas"/>524 <Caret Line="3 78" Column="1" TopLine="362"/>625 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 626 <Caret Line="305" Column="1" TopLine="292"/> 525 627 </Position21> 526 628 <Position22> 527 <Filename Value="..\..\UCoolDock Layout.pas"/>528 <Caret Line=" 376" Column="21" TopLine="374"/>629 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 630 <Caret Line="207" Column="66" TopLine="202"/> 529 631 </Position22> 530 632 <Position23> 531 <Filename Value="..\..\UCoolDock Layout.pas"/>532 <Caret Line="3 83" Column="1" TopLine="374"/>633 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 634 <Caret Line="305" Column="1" TopLine="292"/> 533 635 </Position23> 534 636 <Position24> 535 <Filename Value="..\..\UCoolDock Layout.pas"/>536 <Caret Line="3 92" Column="1" TopLine="374"/>637 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 638 <Caret Line="306" Column="1" TopLine="292"/> 537 639 </Position24> 538 640 <Position25> 539 <Filename Value="..\..\UCoolDock Layout.pas"/>540 <Caret Line=" 400" Column="1" TopLine="387"/>641 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 642 <Caret Line="307" Column="1" TopLine="292"/> 541 643 </Position25> 542 644 <Position26> 543 <Filename Value="..\..\UCoolDock Layout.pas"/>544 <Caret Line="3 83" Column="1" TopLine="370"/>645 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 646 <Caret Line="308" Column="1" TopLine="292"/> 545 647 </Position26> 546 648 <Position27> 547 <Filename Value="..\..\UCoolDock Layout.pas"/>548 <Caret Line="3 84" Column="1" TopLine="370"/>649 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 650 <Caret Line="315" Column="1" TopLine="294"/> 549 651 </Position27> 550 652 <Position28> 551 <Filename Value="..\..\UCoolDock Layout.pas"/>552 <Caret Line="3 99" Column="1" TopLine="386"/>653 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 654 <Caret Line="316" Column="1" TopLine="295"/> 553 655 </Position28> 554 656 <Position29> 555 <Filename Value="..\..\UCoolDock Layout.pas"/>556 <Caret Line=" 400" Column="1" TopLine="386"/>657 <Filename Value="..\..\UCoolDockStyleTabs.pas"/> 658 <Caret Line="317" Column="1" TopLine="296"/> 557 659 </Position29> 558 660 <Position30> 559 <Filename Value="..\..\UCoolDock Layout.pas"/>560 <Caret Line=" 402" Column="1" TopLine="386"/>661 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 662 <Caret Line="202" Column="85" TopLine="223"/> 561 663 </Position30> 562 664 </JumpHistory> -
Docking/CoolDocking/Demo/IDE/UMainForm.lfm
r181 r182 13 13 object Panel1: TPanel 14 14 Left = 0 15 Height = 4 2616 Top = 015 Height = 400 16 Top = 26 17 17 Width = 626 18 18 Align = alClient 19 19 BevelOuter = bvNone 20 ClientHeight = 42621 ClientWidth = 62622 20 TabOrder = 0 23 object ToolBar1: TToolBar 24 Left = 0 25 Height = 26 26 Top = 0 27 Width = 626 28 Caption = 'ToolBar1' 29 Images = ImageList1 30 ParentShowHint = False 31 ShowHint = True 21 end 22 object ToolBar1: TToolBar 23 Left = 0 24 Height = 26 25 Top = 0 26 Width = 626 27 Caption = 'ToolBar1' 28 Images = ImageList1 29 ParentShowHint = False 30 ShowHint = True 31 TabOrder = 1 32 object ComboBox1: TComboBox 33 Left = 44 34 Height = 21 35 Top = 2 36 Width = 100 37 Align = alLeft 38 ItemHeight = 13 39 OnSelect = ComboBox1Select 32 40 TabOrder = 0 33 object ComboBox1: TComboBox 34 Left = 44 35 Height = 21 36 Top = 2 37 Width = 100 38 Align = alLeft 39 ItemHeight = 13 40 OnSelect = ComboBox1Select 41 TabOrder = 0 42 end 43 object ToolButton1: TToolButton 44 Left = 144 45 Top = 2 46 Action = ADesktopSave 47 end 48 object Label1: TLabel 49 Left = 1 50 Height = 24 51 Top = 2 52 Width = 43 53 Align = alLeft 54 Caption = 'Layouts:' 55 Layout = tlCenter 56 ParentColor = False 57 end 41 end 42 object ToolButton1: TToolButton 43 Left = 144 44 Top = 2 45 Action = ADesktopSave 46 end 47 object Label1: TLabel 48 Left = 1 49 Height = 24 50 Top = 2 51 Width = 43 52 Align = alLeft 53 Caption = 'Layouts:' 54 Layout = tlCenter 55 ParentColor = False 58 56 end 59 57 end -
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r181 r182 95 95 procedure FormShow(Sender: TObject); 96 96 public 97 procedure InitDefaultDockLayout; 97 98 end; 98 99 … … 137 138 if FileExistsUTF8(DockLayoutFileName) then 138 139 LoadFromFile(DockLayoutFileName); 140 InitDefaultDockLayout; 139 141 PopulateStringList(ComboBox1.Items); 142 end; 143 end; 144 145 procedure TMainForm.InitDefaultDockLayout; 146 const 147 DefaultLayoutName = 'Default Layout'; 148 var 149 NewContainer1: TCoolDockConjoinForm; 150 NewContainer2: TCoolDockConjoinForm; 151 DefaultLayout: TCoolDockLayout; 152 begin 153 DefaultLayout := CoolDockLayoutList1.FindByName(DefaultLayoutName); 154 if not Assigned(DefaultLayout) then begin 155 NewContainer1 := TCoolDockConjoinForm.Create(nil); 156 NewContainer1.Show; 157 158 StructureForm.ManualDock(NewContainer1.Panel, nil, alTop); 159 StructureForm.Show; 160 ObjectInspectorForm.ManualDock(NewContainer1.Panel, nil, alTop); 161 ObjectInspectorForm.Show; 162 163 NewContainer2 := TCoolDockConjoinForm.Create(nil); 164 NewContainer2.Show; 165 ProjectManagerForm.ManualDock(NewContainer2.Panel, nil, alTop); 166 ProjectManagerForm.Show; 167 ToolPaletteForm.ManualDock(NewContainer2.Panel, nil, alTop); 168 ToolPaletteForm.Show; 169 170 NewContainer1.ManualDock(Panel1); 171 SourceEditorForm.ManualDock(Panel1); 172 SourceEditorForm.Show; 173 NewContainer2.ManualDock(Panel1); 174 175 DefaultLayout := TCoolDockLayout.Create; 176 DefaultLayout.Name := DefaultLayoutName; 177 CoolDockLayoutList1.Items.Add(DefaultLayout); 178 DefaultLayout.Store; 140 179 end; 141 180 end; -
Docking/CoolDocking/UCoolDockClientPanel.pas
r177 r182 88 88 if Assigned(Control) then 89 89 begin 90 91 90 ControlVisible := TControl(Sender).Visible; 92 91 (*if Assigned(ClientAreaPanel) then -
Docking/CoolDocking/UCoolDockCommon.pas
r181 r182 6 6 7 7 uses 8 Classes, SysUtils, Forms ;8 Classes, SysUtils, Forms, Controls; 9 9 10 10 type 11 11 TDockStyle = (dsList, dsTabs, dsPopupTabs, dsPopupList); 12 TDockHideType = (dhtPermanent, dhtTemporal); 12 13 13 14 TCoolDockMasterBase = class; 14 15 16 TCoolDockManagerBase = class(TDockManager) 17 end; 15 18 16 19 TCoolDockConjoinFormBase = class(TForm) -
Docking/CoolDocking/UCoolDockLayout.pas
r181 r182 351 351 NewItem := TCoolDockLayoutItem.Create; 352 352 NewItem.Parent := Parent; 353 NewItem.DockStyle := TCoolDockManager(Form.HostDockSite.Parent.DockManager).DockStyle; 354 Parent.Items.Add(NewItem); 353 355 NewItem.Store(Form.HostDockSite.Parent); 354 Parent.Items.Add(NewItem);355 356 end; 356 357 end; … … 391 392 if FormClass = TCoolDockConjoinForm then begin 392 393 ParentComponent := TCoolDockConjoinForm.Create(Application); 394 TCoolDockManager(TCoolDockConjoinForm(ParentComponent).Panel.DockManager).DockStyle := ParentLayoutItem.DockStyle; 393 395 ParentLayoutItem.Restore(TWinControl(ParentComponent)); 394 396 end; -
Docking/CoolDocking/UCoolDockPopupMenu.pas
r181 r182 15 15 TCoolDockPopupMenu = class(TPopupMenu) 16 16 public 17 Manager: T Object; // TCoolDockManager18 constructor Create(AManager: T Object);17 Manager: TCoolDockManagerBase; 18 constructor Create(AManager: TCoolDockManagerBase); 19 19 procedure PopupMenuListClick(Sender: TObject); 20 20 procedure PopupMenuTabsClick(Sender: TObject); … … 59 59 { TCoolDockPopupMenu } 60 60 61 constructor TCoolDockPopupMenu.Create(AManager: T Object);61 constructor TCoolDockPopupMenu.Create(AManager: TCoolDockManagerBase); 62 62 var 63 63 NewMenuItem: TMenuItem; … … 198 198 procedure TCoolDockPopupMenu.PopupMenuPositionAutoClick(Sender: TObject); 199 199 begin 200 TCoolDockManager(Manager).HeaderPos := hpAuto; 200 if PopupComponent is TPageControl then 201 with TPageControl(PopupComponent) do begin 202 TCoolDockStyleTabs(TCoolDockManager(Manager).DockStyleHandler).TabsPos := hpAuto; 203 end else 204 if PopupComponent is TCoolDockHeader then 205 with TCoolDockHeader(PopupComponent) do begin 206 TCoolDockManager(Manager).HeaderPos := hpAuto; 207 end; 201 208 end; 202 209 203 210 procedure TCoolDockPopupMenu.PopupMenuPositionLeftClick(Sender: TObject); 204 var 205 Control: TControl; 206 begin 207 Control := FindLCLControl(Mouse.CursorPos); 208 TCoolDockManager(Manager).HeaderPos := hpLeft; 211 begin 212 if PopupComponent is TPageControl then 213 with TPageControl(PopupComponent) do begin 214 TCoolDockStyleTabs(TCoolDockManager(Manager).DockStyleHandler).TabsPos := hpLeft; 215 end else 216 if PopupComponent is TCoolDockHeader then 217 with TCoolDockHeader(PopupComponent) do begin 218 TCoolDockManager(Manager).HeaderPos := hpLeft; 219 end; 209 220 end; 210 221 211 222 procedure TCoolDockPopupMenu.PopupMenuPositionRightClick(Sender: TObject); 212 223 begin 213 TCoolDockManager(Manager).HeaderPos := hpRight; 224 if PopupComponent is TPageControl then 225 with TPageControl(PopupComponent) do begin 226 TCoolDockStyleTabs(TCoolDockManager(Manager).DockStyleHandler).TabsPos := hpRight; 227 end else 228 if PopupComponent is TCoolDockHeader then 229 with TCoolDockHeader(PopupComponent) do begin 230 TCoolDockManager(Manager).HeaderPos := hpRight; 231 end; 214 232 end; 215 233 216 234 procedure TCoolDockPopupMenu.PopupMenuPositionTopClick(Sender: TObject); 217 235 begin 218 TCoolDockManager(Manager).HeaderPos := hpTop; 236 if PopupComponent is TPageControl then 237 with TPageControl(PopupComponent) do begin 238 TCoolDockStyleTabs(TCoolDockManager(Manager).DockStyleHandler).TabsPos := hpTop; 239 end else 240 if PopupComponent is TCoolDockHeader then 241 with TCoolDockHeader(PopupComponent) do begin 242 TCoolDockManager(Manager).HeaderPos := hpTop; 243 end; 219 244 end; 220 245 221 246 procedure TCoolDockPopupMenu.PopupMenuPositionBottomClick(Sender: TObject); 222 247 begin 223 TCoolDockManager(Manager).HeaderPos := hpBottom; 248 if PopupComponent is TPageControl then 249 with TPageControl(PopupComponent) do begin 250 TCoolDockStyleTabs(TCoolDockManager(Manager).DockStyleHandler).TabsPos := hpBottom; 251 end else 252 if PopupComponent is TCoolDockHeader then 253 with TCoolDockHeader(PopupComponent) do begin 254 TCoolDockManager(Manager).HeaderPos := hpBottom; 255 end; 224 256 end; 225 257 -
Docking/CoolDocking/UCoolDockStyle.pas
r114 r182 6 6 7 7 uses 8 Classes, Controls, SysUtils, UCoolDockClientPanel ;8 Classes, Controls, SysUtils, UCoolDockClientPanel, UCoolDockCommon; 9 9 10 10 type … … 14 14 private 15 15 public 16 Manager: T Object; // TCoolDockManager;16 Manager: TCoolDockManagerBase; 17 17 function GetHeaderPos: THeaderPos; virtual; 18 18 procedure SetHeaderPos(const AValue: THeaderPos); virtual; 19 constructor Create(AManager: T Object);19 constructor Create(AManager: TCoolDockManagerBase); 20 20 procedure InsertControl(NewPanel: TCoolDockClientPanel; AControl: TControl; 21 21 InsertAt: TAlign); virtual; … … 50 50 end; 51 51 52 constructor TCoolDockStyle.Create(AManager: T Object);52 constructor TCoolDockStyle.Create(AManager: TCoolDockManagerBase); 53 53 begin 54 54 Manager := AManager; -
Docking/CoolDocking/UCoolDockStylePopupTabs.pas
r103 r182 6 6 7 7 uses 8 Classes, Controls, SysUtils, ComCtrls, ExtCtrls, 8 Classes, Controls, SysUtils, ComCtrls, ExtCtrls, UCoolDockCommon, 9 9 UCoolDockStyleTabs, UCoolDockStyle, UCoolDockClientPanel; 10 10 … … 50 50 procedure TabControlMouseUp(Sender: TObject; Button: TMouseButton; 51 51 Shift: TShiftState; X, Y: Integer); 52 constructor Create(AManager: T Object);52 constructor Create(AManager: TCoolDockManagerBase); 53 53 destructor Destroy; override; 54 54 private … … 181 181 end; 182 182 183 constructor TCoolDockStylePopupTabs.Create(AManager: T Object);183 constructor TCoolDockStylePopupTabs.Create(AManager: TCoolDockManagerBase); 184 184 var 185 185 I: Integer; -
Docking/CoolDocking/UCoolDockStyleRegions.pas
r103 r182 7 7 uses 8 8 Classes, SysUtils, Controls, ExtCtrls, StdCtrls, UCoolDockStyle, 9 Graphics, Contnrs, Buttons, UCoolDockClientPanel ;9 Graphics, Contnrs, Buttons, UCoolDockClientPanel, UCoolDockCommon; 10 10 11 11 type … … 22 22 function GetHeaderPos: THeaderPos; override; 23 23 procedure SetHeaderPos(const AValue: THeaderPos); override; 24 constructor Create(AManager: T Object);24 constructor Create(AManager: TCoolDockManagerBase); 25 25 destructor Destroy; override; 26 26 procedure UpdateClientSize; override; 27 procedure SetVisible(const AValue: Boolean); override; 28 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override; 27 29 end; 28 30 … … 45 47 end; 46 48 47 constructor TCoolDockStyleRegions.Create(AManager: T Object);49 constructor TCoolDockStyleRegions.Create(AManager: TCoolDockManagerBase); 48 50 var 49 51 I: Integer; … … 55 57 for I := 0 to DockPanels.Count - 1 do begin 56 58 if Assigned(TCoolDockClientPanel(DockPanels[I]).Splitter) then 57 TCoolDockClientPanel(DockPanels[I]).Splitter.Visible := True;59 TCoolDockClientPanel(DockPanels[I]).Splitter.Visible := True; 58 60 TCoolDockClientPanel(DockPanels[I]).Visible := True; 59 61 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Parent := TCoolDockClientPanel(DockPanels[I]); … … 75 77 inherited UpdateClientSize; 76 78 with TCoolDockManager(Manager) do 77 for I := 0 to DockPanels.Count - 1 do begin 78 TCoolDockClientPanel(DockPanels[I]).Height := DockSite.Height div 79 DockSite.DockClientCount; 80 TCoolDockClientPanel(DockPanels[I]).Width := DockSite.Width div 81 DockSite.DockClientCount; 79 for I := 0 to DockPanels.Count - 1 do 80 with TCoolDockClientPanel(DockPanels[I]) do begin 81 Height := TCoolDockManager(Manager).DockSite.Height div 82 TCoolDockManager(Manager).DockSite.DockClientCount; 83 Width := TCoolDockManager(Manager).DockSite.Width div 84 TCoolDockManager(Manager).DockSite.DockClientCount; 82 85 //TCoolDockClientPanel(FDockPanels[I]).DockPanelPaint(Self); 83 TCoolDockClientPanel(DockPanels[I]).DockPanelPaint(Self); 86 DockPanelPaint(Self); 87 if I < (DockPanels.Count - 1) then begin 88 if TCoolDockManager(Manager).DockDirection = ddHorizontal then Align := alLeft 89 else Align := alTop; 90 end else Align := alClient; 84 91 end; 92 end; 93 94 procedure TCoolDockStyleRegions.SetVisible(const AValue: Boolean); 95 var 96 I: Integer; 97 begin 98 inherited SetVisible(AValue); 99 with TCoolDockManager(Manager) do 100 for I := 0 to DockPanels.Count - 1 do 101 102 //Show; 103 //ShowMessage(IntToStr(Control.Tag)); 104 with TCoolDockClientPanel(DockPanels[I]) do begin 105 if AValue and (not Control.Visible) and (Control.Tag = Integer(dhtTemporal)) then begin 106 Control.Show; 107 Control.Tag := Integer(dhtPermanent); 108 end else 109 if not AValue then begin 110 Control.Tag := Integer(dhtTemporal); 111 Control.Hide; 112 end; 113 end; 114 //ClientAreaPanel.Show; 115 end; 116 117 procedure TCoolDockStyleRegions.ChangeVisible(Control: TWinControl; 118 Visible: Boolean); 119 begin 120 inherited; 85 121 end; 86 122 -
Docking/CoolDocking/UCoolDockStyleTabs.pas
r177 r182 7 7 uses 8 8 Classes, Controls, ExtCtrls, ComCtrls, SysUtils, Dialogs, 9 Menus, UCoolDockStyle, Forms, UCoolDockClientPanel ;9 Menus, UCoolDockStyle, Forms, UCoolDockClientPanel, UCoolDockCommon; 10 10 11 11 type … … 33 33 AControl: TControl; InsertAt: TAlign); 34 34 public 35 constructor Create(AManager: T Object);35 constructor Create(AManager: TCoolDockManagerBase); 36 36 procedure SetVisible(const AValue: Boolean); override; 37 37 destructor Destroy; override; … … 78 78 then 79 79 begin 80 TCoolDockClientPanel(DockPanels[I]).Control.Tag := 1;80 TCoolDockClientPanel(DockPanels[I]).Control.Tag := Integer(dhtTemporal); 81 81 TCoolDockClientPanel(DockPanels[I]).Control.Hide; 82 82 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Hide; … … 138 138 end; 139 139 140 constructor TCoolDockStyleTabs.Create(AManager: T Object);140 constructor TCoolDockStyleTabs.Create(AManager: TCoolDockManagerBase); 141 141 var 142 142 NewMenuItem: TMenuItem; … … 243 243 with TCoolDockClientPanel(DockPanels[PageControl.TabIndex]) do begin 244 244 //Show; 245 if AValue and (not Control.Visible) and (Control.Tag = 1) then begin 245 //ShowMessage(IntToStr(Control.Tag)); 246 if AValue and (not Control.Visible) and (Control.Tag = Integer(dhtTemporal)) then begin 246 247 Control.Show; 247 Control.Tag := 0;248 Control.Tag := Integer(dhtPermanent); 248 249 end; 249 250 //TabControl.Show; … … 273 274 274 275 I := DockPanels.IndexOf(FindControlInPanels(Control)); 275 if Control.Tag = 0then276 if Control.Tag = Integer(dhtPermanent) then 276 277 if I <> -1 then 277 278 // Control.Hide; 278 279 PageControl.Page[I].TabVisible := False; 279 Control.Tag := 0;280 //Control.Tag := 0; 280 281 // end; 281 282 end; -
Docking/CoolDocking/UCoolDocking.pas
r181 r182 40 40 end; 41 41 42 // TObjectList<TCoolDockClientPanel>43 42 44 43 { TCoolDockPanels } 45 44 45 // TCoolDockPanels = TObjectList<TCoolDockClientPanel> 46 46 TCoolDockPanels = class(TObjectList) 47 47 destructor Destroy; override; … … 50 50 { TCoolDockManager } 51 51 52 TCoolDockManager = class(T DockManager)52 TCoolDockManager = class(TCoolDockManagerBase) 53 53 private 54 54 FMaster: TCoolDockMaster; … … 104 104 property HeaderPos: THeaderPos read GetHeaderPos write SetHeaderPos; 105 105 property Visible: Boolean write SetVisible; 106 property DockDirection: TDockDirection read FDockDirection 107 write FDockDirection; 106 108 end; 107 109 … … 120 122 procedure SetTabsEnabled(const AValue: Boolean); 121 123 public 122 procedure SaveLayoutToStream(Stream: TStream);123 procedure LoadLayoutFromStream(Stream: TStream);124 procedure SaveLayoutToFile(FileName: string);125 procedure LoadLayoutFromFile(FileName: string);126 124 constructor Create(AOwner: TComponent); override; 127 125 destructor Destroy; override; … … 332 330 Control.Parent := NewPanel.ClientAreaPanel; 333 331 Control.Align := alClient; 334 FDockPanels.Add(NewPanel); 332 if (InsertAt = alTop) or (InsertAt = alLeft) then 333 FDockPanels.Insert(0, NewPanel) 334 else FDockPanels.Add(NewPanel); 335 335 UpdateClientSize; 336 336 end; … … 550 550 with TCoolDockManager(Panel.DockManager) do 551 551 for I := 0 to DockPanels.Count - 1 do 552 if Assigned(TCoolDockClientPanel(DockPanels[I]).Control) then 553 TCoolDockClientPanel(DockPanels[I]).Control.Hide; 552 if Assigned(TCoolDockClientPanel(DockPanels[I]).Control) then begin 553 TCoolDockClientPanel(DockPanels[I]).Control.Tag := Integer(dhtTemporal); 554 TCoolDockClientPanel(DockPanels[I]).Control.Hide; 555 end; 554 556 end; 555 557 … … 614 616 if FShowIcons = AValue then Exit; 615 617 FShowIcons := AValue; 616 end;617 618 procedure TCoolDockMaster.SaveLayoutToStream(Stream: TStream);619 var620 Doc: TXMLDocument;621 RootNode: TDOMNode;622 NewNode: TDOMNode;623 NewNode2: TDOMNode;624 I: Integer;625 begin626 Doc := TXMLDocument.Create;627 with Doc do try628 RootNode := CreateElement('DockLayout');629 AppendChild(RootNode);630 with RootNode do begin631 for I := 0 to Application.ComponentCount - 1 do begin632 if Application.Components[I] is TForm then633 with Application.Components[I] as TForm do634 if Assigned(HostDockSite) then635 begin636 NewNode := OwnerDocument.CreateElement('Form');637 638 if HostDockSite.Parent is TForm then begin639 NewNode2 := OwnerDocument.CreateElement('ParentFormName');640 NewNode2.TextContent := UTF8Decode(HostDockSite.Parent.Name);641 NewNode.AppendChild(NewNode2);642 643 NewNode2 := OwnerDocument.CreateElement('ParentFormClassName');644 NewNode2.TextContent := UTF8Decode(HostDockSite.Parent.ClassName);645 NewNode.AppendChild(NewNode2);646 end;647 648 NewNode2 := OwnerDocument.CreateElement('Name');649 NewNode2.TextContent := UTF8Decode(Name);650 NewNode.AppendChild(NewNode2);651 652 NewNode2 := OwnerDocument.CreateElement('Caption');653 NewNode2.TextContent := UTF8Decode(Caption);654 NewNode.AppendChild(NewNode2);655 656 NewNode2 := OwnerDocument.CreateElement('Width');657 NewNode2.TextContent := IntToStr(Width);658 NewNode.AppendChild(NewNode2);659 660 NewNode2 := OwnerDocument.CreateElement('Height');661 NewNode2.TextContent := IntToStr(Height);662 NewNode.AppendChild(NewNode2);663 664 NewNode2 := OwnerDocument.CreateElement('UndockWidth');665 NewNode2.TextContent := IntToStr(UndockWidth);666 NewNode.AppendChild(NewNode2);667 668 NewNode2 := OwnerDocument.CreateElement('UndockHeight');669 NewNode2.TextContent := IntToStr(UndockHeight);670 NewNode.AppendChild(NewNode2);671 672 NewNode2 := OwnerDocument.CreateElement('FormState');673 NewNode2.TextContent := IntToStr(Integer(FormState));674 NewNode.AppendChild(NewNode2);675 676 NewNode2 := OwnerDocument.CreateElement('Visible');677 NewNode2.TextContent := IntToStr(Integer(Visible));678 NewNode.AppendChild(NewNode2);679 680 AppendChild(NewNode);681 end;682 end;683 end;684 WriteXMLFile(Doc, Stream);685 finally686 Free;687 end;688 end;689 690 procedure TCoolDockMaster.LoadLayoutFromStream(Stream: TStream);691 begin692 693 end;694 695 procedure TCoolDockMaster.SaveLayoutToFile(FileName: string);696 var697 LayoutFile: TFileStream;698 begin699 try700 if FileExistsUTF8(FileName) then701 LayoutFile := TFileStream.Create(FileName, fmOpenReadWrite)702 else LayoutFile := TFileStream.Create(FileName, fmCreate);703 SaveLayoutToStream(LayoutFile);704 finally705 LayoutFile.Free;706 end;707 end;708 709 procedure TCoolDockMaster.LoadLayoutFromFile(FileName: string);710 var711 LayoutFile: TFileStream;712 begin713 LayoutFile := TFileStream.Create(FileName, fmOpenRead);714 try715 LoadLayoutFromStream(LayoutFile);716 finally717 Free;718 end;719 618 end; 720 619
Note:
See TracChangeset
for help on using the changeset viewer.