- Timestamp:
- Mar 8, 2011, 12:58:28 PM (14 years ago)
- Location:
- Docking/CoolDocking
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Demo/IDE
- Property svn:ignore
-
old new 1 1 IDE.exe 2 2 lib 3 Layout.xml
-
- Property svn:ignore
-
Docking/CoolDocking/Demo/IDE/IDE.lpi
r178 r179 47 47 </Item4> 48 48 </RequiredPackages> 49 <Units Count=" 22">49 <Units Count="31"> 50 50 <Unit0> 51 51 <Filename Value="IDE.lpr"/> 52 52 <IsPartOfProject Value="True"/> 53 53 <UnitName Value="IDE"/> 54 <UsageCount Value=" 27"/>54 <UsageCount Value="31"/> 55 55 </Unit0> 56 56 <Unit1> … … 60 60 <ResourceBaseClass Value="Form"/> 61 61 <UnitName Value="UMainForm"/> 62 <IsVisibleTab Value="True"/>63 62 <EditorIndex Value="0"/> 64 63 <WindowIndex Value="0"/> 65 <TopLine Value="1 "/>66 <CursorPos X=" 55" Y="12"/>67 <UsageCount Value=" 27"/>64 <TopLine Value="159"/> 65 <CursorPos X="15" Y="161"/> 66 <UsageCount Value="31"/> 68 67 <Loaded Value="True"/> 69 68 <LoadedDesigner Value="True"/> … … 75 74 <ResourceBaseClass Value="Form"/> 76 75 <UnitName Value="UObjectInspectorForm"/> 77 <EditorIndex Value="1 4"/>76 <EditorIndex Value="12"/> 78 77 <WindowIndex Value="0"/> 79 78 <TopLine Value="1"/> 80 79 <CursorPos X="12" Y="16"/> 81 <UsageCount Value=" 27"/>80 <UsageCount Value="31"/> 82 81 <Loaded Value="True"/> 83 82 <LoadedDesigner Value="True"/> … … 89 88 <ResourceBaseClass Value="Form"/> 90 89 <UnitName Value="UStructureForm"/> 91 <EditorIndex Value="1 7"/>90 <EditorIndex Value="15"/> 92 91 <WindowIndex Value="0"/> 93 92 <TopLine Value="1"/> 94 93 <CursorPos X="3" Y="16"/> 95 <UsageCount Value=" 27"/>94 <UsageCount Value="31"/> 96 95 <Loaded Value="True"/> 97 96 <LoadedDesigner Value="True"/> … … 103 102 <ResourceBaseClass Value="Form"/> 104 103 <UnitName Value="UToolPaletteForm"/> 105 <EditorIndex Value="1 8"/>104 <EditorIndex Value="16"/> 106 105 <WindowIndex Value="0"/> 107 106 <TopLine Value="1"/> 108 107 <CursorPos X="15" Y="10"/> 109 <UsageCount Value=" 27"/>108 <UsageCount Value="31"/> 110 109 <Loaded Value="True"/> 111 110 <LoadedDesigner Value="True"/> … … 113 112 <Unit5> 114 113 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 115 <EditorIndex Value="1 9"/>116 <WindowIndex Value="0"/> 117 <TopLine Value=" 3176"/>118 <CursorPos X="1" Y=" 3189"/>119 <UsageCount Value="1 4"/>114 <EditorIndex Value="17"/> 115 <WindowIndex Value="0"/> 116 <TopLine Value="2272"/> 117 <CursorPos X="1" Y="2285"/> 118 <UsageCount Value="17"/> 120 119 <Loaded Value="True"/> 121 120 </Unit5> … … 126 125 <ResourceBaseClass Value="Form"/> 127 126 <UnitName Value="UProjectManagerForm"/> 128 <EditorIndex Value="1 6"/>127 <EditorIndex Value="14"/> 129 128 <WindowIndex Value="0"/> 130 129 <TopLine Value="1"/> 131 130 <CursorPos X="20" Y="16"/> 132 <UsageCount Value=" 27"/>131 <UsageCount Value="31"/> 133 132 <Loaded Value="True"/> 134 133 <LoadedDesigner Value="True"/> … … 136 135 <Unit7> 137 136 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customform.inc"/> 138 <EditorIndex Value=" 20"/>137 <EditorIndex Value="19"/> 139 138 <WindowIndex Value="0"/> 140 139 <TopLine Value="1870"/> 141 140 <CursorPos X="1" Y="1883"/> 142 <UsageCount Value="1 4"/>141 <UsageCount Value="17"/> 143 142 <Loaded Value="True"/> 144 143 </Unit7> … … 149 148 <ResourceBaseClass Value="Form"/> 150 149 <UnitName Value="UMessagesForm"/> 151 <EditorIndex Value="1 5"/>150 <EditorIndex Value="13"/> 152 151 <WindowIndex Value="0"/> 153 152 <TopLine Value="1"/> 154 153 <CursorPos X="7" Y="16"/> 155 <UsageCount Value=" 27"/>154 <UsageCount Value="31"/> 156 155 <Loaded Value="True"/> 157 156 <LoadedDesigner Value="True"/> … … 163 162 <ResourceBaseClass Value="Form"/> 164 163 <UnitName Value="UCallStackForm"/> 165 <EditorIndex Value="1 3"/>164 <EditorIndex Value="11"/> 166 165 <WindowIndex Value="0"/> 167 166 <TopLine Value="1"/> 168 167 <CursorPos X="12" Y="15"/> 169 <UsageCount Value=" 27"/>168 <UsageCount Value="31"/> 170 169 <Loaded Value="True"/> 171 170 <LoadedDesigner Value="True"/> … … 177 176 <ResourceBaseClass Value="Form"/> 178 177 <UnitName Value="ULocalVariablesForm"/> 179 <EditorIndex Value="1 2"/>178 <EditorIndex Value="10"/> 180 179 <WindowIndex Value="0"/> 181 180 <TopLine Value="1"/> 182 181 <CursorPos X="21" Y="4"/> 183 <UsageCount Value=" 27"/>182 <UsageCount Value="31"/> 184 183 <Loaded Value="True"/> 185 184 <LoadedDesigner Value="True"/> … … 191 190 <ResourceBaseClass Value="Form"/> 192 191 <UnitName Value="UToDoListForm"/> 193 <EditorIndex Value=" 11"/>192 <EditorIndex Value="9"/> 194 193 <WindowIndex Value="0"/> 195 194 <TopLine Value="1"/> 196 195 <CursorPos X="12" Y="16"/> 197 <UsageCount Value=" 27"/>196 <UsageCount Value="31"/> 198 197 <Loaded Value="True"/> 199 198 <LoadedDesigner Value="True"/> … … 205 204 <ResourceBaseClass Value="Form"/> 206 205 <UnitName Value="UWatchListForm"/> 207 <EditorIndex Value=" 10"/>206 <EditorIndex Value="8"/> 208 207 <WindowIndex Value="0"/> 209 208 <TopLine Value="1"/> 210 209 <CursorPos X="12" Y="17"/> 211 <UsageCount Value=" 27"/>210 <UsageCount Value="31"/> 212 211 <Loaded Value="True"/> 213 212 <LoadedDesigner Value="True"/> … … 219 218 <ResourceBaseClass Value="Form"/> 220 219 <UnitName Value="UThreadStatusForm"/> 221 <EditorIndex Value=" 9"/>220 <EditorIndex Value="7"/> 222 221 <WindowIndex Value="0"/> 223 222 <TopLine Value="1"/> 224 223 <CursorPos X="12" Y="16"/> 225 <UsageCount Value=" 27"/>224 <UsageCount Value="31"/> 226 225 <Loaded Value="True"/> 227 226 <LoadedDesigner Value="True"/> … … 233 232 <ResourceBaseClass Value="Form"/> 234 233 <UnitName Value="USourceEditorForm"/> 235 <EditorIndex Value=" 1"/>234 <EditorIndex Value="2"/> 236 235 <WindowIndex Value="0"/> 237 236 <TopLine Value="1"/> 238 237 <CursorPos X="41" Y="17"/> 239 <UsageCount Value="2 5"/>238 <UsageCount Value="29"/> 240 239 <Loaded Value="True"/> 241 240 <LoadedDesigner Value="True"/> … … 244 243 <Filename Value="..\..\UCoolDocking.pas"/> 245 244 <UnitName Value="UCoolDocking"/> 246 <EditorIndex Value=" 2"/>245 <EditorIndex Value="3"/> 247 246 <WindowIndex Value="0"/> 248 247 <TopLine Value="1"/> 249 248 <CursorPos X="22" Y="9"/> 250 <UsageCount Value="1 2"/>249 <UsageCount Value="15"/> 251 250 <Loaded Value="True"/> 252 251 </Unit15> … … 254 253 <Filename Value="..\..\UCoolDockLayout.pas"/> 255 254 <UnitName Value="UCoolDockLayout"/> 256 <EditorIndex Value="3"/> 257 <WindowIndex Value="0"/> 258 <TopLine Value="38"/> 259 <CursorPos X="43" Y="57"/> 260 <UsageCount Value="12"/> 255 <IsVisibleTab Value="True"/> 256 <EditorIndex Value="4"/> 257 <WindowIndex Value="0"/> 258 <TopLine Value="383"/> 259 <CursorPos X="4" Y="396"/> 260 <UsageCount Value="15"/> 261 261 <Loaded Value="True"/> 262 262 </Unit16> 263 263 <Unit17> 264 264 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\classes\classesh.inc"/> 265 <EditorIndex Value="6"/>266 265 <WindowIndex Value="0"/> 267 266 <TopLine Value="1643"/> 268 267 <CursorPos X="42" Y="1651"/> 269 <UsageCount Value="12"/> 270 <Loaded Value="True"/> 268 <UsageCount Value="15"/> 271 269 </Unit17> 272 270 <Unit18> 273 271 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\objpas\types.pp"/> 274 272 <UnitName Value="types"/> 275 <EditorIndex Value="7"/>276 273 <WindowIndex Value="0"/> 277 274 <TopLine Value="70"/> 278 275 <CursorPos X="21" Y="83"/> 279 <UsageCount Value="12"/> 280 <Loaded Value="True"/> 276 <UsageCount Value="15"/> 281 277 </Unit18> 282 278 <Unit19> 283 279 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\rtl\win\wininc\struct.inc"/> 284 <EditorIndex Value="8"/>285 280 <WindowIndex Value="0"/> 286 281 <TopLine Value="220"/> 287 282 <CursorPos X="16" Y="233"/> 288 <UsageCount Value="12"/> 289 <Loaded Value="True"/> 283 <UsageCount Value="15"/> 290 284 </Unit19> 291 285 <Unit20> 292 286 <Filename Value="..\..\URectangle.pas"/> 293 287 <UnitName Value="URectangle"/> 294 <EditorIndex Value=" 5"/>295 <WindowIndex Value="0"/> 296 <TopLine Value=" 3"/>297 <CursorPos X=" 13" Y="13"/>298 <UsageCount Value="1 2"/>288 <EditorIndex Value="6"/> 289 <WindowIndex Value="0"/> 290 <TopLine Value="20"/> 291 <CursorPos X="52" Y="33"/> 292 <UsageCount Value="15"/> 299 293 <Loaded Value="True"/> 300 294 </Unit20> … … 302 296 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\packages\fcl-xml\src\xmlread.pp"/> 303 297 <UnitName Value="XMLRead"/> 304 <EditorIndex Value="4"/>305 298 <WindowIndex Value="0"/> 306 299 <TopLine Value="34"/> 307 300 <CursorPos X="11" Y="47"/> 301 <UsageCount Value="15"/> 302 </Unit21> 303 <Unit22> 304 <Filename Value="..\..\UCoolDockWindowList.pas"/> 305 <UnitName Value="UCoolDockWindowList"/> 306 <EditorIndex Value="5"/> 307 <WindowIndex Value="0"/> 308 <TopLine Value="103"/> 309 <CursorPos X="1" Y="106"/> 308 310 <UsageCount Value="12"/> 309 311 <Loaded Value="True"/> 310 </Unit21> 312 </Unit22> 313 <Unit23> 314 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\forms.pp"/> 315 <UnitName Value="Forms"/> 316 <WindowIndex Value="0"/> 317 <TopLine Value="362"/> 318 <CursorPos X="3" Y="378"/> 319 <UsageCount Value="11"/> 320 </Unit23> 321 <Unit24> 322 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\FPC\packages\fcl-xml\src\xmlwrite.pp"/> 323 <UnitName Value="XMLWrite"/> 324 <WindowIndex Value="0"/> 325 <TopLine Value="835"/> 326 <CursorPos X="3" Y="837"/> 327 <UsageCount Value="11"/> 328 </Unit24> 329 <Unit25> 330 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customcombobox.inc"/> 331 <EditorIndex Value="1"/> 332 <WindowIndex Value="0"/> 333 <TopLine Value="913"/> 334 <CursorPos X="1" Y="930"/> 335 <UsageCount Value="11"/> 336 <Loaded Value="True"/> 337 </Unit25> 338 <Unit26> 339 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\containedaction.inc"/> 340 <WindowIndex Value="0"/> 341 <TopLine Value="91"/> 342 <CursorPos X="1" Y="104"/> 343 <UsageCount Value="10"/> 344 </Unit26> 345 <Unit27> 346 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\customaction.inc"/> 347 <WindowIndex Value="0"/> 348 <TopLine Value="239"/> 349 <CursorPos X="1" Y="252"/> 350 <UsageCount Value="10"/> 351 </Unit27> 352 <Unit28> 353 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\controls.pp"/> 354 <UnitName Value="Controls"/> 355 <WindowIndex Value="0"/> 356 <TopLine Value="1423"/> 357 <CursorPos X="44" Y="1431"/> 358 <UsageCount Value="10"/> 359 </Unit28> 360 <Unit29> 361 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\wincontrol.inc"/> 362 <WindowIndex Value="0"/> 363 <TopLine Value="7811"/> 364 <CursorPos X="20" Y="7829"/> 365 <UsageCount Value="10"/> 366 </Unit29> 367 <Unit30> 368 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\toolbutton.inc"/> 369 <EditorIndex Value="18"/> 370 <WindowIndex Value="0"/> 371 <TopLine Value="751"/> 372 <CursorPos X="1" Y="764"/> 373 <UsageCount Value="10"/> 374 <Loaded Value="True"/> 375 </Unit30> 311 376 </Units> 312 377 <JumpHistory Count="30" HistoryIndex="29"> 313 378 <Position1> 314 379 <Filename Value="..\..\UCoolDockLayout.pas"/> 315 <Caret Line=" 40" Column="74" TopLine="16"/>380 <Caret Line="344" Column="1" TopLine="334"/> 316 381 </Position1> 317 382 <Position2> 318 383 <Filename Value="..\..\UCoolDockLayout.pas"/> 319 <Caret Line=" 14" Column="11" TopLine="6"/>384 <Caret Line="345" Column="1" TopLine="334"/> 320 385 </Position2> 321 386 <Position3> 322 <Filename Value="..\..\U Rectangle.pas"/>323 <Caret Line=" 115" Column="26" TopLine="90"/>387 <Filename Value="..\..\UCoolDockLayout.pas"/> 388 <Caret Line="356" Column="1" TopLine="335"/> 324 389 </Position3> 325 390 <Position4> 326 <Filename Value=" ..\..\UCoolDockLayout.pas"/>327 <Caret Line=" 8" Column="65" TopLine="2"/>391 <Filename Value="UMainForm.pas"/> 392 <Caret Line="177" Column="1" TopLine="167"/> 328 393 </Position4> 329 394 <Position5> 330 <Filename Value=" ..\..\UCoolDockLayout.pas"/>331 <Caret Line=" 25" Column="44" TopLine="4"/>395 <Filename Value="UMainForm.pas"/> 396 <Caret Line="180" Column="1" TopLine="167"/> 332 397 </Position5> 333 398 <Position6> 334 399 <Filename Value="..\..\UCoolDockLayout.pas"/> 335 <Caret Line=" 80" Column="15" TopLine="63"/>400 <Caret Line="169" Column="1" TopLine="156"/> 336 401 </Position6> 337 402 <Position7> 338 403 <Filename Value="..\..\UCoolDockLayout.pas"/> 339 <Caret Line=" 68" Column="1" TopLine="55"/>404 <Caret Line="170" Column="1" TopLine="156"/> 340 405 </Position7> 341 406 <Position8> 342 407 <Filename Value="..\..\UCoolDockLayout.pas"/> 343 <Caret Line=" 86" Column="11" TopLine="74"/>408 <Caret Line="171" Column="1" TopLine="156"/> 344 409 </Position8> 345 410 <Position9> 346 411 <Filename Value="..\..\UCoolDockLayout.pas"/> 347 <Caret Line=" 37" Column="34" TopLine="12"/>412 <Caret Line="172" Column="1" TopLine="156"/> 348 413 </Position9> 349 414 <Position10> 350 <Filename Value=" ..\..\UCoolDockLayout.pas"/>351 <Caret Line="1 11" Column="12" TopLine="88"/>415 <Filename Value="UMainForm.pas"/> 416 <Caret Line="121" Column="1" TopLine="108"/> 352 417 </Position10> 353 418 <Position11> 354 <Filename Value=" ..\..\UCoolDockLayout.pas"/>355 <Caret Line="1 01" Column="1" TopLine="90"/>419 <Filename Value="UMainForm.pas"/> 420 <Caret Line="172" Column="1" TopLine="159"/> 356 421 </Position11> 357 422 <Position12> 358 423 <Filename Value="..\..\UCoolDockLayout.pas"/> 359 <Caret Line=" 129" Column="47" TopLine="109"/>424 <Caret Line="350" Column="15" TopLine="334"/> 360 425 </Position12> 361 426 <Position13> 362 427 <Filename Value="..\..\UCoolDockLayout.pas"/> 363 <Caret Line="4 1" Column="1" TopLine="20"/>428 <Caret Line="409" Column="40" TopLine="385"/> 364 429 </Position13> 365 430 <Position14> 366 431 <Filename Value="..\..\UCoolDockLayout.pas"/> 367 <Caret Line=" 31" Column="50" TopLine="21"/>432 <Caret Line="406" Column="22" TopLine="389"/> 368 433 </Position14> 369 434 <Position15> 370 435 <Filename Value="..\..\UCoolDockLayout.pas"/> 371 <Caret Line="3 3" Column="25" TopLine="16"/>436 <Caret Line="398" Column="16" TopLine="387"/> 372 437 </Position15> 373 438 <Position16> 374 439 <Filename Value="..\..\UCoolDockLayout.pas"/> 375 <Caret Line=" 228" Column="1" TopLine="205"/>440 <Caret Line="394" Column="3" TopLine="384"/> 376 441 </Position16> 377 442 <Position17> 378 443 <Filename Value="..\..\UCoolDockLayout.pas"/> 379 <Caret Line=" 78" Column="1" TopLine="67"/>444 <Caret Line="383" Column="29" TopLine="369"/> 380 445 </Position17> 381 446 <Position18> 382 447 <Filename Value="..\..\UCoolDockLayout.pas"/> 383 <Caret Line=" 187" Column="21" TopLine="175"/>448 <Caret Line="405" Column="1" TopLine="383"/> 384 449 </Position18> 385 450 <Position19> 386 <Filename Value=" ..\..\UCoolDockLayout.pas"/>387 <Caret Line=" 226" Column="16" TopLine="201"/>451 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 452 <Caret Line="1741" Column="1" TopLine="1728"/> 388 453 </Position19> 389 454 <Position20> 390 <Filename Value=" ..\..\UCoolDockLayout.pas"/>391 <Caret Line=" 25" Column="15" TopLine="12"/>455 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\toolbutton.inc"/> 456 <Caret Line="136" Column="1" TopLine="123"/> 392 457 </Position20> 393 458 <Position21> 394 <Filename Value=" ..\..\UCoolDockLayout.pas"/>395 <Caret Line=" 207" Column="19" TopLine="191"/>459 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\toolbutton.inc"/> 460 <Caret Line="764" Column="1" TopLine="751"/> 396 461 </Position21> 397 462 <Position22> 398 <Filename Value=" ..\..\UCoolDockLayout.pas"/>399 <Caret Line="2 35" Column="14" TopLine="229"/>463 <Filename Value="E:\Projekty2\FreePascalManager\trunk\Instance\1\Lazarus\lcl\include\control.inc"/> 464 <Caret Line="2285" Column="1" TopLine="2272"/> 400 465 </Position22> 401 466 <Position23> 402 467 <Filename Value="..\..\UCoolDockLayout.pas"/> 403 <Caret Line=" 259" Column="8" TopLine="247"/>468 <Caret Line="399" Column="1" TopLine="383"/> 404 469 </Position23> 405 470 <Position24> 406 471 <Filename Value="..\..\UCoolDockLayout.pas"/> 407 <Caret Line=" 263" Column="20" TopLine="250"/>472 <Caret Line="397" Column="1" TopLine="383"/> 408 473 </Position24> 409 474 <Position25> 410 475 <Filename Value="..\..\UCoolDockLayout.pas"/> 411 <Caret Line=" 28" Column="15" TopLine="21"/>476 <Caret Line="398" Column="1" TopLine="383"/> 412 477 </Position25> 413 478 <Position26> 414 479 <Filename Value="..\..\UCoolDockLayout.pas"/> 415 <Caret Line=" 87" Column="3" TopLine="65"/>480 <Caret Line="399" Column="1" TopLine="383"/> 416 481 </Position26> 417 482 <Position27> 418 483 <Filename Value="..\..\UCoolDockLayout.pas"/> 419 <Caret Line=" 95" Column="21" TopLine="94"/>484 <Caret Line="400" Column="1" TopLine="383"/> 420 485 </Position27> 421 486 <Position28> 422 487 <Filename Value="..\..\UCoolDockLayout.pas"/> 423 <Caret Line="4 1" Column="37" TopLine="28"/>488 <Caret Line="401" Column="1" TopLine="383"/> 424 489 </Position28> 425 490 <Position29> 426 491 <Filename Value="..\..\UCoolDockLayout.pas"/> 427 <Caret Line="4 7" Column="17" TopLine="34"/>492 <Caret Line="402" Column="1" TopLine="383"/> 428 493 </Position29> 429 494 <Position30> 430 <Filename Value=" UMainForm.pas"/>431 <Caret Line=" 12" Column="55" TopLine="1"/>495 <Filename Value="..\..\UCoolDockLayout.pas"/> 496 <Caret Line="404" Column="1" TopLine="383"/> 432 497 </Position30> 433 498 </JumpHistory> -
Docking/CoolDocking/Demo/IDE/UMainForm.lfm
r178 r179 8 8 ClientWidth = 626 9 9 Menu = MainMenu1 10 OnClose = FormClose 11 OnShow = FormShow 10 12 LCLVersion = '0.9.31' 11 13 object Panel1: TPanel … … 35 37 Width = 100 36 38 ItemHeight = 13 39 OnSelect = ComboBox1Select 37 40 TabOrder = 0 38 Text = 'ComboBox1'39 41 end 40 42 object ToolButton1: TToolButton … … 47 49 object MainMenu1: TMainMenu 48 50 left = 166 49 top = 6751 top = 72 50 52 object MenuItem1: TMenuItem 51 53 Caption = 'File' 52 54 object MenuItem23: TMenuItem 53 55 Action = ANewFile 56 end 57 object MenuItem24: TMenuItem 58 Action = AExit 54 59 end 55 60 end … … 184 189 Caption = 'New file' 185 190 OnExecute = ANewFileExecute 191 end 192 object AExit: TAction 193 Caption = 'Exit' 194 OnExecute = AExitExecute 186 195 end 187 196 end … … 214 223 4C69010000001000000010000000000000000000000000000000000000000000 215 224 0000000000000000000000000000000000000000000000000000000000000000 216 000000000000000000000000000000000000000000 0000000000000000000000217 00 00000000000000000000000000000000000000000000000000000000000000218 00 000000000000000000000000000000000000000000008484FF00000000FFFF219 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 220 00 00FFFFFFFF00000000000000000000000000000000008484FF00000000FFFF221 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 222 00 000000000000000000000000000000000000000000008484FF00000000FFFF223 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 224 00 00008484FF00000000000000000000000000000000008484FF00000000FFFF225 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 226 00 00008484FF00000000000000000000000000000000008484FF00000000FFFF227 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 228 00 00008484FF00000000000000000000000000000000008484FF00000000FFFF229 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 230 00 00008484FF00000000000000000000000000000000008484FF008484FF0000231 00 00000000000000000000000000000000000000000000000000000000000084232 84FF008484FF000000 00000000000000000000000000008484FF008484FF0084225 000000000000000000000000000000000000000000FF000000FF000000FF0000 226 00FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000 227 00FF000000FF000000FF0000000000000000000000FF008484FF000000FFFFFF 228 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 229 00FFFFFFFFFF000000FF0000000000000000000000FF008484FF000000FFFFFF 230 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 231 00FF000000FF000000FF0000000000000000000000FF008484FF000000FFFFFF 232 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 233 00FF008484FF000000FF0000000000000000000000FF008484FF000000FFFFFF 234 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 235 00FF008484FF000000FF0000000000000000000000FF008484FF000000FFFFFF 236 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 237 00FF008484FF000000FF0000000000000000000000FF008484FF000000FFFFFF 238 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000 239 00FF008484FF000000FF0000000000000000000000FF008484FF008484FF0000 240 00FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0084 241 84FF008484FF000000FF0000000000000000000000FF008484FF008484FF0084 233 242 84FF008484FF008484FF008484FF008484FF008484FF008484FF008484FF0084 234 84FF008484FF000000 00000000000000000000000000008484FF008484FF0000235 00 00000000000000000000000000000000000000000000000000000000000000236 00 00008484FF00000000000000000000000000000000008484FF008484FF0000237 00 000000000000000000000000000000000000000000FFFFFFFFFFFFFFFF0000238 00 00008484FF00000000000000000000000000000000008484FF008484FF0000239 00 000000000000000000000000000000000000000000FFFFFFFFFFFFFFFF0000240 00 00008484FF00000000000000000000000000000000008484FF008484FF0000241 00 000000000000000000000000000000000000000000FFFFFFFFFFFFFFFF0000242 00 00008484FF0000000000000000000000000000000000000000000000000000243 00 00000000000000000000000000000000000000000000000000000000000000244 00 00000000000000000000000000000000000000000000000000000000000000243 84FF008484FF000000FF0000000000000000000000FF008484FF008484FF0000 244 00FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000 245 00FF008484FF000000FF0000000000000000000000FF008484FF008484FF0000 246 00FF000000FF000000FF000000FF000000FF000000FFFFFFFFFFFFFFFFFF0000 247 00FF008484FF000000FF0000000000000000000000FF008484FF008484FF0000 248 00FF000000FF000000FF000000FF000000FF000000FFFFFFFFFFFFFFFFFF0000 249 00FF008484FF000000FF0000000000000000000000FF008484FF008484FF0000 250 00FF000000FF000000FF000000FF000000FF000000FFFFFFFFFFFFFFFFFF0000 251 00FF008484FF000000FF000000000000000000000000000000FF000000FF0000 252 00FF000000FF000000FF000000FF000000FF000000FF000000FF000000FF0000 253 00FF000000FF000000FF00000000000000000000000000000000000000000000 245 254 0000000000000000000000000000000000000000000000000000000000000000 246 255 0000000000000000000000000000 -
Docking/CoolDocking/Demo/IDE/UMainForm.pas
r178 r179 12 12 UWatchListForm, UThreadStatusForm, USourceEditorForm; 13 13 14 const 15 DockLayoutFileName = 'Layout.xml'; 16 14 17 type 15 18 … … 18 21 TMainForm = class(TForm) 19 22 published 23 AExit: TAction; 20 24 ANewFile: TAction; 21 25 ACustomizeDocking: TAction; … … 53 57 MenuItem22: TMenuItem; 54 58 MenuItem23: TMenuItem; 59 MenuItem24: TMenuItem; 55 60 MenuItem9: TMenuItem; 56 61 MenuItem8: TMenuItem; … … 69 74 procedure ACustomizeDockingExecute(Sender: TObject); 70 75 procedure ADesktopSaveExecute(Sender: TObject); 76 procedure AExitExecute(Sender: TObject); 71 77 procedure ANewFileExecute(Sender: TObject); 72 78 procedure AViewThreadStatusExecute(Sender: TObject); … … 81 87 procedure AViewWatchListExecute(Sender: TObject); 82 88 procedure AViewWindowListExecute(Sender: TObject); 89 procedure ComboBox1Select(Sender: TObject); 90 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 91 procedure FormShow(Sender: TObject); 83 92 public 84 { public declarations } 85 end; 93 end; 86 94 87 95 var … … 109 117 end; 110 118 119 procedure TMainForm.ComboBox1Select(Sender: TObject); 120 begin 121 if ComboBox1.ItemIndex <> - 1 then 122 TCoolDockLayout(CoolDockLayoutList1.Items[ComboBox1.ItemIndex]).Restore; 123 end; 124 125 procedure TMainForm.FormClose(Sender: TObject; var CloseAction: TCloseAction); 126 begin 127 CoolDockLayoutList1.SaveToFile(DockLayoutFileName); 128 end; 129 130 procedure TMainForm.FormShow(Sender: TObject); 131 begin 132 with CoolDockLayoutList1 do begin 133 if FileExistsUTF8(DockLayoutFileName) then 134 LoadFromFile(DockLayoutFileName); 135 PopulateStringList(ComboBox1.Items); 136 end; 137 end; 138 111 139 procedure TMainForm.AViewProjectManagerExecute(Sender: TObject); 112 140 begin … … 140 168 141 169 procedure TMainForm.ADesktopSaveExecute(Sender: TObject); 142 begin 143 170 var 171 NewLayout: TCoolDockLayout; 172 begin 173 if ComboBox1.Items.IndexOf(ComboBox1.Text) = -1 then begin 174 NewLayout := TCoolDockLayout.Create; 175 NewLayout.Name := ComboBox1.Text; 176 NewLayout.Store; 177 CoolDockLayoutList1.Items.Add(NewLayout); 178 end else 179 TCoolDockLayout(CoolDockLayoutList1.Items[ComboBox1.ItemIndex]).Store; 180 CoolDockLayoutList1.PopulateStringList(ComboBox1.Items); 181 end; 182 183 procedure TMainForm.AExitExecute(Sender: TObject); 184 begin 185 Close; 144 186 end; 145 187 -
Docking/CoolDocking/Demo/IDE/USourceEditorForm.lfm
r178 r179 1 1 object SourceEditorForm: TSourceEditorForm 2 Left = 2 832 Left = 265 3 3 Height = 349 4 Top = 1 344 Top = 165 5 5 Width = 448 6 6 Caption = 'Source Editor' -
Docking/CoolDocking/UCoolDockLayout.pas
r178 r179 19 19 Visible: Boolean; 20 20 Rect: TRectangle; 21 FormState: TFormState; 21 RestoredRect: TRectangle; 22 WindowState: TWindowState; 22 23 UndockSize: TPoint; 23 24 DockStyle: TDockStyle; 24 25 procedure SaveToNode(Node: TDOMNode); 25 26 procedure LoadFromNode(Node: TDOMNode); 27 constructor Create; 28 destructor Destroy; override; 26 29 end; 27 30 … … 35 38 constructor Create; 36 39 destructor Destroy; override; 40 procedure Store; 41 procedure Restore; 37 42 end; 38 43 … … 46 51 procedure LoadFromFile(FileName: string); 47 52 procedure SaveToFile(FileName: string); 53 procedure PopulateStringList(List: TStrings); 48 54 constructor Create(AOwner: TComponent); override; 49 55 destructor Destroy; override; … … 78 84 Doc: TXMLDocument; 79 85 Child: TDOMNode; 80 NewItem: TCoolDockLayout Item;86 NewItem: TCoolDockLayout; 81 87 NewNode: TDOMNode; 82 88 begin … … 88 94 if Assigned(NewNode) then 89 95 with NewNode do begin 90 Child := Doc.DocumentElement.FirstChild;96 Child := FirstChild; 91 97 while Assigned(Child) do begin 92 NewItem := TCoolDockLayout Item.Create;98 NewItem := TCoolDockLayout.Create; 93 99 NewItem.LoadFromNode(Child); 94 100 Items.Add(NewItem); … … 117 123 with RootNode do begin 118 124 NewNode := OwnerDocument.CreateElement('Items'); 125 with NewNode do 119 126 for I := 0 to Items.Count - 1 do begin 120 127 NewNode2 := OwnerDocument.CreateElement('Layout'); … … 150 157 if FileExistsUTF8(FileName) then Stream := TFileStream.Create(FileName, fmOpenReadWrite) 151 158 else Stream := TFileStream.Create(FileName, fmCreate); 159 Stream.Size := 0; 152 160 SaveToStream(Stream); 153 161 finally … … 156 164 end; 157 165 166 procedure TCoolDockLayoutList.PopulateStringList(List: TStrings); 167 var 168 I: Integer; 169 begin 170 List.Clear; 171 for I := 0 to Items.Count - 1 do 172 List.AddObject(TCoolDockLayout(Items[I]).Name, TCoolDockLayout(Items[I])); 173 end; 174 158 175 { TCoolDockLayoutItem } 159 176 … … 172 189 NewNode.TextContent := UTF8Decode(Caption); 173 190 AppendChild(NewNode); 174 NewNode := OwnerDocument.CreateElement(' FormState');175 NewNode.TextContent := IntToStr(Integer( FormState));191 NewNode := OwnerDocument.CreateElement('WindowState'); 192 NewNode.TextContent := IntToStr(Integer(WindowState)); 176 193 AppendChild(NewNode); 177 194 NewNode := OwnerDocument.CreateElement('UndockWidth'); … … 199 216 NewNode.TextContent := IntToStr(Integer(DockStyle)); 200 217 AppendChild(NewNode); 218 NewNode := OwnerDocument.CreateElement('RestoredWidth'); 219 NewNode.TextContent := IntToStr(RestoredRect.Width); 220 AppendChild(NewNode); 221 NewNode := OwnerDocument.CreateElement('RestoredHeight'); 222 NewNode.TextContent := IntToStr(RestoredRect.Height); 223 AppendChild(NewNode); 224 NewNode := OwnerDocument.CreateElement('RestoredTop'); 225 NewNode.TextContent := IntToStr(RestoredRect.Top); 226 AppendChild(NewNode); 227 NewNode := OwnerDocument.CreateElement('RestoredLeft'); 228 NewNode.TextContent := IntToStr(RestoredRect.Left); 229 AppendChild(NewNode); 201 230 end; 202 231 end; … … 216 245 if Assigned(NewNode) then 217 246 Caption := UTF8Encode(NewNode.TextContent); 218 NewNode := FindNode(' FormState');219 if Assigned(NewNode) then 220 FormState := TFormState(StrToInt(NewNode.TextContent));247 NewNode := FindNode('WindowState'); 248 if Assigned(NewNode) then 249 WindowState := TWindowState(StrToInt(NewNode.TextContent)); 221 250 NewNode := FindNode('UndockWidth'); 222 251 if Assigned(NewNode) then … … 243 272 if Assigned(NewNode) then 244 273 DockStyle := TDockStyle(StrToInt(NewNode.TextContent)); 245 end; 274 NewNode := FindNode('RestoredTop'); 275 if Assigned(NewNode) then 276 RestoredRect.Top := StrToInt(NewNode.TextContent); 277 NewNode := FindNode('RestoredLeft'); 278 if Assigned(NewNode) then 279 RestoredRect.Left := StrToInt(NewNode.TextContent); 280 NewNode := FindNode('RestoredWidth'); 281 if Assigned(NewNode) then 282 RestoredRect.Width := StrToInt(NewNode.TextContent); 283 NewNode := FindNode('RestoredHeight'); 284 if Assigned(NewNode) then 285 RestoredRect.Height := StrToInt(NewNode.TextContent); 286 end; 287 end; 288 289 constructor TCoolDockLayoutItem.Create; 290 begin 291 Rect := TRectangle.Create; 292 RestoredRect := TRectangle.Create; 293 end; 294 295 destructor TCoolDockLayoutItem.Destroy; 296 begin 297 Rect.Free; 298 RestoredRect.Free; 299 inherited Destroy; 246 300 end; 247 301 … … 259 313 AppendChild(NewNode); 260 314 NewNode := OwnerDocument.CreateElement('Items'); 315 with NewNode do 261 316 for I := 0 to Items.Count - 1 do begin 262 317 NewNode2 := OwnerDocument.CreateElement('Form'); … … 303 358 end; 304 359 360 procedure TCoolDockLayout.Store; 361 var 362 I: Integer; 363 Form: TForm; 364 NewItem: TCoolDockLayoutItem; 365 begin 366 Items.Clear; 367 for I := 0 to Application.ComponentCount - 1 do 368 if (Application.Components[I] is TForm) then begin 369 Form := (Application.Components[I] as TForm); 370 NewItem := TCoolDockLayoutItem.Create; 371 NewItem.Name := Form.Name; 372 NewItem.Caption := Form.Caption; 373 NewItem.UndockSize.X := Form.UndockWidth; 374 NewItem.UndockSize.Y := Form.UndockHeight; 375 NewItem.Visible := Form.Visible; 376 NewItem.Rect.Left := Form.Left; 377 NewItem.Rect.Top := Form.Top; 378 NewItem.Rect.Width := Form.Width; 379 NewItem.Rect.Height := Form.Height; 380 NewItem.RestoredRect.Left := Form.RestoredLeft; 381 NewItem.RestoredRect.Top := Form.RestoredTop; 382 NewItem.RestoredRect.Width := Form.RestoredWidth; 383 NewItem.RestoredRect.Height := Form.RestoredHeight; 384 NewItem.WindowState := Form.WindowState; 385 Items.Add(NewItem); 386 end; 387 end; 388 389 procedure TCoolDockLayout.Restore; 390 var 391 Form: TForm; 392 I: Integer; 393 begin 394 for I := 0 to Items.Count - 1 do 395 with TCoolDockLayoutItem(Items[I]) do begin 396 Form := TForm(Application.FindComponent(Name)); 397 if WindowState = wsMaximized then begin 398 Form.SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 399 RestoredRect.Width, RestoredRect.Height); 400 Form.WindowState := WindowState; 401 end else begin 402 Form.WindowState := WindowState; 403 Form.SetRestoredBounds(RestoredRect.Left, RestoredRect.Top, 404 RestoredRect.Width, RestoredRect.Height); 405 end; 406 Form.Caption := Caption; 407 Form.SetBounds(Rect.Left, Rect.Top, Rect.Width, Rect.Height); 408 Form.UndockWidth := UndockSize.X; 409 Form.UndockHeight := UndockSize.Y; 410 Form.Visible := Visible; 411 end; 412 end; 413 305 414 end. 306 415
Note:
See TracChangeset
for help on using the changeset viewer.