- Timestamp:
- Mar 8, 2011, 1:57:42 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/CoolDocking.lpk
r178 r180 25 25 <Description Value="Set of components for docking of windows."/> 26 26 <Version Minor="2"/> 27 <Files Count="1 3">27 <Files Count="14"> 28 28 <Item1> 29 29 <Filename Value="UCoolDocking.pas"/> … … 41 41 <Item4> 42 42 <Filename Value="UCoolDockWindowList.pas"/> 43 <HasRegisterProc Value="True"/> 43 44 <UnitName Value="UCoolDockWindowList"/> 44 45 </Item4> … … 80 81 <UnitName Value="URectangle"/> 81 82 </Item13> 83 <Item14> 84 <Filename Value="UCoolDockCommon.pas"/> 85 <UnitName Value="UCoolDockCommon"/> 86 </Item14> 82 87 </Files> 83 88 <i18n> -
Docking/CoolDocking/CoolDocking.pas
r178 r180 11 11 UCoolDockStyleRegions, UCoolDockStylePopupTabs, UCoolDockStylePopupRegions, 12 12 UCoolDockStyle, UCoolDockClientPanel, UCoolDockPopupMenu, UCoolDockLayout, 13 URectangle, LazarusPackageIntf;13 URectangle, UCoolDockCommon, LazarusPackageIntf; 14 14 15 15 implementation … … 18 18 begin 19 19 RegisterUnit('UCoolDocking', @UCoolDocking.Register); 20 RegisterUnit('UCoolDockWindowList', @UCoolDockWindowList.Register); 20 21 RegisterUnit('UCoolDockLayout', @UCoolDockLayout.Register); 21 22 end; -
Docking/CoolDocking/Demo/IDE/IDE.lpi
r179 r180 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count="3 1">49 <Units Count="35"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> 52 52 <IsPartOfProject Value="True"/> 53 53 <UnitName Value="IDE"/> 54 <UsageCount Value="3 1"/>54 <UsageCount Value="34"/> 55 55 </Unit0> 56 56 <Unit1> … … 62 62 <EditorIndex Value="0"/> 63 63 <WindowIndex Value="0"/> 64 <TopLine Value="1 59"/>65 <CursorPos X=" 15" Y="161"/>66 <UsageCount Value="3 1"/>64 <TopLine Value="187"/> 65 <CursorPos X="44" Y="198"/> 66 <UsageCount Value="34"/> 67 67 <Loaded Value="True"/> 68 68 <LoadedDesigner Value="True"/> … … 74 74 <ResourceBaseClass Value="Form"/> 75 75 <UnitName Value="UObjectInspectorForm"/> 76 <EditorIndex Value="1 2"/>76 <EditorIndex Value="15"/> 77 77 <WindowIndex Value="0"/> 78 78 <TopLine Value="1"/> 79 79 <CursorPos X="12" Y="16"/> 80 <UsageCount Value="31"/> 81 <Loaded Value="True"/> 82 <LoadedDesigner Value="True"/> 80 <UsageCount Value="34"/> 81 <Loaded Value="True"/> 83 82 </Unit2> 84 83 <Unit3> … … 88 87 <ResourceBaseClass Value="Form"/> 89 88 <UnitName Value="UStructureForm"/> 90 <EditorIndex Value="1 5"/>89 <EditorIndex Value="18"/> 91 90 <WindowIndex Value="0"/> 92 91 <TopLine Value="1"/> 93 92 <CursorPos X="3" Y="16"/> 94 <UsageCount Value="31"/> 95 <Loaded Value="True"/> 96 <LoadedDesigner Value="True"/> 93 <UsageCount Value="34"/> 94 <Loaded Value="True"/> 97 95 </Unit3> 98 96 <Unit4> … … 102 100 <ResourceBaseClass Value="Form"/> 103 101 <UnitName Value="UToolPaletteForm"/> 104 <EditorIndex Value="1 6"/>102 <EditorIndex Value="19"/> 105 103 <WindowIndex Value="0"/> 106 104 <TopLine Value="1"/> 107 105 <CursorPos X="15" Y="10"/> 108 <UsageCount Value="31"/> 109 <Loaded Value="True"/> 110 <LoadedDesigner Value="True"/> 106 <UsageCount Value="34"/> 107 <Loaded Value="True"/> 111 108 </Unit4> 112 109 <Unit5> 113 110 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 114 <EditorIndex Value=" 17"/>115 <WindowIndex Value="0"/> 116 <TopLine Value=" 2272"/>117 <CursorPos X=" 1" Y="2285"/>111 <EditorIndex Value="20"/> 112 <WindowIndex Value="0"/> 113 <TopLine Value="3176"/> 114 <CursorPos X="35" Y="3188"/> 118 115 <UsageCount Value="17"/> 119 116 <Loaded Value="True"/> … … 125 122 <ResourceBaseClass Value="Form"/> 126 123 <UnitName Value="UProjectManagerForm"/> 127 <EditorIndex Value="1 4"/>124 <EditorIndex Value="17"/> 128 125 <WindowIndex Value="0"/> 129 126 <TopLine Value="1"/> 130 127 <CursorPos X="20" Y="16"/> 131 <UsageCount Value="31"/> 132 <Loaded Value="True"/> 133 <LoadedDesigner Value="True"/> 128 <UsageCount Value="34"/> 129 <Loaded Value="True"/> 134 130 </Unit6> 135 131 <Unit7> 136 132 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customform.inc"/> 137 <EditorIndex Value=" 19"/>133 <EditorIndex Value="22"/> 138 134 <WindowIndex Value="0"/> 139 135 <TopLine Value="1870"/> … … 148 144 <ResourceBaseClass Value="Form"/> 149 145 <UnitName Value="UMessagesForm"/> 150 <EditorIndex Value="1 3"/>146 <EditorIndex Value="16"/> 151 147 <WindowIndex Value="0"/> 152 148 <TopLine Value="1"/> 153 149 <CursorPos X="7" Y="16"/> 154 <UsageCount Value="31"/> 155 <Loaded Value="True"/> 156 <LoadedDesigner Value="True"/> 150 <UsageCount Value="34"/> 151 <Loaded Value="True"/> 157 152 </Unit8> 158 153 <Unit9> … … 162 157 <ResourceBaseClass Value="Form"/> 163 158 <UnitName Value="UCallStackForm"/> 164 <EditorIndex Value="1 1"/>159 <EditorIndex Value="14"/> 165 160 <WindowIndex Value="0"/> 166 161 <TopLine Value="1"/> 167 162 <CursorPos X="12" Y="15"/> 168 <UsageCount Value="31"/> 169 <Loaded Value="True"/> 170 <LoadedDesigner Value="True"/> 163 <UsageCount Value="34"/> 164 <Loaded Value="True"/> 171 165 </Unit9> 172 166 <Unit10> … … 176 170 <ResourceBaseClass Value="Form"/> 177 171 <UnitName Value="ULocalVariablesForm"/> 178 <EditorIndex Value="1 0"/>172 <EditorIndex Value="13"/> 179 173 <WindowIndex Value="0"/> 180 174 <TopLine Value="1"/> 181 175 <CursorPos X="21" Y="4"/> 182 <UsageCount Value="31"/> 183 <Loaded Value="True"/> 184 <LoadedDesigner Value="True"/> 176 <UsageCount Value="34"/> 177 <Loaded Value="True"/> 185 178 </Unit10> 186 179 <Unit11> … … 190 183 <ResourceBaseClass Value="Form"/> 191 184 <UnitName Value="UToDoListForm"/> 192 <EditorIndex Value=" 9"/>185 <EditorIndex Value="12"/> 193 186 <WindowIndex Value="0"/> 194 187 <TopLine Value="1"/> 195 188 <CursorPos X="12" Y="16"/> 196 <UsageCount Value="31"/> 197 <Loaded Value="True"/> 198 <LoadedDesigner Value="True"/> 189 <UsageCount Value="34"/> 190 <Loaded Value="True"/> 199 191 </Unit11> 200 192 <Unit12> … … 204 196 <ResourceBaseClass Value="Form"/> 205 197 <UnitName Value="UWatchListForm"/> 206 <EditorIndex Value=" 8"/>198 <EditorIndex Value="11"/> 207 199 <WindowIndex Value="0"/> 208 200 <TopLine Value="1"/> 209 201 <CursorPos X="12" Y="17"/> 210 <UsageCount Value="31"/> 211 <Loaded Value="True"/> 212 <LoadedDesigner Value="True"/> 202 <UsageCount Value="34"/> 203 <Loaded Value="True"/> 213 204 </Unit12> 214 205 <Unit13> … … 218 209 <ResourceBaseClass Value="Form"/> 219 210 <UnitName Value="UThreadStatusForm"/> 220 <EditorIndex Value=" 7"/>211 <EditorIndex Value="10"/> 221 212 <WindowIndex Value="0"/> 222 213 <TopLine Value="1"/> 223 214 <CursorPos X="12" Y="16"/> 224 <UsageCount Value="31"/> 225 <Loaded Value="True"/> 226 <LoadedDesigner Value="True"/> 215 <UsageCount Value="34"/> 216 <Loaded Value="True"/> 227 217 </Unit13> 228 218 <Unit14> … … 236 226 <TopLine Value="1"/> 237 227 <CursorPos X="41" Y="17"/> 238 <UsageCount Value="29"/> 239 <Loaded Value="True"/> 240 <LoadedDesigner Value="True"/> 228 <UsageCount Value="32"/> 229 <Loaded Value="True"/> 241 230 </Unit14> 242 231 <Unit15> … … 245 234 <EditorIndex Value="3"/> 246 235 <WindowIndex Value="0"/> 247 <TopLine Value=" 1"/>248 <CursorPos X=" 22" Y="9"/>236 <TopLine Value="798"/> 237 <CursorPos X="1" Y="807"/> 249 238 <UsageCount Value="15"/> 250 239 <Loaded Value="True"/> … … 254 243 <UnitName Value="UCoolDockLayout"/> 255 244 <IsVisibleTab Value="True"/> 256 <EditorIndex Value=" 4"/>257 <WindowIndex Value="0"/> 258 <TopLine Value=" 383"/>259 <CursorPos X=" 4" Y="396"/>245 <EditorIndex Value="5"/> 246 <WindowIndex Value="0"/> 247 <TopLine Value="166"/> 248 <CursorPos X="21" Y="182"/> 260 249 <UsageCount Value="15"/> 261 250 <Loaded Value="True"/> … … 266 255 <TopLine Value="1643"/> 267 256 <CursorPos X="42" Y="1651"/> 268 <UsageCount Value="1 5"/>257 <UsageCount Value="14"/> 269 258 </Unit17> 270 259 <Unit18> … … 274 263 <TopLine Value="70"/> 275 264 <CursorPos X="21" Y="83"/> 276 <UsageCount Value="1 5"/>265 <UsageCount Value="14"/> 277 266 </Unit18> 278 267 <Unit19> … … 281 270 <TopLine Value="220"/> 282 271 <CursorPos X="16" Y="233"/> 283 <UsageCount Value="1 5"/>272 <UsageCount Value="14"/> 284 273 </Unit19> 285 274 <Unit20> 286 275 <Filename Value="..\..\URectangle.pas"/> 287 276 <UnitName Value="URectangle"/> 288 <EditorIndex Value=" 6"/>277 <EditorIndex Value="9"/> 289 278 <WindowIndex Value="0"/> 290 279 <TopLine Value="20"/> … … 299 288 <TopLine Value="34"/> 300 289 <CursorPos X="11" Y="47"/> 301 <UsageCount Value="1 5"/>290 <UsageCount Value="14"/> 302 291 </Unit21> 303 292 <Unit22> 304 293 <Filename Value="..\..\UCoolDockWindowList.pas"/> 294 <ComponentName Value="CoolDockWindowListForm"/> 295 <HasResources Value="True"/> 296 <ResourceBaseClass Value="Form"/> 305 297 <UnitName Value="UCoolDockWindowList"/> 306 <EditorIndex Value="5"/> 307 <WindowIndex Value="0"/> 308 <TopLine Value="103"/> 309 <CursorPos X="1" Y="106"/> 298 <WindowIndex Value="0"/> 299 <TopLine Value="25"/> 300 <CursorPos X="7" Y="48"/> 310 301 <UsageCount Value="12"/> 311 <Loaded Value="True"/>312 302 </Unit22> 313 303 <Unit23> … … 333 323 <TopLine Value="913"/> 334 324 <CursorPos X="1" Y="930"/> 335 <UsageCount Value="1 1"/>325 <UsageCount Value="12"/> 336 326 <Loaded Value="True"/> 337 327 </Unit25> … … 367 357 <Unit30> 368 358 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\toolbutton.inc"/> 369 <EditorIndex Value=" 18"/>359 <EditorIndex Value="21"/> 370 360 <WindowIndex Value="0"/> 371 361 <TopLine Value="751"/> … … 374 364 <Loaded Value="True"/> 375 365 </Unit30> 366 <Unit31> 367 <Filename Value="..\..\UCoolDockCustomize.pas"/> 368 <ComponentName Value="CoolDockCustomizeForm"/> 369 <HasResources Value="True"/> 370 <ResourceBaseClass Value="Form"/> 371 <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"/> 379 </Unit31> 380 <Unit32> 381 <Filename Value="..\..\UCoolDockCommon.pas"/> 382 <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"/> 388 <Loaded Value="True"/> 389 </Unit32> 390 <Unit33> 391 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 392 <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"/> 398 <Loaded Value="True"/> 399 </Unit33> 400 <Unit34> 401 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\dialogs.pp"/> 402 <UnitName Value="Dialogs"/> 403 <EditorIndex Value="8"/> 404 <WindowIndex Value="0"/> 405 <TopLine Value="503"/> 406 <CursorPos X="10" Y="516"/> 407 <UsageCount Value="10"/> 408 <Loaded Value="True"/> 409 </Unit34> 376 410 </Units> 377 411 <JumpHistory Count="30" HistoryIndex="29"> 378 412 <Position1> 379 <Filename Value="..\..\UCoolDock Layout.pas"/>380 <Caret Line=" 344" Column="1" TopLine="334"/>413 <Filename Value="..\..\UCoolDockPopupMenu.pas"/> 414 <Caret Line="1" Column="1" TopLine="1"/> 381 415 </Position1> 382 416 <Position2> 383 <Filename Value="..\..\UCoolDock Layout.pas"/>384 <Caret Line=" 345" Column="1" TopLine="334"/>417 <Filename Value="..\..\UCoolDocking.pas"/> 418 <Caret Line="804" Column="16" TopLine="798"/> 385 419 </Position2> 386 420 <Position3> 387 <Filename Value="..\..\UCoolDock Layout.pas"/>388 <Caret Line=" 356" Column="1" TopLine="335"/>421 <Filename Value="..\..\UCoolDockCustomize.pas"/> 422 <Caret Line="17" Column="7" TopLine="4"/> 389 423 </Position3> 390 424 <Position4> 391 <Filename Value=" UMainForm.pas"/>392 <Caret Line="1 77" Column="1" TopLine="167"/>425 <Filename Value="..\..\UCoolDockCustomize.pas"/> 426 <Caret Line="18" Column="16" TopLine="4"/> 393 427 </Position4> 394 428 <Position5> 395 <Filename Value=" UMainForm.pas"/>396 <Caret Line=" 180" Column="1" TopLine="167"/>429 <Filename Value="..\..\UCoolDockCustomize.pas"/> 430 <Caret Line="61" Column="51" TopLine="37"/> 397 431 </Position5> 398 432 <Position6> 399 <Filename Value="..\..\UCoolDock Layout.pas"/>400 <Caret Line=" 169" Column="1" TopLine="156"/>433 <Filename Value="..\..\UCoolDockCustomize.pas"/> 434 <Caret Line="57" Column="66" TopLine="45"/> 401 435 </Position6> 402 436 <Position7> 403 <Filename Value="..\..\UCoolDock Layout.pas"/>404 <Caret Line=" 170" Column="1" TopLine="156"/>437 <Filename Value="..\..\UCoolDockCustomize.pas"/> 438 <Caret Line="65" Column="42" TopLine="52"/> 405 439 </Position7> 406 440 <Position8> 407 <Filename Value="..\..\UCoolDock Layout.pas"/>408 <Caret Line=" 171" Column="1" TopLine="156"/>441 <Filename Value="..\..\UCoolDockCustomize.pas"/> 442 <Caret Line="76" Column="57" TopLine="55"/> 409 443 </Position8> 410 444 <Position9> 411 <Filename Value=" ..\..\UCoolDockLayout.pas"/>412 <Caret Line=" 172" Column="1" TopLine="156"/>445 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 446 <Caret Line="3185" Column="33" TopLine="3176"/> 413 447 </Position9> 414 448 <Position10> 415 449 <Filename Value="UMainForm.pas"/> 416 <Caret Line=" 121" Column="1" TopLine="108"/>450 <Caret Line="2" Column="44" TopLine="1"/> 417 451 </Position10> 418 452 <Position11> 419 <Filename Value=" UMainForm.pas"/>420 <Caret Line=" 172" Column="1" TopLine="159"/>453 <Filename Value="..\..\UCoolDocking.pas"/> 454 <Caret Line="800" Column="3" TopLine="798"/> 421 455 </Position11> 422 456 <Position12> 423 <Filename Value="..\..\UCoolDock Layout.pas"/>424 <Caret Line=" 350" Column="15" TopLine="334"/>457 <Filename Value="..\..\UCoolDocking.pas"/> 458 <Caret Line="805" Column="1" TopLine="798"/> 425 459 </Position12> 426 460 <Position13> 427 <Filename Value="..\..\UCoolDock Layout.pas"/>428 <Caret Line=" 409" Column="40" TopLine="385"/>461 <Filename Value="..\..\UCoolDockCustomize.pas"/> 462 <Caret Line="57" Column="82" TopLine="56"/> 429 463 </Position13> 430 464 <Position14> 431 <Filename Value="..\..\UCoolDock Layout.pas"/>432 <Caret Line=" 406" Column="22" TopLine="389"/>465 <Filename Value="..\..\UCoolDockCustomize.pas"/> 466 <Caret Line="74" Column="14" TopLine="70"/> 433 467 </Position14> 434 468 <Position15> 435 <Filename Value="..\..\UCoolDock Layout.pas"/>436 <Caret Line=" 398" Column="16" TopLine="387"/>469 <Filename Value="..\..\UCoolDockCustomize.pas"/> 470 <Caret Line="52" Column="37" TopLine="27"/> 437 471 </Position15> 438 472 <Position16> 439 <Filename Value="..\..\UCoolDock Layout.pas"/>440 <Caret Line=" 394" Column="3" TopLine="384"/>473 <Filename Value="..\..\UCoolDockCustomize.pas"/> 474 <Caret Line="76" Column="1" TopLine="70"/> 441 475 </Position16> 442 476 <Position17> 443 <Filename Value="..\..\UCoolDock Layout.pas"/>444 <Caret Line=" 383" Column="29" TopLine="369"/>477 <Filename Value="..\..\UCoolDockCustomize.pas"/> 478 <Caret Line="93" Column="2" TopLine="88"/> 445 479 </Position17> 446 480 <Position18> 447 <Filename Value="..\..\UCoolDock Layout.pas"/>448 <Caret Line=" 405" Column="1" TopLine="383"/>481 <Filename Value="..\..\UCoolDockCustomize.pas"/> 482 <Caret Line="51" Column="1" TopLine="31"/> 449 483 </Position18> 450 484 <Position19> 451 <Filename Value=" E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/>452 <Caret Line=" 1741" Column="1" TopLine="1728"/>485 <Filename Value="..\..\UCoolDockCustomize.pas"/> 486 <Caret Line="79" Column="30" TopLine="66"/> 453 487 </Position19> 454 488 <Position20> 455 <Filename Value=" E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\toolbutton.inc"/>456 <Caret Line=" 136" Column="1" TopLine="123"/>489 <Filename Value="UMainForm.pas"/> 490 <Caret Line="2" Column="54" TopLine="1"/> 457 491 </Position20> 458 492 <Position21> 459 <Filename Value=" E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\toolbutton.inc"/>460 <Caret Line="7 64" Column="1" TopLine="751"/>493 <Filename Value="..\..\UCoolDockCustomize.pas"/> 494 <Caret Line="71" Column="3" TopLine="66"/> 461 495 </Position21> 462 496 <Position22> 463 <Filename Value=" E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/>464 <Caret Line=" 2285" Column="1" TopLine="2272"/>497 <Filename Value="..\..\UCoolDockCustomize.pas"/> 498 <Caret Line="81" Column="24" TopLine="74"/> 465 499 </Position22> 466 500 <Position23> 467 <Filename Value="..\..\UCoolDock Layout.pas"/>468 <Caret Line=" 399" Column="1" TopLine="383"/>501 <Filename Value="..\..\UCoolDockCustomize.pas"/> 502 <Caret Line="44" Column="27" TopLine="31"/> 469 503 </Position23> 470 504 <Position24> 471 505 <Filename Value="..\..\UCoolDockLayout.pas"/> 472 <Caret Line=" 397" Column="1" TopLine="383"/>506 <Caret Line="54" Column="55" TopLine="41"/> 473 507 </Position24> 474 508 <Position25> 475 509 <Filename Value="..\..\UCoolDockLayout.pas"/> 476 <Caret Line=" 398" Column="1" TopLine="383"/>510 <Caret Line="178" Column="14" TopLine="176"/> 477 511 </Position25> 478 512 <Position26> 479 <Filename Value="..\..\UCoolDock Layout.pas"/>480 <Caret Line=" 399" Column="1" TopLine="383"/>513 <Filename Value="..\..\UCoolDockCustomize.pas"/> 514 <Caret Line="44" Column="27" TopLine="72"/> 481 515 </Position26> 482 516 <Position27> 483 <Filename Value="..\..\UCoolDock Layout.pas"/>484 <Caret Line=" 400" Column="1" TopLine="383"/>517 <Filename Value="..\..\UCoolDockCustomize.pas"/> 518 <Caret Line="81" Column="1" TopLine="72"/> 485 519 </Position27> 486 520 <Position28> 487 521 <Filename Value="..\..\UCoolDockLayout.pas"/> 488 <Caret Line=" 401" Column="1" TopLine="383"/>522 <Caret Line="179" Column="1" TopLine="166"/> 489 523 </Position28> 490 524 <Position29> 491 525 <Filename Value="..\..\UCoolDockLayout.pas"/> 492 <Caret Line=" 402" Column="1" TopLine="383"/>526 <Caret Line="180" Column="1" TopLine="166"/> 493 527 </Position29> 494 528 <Position30> 495 529 <Filename Value="..\..\UCoolDockLayout.pas"/> 496 <Caret Line=" 404" Column="1" TopLine="383"/>530 <Caret Line="181" Column="1" TopLine="166"/> 497 531 </Position30> 498 532 </JumpHistory> … … 520 554 </CompilerOptions> 521 555 <Debugging> 556 <BreakPoints Count="1"> 557 <Item1> 558 <Source Value="..\..\UCoolDockCustomize.pas"/> 559 <Line Value="81"/> 560 </Item1> 561 </BreakPoints> 522 562 <Exceptions Count="3"> 523 563 <Item1> -
Docking/CoolDocking/Demo/IDE/UMainForm.lfm
r179 r180 1 1 object MainForm: TMainForm 2 Left = 26 62 Left = 263 3 3 Height = 445 4 4 Top = 130 … … 32 32 TabOrder = 0 33 33 object ComboBox1: TComboBox 34 Left = 134 Left = 44 35 35 Height = 21 36 36 Top = 2 37 37 Width = 100 38 Align = alLeft 38 39 ItemHeight = 13 39 40 OnSelect = ComboBox1Select … … 41 42 end 42 43 object ToolButton1: TToolButton 43 Left = 1 0144 Left = 144 44 45 Top = 2 45 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 46 57 end 47 58 end … … 76 87 Action = AViewObjectInspector 77 88 end 78 object MenuItem13: TMenuItem79 Action = AViewWindowList80 end81 89 object MenuItem14: TMenuItem 82 90 Action = AViewStructure … … 110 118 Caption = 'Run' 111 119 end 120 object MenuItem25: TMenuItem 121 Caption = 'Docking' 122 object MenuItem26: TMenuItem 123 Action = ACustomizeDocking 124 end 125 object MenuItem27: TMenuItem 126 Action = AViewWindowList 127 end 128 object MenuItem13: TMenuItem 129 Action = ADesktopSave 130 end 131 end 112 132 object MenuItem11: TMenuItem 113 133 Caption = 'Tools' 114 object MenuItem22: TMenuItem115 Action = ACustomizeDocking116 end117 134 end 118 135 object MenuItem10: TMenuItem … … 258 275 object CoolDockCustomize1: TCoolDockCustomize 259 276 Master = CoolDockMaster1 277 LayoutList = CoolDockLayoutList1 260 278 left = 284 261 279 top = 179 -
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r179 r180 10 10 UToolPaletteForm, UObjectInspectorForm, UProjectManagerForm, UStructureForm, 11 11 UMessagesForm, UCallStackForm, ULocalVariablesForm, UToDoListForm, 12 UWatchListForm, UThreadStatusForm, USourceEditorForm ;12 UWatchListForm, UThreadStatusForm, USourceEditorForm, UCoolDockWindowList; 13 13 14 14 const … … 43 43 CoolDockWindowList1: TCoolDockWindowList; 44 44 ImageList1: TImageList; 45 Label1: TLabel; 45 46 MenuItem11: TMenuItem; 46 47 MenuItem10: TMenuItem; … … 55 56 MenuItem20: TMenuItem; 56 57 MenuItem21: TMenuItem; 57 MenuItem22: TMenuItem;58 58 MenuItem23: TMenuItem; 59 59 MenuItem24: TMenuItem; 60 MenuItem25: TMenuItem; 61 MenuItem26: TMenuItem; 62 MenuItem27: TMenuItem; 60 63 MenuItem9: TMenuItem; 61 64 MenuItem8: TMenuItem; … … 194 197 begin 195 198 CoolDockCustomize1.Execute; 199 CoolDockLayoutList1.PopulateStringList(ComboBox1.Items); 196 200 end; 197 201 -
Docking/CoolDocking/UCoolDockCustomize.lfm
r96 r180 1 1 object CoolDockCustomizeForm: TCoolDockCustomizeForm 2 Left = 3383 2 Left = 431 4 Height = 323 5 Top = 96 3 Height = 321 6 4 Top = 139 7 Width = 4075 Width = 397 8 6 Caption = 'Customize docking' 9 ClientHeight = 323 10 ClientWidth = 407 7 ClientHeight = 321 8 ClientWidth = 397 9 FormStyle = fsStayOnTop 11 10 OnShow = FormShow 12 LCLVersion = '0.9. 29'11 LCLVersion = '0.9.31' 13 12 object PageControl1: TPageControl 14 13 Left = 8 15 Height = 27 814 Height = 276 16 15 Top = 8 17 Width = 3 9318 ActivePage = TabSheet Setting16 Width = 383 17 ActivePage = TabSheetLayouts 19 18 Anchors = [akTop, akLeft, akRight, akBottom] 20 TabIndex = 019 TabIndex = 1 21 20 TabOrder = 0 22 21 object TabSheetSetting: TTabSheet … … 99 98 object TabSheetLayouts: TTabSheet 100 99 Caption = 'Layouts' 101 ClientHeight = 25 2102 ClientWidth = 3 85100 ClientHeight = 250 101 ClientWidth = 375 103 102 object ListBox1: TListBox 104 103 Left = 10 105 Height = 2 31104 Height = 229 106 105 Top = 11 107 Width = 180108 Anchors = [akTop, akLeft, ak Bottom]106 Width = 258 107 Anchors = [akTop, akLeft, akRight, akBottom] 109 108 ItemHeight = 0 109 OnSelectionChange = ListBox1SelectionChange 110 110 TabOrder = 0 111 end 112 object ButtonLayoutNew: TButton 113 Left = 282 114 Height = 25 115 Top = 10 116 Width = 75 117 Anchors = [akTop, akRight] 118 Caption = 'New...' 119 OnClick = ButtonLayoutNewClick 120 TabOrder = 1 121 end 122 object ButtonLayoutSave: TButton 123 Left = 282 124 Height = 25 125 Top = 50 126 Width = 75 127 Anchors = [akTop, akRight] 128 Caption = 'Save' 129 Enabled = False 130 TabOrder = 2 131 end 132 object ButtonLayoutRename: TButton 133 Left = 282 134 Height = 25 135 Top = 90 136 Width = 75 137 Anchors = [akTop, akRight] 138 Caption = 'Rename' 139 Enabled = False 140 OnClick = ButtonLayoutRenameClick 141 TabOrder = 3 142 end 143 object ButtonLayoutDelete: TButton 144 Left = 282 145 Height = 25 146 Top = 130 147 Width = 75 148 Anchors = [akTop, akRight] 149 Caption = 'Delete' 150 Enabled = False 151 OnClick = ButtonLayoutDeleteClick 152 TabOrder = 4 153 end 154 object ButtonLayoutApply: TButton 155 Left = 282 156 Height = 25 157 Top = 170 158 Width = 75 159 Anchors = [akTop, akRight] 160 Caption = 'Restore' 161 Enabled = False 162 OnClick = ButtonLayoutApplyClick 163 TabOrder = 5 111 164 end 112 165 end 113 166 end 114 167 object ButtonClose: TButton 115 Left = 3 24168 Left = 314 116 169 Height = 22 117 Top = 29 4170 Top = 292 118 171 Width = 75 119 172 Anchors = [akRight, akBottom] -
Docking/CoolDocking/UCoolDockCustomize.lrs
r97 r180 3 3 LazarusResources.Add('TCoolDockCustomizeForm','FORMDATA',[ 4 4 'TPF0'#22'TCoolDockCustomizeForm'#21'CoolDockCustomizeForm'#4'Left'#3#175#1#6 5 +'Height'#3'C'#1#3'Top'#3#139#0#5'Width'#3#151#1#7'Caption'#6#17'Customize do' 6 +'cking'#12'ClientHeight'#3'C'#1#11'ClientWidth'#3#151#1#6'OnShow'#7#8'FormSh' 7 +'ow'#10'LCLVersion'#6#6'0.9.29'#0#12'TPageControl'#12'PageControl1'#4'Left'#2 8 +#8#6'Height'#3#22#1#3'Top'#2#8#5'Width'#3#137#1#10'ActivePage'#7#15'TabSheet' 9 +'Setting'#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'akBottom'#0#8'TabInd' 10 +'ex'#2#0#8'TabOrder'#2#0#0#9'TTabSheet'#15'TabSheetSetting'#7'Caption'#6#7'O' 11 +'ptions'#12'ClientHeight'#3#252#0#11'ClientWidth'#3#129#1#0#6'TLabel'#6'Labe' 12 +'l1'#4'Left'#2#7#6'Height'#2#14#3'Top'#2#13#5'Width'#2'h'#7'Caption'#6#22'De' 13 +'fault tabs position:'#11'ParentColor'#8#0#0#9'TComboBox'#9'ComboBox1'#4'Lef' 14 +'t'#3#164#0#6'Height'#2#21#3'Top'#2#10#5'Width'#2'd'#10'ItemHeight'#2#13#13 15 +'Items.Strings'#1#6#4'Auto'#6#4'Left'#6#3'Top'#6#5'Right'#6#6'Bottom'#0#5'St' 16 +'yle'#7#14'csDropDownList'#8'TabOrder'#2#0#0#0#6'TLabel'#6'Label2'#4'Left'#2 17 +#7#6'Height'#2#14#3'Top'#2')'#5'Width'#2'u'#7'Caption'#6#24'Default header p' 18 +'osition:'#11'ParentColor'#8#0#0#9'TComboBox'#9'ComboBox2'#4'Left'#3#164#0#6 19 +'Height'#2#21#3'Top'#2'&'#5'Width'#2'd'#10'ItemHeight'#2#13#13'Items.Strings' 20 +#1#6#4'Auto'#6#4'Left'#6#3'Top'#6#5'Right'#6#6'Bottom'#0#5'Style'#7#14'csDro' 21 +'pDownList'#8'TabOrder'#2#1#0#0#6'TLabel'#6'Label3'#4'Left'#2#7#6'Height'#2 22 +#14#3'Top'#2'C'#5'Width'#2'e'#7'Caption'#6#20'Hide/unhide duration'#11'Paren' 23 +'tColor'#8#0#0#9'TSpinEdit'#9'SpinEdit1'#4'Left'#3#164#0#6'Height'#2#21#3'To' 24 +'p'#2'@'#5'Width'#2'd'#8'MaxValue'#3#16''''#8'TabOrder'#2#2#0#0#6'TLabel'#6 25 +'Label4'#4'Left'#3#14#1#6'Height'#2#14#3'Top'#2'C'#5'Width'#2#14#7'Caption'#6 26 +#2'ms'#11'ParentColor'#8#0#0#0#9'TTabSheet'#15'TabSheetLayouts'#7'Caption'#6 27 +#7'Layouts'#12'ClientHeight'#3#252#0#11'ClientWidth'#3#129#1#0#8'TListBox'#8 28 +'ListBox1'#4'Left'#2#10#6'Height'#3#231#0#3'Top'#2#11#5'Width'#3#180#0#7'Anc' 29 +'hors'#11#5'akTop'#6'akLeft'#8'akBottom'#0#10'ItemHeight'#2#0#8'TabOrder'#2#0 30 +#0#0#0#0#7'TButton'#11'ButtonClose'#4'Left'#3'D'#1#6'Height'#2#22#3'Top'#3'&' 31 +#1#5'Width'#2'K'#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'Caption'#6#5'Close' 32 +#7'OnClick'#7#16'ButtonCloseClick'#8'TabOrder'#2#1#0#0#0 5 +'Height'#3'A'#1#3'Top'#3#139#0#5'Width'#3#141#1#7'Caption'#6#17'Customize do' 6 +'cking'#12'ClientHeight'#3'A'#1#11'ClientWidth'#3#141#1#9'FormStyle'#7#11'fs' 7 +'StayOnTop'#6'OnShow'#7#8'FormShow'#10'LCLVersion'#6#6'0.9.31'#0#12'TPageCon' 8 +'trol'#12'PageControl1'#4'Left'#2#8#6'Height'#3#20#1#3'Top'#2#8#5'Width'#3 9 +#127#1#10'ActivePage'#7#15'TabSheetLayouts'#7'Anchors'#11#5'akTop'#6'akLeft' 10 +#7'akRight'#8'akBottom'#0#8'TabIndex'#2#1#8'TabOrder'#2#0#0#9'TTabSheet'#15 11 +'TabSheetSetting'#7'Caption'#6#7'Options'#12'ClientHeight'#3#252#0#11'Client' 12 +'Width'#3#129#1#0#6'TLabel'#6'Label1'#4'Left'#2#7#6'Height'#2#14#3'Top'#2#13 13 +#5'Width'#2'h'#7'Caption'#6#22'Default tabs position:'#11'ParentColor'#8#0#0 14 +#9'TComboBox'#9'ComboBox1'#4'Left'#3#164#0#6'Height'#2#21#3'Top'#2#10#5'Widt' 15 +'h'#2'd'#10'ItemHeight'#2#13#13'Items.Strings'#1#6#4'Auto'#6#4'Left'#6#3'Top' 16 +#6#5'Right'#6#6'Bottom'#0#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#0#0#0#6 17 +'TLabel'#6'Label2'#4'Left'#2#7#6'Height'#2#14#3'Top'#2')'#5'Width'#2'u'#7'Ca' 18 +'ption'#6#24'Default header position:'#11'ParentColor'#8#0#0#9'TComboBox'#9 19 +'ComboBox2'#4'Left'#3#164#0#6'Height'#2#21#3'Top'#2'&'#5'Width'#2'd'#10'Item' 20 +'Height'#2#13#13'Items.Strings'#1#6#4'Auto'#6#4'Left'#6#3'Top'#6#5'Right'#6#6 21 +'Bottom'#0#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#1#0#0#6'TLabel'#6'Lab' 22 +'el3'#4'Left'#2#7#6'Height'#2#14#3'Top'#2'C'#5'Width'#2'e'#7'Caption'#6#20'H' 23 +'ide/unhide duration'#11'ParentColor'#8#0#0#9'TSpinEdit'#9'SpinEdit1'#4'Left' 24 +#3#164#0#6'Height'#2#21#3'Top'#2'@'#5'Width'#2'd'#8'MaxValue'#3#16''''#8'Tab' 25 +'Order'#2#2#0#0#6'TLabel'#6'Label4'#4'Left'#3#14#1#6'Height'#2#14#3'Top'#2'C' 26 +#5'Width'#2#14#7'Caption'#6#2'ms'#11'ParentColor'#8#0#0#0#9'TTabSheet'#15'Ta' 27 +'bSheetLayouts'#7'Caption'#6#7'Layouts'#12'ClientHeight'#3#250#0#11'ClientWi' 28 +'dth'#3'w'#1#0#8'TListBox'#8'ListBox1'#4'Left'#2#10#6'Height'#3#229#0#3'Top' 29 +#2#11#5'Width'#3#2#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'akBottom' 30 +#0#10'ItemHeight'#2#0#17'OnSelectionChange'#7#23'ListBox1SelectionChange'#8 31 +'TabOrder'#2#0#0#0#7'TButton'#15'ButtonLayoutNew'#4'Left'#3#26#1#6'Height'#2 32 +#25#3'Top'#2#10#5'Width'#2'K'#7'Anchors'#11#5'akTop'#7'akRight'#0#7'Caption' 33 +#6#6'New...'#7'OnClick'#7#20'ButtonLayoutNewClick'#8'TabOrder'#2#1#0#0#7'TBu' 34 +'tton'#16'ButtonLayoutSave'#4'Left'#3#26#1#6'Height'#2#25#3'Top'#2'2'#5'Widt' 35 +'h'#2'K'#7'Anchors'#11#5'akTop'#7'akRight'#0#7'Caption'#6#4'Save'#7'Enabled' 36 +#8#8'TabOrder'#2#2#0#0#7'TButton'#18'ButtonLayoutRename'#4'Left'#3#26#1#6'He' 37 +'ight'#2#25#3'Top'#2'Z'#5'Width'#2'K'#7'Anchors'#11#5'akTop'#7'akRight'#0#7 38 +'Caption'#6#6'Rename'#7'Enabled'#8#7'OnClick'#7#23'ButtonLayoutRenameClick'#8 39 +'TabOrder'#2#3#0#0#7'TButton'#18'ButtonLayoutDelete'#4'Left'#3#26#1#6'Height' 40 +#2#25#3'Top'#3#130#0#5'Width'#2'K'#7'Anchors'#11#5'akTop'#7'akRight'#0#7'Cap' 41 +'tion'#6#6'Delete'#7'Enabled'#8#7'OnClick'#7#23'ButtonLayoutDeleteClick'#8'T' 42 +'abOrder'#2#4#0#0#7'TButton'#17'ButtonLayoutApply'#4'Left'#3#26#1#6'Height'#2 43 +#25#3'Top'#3#170#0#5'Width'#2'K'#7'Anchors'#11#5'akTop'#7'akRight'#0#7'Capti' 44 +'on'#6#7'Restore'#7'Enabled'#8#7'OnClick'#7#22'ButtonLayoutApplyClick'#8'Tab' 45 +'Order'#2#5#0#0#0#0#7'TButton'#11'ButtonClose'#4'Left'#3':'#1#6'Height'#2#22 46 +#3'Top'#3'$'#1#5'Width'#2'K'#7'Anchors'#11#7'akRight'#8'akBottom'#0#7'Captio' 47 +'n'#6#5'Close'#7'OnClick'#7#16'ButtonCloseClick'#8'TabOrder'#2#1#0#0#0 33 48 ]); -
Docking/CoolDocking/UCoolDockCustomize.lrt
r89 r180 1 TCOOLDOCKCUSTOMIZEFORM.C OOLDOCKCUSTOMIZEFORM.CAPTION=Customize docking1 TCOOLDOCKCUSTOMIZEFORM.CAPTION=Customize docking 2 2 TCOOLDOCKCUSTOMIZEFORM.TABSHEETSETTING.CAPTION=Options 3 3 TCOOLDOCKCUSTOMIZEFORM.LABEL1.CAPTION=Default tabs position: … … 6 6 TCOOLDOCKCUSTOMIZEFORM.LABEL4.CAPTION=ms 7 7 TCOOLDOCKCUSTOMIZEFORM.TABSHEETLAYOUTS.CAPTION=Layouts 8 TCOOLDOCKCUSTOMIZEFORM.BUTTONLAYOUTNEW.CAPTION=New... 9 TCOOLDOCKCUSTOMIZEFORM.BUTTONLAYOUTSAVE.CAPTION=Save 10 TCOOLDOCKCUSTOMIZEFORM.BUTTONLAYOUTRENAME.CAPTION=Rename 11 TCOOLDOCKCUSTOMIZEFORM.BUTTONLAYOUTDELETE.CAPTION=Delete 12 TCOOLDOCKCUSTOMIZEFORM.BUTTONLAYOUTAPPLY.CAPTION=Restore 8 13 TCOOLDOCKCUSTOMIZEFORM.BUTTONCLOSE.CAPTION=Close -
Docking/CoolDocking/UCoolDockCustomize.pas
r97 r180 7 7 uses 8 8 Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, 9 ComCtrls, StdCtrls, Spin ;9 ComCtrls, StdCtrls, Spin, UCoolDockLayout; 10 10 11 11 type … … 14 14 15 15 TCoolDockCustomizeForm = class(TForm) 16 published 17 ButtonLayoutDelete: TButton; 18 ButtonLayoutApply: TButton; 19 ButtonLayoutRename: TButton; 20 ButtonLayoutNew: TButton; 21 ButtonLayoutSave: TButton; 16 22 ButtonClose: TButton; 17 23 ComboBox1: TComboBox; … … 27 33 TabSheetLayouts: TTabSheet; 28 34 procedure ButtonCloseClick(Sender: TObject); 35 procedure ButtonLayoutApplyClick(Sender: TObject); 36 procedure ButtonLayoutDeleteClick(Sender: TObject); 37 procedure ButtonLayoutNewClick(Sender: TObject); 38 procedure ButtonLayoutRenameClick(Sender: TObject); 29 39 procedure FormShow(Sender: TObject); 40 procedure ListBox1SelectionChange(Sender: TObject; User: boolean); 30 41 private 31 42 { private declarations } 32 43 public 44 LayoutList: TCoolDockLayoutList; 33 45 end; 34 46 35 47 implementation 36 48 49 resourcestring 50 SNewLayout = 'New Layout'; 51 SEnterNewName = 'Enter new name'; 37 52 38 53 { TCoolDockCustomizeForm } … … 43 58 end; 44 59 60 procedure TCoolDockCustomizeForm.ButtonLayoutApplyClick(Sender: TObject); 61 begin 62 if ListBox1.ItemIndex <> - 1 then 63 TCoolDockLayout(LayoutList.Items[ListBox1.ItemIndex]).Restore; 64 end; 65 66 procedure TCoolDockCustomizeForm.ButtonLayoutDeleteClick(Sender: TObject); 67 begin 68 if ListBox1.ItemIndex <> - 1 then begin 69 LayoutList.Items.Delete(ListBox1.ItemIndex); 70 LayoutList.PopulateStringList(ListBox1.Items); 71 end; 72 end; 73 74 procedure TCoolDockCustomizeForm.ButtonLayoutNewClick(Sender: TObject); 75 var 76 NewLayout: TCoolDockLayout; 77 NewName: string; 78 begin 79 NewName := SNewLayout; 80 if InputQuery(SNewLayout, SEnterNewName, NewName) then 81 if not Assigned(LayoutList.FindByName(NewName)) then begin 82 NewLayout := TCoolDockLayout.Create; 83 NewLayout.Name := NewName; 84 NewLayout.Store; 85 LayoutList.Items.Add(NewLayout); 86 LayoutList.PopulateStringList(ListBox1.Items); 87 end; 88 end; 89 90 procedure TCoolDockCustomizeForm.ButtonLayoutRenameClick(Sender: TObject); 91 var 92 NewName: string; 93 begin 94 NewName := TCoolDockLayout(LayoutList.Items[ListBox1.ItemIndex]).Name; 95 if InputQuery(SNewLayout, SEnterNewName, NewName) then begin 96 TCoolDockLayout(LayoutList.Items[ListBox1.ItemIndex]).Name := NewName; 97 LayoutList.PopulateStringList(ListBox1.Items); 98 end; 99 end; 100 45 101 procedure TCoolDockCustomizeForm.FormShow(Sender: TObject); 46 102 begin 103 if Assigned(LayoutList) then begin 104 LayoutList.PopulateStringList(ListBox1.Items); 105 end; 106 end; 47 107 108 procedure TCoolDockCustomizeForm.ListBox1SelectionChange(Sender: TObject; 109 User: boolean); 110 begin 111 ButtonLayoutRename.Enabled := ListBox1.ItemIndex <> -1; 112 ButtonLayoutDelete.Enabled := ListBox1.ItemIndex <> -1; 113 ButtonLayoutApply.Enabled := ListBox1.ItemIndex <> -1; 114 ButtonLayoutSave.Enabled := ListBox1.ItemIndex <> -1; 48 115 end; 49 116 -
Docking/CoolDocking/UCoolDockLayout.pas
r179 r180 1 1 unit UCoolDockLayout; 2 2 3 {$mode objfpc}{$H+}3 {$mode Delphi}{$H+} 4 4 5 5 interface 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Contnrs, URectangle, UCoolDocking, Forms,8 Classes, SysUtils, FileUtil, Contnrs, URectangle, Forms, UCoolDockCommon, 9 9 DOM, XMLWrite, XMLRead; 10 10 … … 52 52 procedure SaveToFile(FileName: string); 53 53 procedure PopulateStringList(List: TStrings); 54 function FindByName(Name: string): TCoolDockLayout; 54 55 constructor Create(AOwner: TComponent); override; 55 56 destructor Destroy; override; … … 171 172 for I := 0 to Items.Count - 1 do 172 173 List.AddObject(TCoolDockLayout(Items[I]).Name, TCoolDockLayout(Items[I])); 174 end; 175 176 function TCoolDockLayoutList.FindByName(Name: string): TCoolDockLayout; 177 var 178 I: Integer; 179 begin 180 I := 0; 181 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; 173 183 end; 174 184 -
Docking/CoolDocking/UCoolDockPopupMenu.pas
r177 r180 7 7 uses 8 8 Classes, SysUtils, Menus, Forms, Controls, Dialogs, UCoolDockClientPanel, 9 ExtCtrls, ComCtrls ;9 ExtCtrls, ComCtrls, UCoolDockCommon; 10 10 11 11 type -
Docking/CoolDocking/UCoolDockWindowList.pas
r176 r180 7 7 uses 8 8 Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, 9 ComCtrls, StdCtrls, Menus ;9 ComCtrls, StdCtrls, Menus, UCoolDockLayout; 10 10 11 11 type … … 34 34 end; 35 35 36 var 37 CoolDockWindowListForm: TCoolDockWindowListForm; 36 TCoolDockWindowList = class(TComponent) 37 private 38 FLayoutList: TCoolDockLayoutList; 39 Form: TCoolDockWindowListForm; 40 procedure SetLayoutList(const AValue: TCoolDockLayoutList); 41 public 42 function Execute: Boolean; 43 constructor Create(AOwner: TComponent); override; 44 published 45 end; 46 47 procedure Register; 38 48 39 49 implementation … … 44 54 SStateVisible = 'Visible'; 45 55 SStateHidden = 'Hidden'; 56 57 procedure Register; 58 begin 59 RegisterComponents('CoolDocking', [TCoolDockWindowList]); 60 end; 61 62 { TCoolDockWindowList } 63 64 function TCoolDockWindowList.Execute: Boolean; 65 begin 66 Form := TCoolDockWindowListForm.Create(Self); 67 Form.ShowModal; 68 Form.Free; 69 Result := True; 70 end; 71 72 constructor TCoolDockWindowList.Create(AOwner: TComponent); 73 begin 74 inherited Create(AOwner); 75 end; 76 77 procedure TCoolDockWindowList.SetLayoutList(const AValue: TCoolDockLayoutList); 78 begin 79 if FLayoutList = AValue then Exit; 80 FLayoutList := AValue; 81 end; 46 82 47 83 { TCoolDockWindowListForm } -
Docking/CoolDocking/UCoolDocking.pas
r177 r180 10 10 Classes, SysUtils, Controls, LCLType, LMessages, Graphics, StdCtrls, 11 11 Buttons, ExtCtrls, Contnrs, Forms, ComCtrls, Dialogs, Menus, FileUtil, 12 UCoolDockCustomize, DOM, XMLWrite, XMLRead, UCoolDock WindowList,12 UCoolDockCustomize, DOM, XMLWrite, XMLRead, UCoolDockCommon, 13 13 DateUtils, UCoolDockStyleTabs, UCoolDockStyleRegions, UCoolDockStylePopupTabs, 14 14 UCoolDockStylePopupRegions, UCoolDockStyle, UCoolDockClientPanel, 15 UCoolDockPopupMenu ;15 UCoolDockPopupMenu, UCoolDockLayout; 16 16 17 17 const … … 38 38 procedure PanelVisibleChange(Sender: TObject); 39 39 end; 40 41 TDockStyle = (dsList, dsTabs, dsPopupTabs, dsPopupList);42 40 43 41 // TObjectList<TCoolDockClientPanel> … … 174 172 TCoolDockCustomize = class(TComponent) 175 173 private 174 FLayoutList: TCoolDockLayoutList; 176 175 FMaster: TCoolDockMaster; 177 176 Form: TCoolDockCustomizeForm; 177 procedure SetLayoutList(const AValue: TCoolDockLayoutList); 178 178 procedure SetMaster(const AValue: TCoolDockMaster); 179 179 public … … 183 183 published 184 184 property Master: TCoolDockMaster read FMaster write SetMaster; 185 end; 186 187 { TCoolDockWindowList } 188 189 TCoolDockWindowList = class(TComponent) 190 private 191 Form: TCoolDockWindowListForm; 192 public 193 function Execute: Boolean; 194 constructor Create(AOwner: TComponent); override; 195 published 185 property LayoutList: TCoolDockLayoutList read FLayoutList write SetLayoutList; 196 186 end; 197 187 … … 208 198 RegisterComponents('CoolDocking', [TCoolDockClient]); 209 199 RegisterComponents('CoolDocking', [TCoolDockCustomize]); 210 RegisterComponents('CoolDocking', [TCoolDockWindowList]);211 200 end; 212 201 … … 801 790 end; 802 791 792 procedure TCoolDockCustomize.SetLayoutList(const AValue: TCoolDockLayoutList); 793 begin 794 if FLayoutList=AValue then exit; 795 FLayoutList:=AValue; 796 end; 797 803 798 function TCoolDockCustomize.Execute: Boolean; 804 799 begin … … 808 803 Form.ComboBox1.ItemIndex := Integer(Master.DefaultTabsPos); 809 804 Form.ComboBox2.ItemIndex := Integer(Master.DefaultHeaderPos); 805 Form.LayoutList := FLayoutList; 810 806 end; 811 807 Form.ShowModal; … … 830 826 end; 831 827 832 833 { TCoolDockWindowList }834 835 function TCoolDockWindowList.Execute: Boolean;836 begin837 Form := TCoolDockWindowListForm.Create(Self);838 Form.ShowModal;839 Form.Free;840 Result := True;841 end;842 843 constructor TCoolDockWindowList.Create(AOwner: TComponent);844 begin845 inherited Create(AOwner);846 end;847 828 848 829 { TCoolDockClient }
Note:
See TracChangeset
for help on using the changeset viewer.