- Timestamp:
- Mar 9, 2011, 10:56:47 AM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE/IDE.lpi
r180 r181 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count=" 35">49 <Units Count="42"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> 52 52 <IsPartOfProject Value="True"/> 53 53 <UnitName Value="IDE"/> 54 <UsageCount Value=" 34"/>54 <UsageCount Value="76"/> 55 55 </Unit0> 56 56 <Unit1> … … 60 60 <ResourceBaseClass Value="Form"/> 61 61 <UnitName Value="UMainForm"/> 62 <EditorIndex Value="0"/> 63 <WindowIndex Value="0"/> 64 <TopLine Value="187"/> 65 <CursorPos X="44" Y="198"/> 66 <UsageCount Value="34"/> 67 <Loaded Value="True"/> 68 <LoadedDesigner Value="True"/> 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"/> 69 68 </Unit1> 70 69 <Unit2> … … 74 73 <ResourceBaseClass Value="Form"/> 75 74 <UnitName Value="UObjectInspectorForm"/> 76 <EditorIndex Value="15"/>77 75 <WindowIndex Value="0"/> 78 76 <TopLine Value="1"/> 79 77 <CursorPos X="12" Y="16"/> 80 <UsageCount Value="34"/> 81 <Loaded Value="True"/> 78 <UsageCount Value="76"/> 82 79 </Unit2> 83 80 <Unit3> … … 87 84 <ResourceBaseClass Value="Form"/> 88 85 <UnitName Value="UStructureForm"/> 89 <EditorIndex Value="18"/>90 86 <WindowIndex Value="0"/> 91 87 <TopLine Value="1"/> 92 88 <CursorPos X="3" Y="16"/> 93 <UsageCount Value="34"/> 94 <Loaded Value="True"/> 89 <UsageCount Value="76"/> 95 90 </Unit3> 96 91 <Unit4> … … 100 95 <ResourceBaseClass Value="Form"/> 101 96 <UnitName Value="UToolPaletteForm"/> 102 <EditorIndex Value="19"/>103 97 <WindowIndex Value="0"/> 104 98 <TopLine Value="1"/> 105 99 <CursorPos X="15" Y="10"/> 106 <UsageCount Value="34"/> 107 <Loaded Value="True"/> 100 <UsageCount Value="76"/> 108 101 </Unit4> 109 102 <Unit5> 110 103 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 111 <EditorIndex Value="20"/> 112 <WindowIndex Value="0"/> 113 <TopLine Value="3176"/> 114 <CursorPos X="35" Y="3188"/> 115 <UsageCount Value="17"/> 116 <Loaded Value="True"/> 104 <WindowIndex Value="0"/> 105 <TopLine Value="1070"/> 106 <CursorPos X="1" Y="1083"/> 107 <UsageCount Value="37"/> 117 108 </Unit5> 118 109 <Unit6> … … 122 113 <ResourceBaseClass Value="Form"/> 123 114 <UnitName Value="UProjectManagerForm"/> 124 <EditorIndex Value="17"/>125 115 <WindowIndex Value="0"/> 126 116 <TopLine Value="1"/> 127 117 <CursorPos X="20" Y="16"/> 128 <UsageCount Value="34"/> 129 <Loaded Value="True"/> 118 <UsageCount Value="76"/> 130 119 </Unit6> 131 120 <Unit7> 132 121 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customform.inc"/> 133 <EditorIndex Value=" 22"/>134 <WindowIndex Value="0"/> 135 <TopLine Value=" 1870"/>136 <CursorPos X="1" Y=" 1883"/>137 <UsageCount Value=" 17"/>122 <EditorIndex Value="12"/> 123 <WindowIndex Value="0"/> 124 <TopLine Value="2822"/> 125 <CursorPos X="1" Y="2835"/> 126 <UsageCount Value="38"/> 138 127 <Loaded Value="True"/> 139 128 </Unit7> … … 144 133 <ResourceBaseClass Value="Form"/> 145 134 <UnitName Value="UMessagesForm"/> 146 <EditorIndex Value="16"/>147 135 <WindowIndex Value="0"/> 148 136 <TopLine Value="1"/> 149 137 <CursorPos X="7" Y="16"/> 150 <UsageCount Value="34"/> 151 <Loaded Value="True"/> 138 <UsageCount Value="76"/> 152 139 </Unit8> 153 140 <Unit9> … … 157 144 <ResourceBaseClass Value="Form"/> 158 145 <UnitName Value="UCallStackForm"/> 159 <EditorIndex Value="14"/>160 146 <WindowIndex Value="0"/> 161 147 <TopLine Value="1"/> 162 148 <CursorPos X="12" Y="15"/> 163 <UsageCount Value="34"/> 164 <Loaded Value="True"/> 149 <UsageCount Value="76"/> 165 150 </Unit9> 166 151 <Unit10> … … 170 155 <ResourceBaseClass Value="Form"/> 171 156 <UnitName Value="ULocalVariablesForm"/> 172 <EditorIndex Value="13"/>173 157 <WindowIndex Value="0"/> 174 158 <TopLine Value="1"/> 175 159 <CursorPos X="21" Y="4"/> 176 <UsageCount Value="34"/> 177 <Loaded Value="True"/> 160 <UsageCount Value="76"/> 178 161 </Unit10> 179 162 <Unit11> … … 183 166 <ResourceBaseClass Value="Form"/> 184 167 <UnitName Value="UToDoListForm"/> 185 <EditorIndex Value="12"/>186 168 <WindowIndex Value="0"/> 187 169 <TopLine Value="1"/> 188 170 <CursorPos X="12" Y="16"/> 189 <UsageCount Value="34"/> 190 <Loaded Value="True"/> 171 <UsageCount Value="76"/> 191 172 </Unit11> 192 173 <Unit12> … … 196 177 <ResourceBaseClass Value="Form"/> 197 178 <UnitName Value="UWatchListForm"/> 198 <EditorIndex Value="11"/>199 179 <WindowIndex Value="0"/> 200 180 <TopLine Value="1"/> 201 181 <CursorPos X="12" Y="17"/> 202 <UsageCount Value="34"/> 203 <Loaded Value="True"/> 182 <UsageCount Value="76"/> 204 183 </Unit12> 205 184 <Unit13> … … 209 188 <ResourceBaseClass Value="Form"/> 210 189 <UnitName Value="UThreadStatusForm"/> 211 <EditorIndex Value="10"/>212 190 <WindowIndex Value="0"/> 213 191 <TopLine Value="1"/> 214 192 <CursorPos X="12" Y="16"/> 215 <UsageCount Value="34"/> 216 <Loaded Value="True"/> 193 <UsageCount Value="76"/> 217 194 </Unit13> 218 195 <Unit14> … … 222 199 <ResourceBaseClass Value="Form"/> 223 200 <UnitName Value="USourceEditorForm"/> 224 <EditorIndex Value="2"/>225 201 <WindowIndex Value="0"/> 226 202 <TopLine Value="1"/> 227 203 <CursorPos X="41" Y="17"/> 228 <UsageCount Value="32"/> 229 <Loaded Value="True"/> 204 <UsageCount Value="74"/> 230 205 </Unit14> 231 206 <Unit15> 232 207 <Filename Value="..\..\UCoolDocking.pas"/> 233 208 <UnitName Value="UCoolDocking"/> 234 <EditorIndex Value=" 3"/>235 <WindowIndex Value="0"/> 236 <TopLine Value=" 798"/>237 <CursorPos X=" 1" Y="807"/>238 <UsageCount Value=" 15"/>209 <EditorIndex Value="0"/> 210 <WindowIndex Value="0"/> 211 <TopLine Value="1"/> 212 <CursorPos X="50" Y="179"/> 213 <UsageCount Value="36"/> 239 214 <Loaded Value="True"/> 240 215 </Unit15> … … 243 218 <UnitName Value="UCoolDockLayout"/> 244 219 <IsVisibleTab Value="True"/> 245 <EditorIndex Value=" 5"/>246 <WindowIndex Value="0"/> 247 <TopLine Value=" 166"/>248 <CursorPos X=" 21" Y="182"/>249 <UsageCount Value=" 15"/>220 <EditorIndex Value="6"/> 221 <WindowIndex Value="0"/> 222 <TopLine Value="376"/> 223 <CursorPos X="1" Y="383"/> 224 <UsageCount Value="36"/> 250 225 <Loaded Value="True"/> 251 226 </Unit16> 252 227 <Unit17> 253 228 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 254 <WindowIndex Value="0"/> 255 <TopLine Value="1643"/> 256 <CursorPos X="42" Y="1651"/> 257 <UsageCount Value="14"/> 229 <EditorIndex Value="11"/> 230 <WindowIndex Value="0"/> 231 <TopLine Value="1638"/> 232 <CursorPos X="17" Y="1651"/> 233 <UsageCount Value="12"/> 234 <Loaded Value="True"/> 258 235 </Unit17> 259 236 <Unit18> … … 263 240 <TopLine Value="70"/> 264 241 <CursorPos X="21" Y="83"/> 265 <UsageCount Value="1 4"/>242 <UsageCount Value="10"/> 266 243 </Unit18> 267 244 <Unit19> … … 270 247 <TopLine Value="220"/> 271 248 <CursorPos X="16" Y="233"/> 272 <UsageCount Value="1 4"/>249 <UsageCount Value="10"/> 273 250 </Unit19> 274 251 <Unit20> 275 252 <Filename Value="..\..\URectangle.pas"/> 276 253 <UnitName Value="URectangle"/> 277 <EditorIndex Value="9"/> 278 <WindowIndex Value="0"/> 279 <TopLine Value="20"/> 280 <CursorPos X="52" Y="33"/> 281 <UsageCount Value="15"/> 282 <Loaded Value="True"/> 254 <WindowIndex Value="0"/> 255 <TopLine Value="90"/> 256 <CursorPos X="61" Y="104"/> 257 <UsageCount Value="31"/> 283 258 </Unit20> 284 259 <Unit21> … … 288 263 <TopLine Value="34"/> 289 264 <CursorPos X="11" Y="47"/> 290 <UsageCount Value="1 4"/>265 <UsageCount Value="10"/> 291 266 </Unit21> 292 267 <Unit22> … … 299 274 <TopLine Value="25"/> 300 275 <CursorPos X="7" Y="48"/> 301 <UsageCount Value=" 12"/>276 <UsageCount Value="8"/> 302 277 </Unit22> 303 278 <Unit23> 304 279 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\forms.pp"/> 305 280 <UnitName Value="Forms"/> 306 <WindowIndex Value="0"/> 307 <TopLine Value="362"/> 308 <CursorPos X="3" Y="378"/> 309 <UsageCount Value="11"/> 281 <EditorIndex Value="8"/> 282 <WindowIndex Value="0"/> 283 <TopLine Value="776"/> 284 <CursorPos X="3" Y="789"/> 285 <UsageCount Value="13"/> 286 <Loaded Value="True"/> 310 287 </Unit23> 311 288 <Unit24> … … 315 292 <TopLine Value="835"/> 316 293 <CursorPos X="3" Y="837"/> 317 <UsageCount Value=" 11"/>294 <UsageCount Value="7"/> 318 295 </Unit24> 319 296 <Unit25> 320 297 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customcombobox.inc"/> 321 <EditorIndex Value="1"/>322 298 <WindowIndex Value="0"/> 323 299 <TopLine Value="913"/> 324 300 <CursorPos X="1" Y="930"/> 325 <UsageCount Value="12"/> 326 <Loaded Value="True"/> 301 <UsageCount Value="29"/> 327 302 </Unit25> 328 303 <Unit26> … … 331 306 <TopLine Value="91"/> 332 307 <CursorPos X="1" Y="104"/> 333 <UsageCount Value=" 10"/>308 <UsageCount Value="6"/> 334 309 </Unit26> 335 310 <Unit27> … … 338 313 <TopLine Value="239"/> 339 314 <CursorPos X="1" Y="252"/> 340 <UsageCount Value=" 10"/>315 <UsageCount Value="6"/> 341 316 </Unit27> 342 317 <Unit28> 343 318 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 344 319 <UnitName Value="Controls"/> 345 <WindowIndex Value="0"/> 346 <TopLine Value="1423"/> 347 <CursorPos X="44" Y="1431"/> 348 <UsageCount Value="10"/> 320 <EditorIndex Value="9"/> 321 <WindowIndex Value="0"/> 322 <TopLine Value="2000"/> 323 <CursorPos X="22" Y="2013"/> 324 <UsageCount Value="13"/> 325 <Loaded Value="True"/> 349 326 </Unit28> 350 327 <Unit29> 351 328 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 352 329 <WindowIndex Value="0"/> 353 <TopLine Value=" 7811"/>354 <CursorPos X=" 20" Y="7829"/>355 <UsageCount Value="1 0"/>330 <TopLine Value="6327"/> 331 <CursorPos X="18" Y="6332"/> 332 <UsageCount Value="11"/> 356 333 </Unit29> 357 334 <Unit30> 358 335 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\toolbutton.inc"/> 359 <EditorIndex Value="21"/>360 336 <WindowIndex Value="0"/> 361 337 <TopLine Value="751"/> 362 338 <CursorPos X="1" Y="764"/> 363 <UsageCount Value="10"/> 364 <Loaded Value="True"/> 339 <UsageCount Value="30"/> 365 340 </Unit30> 366 341 <Unit31> … … 370 345 <ResourceBaseClass Value="Form"/> 371 346 <UnitName Value="UCoolDockCustomize"/> 372 <EditorIndex Value="7"/> 373 <WindowIndex Value="0"/> 374 <TopLine Value="72"/> 375 <CursorPos X="1" Y="81"/> 376 <UsageCount Value="10"/> 377 <Loaded Value="True"/> 378 <LoadedDesigner Value="True"/> 347 <EditorIndex Value="4"/> 348 <WindowIndex Value="0"/> 349 <TopLine Value="36"/> 350 <CursorPos X="3" Y="49"/> 351 <UsageCount Value="31"/> 352 <Loaded Value="True"/> 379 353 </Unit31> 380 354 <Unit32> 381 355 <Filename Value="..\..\UCoolDockCommon.pas"/> 382 356 <UnitName Value="UCoolDockCommon"/> 383 <EditorIndex Value=" 6"/>384 <WindowIndex Value="0"/> 385 <TopLine Value="1"/> 386 <CursorPos X="1 " Y="12"/>387 <UsageCount Value=" 10"/>357 <EditorIndex Value="7"/> 358 <WindowIndex Value="0"/> 359 <TopLine Value="1"/> 360 <CursorPos X="14" Y="33"/> 361 <UsageCount Value="28"/> 388 362 <Loaded Value="True"/> 389 363 </Unit32> … … 391 365 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 392 366 <UnitName Value="UCoolDockPopupMenu"/> 393 <EditorIndex Value=" 4"/>394 <WindowIndex Value="0"/> 395 <TopLine Value=" 1"/>396 <CursorPos X=" 38" Y="9"/>397 <UsageCount Value=" 10"/>367 <EditorIndex Value="3"/> 368 <WindowIndex Value="0"/> 369 <TopLine Value="29"/> 370 <CursorPos X="55" Y="37"/> 371 <UsageCount Value="30"/> 398 372 <Loaded Value="True"/> 399 373 </Unit33> … … 401 375 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\dialogs.pp"/> 402 376 <UnitName Value="Dialogs"/> 403 <EditorIndex Value="8"/>404 377 <WindowIndex Value="0"/> 405 378 <TopLine Value="503"/> 406 379 <CursorPos X="10" Y="516"/> 380 <UsageCount Value="26"/> 381 </Unit34> 382 <Unit35> 383 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\compon.inc"/> 384 <WindowIndex Value="0"/> 385 <TopLine Value="539"/> 386 <CursorPos X="3" Y="544"/> 387 <UsageCount Value="9"/> 388 </Unit35> 389 <Unit36> 390 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\scrollingwincontrol.inc"/> 391 <WindowIndex Value="0"/> 392 <TopLine Value="224"/> 393 <CursorPos X="29" Y="238"/> 394 <UsageCount Value="12"/> 395 </Unit36> 396 <Unit37> 397 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classes.inc"/> 398 <WindowIndex Value="0"/> 399 <TopLine Value="7"/> 400 <CursorPos X="3" Y="20"/> 401 <UsageCount Value="11"/> 402 </Unit37> 403 <Unit38> 404 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\cregist.inc"/> 405 <WindowIndex Value="0"/> 406 <TopLine Value="79"/> 407 <CursorPos X="14" Y="82"/> 407 408 <UsageCount Value="10"/> 408 <Loaded Value="True"/> 409 </Unit34> 409 </Unit38> 410 <Unit39> 411 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\lclclasses.pp"/> 412 <UnitName Value="LCLClasses"/> 413 <EditorIndex Value="10"/> 414 <WindowIndex Value="0"/> 415 <TopLine Value="32"/> 416 <CursorPos X="20" Y="45"/> 417 <UsageCount Value="11"/> 418 <Loaded Value="True"/> 419 </Unit39> 420 <Unit40> 421 <Filename Value="..\..\UCoolDockStyle.pas"/> 422 <UnitName Value="UCoolDockStyle"/> 423 <EditorIndex Value="2"/> 424 <WindowIndex Value="0"/> 425 <TopLine Value="1"/> 426 <CursorPos X="1" Y="1"/> 427 <UsageCount Value="10"/> 428 <Loaded Value="True"/> 429 </Unit40> 430 <Unit41> 431 <Filename Value="..\..\UCoolDockClientPanel.pas"/> 432 <UnitName Value="UCoolDockClientPanel"/> 433 <EditorIndex Value="1"/> 434 <WindowIndex Value="0"/> 435 <TopLine Value="1"/> 436 <CursorPos X="6" Y="1"/> 437 <UsageCount Value="10"/> 438 <Loaded Value="True"/> 439 </Unit41> 410 440 </Units> 411 441 <JumpHistory Count="30" HistoryIndex="29"> 412 442 <Position1> 413 <Filename Value="..\..\UCoolDock PopupMenu.pas"/>414 <Caret Line=" 1" Column="1" TopLine="1"/>443 <Filename Value="..\..\UCoolDockLayout.pas"/> 444 <Caret Line="390" Column="27" TopLine="377"/> 415 445 </Position1> 416 446 <Position2> 417 <Filename Value="..\..\UCoolDock ing.pas"/>418 <Caret Line=" 804" Column="16" TopLine="798"/>447 <Filename Value="..\..\UCoolDockLayout.pas"/> 448 <Caret Line="382" Column="1" TopLine="377"/> 419 449 </Position2> 420 450 <Position3> 421 <Filename Value="..\..\UCoolDock Customize.pas"/>422 <Caret Line=" 17" Column="7" TopLine="4"/>451 <Filename Value="..\..\UCoolDockLayout.pas"/> 452 <Caret Line="383" Column="1" TopLine="377"/> 423 453 </Position3> 424 454 <Position4> 425 <Filename Value="..\..\UCoolDock Customize.pas"/>426 <Caret Line=" 18" Column="16" TopLine="4"/>455 <Filename Value="..\..\UCoolDockLayout.pas"/> 456 <Caret Line="391" Column="1" TopLine="377"/> 427 457 </Position4> 428 458 <Position5> 429 <Filename Value="..\..\UCoolDock Customize.pas"/>430 <Caret Line=" 61" Column="51" TopLine="37"/>459 <Filename Value="..\..\UCoolDockLayout.pas"/> 460 <Caret Line="392" Column="1" TopLine="377"/> 431 461 </Position5> 432 462 <Position6> 433 <Filename Value="..\..\UCoolDock Customize.pas"/>434 <Caret Line=" 57" Column="66" TopLine="45"/>463 <Filename Value="..\..\UCoolDockLayout.pas"/> 464 <Caret Line="398" Column="1" TopLine="377"/> 435 465 </Position6> 436 466 <Position7> 437 <Filename Value="..\..\UCoolDock Customize.pas"/>438 <Caret Line=" 65" Column="42" TopLine="52"/>467 <Filename Value="..\..\UCoolDockLayout.pas"/> 468 <Caret Line="399" Column="1" TopLine="378"/> 439 469 </Position7> 440 470 <Position8> 441 <Filename Value="..\..\UCoolDock Customize.pas"/>442 <Caret Line=" 76" Column="57" TopLine="55"/>471 <Filename Value="..\..\UCoolDockLayout.pas"/> 472 <Caret Line="382" Column="1" TopLine="377"/> 443 473 </Position8> 444 474 <Position9> 445 <Filename Value=" E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/>446 <Caret Line="3 185" Column="33" TopLine="3176"/>475 <Filename Value="..\..\UCoolDockLayout.pas"/> 476 <Caret Line="383" Column="1" TopLine="377"/> 447 477 </Position9> 448 478 <Position10> 449 <Filename Value=" UMainForm.pas"/>450 <Caret Line=" 2" Column="44" TopLine="1"/>479 <Filename Value="..\..\UCoolDockLayout.pas"/> 480 <Caret Line="384" Column="1" TopLine="377"/> 451 481 </Position10> 452 482 <Position11> 453 <Filename Value="..\..\UCoolDock ing.pas"/>454 <Caret Line=" 800" Column="3" TopLine="798"/>483 <Filename Value="..\..\UCoolDockLayout.pas"/> 484 <Caret Line="391" Column="77" TopLine="377"/> 455 485 </Position11> 456 486 <Position12> 457 <Filename Value="..\..\UCoolDock ing.pas"/>458 <Caret Line=" 805" Column="1" TopLine="798"/>487 <Filename Value="..\..\UCoolDockLayout.pas"/> 488 <Caret Line="382" Column="1" TopLine="377"/> 459 489 </Position12> 460 490 <Position13> 461 <Filename Value="..\..\UCoolDock Customize.pas"/>462 <Caret Line=" 57" Column="82" TopLine="56"/>491 <Filename Value="..\..\UCoolDockLayout.pas"/> 492 <Caret Line="391" Column="1" TopLine="377"/> 463 493 </Position13> 464 494 <Position14> 465 <Filename Value="..\..\UCoolDock Customize.pas"/>466 <Caret Line=" 74" Column="14" TopLine="70"/>495 <Filename Value="..\..\UCoolDockLayout.pas"/> 496 <Caret Line="392" Column="1" TopLine="377"/> 467 497 </Position14> 468 498 <Position15> 469 <Filename Value="..\..\UCoolDock Customize.pas"/>470 <Caret Line=" 52" Column="37" TopLine="27"/>499 <Filename Value="..\..\UCoolDockLayout.pas"/> 500 <Caret Line="366" Column="1" TopLine="353"/> 471 501 </Position15> 472 502 <Position16> 473 <Filename Value="..\..\UCoolDock Customize.pas"/>474 <Caret Line=" 76" Column="1" TopLine="70"/>503 <Filename Value="..\..\UCoolDockLayout.pas"/> 504 <Caret Line="367" Column="1" TopLine="353"/> 475 505 </Position16> 476 506 <Position17> 477 <Filename Value="..\..\UCoolDock Customize.pas"/>478 <Caret Line=" 93" Column="2" TopLine="88"/>507 <Filename Value="..\..\UCoolDockLayout.pas"/> 508 <Caret Line="372" Column="1" TopLine="359"/> 479 509 </Position17> 480 510 <Position18> 481 <Filename Value="..\..\UCoolDock Customize.pas"/>482 <Caret Line=" 51" Column="1" TopLine="31"/>511 <Filename Value="..\..\UCoolDockLayout.pas"/> 512 <Caret Line="374" Column="1" TopLine="359"/> 483 513 </Position18> 484 514 <Position19> 485 <Filename Value="..\..\UCoolDock Customize.pas"/>486 <Caret Line=" 79" Column="30" TopLine="66"/>515 <Filename Value="..\..\UCoolDockLayout.pas"/> 516 <Caret Line="376" Column="1" TopLine="362"/> 487 517 </Position19> 488 518 <Position20> 489 <Filename Value=" UMainForm.pas"/>490 <Caret Line=" 2" Column="54" TopLine="1"/>519 <Filename Value="..\..\UCoolDockLayout.pas"/> 520 <Caret Line="377" Column="1" TopLine="362"/> 491 521 </Position20> 492 522 <Position21> 493 <Filename Value="..\..\UCoolDock Customize.pas"/>494 <Caret Line=" 71" Column="3" TopLine="66"/>523 <Filename Value="..\..\UCoolDockLayout.pas"/> 524 <Caret Line="378" Column="1" TopLine="362"/> 495 525 </Position21> 496 526 <Position22> 497 <Filename Value="..\..\UCoolDock Customize.pas"/>498 <Caret Line=" 81" Column="24" TopLine="74"/>527 <Filename Value="..\..\UCoolDockLayout.pas"/> 528 <Caret Line="376" Column="21" TopLine="374"/> 499 529 </Position22> 500 530 <Position23> 501 <Filename Value="..\..\UCoolDock Customize.pas"/>502 <Caret Line=" 44" Column="27" TopLine="31"/>531 <Filename Value="..\..\UCoolDockLayout.pas"/> 532 <Caret Line="383" Column="1" TopLine="374"/> 503 533 </Position23> 504 534 <Position24> 505 535 <Filename Value="..\..\UCoolDockLayout.pas"/> 506 <Caret Line=" 54" Column="55" TopLine="41"/>536 <Caret Line="392" Column="1" TopLine="374"/> 507 537 </Position24> 508 538 <Position25> 509 539 <Filename Value="..\..\UCoolDockLayout.pas"/> 510 <Caret Line=" 178" Column="14" TopLine="176"/>540 <Caret Line="400" Column="1" TopLine="387"/> 511 541 </Position25> 512 542 <Position26> 513 <Filename Value="..\..\UCoolDock Customize.pas"/>514 <Caret Line=" 44" Column="27" TopLine="72"/>543 <Filename Value="..\..\UCoolDockLayout.pas"/> 544 <Caret Line="383" Column="1" TopLine="370"/> 515 545 </Position26> 516 546 <Position27> 517 <Filename Value="..\..\UCoolDock Customize.pas"/>518 <Caret Line=" 81" Column="1" TopLine="72"/>547 <Filename Value="..\..\UCoolDockLayout.pas"/> 548 <Caret Line="384" Column="1" TopLine="370"/> 519 549 </Position27> 520 550 <Position28> 521 551 <Filename Value="..\..\UCoolDockLayout.pas"/> 522 <Caret Line=" 179" Column="1" TopLine="166"/>552 <Caret Line="399" Column="1" TopLine="386"/> 523 553 </Position28> 524 554 <Position29> 525 555 <Filename Value="..\..\UCoolDockLayout.pas"/> 526 <Caret Line=" 180" Column="1" TopLine="166"/>556 <Caret Line="400" Column="1" TopLine="386"/> 527 557 </Position29> 528 558 <Position30> 529 559 <Filename Value="..\..\UCoolDockLayout.pas"/> 530 <Caret Line=" 181" Column="1" TopLine="166"/>560 <Caret Line="402" Column="1" TopLine="386"/> 531 561 </Position30> 532 562 </JumpHistory> … … 554 584 </CompilerOptions> 555 585 <Debugging> 556 <BreakPoints Count="1">557 <Item1>558 <Source Value="..\..\UCoolDockCustomize.pas"/>559 <Line Value="81"/>560 </Item1>561 </BreakPoints>562 586 <Exceptions Count="3"> 563 587 <Item1> -
Docking/CoolDocking/Demo/IDE/UMainForm.lfm
r180 r181 4 4 Top = 130 5 5 Width = 626 6 Caption = 'CoolDocking IDE'6 Caption = 'CoolDocking Demo IDE' 7 7 ClientHeight = 426 8 8 ClientWidth = 626 -
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r180 r181 10 10 UToolPaletteForm, UObjectInspectorForm, UProjectManagerForm, UStructureForm, 11 11 UMessagesForm, UCallStackForm, ULocalVariablesForm, UToDoListForm, 12 UWatchListForm, UThreadStatusForm, USourceEditorForm, UCoolDockWindowList; 12 UWatchListForm, UThreadStatusForm, USourceEditorForm, UCoolDockWindowList, 13 UCoolDockCustomize; 13 14 14 15 const -
Docking/CoolDocking/UCoolDockCommon.pas
r180 r181 6 6 7 7 uses 8 Classes, SysUtils ;8 Classes, SysUtils, Forms; 9 9 10 10 type 11 11 TDockStyle = (dsList, dsTabs, dsPopupTabs, dsPopupList); 12 12 13 TCoolDockMasterBase = class; 14 15 16 TCoolDockConjoinFormBase = class(TForm) 17 constructor Create(TheOwner: TComponent); override; 18 end; 19 20 TCoolDockCustomizeBase = class(TComponent) 21 private 22 FMaster: TCoolDockMasterBase; 23 procedure SetMaster(const AValue: TCoolDockMasterBase); 24 published 25 property Master: TCoolDockMasterBase read FMaster write SetMaster; 26 end; 27 28 TCoolDockMasterBase = class(TComponent) 29 private 30 FCoolDockCustomize: TCoolDockCustomizeBase; 31 procedure SetCustomize(const AValue: TCoolDockCustomizeBase); 32 published 33 property Customize: TCoolDockCustomizeBase read FCoolDockCustomize 34 write SetCustomize; 35 end; 13 36 14 37 implementation 15 38 39 { TCoolDockConjoinFormBase } 40 41 constructor TCoolDockConjoinFormBase.Create(TheOwner: TComponent); 42 begin 43 inherited Create(TheOwner); 44 end; 45 46 procedure TCoolDockCustomizeBase.SetMaster(const AValue: TCoolDockMasterBase); 47 var 48 OldMaster: TCoolDockMasterBase; 49 begin 50 if FMaster = AValue then Exit; 51 OldMaster := FMaster; 52 FMaster := AValue; 53 if Assigned(AValue) then begin 54 FMaster.Customize := Self; 55 end else begin 56 OldMaster.Customize := nil; 57 end; 58 end; 59 60 procedure TCoolDockMasterBase.SetCustomize(const AValue: TCoolDockCustomizeBase 61 ); 62 var 63 OldCustomize: TCoolDockCustomizeBase; 64 begin 65 if FCoolDockCustomize = AValue then Exit; 66 OldCustomize := FCoolDockCustomize; 67 FCoolDockCustomize := AValue; 68 if Assigned(AValue) then begin 69 FCoolDockCustomize.Master := Self; 70 end else begin 71 OldCustomize.Master := nil; 72 end; 73 end; 74 75 16 76 end. 17 77 -
Docking/CoolDocking/UCoolDockCustomize.pas
r180 r181 7 7 uses 8 8 Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, 9 ComCtrls, StdCtrls, Spin, UCoolDockLayout ;9 ComCtrls, StdCtrls, Spin, UCoolDockLayout, UCoolDockCommon; 10 10 11 11 type … … 45 45 end; 46 46 47 { TCoolDockCustomize } 48 49 TCoolDockCustomize = class(TCoolDockCustomizeBase) 50 private 51 FLayoutList: TCoolDockLayoutList; 52 Form: TCoolDockCustomizeForm; 53 procedure SetLayoutList(const AValue: TCoolDockLayoutList); 54 public 55 function Execute: Boolean; 56 constructor Create(AOwner: TComponent); override; 57 destructor Destroy; override; 58 published 59 property LayoutList: TCoolDockLayoutList read FLayoutList write SetLayoutList; 60 end; 61 62 47 63 implementation 64 65 uses 66 UCoolDocking, UCoolDockClientPanel; 48 67 49 68 resourcestring … … 115 134 end; 116 135 136 137 { TCoolDockCustomize } 138 139 procedure TCoolDockCustomize.SetLayoutList(const AValue: TCoolDockLayoutList); 140 begin 141 if FLayoutList=AValue then exit; 142 FLayoutList:=AValue; 143 end; 144 145 function TCoolDockCustomize.Execute: Boolean; 146 begin 147 Form := TCoolDockCustomizeForm.Create(Self); 148 if Assigned(Master) then begin 149 Form.SpinEdit1.Value := TCoolDockMaster(Master).DefaultMoveSpeed; 150 Form.ComboBox1.ItemIndex := Integer(TCoolDockMaster(Master).DefaultTabsPos); 151 Form.ComboBox2.ItemIndex := Integer(TCoolDockMaster(Master).DefaultHeaderPos); 152 Form.LayoutList := FLayoutList; 153 end; 154 Form.ShowModal; 155 if Assigned(Master) then begin 156 TCoolDockMaster(Master).DefaultMoveSpeed := Form.SpinEdit1.Value; 157 TCoolDockMaster(Master).DefaultTabsPos := THeaderPos(Form.ComboBox1.ItemIndex); 158 TCoolDockMaster(Master).DefaultHeaderPos := THeaderPos(Form.ComboBox2.ItemIndex); 159 end; 160 Form.Free; 161 Result := True; 162 end; 163 164 constructor TCoolDockCustomize.Create(AOwner: TComponent); 165 begin 166 inherited Create(AOwner); 167 end; 168 169 destructor TCoolDockCustomize.Destroy; 170 begin 171 Master := nil; 172 inherited Destroy; 173 end; 174 175 117 176 initialization 118 177 {$I UCoolDockCustomize.lrs} -
Docking/CoolDocking/UCoolDockLayout.pas
r180 r181 7 7 uses 8 8 Classes, SysUtils, FileUtil, Contnrs, URectangle, Forms, UCoolDockCommon, 9 DOM, XMLWrite, XMLRead ;9 DOM, XMLWrite, XMLRead, Controls; 10 10 11 11 type 12 TCoolDockLayout = class; 12 13 13 14 { TCoolDockLayoutItem } 14 15 15 16 TCoolDockLayoutItem = class 17 Parent: TCoolDockLayout; 16 18 Name: string; 19 StoredClassName: string; 17 20 ParentName: string; 21 HostDockSiteName: string; 18 22 Caption: string; 19 23 Visible: Boolean; … … 25 29 procedure SaveToNode(Node: TDOMNode); 26 30 procedure LoadFromNode(Node: TDOMNode); 31 procedure Store(Form: TWinControl); 32 procedure Restore(Form: TWinControl); 27 33 constructor Create; 28 34 destructor Destroy; override; … … 36 42 procedure SaveToNode(Node: TDOMNode); 37 43 procedure LoadFromNode(Node: TDOMNode); 44 function FindByName(Name: string): TCoolDockLayoutItem; 38 45 constructor Create; 39 46 destructor Destroy; override; … … 60 67 61 68 implementation 69 70 uses 71 UCoolDocking; 62 72 63 73 procedure Register; … … 180 190 I := 0; 181 191 while (I < Items.Count) and (TCoolDockLayout(Items[I]).Name <> Name) do Inc(I); 182 if I < Items.Count then Result := TCoolDockLayout(Items[I]) else Result := nil; 192 if I < Items.Count then Result := TCoolDockLayout(Items[I]) 193 else Result := nil; 183 194 end; 184 195 … … 196 207 NewNode.TextContent := UTF8Decode(ParentName); 197 208 AppendChild(NewNode); 209 NewNode := OwnerDocument.CreateElement('StoredClassName'); 210 NewNode.TextContent := UTF8Decode(StoredClassName); 211 AppendChild(NewNode); 212 NewNode := OwnerDocument.CreateElement('HostDockSiteName'); 213 NewNode.TextContent := UTF8Decode(HostDockSiteName); 214 AppendChild(NewNode); 198 215 NewNode := OwnerDocument.CreateElement('Caption'); 199 216 NewNode.TextContent := UTF8Decode(Caption); … … 252 269 if Assigned(NewNode) then 253 270 ParentName := UTF8Encode(NewNode.TextContent); 271 NewNode := FindNode('StoredClassName'); 272 if Assigned(NewNode) then 273 StoredClassName := UTF8Encode(NewNode.TextContent); 274 NewNode := FindNode('HostDockSiteName'); 275 if Assigned(NewNode) then 276 HostDockSiteName := UTF8Encode(NewNode.TextContent); 254 277 NewNode := FindNode('Caption'); 255 278 if Assigned(NewNode) then … … 294 317 if Assigned(NewNode) then 295 318 RestoredRect.Height := StrToInt(NewNode.TextContent); 319 end; 320 end; 321 322 procedure TCoolDockLayoutItem.Store(Form: TWinControl); 323 var 324 NewItem: TCoolDockLayoutItem; 325 begin 326 Name := Form.Name; 327 StoredClassName := Form.ClassName; 328 Caption := Form.Caption; 329 UndockSize.X := Form.UndockWidth; 330 UndockSize.Y := Form.UndockHeight; 331 Visible := Form.Visible; 332 Rect.Left := Form.Left; 333 Rect.Top := Form.Top; 334 Rect.Width := Form.Width; 335 Rect.Height := Form.Height; 336 if Form is TForm then begin 337 RestoredRect.Left := TForm(Form).RestoredLeft; 338 RestoredRect.Top := TForm(Form).RestoredTop; 339 RestoredRect.Width := TForm(Form).RestoredWidth; 340 RestoredRect.Height := TForm(Form).RestoredHeight; 341 WindowState := TForm(Form).WindowState; 342 end; 343 if Assigned(Form.Parent) then 344 ParentName := Form.Parent.Name 345 else ParentName := ''; 346 if Assigned(Form.HostDockSite) then begin 347 if Assigned(Form.HostDockSite.Parent) and (Form.HostDockSite.Parent is TForm) then 348 begin 349 HostDockSiteName := Form.HostDockSite.Parent.Name; 350 if not Assigned(Parent.FindByName(HostDockSiteName)) then begin 351 NewItem := TCoolDockLayoutItem.Create; 352 NewItem.Parent := Parent; 353 NewItem.Store(Form.HostDockSite.Parent); 354 Parent.Items.Add(NewItem); 355 end; 356 end; 357 end else HostDockSiteName := ''; 358 end; 359 360 procedure TCoolDockLayoutItem.Restore(Form: TWinControl); 361 var 362 ParentComponent: TComponent; 363 ParentLayoutItem: TCoolDockLayoutItem; 364 FormClass: TFormClass; 365 begin 366 if Form is TForm then 367 if WindowState = wsMaximized then begin 368 TForm(Form).SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 369 RestoredRect.Width, RestoredRect.Height); 370 TForm(Form).WindowState := WindowState; 371 end else begin 372 TForm(Form).WindowState := WindowState; 373 TForm(Form).SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 374 RestoredRect.Width, RestoredRect.Height); 375 end; 376 Form.Name := Name; 377 Form.Caption := Caption; 378 Form.SetBounds(Rect.Left, Rect.Top, Rect.Width, Rect.Height); 379 Form.UndockWidth := UndockSize.X; 380 Form.UndockHeight := UndockSize.Y; 381 Form.Visible := Visible; 382 if HostDockSiteName <> '' then begin 383 ParentComponent := FindGlobalComponent(HostDockSiteName); 384 if not Assigned(ParentComponent) then begin 385 ParentLayoutItem := Parent.FindByName(HostDockSiteName); 386 if Assigned(ParentLayoutItem) then begin 387 if ParentLayoutItem.StoredClassName <> '' then begin 388 //ParentComponent := TComponent(FindClass(ParentLayoutItem.StoredClassName).Create); 389 if (ParentLayoutItem.StoredClassName = 'TCoolDockConjoinForm') then begin 390 FormClass := TFormClass(FindClass('TCoolDockConjoinForm')); 391 if FormClass = TCoolDockConjoinForm then begin 392 ParentComponent := TCoolDockConjoinForm.Create(Application); 393 ParentLayoutItem.Restore(TWinControl(ParentComponent)); 394 end; 395 end; 396 end; 397 end; 398 end; 399 if Assigned(ParentComponent) and (ParentComponent is TCoolDockConjoinForm) then 400 Form.ManualDock(TCoolDockConjoinForm(ParentComponent).Panel); 296 401 end; 297 402 end; … … 349 454 while Assigned(Child) do begin 350 455 NewItem := TCoolDockLayoutItem.Create; 456 NewItem.Parent := Self; 351 457 NewItem.LoadFromNode(Child); 352 458 Items.Add(NewItem); … … 357 463 end; 358 464 465 function TCoolDockLayout.FindByName(Name: string): TCoolDockLayoutItem; 466 var 467 I: Integer; 468 begin 469 I := 0; 470 while (I < Items.Count) and (TCoolDockLayoutItem(Items[I]).Name <> Name) do Inc(I); 471 if I < Items.Count then Result := TCoolDockLayoutItem(Items[I]) 472 else Result := nil; 473 end; 474 359 475 constructor TCoolDockLayout.Create; 360 476 begin … … 379 495 Form := (Application.Components[I] as TForm); 380 496 NewItem := TCoolDockLayoutItem.Create; 381 NewItem.Name := Form.Name; 382 NewItem.Caption := Form.Caption; 383 NewItem.UndockSize.X := Form.UndockWidth; 384 NewItem.UndockSize.Y := Form.UndockHeight; 385 NewItem.Visible := Form.Visible; 386 NewItem.Rect.Left := Form.Left; 387 NewItem.Rect.Top := Form.Top; 388 NewItem.Rect.Width := Form.Width; 389 NewItem.Rect.Height := Form.Height; 390 NewItem.RestoredRect.Left := Form.RestoredLeft; 391 NewItem.RestoredRect.Top := Form.RestoredTop; 392 NewItem.RestoredRect.Width := Form.RestoredWidth; 393 NewItem.RestoredRect.Height := Form.RestoredHeight; 394 NewItem.WindowState := Form.WindowState; 497 NewItem.Parent := Self; 498 NewItem.Store(Form); 395 499 Items.Add(NewItem); 396 500 end; … … 405 509 with TCoolDockLayoutItem(Items[I]) do begin 406 510 Form := TForm(Application.FindComponent(Name)); 407 if WindowState = wsMaximized then begin 408 Form.SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 409 RestoredRect.Width, RestoredRect.Height); 410 Form.WindowState := WindowState; 411 end else begin 412 Form.WindowState := WindowState; 413 Form.SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 414 RestoredRect.Width, RestoredRect.Height); 415 end; 416 Form.Caption := Caption; 417 Form.SetBounds(Rect.Left, Rect.Top, Rect.Width, Rect.Height); 418 Form.UndockWidth := UndockSize.X; 419 Form.UndockHeight := UndockSize.Y; 420 Form.Visible := Visible; 511 if Assigned(Form) then Restore(Form); 421 512 end; 422 513 end; -
Docking/CoolDocking/UCoolDockPopupMenu.pas
r180 r181 35 35 36 36 uses 37 UCoolDocking, UCoolDockStyleTabs ;37 UCoolDocking, UCoolDockStyleTabs, UCoolDockCustomize; 38 38 39 39 resourcestring … … 245 245 if Assigned(Master) and 246 246 Assigned(Master.Customize) then 247 Master.Customize.Execute;247 TCoolDockCustomize(Master.Customize).Execute; 248 248 end; 249 249 -
Docking/CoolDocking/UCoolDocking.pas
r180 r181 13 13 DateUtils, UCoolDockStyleTabs, UCoolDockStyleRegions, UCoolDockStylePopupTabs, 14 14 UCoolDockStylePopupRegions, UCoolDockStyle, UCoolDockClientPanel, 15 UCoolDockPopupMenu , UCoolDockLayout;15 UCoolDockPopupMenu; 16 16 17 17 const … … 22 22 23 23 TCoolDockManager = class; 24 TCoolDockCustomize = class;25 24 TCoolDockClient = class; 26 25 TCoolDockMaster = class; … … 28 27 { TCoolDockConjoinForm } 29 28 30 TCoolDockConjoinForm = class(TForm) 29 TCoolDockConjoinForm = class(TCoolDockConjoinFormBase) 30 public 31 31 Panel: TPanel; 32 32 CoolDockClient: TCoolDockClient; … … 36 36 destructor Destroy; override; 37 37 private 38 procedure SetName(const NewName: TComponentName); override; 38 39 procedure PanelVisibleChange(Sender: TObject); 39 40 end; … … 107 108 { TCoolDockMaster } 108 109 109 TCoolDockMaster = class(TCo mponent)110 TCoolDockMaster = class(TCoolDockMasterBase) 110 111 private 111 FCoolDockCustomize: TCoolDockCustomize;112 112 FDefaultHeaderPos: THeaderPos; 113 113 FDefaultMoveSpeed: Integer; … … 117 117 FClients: TObjectList; 118 118 function GetClient(Index: Integer): TCoolDockClient; 119 procedure SetCustomize(const AValue: TCoolDockCustomize);120 119 procedure SetShowIcons(const AValue: Boolean); 121 120 procedure SetTabsEnabled(const AValue: Boolean); … … 138 137 property DefaultMoveSpeed: Integer read FDefaultMoveSpeed 139 138 write FDefaultMoveSpeed; 140 property Customize: TCoolDockCustomize read FCoolDockCustomize141 write SetCustomize;142 139 property ShowIcons: Boolean read FShowIcons 143 140 write SetShowIcons; … … 168 165 end; 169 166 170 { TCoolDockCustomize }171 172 TCoolDockCustomize = class(TComponent)173 private174 FLayoutList: TCoolDockLayoutList;175 FMaster: TCoolDockMaster;176 Form: TCoolDockCustomizeForm;177 procedure SetLayoutList(const AValue: TCoolDockLayoutList);178 procedure SetMaster(const AValue: TCoolDockMaster);179 public180 function Execute: Boolean;181 constructor Create(AOwner: TComponent); override;182 destructor Destroy; override;183 published184 property Master: TCoolDockMaster read FMaster write SetMaster;185 property LayoutList: TCoolDockLayoutList read FLayoutList write SetLayoutList;186 end;187 167 188 168 procedure Register; … … 198 178 RegisterComponents('CoolDocking', [TCoolDockClient]); 199 179 RegisterComponents('CoolDocking', [TCoolDockCustomize]); 180 end; 181 182 function GetUniqueName(BaseName: string): string; 183 var 184 I: Integer; 185 begin 186 I := 1; 187 while Assigned(FindGlobalComponent(BaseName + IntToStr(I))) do Inc(I); 188 Result := BaseName + IntToStr(I); 200 189 end; 201 190 … … 481 470 begin 482 471 NewConjoinDockForm := TCoolDockConjoinForm.Create(Application); 472 NewConjoinDockForm.Name := GetUniqueName('ConjoinForm'); 483 473 NewConjoinDockForm.Visible := True; 484 474 NewConjoinDockForm.BoundsRect := FDockSite.BoundsRect; … … 566 556 constructor TCoolDockConjoinForm.Create(TheOwner: TComponent); 567 557 begin 568 inherited Create (TheOwner);558 inherited CreateNew(TheOwner); 569 559 Panel := TPanel.Create(Self); 570 560 with Panel do begin 571 561 Parent := Self; 572 Name := Parent.Name + '_Panel';573 562 Caption := ''; 574 563 DockSite := True; … … 582 571 with CoolDockClient do begin 583 572 Panel := Self.Panel; 584 Name := Owner.Name + '_CoolDockClient';585 573 end; 586 574 OnShow := FormShow; … … 596 584 end; 597 585 586 procedure TCoolDockConjoinForm.SetName(const NewName: TComponentName); 587 begin 588 inherited SetName(NewName); 589 Panel.Name := Name + '_Panel'; 590 Panel.Caption := ''; 591 CoolDockClient.Name := Name + '_CoolDockClient'; 592 end; 593 598 594 procedure TCoolDockConjoinForm.PanelVisibleChange(Sender: TObject); 599 595 begin … … 607 603 if FTabsEnabled = AValue then Exit; 608 604 FTabsEnabled := AValue; 609 end;610 611 procedure TCoolDockMaster.SetCustomize(const AValue: TCoolDockCustomize612 );613 var614 OldCustomize: TCoolDockCustomize;615 begin616 if FCoolDockCustomize = AValue then Exit;617 OldCustomize := FCoolDockCustomize;618 FCoolDockCustomize := AValue;619 if Assigned(AValue) then begin620 FCoolDockCustomize.Master := Self;621 end else begin622 OldCustomize.Master := nil;623 end;624 605 end; 625 606 … … 773 754 end; 774 755 end; 775 776 { TCoolDockCustomize }777 778 procedure TCoolDockCustomize.SetMaster(const AValue: TCoolDockMaster);779 var780 OldMaster: TCoolDockMaster;781 begin782 if FMaster = AValue then Exit;783 OldMaster := FMaster;784 FMaster := AValue;785 if Assigned(AValue) then begin786 FMaster.Customize := Self;787 end else begin788 OldMaster.Customize := nil;789 end;790 end;791 792 procedure TCoolDockCustomize.SetLayoutList(const AValue: TCoolDockLayoutList);793 begin794 if FLayoutList=AValue then exit;795 FLayoutList:=AValue;796 end;797 798 function TCoolDockCustomize.Execute: Boolean;799 begin800 Form := TCoolDockCustomizeForm.Create(Self);801 if Assigned(Master) then begin802 Form.SpinEdit1.Value := Master.DefaultMoveSpeed;803 Form.ComboBox1.ItemIndex := Integer(Master.DefaultTabsPos);804 Form.ComboBox2.ItemIndex := Integer(Master.DefaultHeaderPos);805 Form.LayoutList := FLayoutList;806 end;807 Form.ShowModal;808 if Assigned(Master) then begin809 Master.DefaultMoveSpeed := Form.SpinEdit1.Value;810 Master.DefaultTabsPos := THeaderPos(Form.ComboBox1.ItemIndex);811 Master.DefaultHeaderPos := THeaderPos(Form.ComboBox2.ItemIndex);812 end;813 Form.Free;814 Result := True;815 end;816 817 constructor TCoolDockCustomize.Create(AOwner: TComponent);818 begin819 inherited Create(AOwner);820 end;821 822 destructor TCoolDockCustomize.Destroy;823 begin824 Master := nil;825 inherited Destroy;826 end;827 828 756 829 757 { TCoolDockClient } … … 916 844 end; 917 845 846 initialization 847 848 RegisterClass(TCoolDockConjoinForm); 849 850 finalization 851 852 UnRegisterClass(TCoolDockConjoinForm); 853 918 854 919 855 end.
Note:
See TracChangeset
for help on using the changeset viewer.