- Timestamp:
- Sep 21, 2010, 8:03:17 AM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 7 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/CoolDocking.lpk
r55 r56 22 22 </Other> 23 23 </CompilerOptions> 24 <Files Count=" 3">24 <Files Count="4"> 25 25 <Item1> 26 26 <Filename Value="UCoolDocking.pas"/> … … 36 36 <Type Value="Binary"/> 37 37 </Item3> 38 <Item4> 39 <Filename Value="UCoolDockWindowList.pas"/> 40 <UnitName Value="UCoolDockWindowList"/> 41 </Item4> 38 42 </Files> 39 43 <i18n> -
Docking/CoolDocking/CoolDocking.pas
r55 r56 8 8 9 9 uses 10 UCoolDocking, UCoolDockCustomize, LazarusPackageIntf;10 UCoolDocking, UCoolDockCustomize, UCoolDockWindowList, LazarusPackageIntf; 11 11 12 12 implementation -
Docking/CoolDocking/Demo/Demo.lpi
r55 r56 35 35 </Item2> 36 36 </RequiredPackages> 37 <Units Count=" 39">37 <Units Count="41"> 38 38 <Unit0> 39 39 <Filename Value="Demo.lpr"/> 40 40 <IsPartOfProject Value="True"/> 41 41 <UnitName Value="Demo"/> 42 <EditorIndex Value="1 0"/>42 <EditorIndex Value="13"/> 43 43 <WindowIndex Value="0"/> 44 44 <TopLine Value="1"/> 45 45 <CursorPos X="1" Y="18"/> 46 <UsageCount Value=" 41"/>46 <UsageCount Value="77"/> 47 47 <Loaded Value="True"/> 48 48 <DefaultSyntaxHighlighter Value="Delphi"/> … … 54 54 <ResourceBaseClass Value="Form"/> 55 55 <UnitName Value="UMainForm"/> 56 <IsVisibleTab Value="True"/>57 56 <EditorIndex Value="0"/> 58 57 <WindowIndex Value="0"/> 59 <TopLine Value=" 53"/>60 <CursorPos X=" 3" Y="73"/>61 <UsageCount Value=" 41"/>58 <TopLine Value="14"/> 59 <CursorPos X="15" Y="27"/> 60 <UsageCount Value="77"/> 62 61 <Loaded Value="True"/> 63 62 <LoadedDesigner Value="True"/> … … 67 66 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 68 67 <UnitName Value="Controls"/> 69 <EditorIndex Value=" 4"/>70 <WindowIndex Value="0"/> 71 <TopLine Value="1 689"/>72 <CursorPos X=" 15" Y="1702"/>73 <UsageCount Value=" 19"/>68 <EditorIndex Value="6"/> 69 <WindowIndex Value="0"/> 70 <TopLine Value="1891"/> 71 <CursorPos X="31" Y="1907"/> 72 <UsageCount Value="37"/> 74 73 <Loaded Value="True"/> 75 74 </Unit2> … … 80 79 <TopLine Value="98"/> 81 80 <CursorPos X="27" Y="110"/> 82 <UsageCount Value="2 4"/>81 <UsageCount Value="20"/> 83 82 <DefaultSyntaxHighlighter Value="Delphi"/> 84 83 </Unit3> 85 84 <Unit4> 86 85 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 87 <WindowIndex Value="0"/> 88 <TopLine Value="1041"/> 89 <CursorPos X="1" Y="1048"/> 90 <UsageCount Value="18"/> 86 <EditorIndex Value="7"/> 87 <WindowIndex Value="0"/> 88 <TopLine Value="1325"/> 89 <CursorPos X="20" Y="1335"/> 90 <UsageCount Value="35"/> 91 <Loaded Value="True"/> 91 92 </Unit4> 92 93 <Unit5> 93 94 <Filename Value="E:\Programy\Lazarus\lcl\include\wincontrol.inc"/> 94 <EditorIndex Value=" 5"/>95 <WindowIndex Value="0"/> 96 <TopLine Value=" 5966"/>97 <CursorPos X=" 14" Y="5976"/>98 <UsageCount Value=" 18"/>95 <EditorIndex Value="8"/> 96 <WindowIndex Value="0"/> 97 <TopLine Value="7669"/> 98 <CursorPos X="37" Y="7672"/> 99 <UsageCount Value="36"/> 99 100 <Loaded Value="True"/> 100 101 </Unit5> … … 105 106 <TopLine Value="28"/> 106 107 <CursorPos X="54" Y="32"/> 107 <UsageCount Value=" 11"/>108 <UsageCount Value="7"/> 108 109 </Unit6> 109 110 <Unit7> 110 111 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\classes\classesh.inc"/> 111 <EditorIndex Value="1 1"/>112 <EditorIndex Value="14"/> 112 113 <WindowIndex Value="0"/> 113 114 <TopLine Value="259"/> 114 115 <CursorPos X="14" Y="272"/> 115 <UsageCount Value=" 11"/>116 <UsageCount Value="29"/> 116 117 <Loaded Value="True"/> 117 118 </Unit7> … … 121 122 <TopLine Value="206"/> 122 123 <CursorPos X="8" Y="219"/> 123 <UsageCount Value=" 11"/>124 <UsageCount Value="7"/> 124 125 </Unit8> 125 126 <Unit9> … … 129 130 <TopLine Value="114"/> 130 131 <CursorPos X="3" Y="127"/> 131 <UsageCount Value=" 9"/>132 <UsageCount Value="5"/> 132 133 </Unit9> 133 134 <Unit10> 134 135 <Filename Value="E:\Programy\Lazarus\lcl\lclproc.pas"/> 135 136 <UnitName Value="LCLProc"/> 136 <EditorIndex Value=" 7"/>137 <WindowIndex Value="0"/> 138 <TopLine Value="1 92"/>139 <CursorPos X="1 1" Y="205"/>140 <UsageCount Value=" 10"/>137 <EditorIndex Value="10"/> 138 <WindowIndex Value="0"/> 139 <TopLine Value="1493"/> 140 <CursorPos X="18" Y="1498"/> 141 <UsageCount Value="28"/> 141 142 <Loaded Value="True"/> 142 143 </Unit10> … … 146 147 <TopLine Value="417"/> 147 148 <CursorPos X="60" Y="434"/> 148 <UsageCount Value=" 9"/>149 <UsageCount Value="5"/> 149 150 </Unit11> 150 151 <Unit12> … … 153 154 <TopLine Value="67"/> 154 155 <CursorPos X="10" Y="80"/> 155 <UsageCount Value=" 9"/>156 <UsageCount Value="5"/> 156 157 </Unit12> 157 158 <Unit13> … … 161 162 <TopLine Value="280"/> 162 163 <CursorPos X="3" Y="282"/> 163 <UsageCount Value=" 11"/>164 <UsageCount Value="7"/> 164 165 </Unit13> 165 166 <Unit14> … … 168 169 <TopLine Value="200"/> 169 170 <CursorPos X="3" Y="218"/> 170 <UsageCount Value=" 11"/>171 <UsageCount Value="7"/> 171 172 </Unit14> 172 173 <Unit15> … … 181 182 <TopLine Value="1"/> 182 183 <CursorPos X="47" Y="8"/> 183 <UsageCount Value=" 40"/>184 <UsageCount Value="76"/> 184 185 <Loaded Value="True"/> 185 186 <DefaultSyntaxHighlighter Value="Delphi"/> … … 191 192 <TopLine Value="675"/> 192 193 <CursorPos X="24" Y="688"/> 193 <UsageCount Value=" 11"/>194 <UsageCount Value="7"/> 194 195 </Unit16> 195 196 <Unit17> … … 199 200 <TopLine Value="1092"/> 200 201 <CursorPos X="9" Y="1098"/> 201 <UsageCount Value=" 10"/>202 <UsageCount Value="6"/> 202 203 </Unit17> 203 204 <Unit18> … … 207 208 <TopLine Value="4756"/> 208 209 <CursorPos X="5" Y="4763"/> 209 <UsageCount Value="1 9"/>210 <UsageCount Value="15"/> 210 211 <DefaultSyntaxHighlighter Value="Delphi"/> 211 212 </Unit18> … … 216 217 <TopLine Value="362"/> 217 218 <CursorPos X="21" Y="369"/> 218 <UsageCount Value=" 10"/>219 <UsageCount Value="6"/> 219 220 </Unit19> 220 221 <Unit20> … … 224 225 <TopLine Value="702"/> 225 226 <CursorPos X="10" Y="719"/> 226 <UsageCount Value=" 33"/>227 <UsageCount Value="29"/> 227 228 <DefaultSyntaxHighlighter Value="Delphi"/> 228 229 </Unit20> … … 230 231 <Filename Value="E:\Programy\Lazarus\lcl\extctrls.pp"/> 231 232 <UnitName Value="ExtCtrls"/> 232 <EditorIndex Value=" 3"/>233 <EditorIndex Value="5"/> 233 234 <WindowIndex Value="0"/> 234 235 <TopLine Value="1153"/> 235 236 <CursorPos X="32" Y="1160"/> 236 <UsageCount Value=" 11"/>237 <UsageCount Value="29"/> 237 238 <Loaded Value="True"/> 238 239 </Unit21> … … 243 244 <TopLine Value="479"/> 244 245 <CursorPos X="30" Y="488"/> 245 <UsageCount Value=" 9"/>246 <UsageCount Value="5"/> 246 247 </Unit22> 247 248 <Unit23> … … 250 251 <TopLine Value="538"/> 251 252 <CursorPos X="20" Y="567"/> 252 <UsageCount Value="1 4"/>253 <UsageCount Value="10"/> 253 254 </Unit23> 254 255 <Unit24> … … 257 258 <TopLine Value="359"/> 258 259 <CursorPos X="1" Y="372"/> 259 <UsageCount Value=" 9"/>260 <UsageCount Value="5"/> 260 261 </Unit24> 261 262 <Unit25> … … 265 266 <TopLine Value="267"/> 266 267 <CursorPos X="1" Y="269"/> 267 <UsageCount Value="1 6"/>268 <UsageCount Value="12"/> 268 269 </Unit25> 269 270 <Unit26> … … 273 274 <TopLine Value="551"/> 274 275 <CursorPos X="3" Y="558"/> 275 <UsageCount Value="1 6"/>276 <UsageCount Value="12"/> 276 277 </Unit26> 277 278 <Unit27> … … 281 282 <TopLine Value="693"/> 282 283 <CursorPos X="14" Y="700"/> 283 <UsageCount Value="1 5"/>284 <UsageCount Value="11"/> 284 285 </Unit27> 285 286 <Unit28> 286 287 <Filename Value="E:\Programy\Lazarus\lcl\themes.pas"/> 287 288 <UnitName Value="Themes"/> 288 <EditorIndex Value="1 3"/>289 <EditorIndex Value="16"/> 289 290 <WindowIndex Value="0"/> 290 291 <TopLine Value="550"/> 291 292 <CursorPos X="26" Y="560"/> 292 <UsageCount Value=" 13"/>293 <UsageCount Value="31"/> 293 294 <Loaded Value="True"/> 294 295 </Unit28> … … 299 300 <TopLine Value="374"/> 300 301 <CursorPos X="3" Y="387"/> 301 <UsageCount Value=" 10"/>302 <UsageCount Value="6"/> 302 303 </Unit29> 303 304 <Unit30> … … 307 308 <TopLine Value="49"/> 308 309 <CursorPos X="1" Y="56"/> 309 <UsageCount Value=" 12"/>310 <UsageCount Value="8"/> 310 311 <DefaultSyntaxHighlighter Value="Delphi"/> 311 312 </Unit30> … … 316 317 <TopLine Value="68"/> 317 318 <CursorPos X="3" Y="77"/> 318 <UsageCount Value=" 10"/>319 <UsageCount Value="6"/> 319 320 </Unit31> 320 321 <Unit32> … … 324 325 <TopLine Value="341"/> 325 326 <CursorPos X="1" Y="354"/> 326 <UsageCount Value=" 10"/>327 <UsageCount Value="6"/> 327 328 </Unit32> 328 329 <Unit33> 329 330 <Filename Value="..\UCoolDocking.pas"/> 330 331 <UnitName Value="UCoolDocking"/> 332 <IsVisibleTab Value="True"/> 331 333 <EditorIndex Value="2"/> 332 334 <WindowIndex Value="0"/> 333 <TopLine Value=" 37"/>334 <CursorPos X=" 35" Y="50"/>335 <UsageCount Value=" 10"/>335 <TopLine Value="1"/> 336 <CursorPos X="66" Y="12"/> 337 <UsageCount Value="28"/> 336 338 <Loaded Value="True"/> 337 339 <DefaultSyntaxHighlighter Value="Delphi"/> … … 339 341 <Unit34> 340 342 <Filename Value="..\ReadMe.txt"/> 341 <EditorIndex Value="1 4"/>343 <EditorIndex Value="17"/> 342 344 <WindowIndex Value="0"/> 343 345 <TopLine Value="1"/> 344 <CursorPos X="2 4" Y="7"/>345 <UsageCount Value=" 10"/>346 <CursorPos X="29" Y="16"/> 347 <UsageCount Value="28"/> 346 348 <Loaded Value="True"/> 347 349 <DefaultSyntaxHighlighter Value="None"/> … … 349 351 <Unit35> 350 352 <Filename Value="E:\Programy\Lazarus\fpc\2.4.0\source\rtl\objpas\classes\lists.inc"/> 351 <EditorIndex Value="1 2"/>353 <EditorIndex Value="15"/> 352 354 <WindowIndex Value="0"/> 353 355 <TopLine Value="641"/> 354 356 <CursorPos X="3" Y="643"/> 355 <UsageCount Value=" 10"/>357 <UsageCount Value="28"/> 356 358 <Loaded Value="True"/> 357 359 </Unit35> 358 360 <Unit36> 359 361 <Filename Value="E:\Programy\Lazarus\lcl\include\custompanel.inc"/> 360 <EditorIndex Value=" 9"/>362 <EditorIndex Value="12"/> 361 363 <WindowIndex Value="0"/> 362 364 <TopLine Value="27"/> 363 365 <CursorPos X="3" Y="32"/> 364 <UsageCount Value=" 10"/>366 <UsageCount Value="28"/> 365 367 <Loaded Value="True"/> 366 368 </Unit36> 367 369 <Unit37> 368 370 <Filename Value="E:\Programy\Lazarus\lcl\include\customcontrol.inc"/> 369 <EditorIndex Value=" 8"/>371 <EditorIndex Value="11"/> 370 372 <WindowIndex Value="0"/> 371 373 <TopLine Value="50"/> 372 374 <CursorPos X="18" Y="61"/> 373 <UsageCount Value=" 10"/>375 <UsageCount Value="28"/> 374 376 <Loaded Value="True"/> 375 377 </Unit37> 376 378 <Unit38> 377 379 <Filename Value="E:\Programy\Lazarus\lcl\include\controlsproc.inc"/> 378 <EditorIndex Value=" 6"/>380 <EditorIndex Value="9"/> 379 381 <WindowIndex Value="0"/> 380 382 <TopLine Value="84"/> 381 383 <CursorPos X="45" Y="90"/> 384 <UsageCount Value="28"/> 385 <Loaded Value="True"/> 386 </Unit38> 387 <Unit39> 388 <Filename Value="..\UCoolDockCustomize.pas"/> 389 <ComponentName Value="CoolDockCustomizeForm"/> 390 <HasResources Value="True"/> 391 <ResourceBaseClass Value="Form"/> 392 <UnitName Value="UCoolDockCustomize"/> 393 <EditorIndex Value="4"/> 394 <WindowIndex Value="0"/> 395 <TopLine Value="9"/> 396 <CursorPos X="19" Y="17"/> 397 <UsageCount Value="28"/> 398 <Loaded Value="True"/> 399 <LoadedDesigner Value="True"/> 400 <DefaultSyntaxHighlighter Value="Delphi"/> 401 </Unit39> 402 <Unit40> 403 <Filename Value="..\UCoolDockWindowList.pas"/> 404 <ComponentName Value="CoolDockWindowList"/> 405 <HasResources Value="True"/> 406 <ResourceBaseClass Value="Form"/> 407 <UnitName Value="UCoolDockWindowList"/> 408 <EditorIndex Value="3"/> 409 <WindowIndex Value="0"/> 410 <TopLine Value="59"/> 411 <CursorPos X="44" Y="61"/> 382 412 <UsageCount Value="10"/> 383 413 <Loaded Value="True"/> 384 </Unit38> 414 <LoadedDesigner Value="True"/> 415 <DefaultSyntaxHighlighter Value="Delphi"/> 416 </Unit40> 385 417 </Units> 386 <JumpHistory Count=" 28" HistoryIndex="27">418 <JumpHistory Count="30" HistoryIndex="29"> 387 419 <Position1> 388 <Filename Value=" ..\UCoolDocking.pas"/>389 <Caret Line=" 91" Column="26" TopLine="86"/>420 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 421 <Caret Line="1351" Column="16" TopLine="1336"/> 390 422 </Position1> 391 423 <Position2> 392 <Filename Value=" ..\UCoolDocking.pas"/>393 <Caret Line=" 354" Column="15" TopLine="334"/>424 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 425 <Caret Line="5" Column="61" TopLine="1"/> 394 426 </Position2> 395 427 <Position3> 396 <Filename Value=" ..\UCoolDocking.pas"/>397 <Caret Line=" 308" Column="11" TopLine="303"/>428 <Filename Value="E:\Programy\Lazarus\lcl\include\control.inc"/> 429 <Caret Line="1338" Column="22" TopLine="1325"/> 398 430 </Position3> 399 431 <Position4> 400 432 <Filename Value="..\UCoolDocking.pas"/> 401 <Caret Line=" 320" Column="59" TopLine="312"/>433 <Caret Line="469" Column="35" TopLine="450"/> 402 434 </Position4> 403 435 <Position5> 404 436 <Filename Value="..\UCoolDocking.pas"/> 405 <Caret Line=" 354" Column="65" TopLine="338"/>437 <Caret Line="468" Column="12" TopLine="450"/> 406 438 </Position5> 407 439 <Position6> 408 440 <Filename Value="..\UCoolDocking.pas"/> 409 <Caret Line=" 105" Column="37" TopLine="93"/>441 <Caret Line="417" Column="29" TopLine="404"/> 410 442 </Position6> 411 443 <Position7> 412 444 <Filename Value="..\UCoolDocking.pas"/> 413 <Caret Line=" 677" Column="89" TopLine="674"/>445 <Caret Line="59" Column="46" TopLine="50"/> 414 446 </Position7> 415 447 <Position8> 416 448 <Filename Value="..\UCoolDocking.pas"/> 417 <Caret Line=" 267" Column="36" TopLine="254"/>449 <Caret Line="470" Column="54" TopLine="454"/> 418 450 </Position8> 419 451 <Position9> 420 452 <Filename Value="..\UCoolDocking.pas"/> 421 <Caret Line=" 106" Column="40" TopLine="92"/>453 <Caret Line="832" Column="43" TopLine="828"/> 422 454 </Position9> 423 455 <Position10> 424 <Filename Value=" UMainForm.pas"/>425 <Caret Line=" 51" Column="53" TopLine="50"/>456 <Filename Value="..\UCoolDocking.pas"/> 457 <Caret Line="696" Column="12" TopLine="683"/> 426 458 </Position10> 427 459 <Position11> 428 460 <Filename Value="..\UCoolDocking.pas"/> 429 <Caret Line=" 674" Column="23" TopLine="663"/>461 <Caret Line="140" Column="47" TopLine="127"/> 430 462 </Position11> 431 463 <Position12> 432 <Filename Value=" UMainForm.pas"/>433 <Caret Line=" 66" Column="47" TopLine="51"/>464 <Filename Value="..\UCoolDocking.pas"/> 465 <Caret Line="833" Column="31" TopLine="830"/> 434 466 </Position12> 435 467 <Position13> 436 <Filename Value=" UMainForm.pas"/>437 <Caret Line="6 8" Column="47" TopLine="53"/>468 <Filename Value="..\UCoolDocking.pas"/> 469 <Caret Line="699" Column="28" TopLine="692"/> 438 470 </Position13> 439 471 <Position14> 440 <Filename Value=" UMainForm.pas"/>441 <Caret Line=" 70" Column="47" TopLine="55"/>472 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 473 <Caret Line="1904" Column="65" TopLine="1891"/> 442 474 </Position14> 443 475 <Position15> 444 <Filename Value=" UMainForm.pas"/>445 <Caret Line=" 96" Column="29" TopLine="75"/>476 <Filename Value="..\UCoolDocking.pas"/> 477 <Caret Line="835" Column="42" TopLine="830"/> 446 478 </Position15> 447 479 <Position16> 448 <Filename Value=" E:\Programy\Lazarus\lcl\themes.pas"/>449 <Caret Line=" 561" Column="39" TopLine="550"/>480 <Filename Value="..\UCoolDocking.pas"/> 481 <Caret Line="749" Column="1" TopLine="736"/> 450 482 </Position16> 451 483 <Position17> 452 484 <Filename Value="..\UCoolDocking.pas"/> 453 <Caret Line=" 477" Column="12" TopLine="469"/>485 <Caret Line="750" Column="1" TopLine="736"/> 454 486 </Position17> 455 487 <Position18> 456 488 <Filename Value="..\UCoolDocking.pas"/> 457 <Caret Line="7 33" Column="3" TopLine="749"/>489 <Caret Line="751" Column="1" TopLine="736"/> 458 490 </Position18> 459 491 <Position19> 460 492 <Filename Value="..\UCoolDocking.pas"/> 461 <Caret Line="7 68" Column="1" TopLine="749"/>493 <Caret Line="754" Column="1" TopLine="736"/> 462 494 </Position19> 463 495 <Position20> 464 <Filename Value=" Demo.lpr"/>465 <Caret Line=" 3" Column="7" TopLine="1"/>496 <Filename Value="..\UCoolDocking.pas"/> 497 <Caret Line="699" Column="25" TopLine="686"/> 466 498 </Position20> 467 499 <Position21> 468 <Filename Value=" ..\UCoolDocking.pas"/>469 <Caret Line=" 730" Column="29" TopLine="724"/>500 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 501 <Caret Line="1904" Column="69" TopLine="1891"/> 470 502 </Position21> 471 503 <Position22> 472 <Filename Value=" ..\UCoolDocking.pas"/>473 <Caret Line=" 50" Column="35" TopLine="37"/>504 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 505 <Caret Line="1689" Column="34" TopLine="1676"/> 474 506 </Position22> 475 507 <Position23> 476 <Filename Value="E:\Programy\Lazarus\lcl\ extctrls.pp"/>477 <Caret Line="1 196" Column="23" TopLine="1189"/>508 <Filename Value="E:\Programy\Lazarus\lcl\controls.pp"/> 509 <Caret Line="1907" Column="31" TopLine="1891"/> 478 510 </Position23> 479 511 <Position24> 480 <Filename Value=" E:\Programy\Lazarus\lcl\extctrls.pp"/>481 <Caret Line="1 160" Column="32" TopLine="1153"/>512 <Filename Value="..\UCoolDockWindowList.pas"/> 513 <Caret Line="1" Column="1" TopLine="1"/> 482 514 </Position24> 483 515 <Position25> 484 <Filename Value=" E:\Programy\Lazarus\lcl\include\customcontrol.inc"/>485 <Caret Line=" 61" Column="18" TopLine="50"/>516 <Filename Value="..\UCoolDockWindowList.pas"/> 517 <Caret Line="19" Column="75" TopLine="1"/> 486 518 </Position25> 487 519 <Position26> 488 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>489 <Caret Line=" 6329" Column="9" TopLine="6316"/>520 <Filename Value="..\UCoolDockWindowList.pas"/> 521 <Caret Line="36" Column="9" TopLine="17"/> 490 522 </Position26> 491 523 <Position27> 492 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>493 <Caret Line=" 6330" Column="7" TopLine="6316"/>524 <Filename Value="..\UCoolDockWindowList.pas"/> 525 <Caret Line="24" Column="24" TopLine="11"/> 494 526 </Position27> 495 527 <Position28> 496 <Filename Value=" E:\Programy\Lazarus\lcl\include\wincontrol.inc"/>497 <Caret Line=" 5976" Column="14" TopLine="5966"/>528 <Filename Value="..\UCoolDockWindowList.pas"/> 529 <Caret Line="70" Column="41" TopLine="53"/> 498 530 </Position28> 531 <Position29> 532 <Filename Value="..\UCoolDockWindowList.pas"/> 533 <Caret Line="49" Column="40" TopLine="34"/> 534 </Position29> 535 <Position30> 536 <Filename Value="..\UCoolDockWindowList.pas"/> 537 <Caret Line="56" Column="26" TopLine="39"/> 538 </Position30> 499 539 </JumpHistory> 500 540 </ProjectOptions> -
Docking/CoolDocking/Demo/UMainForm.lfm
r55 r56 5 5 Width = 576 6 6 Caption = 'MainForm' 7 ClientHeight = 4 357 ClientHeight = 416 8 8 ClientWidth = 576 9 Menu = MainMenu1 9 10 OnCreate = FormCreate 10 11 OnDestroy = FormDestroy … … 22 23 object Panel1: TPanel 23 24 Left = 0 24 Height = 3 8725 Height = 368 25 26 Top = 48 26 27 Width = 576 … … 29 30 DockSite = True 30 31 TabOrder = 1 31 end32 object TabControl1: TTabControl33 Left = 17334 Height = 15035 Top = 1636 Width = 20037 TabOrder = 238 TabStop = False39 end40 object Button2: TButton41 Left = 9442 Height = 2543 Top = 1044 Width = 7545 Caption = 'Customize'46 OnClick = Button2Click47 TabOrder = 348 32 end 49 33 object CoolDockMaster1: TCoolDockMaster … … 55 39 left = 472 56 40 end 41 object CoolDockWindowList1: TCoolDockWindowList 42 left = 472 43 top = 64 44 end 45 object MainMenu1: TMainMenu 46 left = 211 47 top = 14 48 object MenuItem1: TMenuItem 49 Caption = 'Docking' 50 object MenuItem2: TMenuItem 51 Caption = 'Customize...' 52 OnClick = MenuItem2Click 53 end 54 end 55 object MenuItem3: TMenuItem 56 Caption = 'Window' 57 object MenuItem4: TMenuItem 58 Caption = 'Window list...' 59 OnClick = MenuItem4Click 60 end 61 end 62 end 57 63 end -
Docking/CoolDocking/Demo/UMainForm.pas
r55 r56 16 16 TMainForm = class(TForm) 17 17 Button1: TButton; 18 Button2: TButton;19 18 CoolDockCustomize1: TCoolDockCustomize; 20 19 CoolDockMaster1: TCoolDockMaster; 20 CoolDockWindowList1: TCoolDockWindowList; 21 MainMenu1: TMainMenu; 22 MenuItem1: TMenuItem; 23 MenuItem2: TMenuItem; 24 MenuItem3: TMenuItem; 25 MenuItem4: TMenuItem; 21 26 Panel1: TPanel; 22 TabControl1: TTabControl;23 27 procedure Button1Click(Sender: TObject); 24 28 procedure Button2Click(Sender: TObject); … … 26 30 procedure FormDestroy(Sender: TObject); 27 31 procedure FormShow(Sender: TObject); 32 procedure MenuItem2Click(Sender: TObject); 33 procedure MenuItem4Click(Sender: TObject); 28 34 private 29 35 { private declarations } … … 73 79 end; 74 80 81 procedure TMainForm.MenuItem2Click(Sender: TObject); 82 begin 83 CoolDockCustomize1.Execute; 84 end; 85 86 procedure TMainForm.MenuItem4Click(Sender: TObject); 87 begin 88 CoolDockWindowList1.Execute; 89 end; 90 75 91 function TMainForm.NewDockForm: TDockForm; 76 92 begin … … 94 110 procedure TMainForm.Button2Click(Sender: TObject); 95 111 begin 96 CoolDockCustomize1.Execute; 112 97 113 end; 98 114 -
Docking/CoolDocking/ReadMe.txt
r55 r56 14 14 * Predefined customization form 15 15 * User defined form header styles 16 * Icons on tabs and grabbers -
Docking/CoolDocking/UCoolDockCustomize.lfm
r55 r56 50 50 Anchors = [akRight, akBottom] 51 51 Caption = 'Close' 52 OnClick = ButtonCloseClick 52 53 TabOrder = 1 53 54 end -
Docking/CoolDocking/UCoolDockCustomize.lrs
r55 r56 15 15 +'boBox1'#0#0#0#9'TTabSheet'#15'TabSheetLayouts'#7'Caption'#6#7'Layouts'#0#0#0 16 16 +#7'TButton'#11'ButtonClose'#4'Left'#3'D'#1#6'Height'#2#22#3'Top'#3'&'#1#5'Wi' 17 +'dth'#2'K'#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'Caption'#6#5'Close'# 8'Ta'18 +' bOrder'#2#1#0#0#017 +'dth'#2'K'#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'Caption'#6#5'Close'#7'On' 18 +'Click'#7#16'ButtonCloseClick'#8'TabOrder'#2#1#0#0#0 19 19 ]); -
Docking/CoolDocking/UCoolDockCustomize.pas
r55 r56 20 20 TabSheetSetting: TTabSheet; 21 21 TabSheetLayouts: TTabSheet; 22 procedure ButtonCloseClick(Sender: TObject); 22 23 private 23 24 { private declarations } … … 25 26 end; 26 27 27 TCoolDockCustomize = class(TComponent)28 Form: TCoolDockCustomizeForm;29 function Execute: Boolean;30 constructor Create(AOwner: TComponent); override;31 end;32 33 28 implementation 34 29 35 { TCoolDockCustomize }36 30 37 function TCoolDockCustomize.Execute: Boolean; 31 { TCoolDockCustomizeForm } 32 33 procedure TCoolDockCustomizeForm.ButtonCloseClick(Sender: TObject); 38 34 begin 39 Form.ShowModal; 40 Result := True; 41 end; 42 43 constructor TCoolDockCustomize.Create(AOwner: TComponent); 44 begin 45 inherited Create(AOwner); 46 Form := TCoolDockCustomizeForm.Create(Self); 35 Close; 47 36 end; 48 37 -
Docking/CoolDocking/UCoolDocking.pas
r55 r56 10 10 Classes, SysUtils, Controls, LCLType, LMessages, Graphics, StdCtrls, 11 11 Buttons, ExtCtrls, Contnrs, Forms, ComCtrls, Dialogs, Menus, FileUtil, 12 UCoolDockCustomize, DOM, XMLWrite, XMLRead ;12 UCoolDockCustomize, DOM, XMLWrite, XMLRead, UCoolDockWindowList; 13 13 14 14 const … … 21 21 TCoolDockManager = class; 22 22 TCoolDockClientPanel = class; 23 TCoolDockCustomize = class; 23 24 24 25 { TCoolDockConjoinForm } … … 56 57 procedure SetHeaderPos(const AValue: THeaderPos); 57 58 procedure SetShowHeader(const AValue: Boolean); 59 procedure VisibleChange(Sender: TObject); 58 60 public 59 61 Header: TCoolDockHeader; … … 80 82 FTabsPos: THeaderPos; 81 83 Timer1: TTimer; 82 PopupMenu1: TPopupMenu; 84 PopupMenuTabs: TPopupMenu; 85 PopupMenuHeader: TPopupMenu; 83 86 FDockStyle: TDockStyle; 84 87 TabControl: TTabControl; … … 105 108 procedure PopupMenuPositionBottomClick(Sender: TObject); 106 109 procedure PopupMenuUndockClick(Sender: TObject); 110 procedure PopupMenuCustomizeClick(Sender: TObject); 107 111 procedure Timer1Timer(Sender: TObject); 108 112 procedure TabControlMouseDown(Sender: TObject; Button: TMouseButton; … … 143 147 TCoolDockMaster = class(TComponent) 144 148 private 149 FCoolDockCustomize: TCoolDockCustomize; 145 150 FDefaultHeaderPos: THeaderPos; 146 151 FTabsEnabled: Boolean; 152 procedure SetCustomize(const AValue: TCoolDockCustomize); 147 153 procedure SetTabsEnabled(const AValue: Boolean); 148 154 public … … 155 161 property DefaultHeaderPos: THeaderPos read FDefaultHeaderPos 156 162 write FDefaultHeaderPos; 163 property Customize: TCoolDockCustomize read FCoolDockCustomize 164 write SetCustomize; 165 end; 166 167 { TCoolDockCustomize } 168 169 TCoolDockCustomize = class(TComponent) 170 private 171 FManager: TCoolDockMaster; 172 procedure SetManager(const AValue: TCoolDockMaster); 173 public 174 Form: TCoolDockCustomizeForm; 175 function Execute: Boolean; 176 constructor Create(AOwner: TComponent); override; 177 published 178 property Manager: TCoolDockMaster read FManager write SetManager; 179 end; 180 181 { TCoolDockWindowList } 182 183 TCoolDockWindowList = class(TComponent) 184 private 185 public 186 Form: TCoolDockWindowListForm; 187 function Execute: Boolean; 188 constructor Create(AOwner: TComponent); override; 189 published 157 190 end; 158 191 … … 174 207 SPositionBottom = 'Bottom'; 175 208 SUndock = 'Undock'; 209 SCustomize = 'Customize...'; 176 210 177 211 procedure Register; … … 179 213 RegisterComponents('CoolDocking', [TCoolDockMaster]); 180 214 RegisterComponents('CoolDocking', [TCoolDockCustomize]); 215 RegisterComponents('CoolDocking', [TCoolDockWindowList]); 181 216 end; 182 217 … … 204 239 FDockSite := ADockSite; 205 240 FDockPanels := TObjectList.Create; 206 PopupMenu1 := TPopupMenu.Create(FDockSite);207 241 208 242 Timer1 := TTimer.Create(nil); … … 210 244 Timer1.OnTimer := Timer1Timer; 211 245 212 NewMenuItem := TMenuItem.Create(PopupMenu1); 246 // Tabs popup 247 248 PopupMenuTabs := TPopupMenu.Create(FDockSite); 249 250 NewMenuItem := TMenuItem.Create(PopupMenuTabs); 213 251 NewMenuItem.Caption := SDockStyle; 214 PopupMenu 1.Items.Add(NewMenuItem);252 PopupMenuTabs.Items.Add(NewMenuItem); 215 253 216 254 NewMenuItem2 := TMenuItem.Create(NewMenuItem); … … 224 262 NewMenuItem.Add(NewMenuItem2); 225 263 226 NewMenuItem := TMenuItem.Create(PopupMenu 1);264 NewMenuItem := TMenuItem.Create(PopupMenuTabs); 227 265 NewMenuItem.Caption := SPosition; 228 PopupMenu 1.Items.Add(NewMenuItem);266 PopupMenuTabs.Items.Add(NewMenuItem); 229 267 230 268 NewMenuItem2 := TMenuItem.Create(NewMenuItem); … … 253 291 NewMenuItem.Add(NewMenuItem2); 254 292 255 NewMenuItem := TMenuItem.Create(PopupMenu 1);293 NewMenuItem := TMenuItem.Create(PopupMenuTabs); 256 294 NewMenuItem.Caption := SCloseForm; 257 295 NewMenuItem.OnClick := PopupMenuCloseClick; 258 PopupMenu 1.Items.Add(NewMenuItem);259 260 NewMenuItem := TMenuItem.Create(PopupMenu 1);296 PopupMenuTabs.Items.Add(NewMenuItem); 297 298 NewMenuItem := TMenuItem.Create(PopupMenuTabs); 261 299 NewMenuItem.Caption := SRenameForm; 262 300 NewMenuItem.OnClick := PopupMenuRenameClick; 263 PopupMenu 1.Items.Add(NewMenuItem);264 265 NewMenuItem := TMenuItem.Create(PopupMenu 1);301 PopupMenuTabs.Items.Add(NewMenuItem); 302 303 NewMenuItem := TMenuItem.Create(PopupMenuTabs); 266 304 NewMenuItem.Caption := SUndock; 267 305 NewMenuItem.OnClick := PopupMenuUndockClick; 268 PopupMenu1.Items.Add(NewMenuItem); 306 PopupMenuTabs.Items.Add(NewMenuItem); 307 308 NewMenuItem := TMenuItem.Create(PopupMenuTabs); 309 NewMenuItem.Caption := SCustomize; 310 NewMenuItem.OnClick := PopupMenuCustomizeClick; 311 PopupMenuTabs.Items.Add(NewMenuItem); 312 313 // Header popup 314 315 PopupMenuHeader := TPopupMenu.Create(FDockSite); 316 317 NewMenuItem := TMenuItem.Create(PopupMenuHeader); 318 NewMenuItem.Caption := SDockStyle; 319 PopupMenuHeader.Items.Add(NewMenuItem); 320 321 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 322 NewMenuItem2.Caption := SDockList; 323 NewMenuItem2.OnClick := PopupMenuListClick; 324 NewMenuItem.Add(NewMenuItem2); 325 326 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 327 NewMenuItem2.Caption := SDockTabs; 328 NewMenuItem2.OnClick := PopupMenuTabsClick; 329 NewMenuItem.Add(NewMenuItem2); 330 331 NewMenuItem := TMenuItem.Create(PopupMenuHeader); 332 NewMenuItem.Caption := SPosition; 333 PopupMenuHeader.Items.Add(NewMenuItem); 334 335 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 336 NewMenuItem2.Caption := SPositionAuto; 337 NewMenuItem2.OnClick := PopupMenuPositionAutoClick; 338 NewMenuItem.Add(NewMenuItem2); 339 340 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 341 NewMenuItem2.Caption := SPositionTop; 342 NewMenuItem2.OnClick := PopupMenuPositionTopClick; 343 NewMenuItem.Add(NewMenuItem2); 344 345 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 346 NewMenuItem2.Caption := SPositionLeft; 347 NewMenuItem2.OnClick := PopupMenuPositionLeftClick; 348 NewMenuItem.Add(NewMenuItem2); 349 350 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 351 NewMenuItem2.Caption := SPositionBottom; 352 NewMenuItem2.OnClick := PopupMenuPositionBottomClick; 353 NewMenuItem.Add(NewMenuItem2); 354 355 NewMenuItem2 := TMenuItem.Create(NewMenuItem); 356 NewMenuItem2.Caption := SPositionRight; 357 NewMenuItem2.OnClick := PopupMenuPositionRightClick; 358 NewMenuItem.Add(NewMenuItem2); 359 360 NewMenuItem := TMenuItem.Create(PopupMenuHeader); 361 NewMenuItem.Caption := SCloseForm; 362 NewMenuItem.OnClick := PopupMenuCloseClick; 363 PopupMenuHeader.Items.Add(NewMenuItem); 364 365 NewMenuItem := TMenuItem.Create(PopupMenuHeader); 366 NewMenuItem.Caption := SRenameForm; 367 NewMenuItem.OnClick := PopupMenuRenameClick; 368 PopupMenuHeader.Items.Add(NewMenuItem); 369 370 NewMenuItem := TMenuItem.Create(PopupMenuHeader); 371 NewMenuItem.Caption := SUndock; 372 NewMenuItem.OnClick := PopupMenuUndockClick; 373 PopupMenuHeader.Items.Add(NewMenuItem); 374 375 NewMenuItem := TMenuItem.Create(PopupMenuHeader); 376 NewMenuItem.Caption := SCustomize; 377 NewMenuItem.OnClick := PopupMenuCustomizeClick; 378 PopupMenuHeader.Items.Add(NewMenuItem); 269 379 270 380 TabControl := TTabControl.Create(FDockSite); … … 275 385 Height := 24; 276 386 OnChange := TabControlChange; 277 PopupMenu := PopupMenu 1;387 PopupMenu := PopupMenuTabs; 278 388 OnMouseDown := TabControlMouseDown; 279 389 end; … … 357 467 if DockStyle = dsList then Visible := True; 358 468 Align := alClient; 469 Header.PopupMenu := PopupMenuHeader; 359 470 end; 360 471 … … 368 479 end; 369 480 NewPanel.Control := Control; 481 Control.AddHandlerOnVisibleChanged(NewPanel.VisibleChange); 370 482 Control.Parent := NewPanel.ClientAreaPanel; 371 483 Control.Align := alClient; … … 596 708 for I := 0 to FDockPanels.Count - 1 do begin 597 709 TCoolDockClientPanel(FDockPanels[I]).Height := FDockSite.Height div 598 FDockSite. DockClientCount;710 FDockSite.VisibleDockClientCount; 599 711 TCoolDockClientPanel(FDockPanels[I]).Width := FDockSite.Width div 600 FDockSite. DockClientCount;712 FDockSite.VisibleDockClientCount; 601 713 //TCoolDockClientPanel(FDockPanels[I]).DockPanelPaint(Self); 602 714 end; … … 644 756 645 757 procedure TCoolDockManager.PopupMenuCloseClick(Sender: TObject); 646 begin 647 TForm(TCoolDockManager(TControl(Sender).Parent.Parent.Parent.DockManager).FDockSite).Close; 758 var 759 Control: TControl; 760 begin 761 Control := FindLCLControl(Mouse.CursorPos); 762 if Assigned(Control) then 763 ShowMessage(Control.ClassName); 764 // DockSiteTForm(TCoolDockManager(TControl(Sender).Parent.Parent.Parent.DockManager).FDockSite).Close; 648 765 end; 649 766 … … 687 804 begin 688 805 806 end; 807 808 procedure TCoolDockManager.PopupMenuCustomizeClick(Sender: TObject); 809 begin 810 // if Assigned(DockMaster.Customize) then 811 // DockMaster.Customize.Execute; 689 812 end; 690 813 … … 714 837 FShowHeader := AValue; 715 838 DockPanelPaint(Self); 839 end; 840 841 procedure TCoolDockClientPanel.VisibleChange(Sender: TObject); 842 begin 843 //OwnerDockManager.FDockPanels.Remove(Self); 844 ClientAreaPanel.Visible := Control.Visible; 845 Splitter.Visible := Control.Visible; 846 OwnerDockManager.UpdateClientSize; 716 847 end; 717 848 … … 737 868 Align := alTop; 738 869 Height := GrabberSize; 870 ParentClientPanel := Self; 739 871 end; 740 872 ClientAreaPanel := TPanel.Create(Self); … … 832 964 if FTabsEnabled=AValue then exit; 833 965 FTabsEnabled:=AValue; 966 end; 967 968 procedure TCoolDockMaster.SetCustomize(const AValue: TCoolDockCustomize 969 ); 970 begin 971 if FCoolDockCustomize=AValue then exit; 972 FCoolDockCustomize:=AValue; 973 if Assigned(AValue) then 974 if not Assigned(AValue.Manager) then 975 AValue.Manager := Self; 834 976 end; 835 977 … … 998 1140 procedure TCoolDockHeader.CloseButtonClick(Sender: TObject); 999 1141 begin 1000 // Control.Hide; 1142 ParentClientPanel.Control.Hide; 1143 end; 1144 1145 { TCoolDockCustomize } 1146 1147 procedure TCoolDockCustomize.SetManager(const AValue: TCoolDockMaster); 1148 begin 1149 if FManager = AValue then exit; 1150 FManager := AValue; 1151 if Assigned(AValue) then 1152 if not Assigned(AValue.Customize) then 1153 AValue.Customize := Self; 1154 end; 1155 1156 function TCoolDockCustomize.Execute: Boolean; 1157 begin 1158 Form.ShowModal; 1159 Result := True; 1160 end; 1161 1162 constructor TCoolDockCustomize.Create(AOwner: TComponent); 1163 begin 1164 inherited Create(AOwner); 1165 Form := TCoolDockCustomizeForm.Create(Self); 1166 end; 1167 1168 1169 { TCoolDockWindowList } 1170 1171 function TCoolDockWindowList.Execute: Boolean; 1172 begin 1173 Form.ShowModal; 1174 Result := True; 1175 end; 1176 1177 constructor TCoolDockWindowList.Create(AOwner: TComponent); 1178 begin 1179 inherited Create(AOwner); 1180 Form := TCoolDockWindowListForm.Create(Self); 1001 1181 end; 1002 1182 -
Docking/CoolDocking/languages
-
Property svn:ignore
set to
*.mo
-
Property svn:ignore
set to
-
Docking/CoolDocking/languages/UCoolDocking.po
r55 r56 1 1 msgid "" 2 msgstr "" 3 "Content-Type: text/plain; charset=UTF-8\n" 4 "Project-Id-Version: \n" 5 "POT-Creation-Date: \n" 6 "PO-Revision-Date: \n" 7 "Last-Translator: Jiří Hajda <software@mezservis.cz>\n" 8 "Language-Team: \n" 9 "MIME-Version: 1.0\n" 10 "Content-Transfer-Encoding: 8bit\n" 2 msgstr "Content-Type: text/plain; charset=UTF-8" 11 3 12 4 #: ucooldocking.scloseform 13 5 msgid "Close" 14 msgstr "Zavřít" 6 msgstr "" 7 8 #: ucooldocking.scustomize 9 msgid "Customize..." 10 msgstr "" 15 11 16 12 #: ucooldocking.sdocklist 17 13 msgid "List" 18 msgstr " Seznam"14 msgstr "" 19 15 20 16 #: ucooldocking.sdockstyle 21 17 msgid "Style" 22 msgstr " Styl"18 msgstr "" 23 19 24 20 #: ucooldocking.sdocktabs 25 21 msgid "Tabs" 26 msgstr " Záložky"22 msgstr "" 27 23 28 24 #: ucooldocking.sposition 29 25 msgid "Position" 30 msgstr " Pozice"26 msgstr "" 31 27 32 28 #: ucooldocking.spositionauto 33 29 msgid "Auto" 34 msgstr " Automaticky"30 msgstr "" 35 31 36 32 #: ucooldocking.spositionbottom 37 33 msgid "Bottom" 38 msgstr " Dole"34 msgstr "" 39 35 40 36 #: ucooldocking.spositionleft 41 37 msgid "Left" 42 msgstr " Vlevo"38 msgstr "" 43 39 44 40 #: ucooldocking.spositionright 45 41 msgid "Right" 46 msgstr " Vpravo"42 msgstr "" 47 43 48 44 #: ucooldocking.spositiontop 49 45 msgid "Top" 50 msgstr " Nahoře"46 msgstr "" 51 47 52 48 #: ucooldocking.srenameform 53 49 msgid "Rename" 54 msgstr " Přejmenovat"50 msgstr "" 55 51 56 52 #: ucooldocking.sundock
Note:
See TracChangeset
for help on using the changeset viewer.