Commit Graph

97 Commits

Author SHA1 Message Date
paul
1017482ade lcl: don't crash application on call to TCustomAnchoredDockManager.ResetBounds (fixes issue #0013252)
git-svn-id: trunk@18854 -
2009-03-01 10:15:39 +00:00
mattias
4af2a1dd2e fixed public method overrides
git-svn-id: trunk@18156 -
2009-01-06 09:54:29 +00:00
paul
c92465fa27 lcl: Patch for docking: InsertControl (from Hans-Peter Diettrich, mantis #0012909)
git-svn-id: trunk@18094 -
2009-01-04 08:30:53 +00:00
paul
d9491a4528 lcl: fix header
git-svn-id: trunk@18002 -
2008-12-31 03:07:17 +00:00
paul
3817032fa7 lcl: reset parent orientation if we remove control and parent stay only with 1 child (fixes crash in insertcontrol)
git-svn-id: trunk@17865 -
2008-12-19 10:52:07 +00:00
paul
4620b0c84b lcl: fix DockOrientation of child control
git-svn-id: trunk@17864 -
2008-12-19 10:08:07 +00:00
paul
1b2398da45 lcl: docking
- don't crash if in InserControl DockControl = AControl
  - improve RemoveControl a bit

git-svn-id: trunk@17863 -
2008-12-19 09:55:54 +00:00
paul
7591410835 lcl: docking
- delete empty parent zones when we delete control from the dock tree
  - optimize inserting and deleting of control into/from dock tree

git-svn-id: trunk@17862 -
2008-12-19 08:57:54 +00:00
paul
10b0890c9d lcl: docking improvements
- change control DockOrientation if its parent zone changed
  - setup Zone.Splitter even if Zone does not has ChildControl
  - improve debug output so now visible to which splitter and to which sides controls are anchored

git-svn-id: trunk@17861 -
2008-12-19 08:26:56 +00:00
paul
0206260c62 lcl: docking - reposition children after the dock layout change
git-svn-id: trunk@17860 -
2008-12-19 07:16:03 +00:00
paul
24d3205a30 lcl: fix many TLazDockTree bugs, add a method to output Dock Layout to html (to look at and understand how to fix it further)
git-svn-id: trunk@17855 -
2008-12-18 07:08:34 +00:00
paul
6e2e2c1ff2 lcl: update visibility of methods to prevent compiler warnings
- move KeyDown, KeyUp, DoMouseWheelDown, DoMouseWheelUp, ColorIsStored, Paint, and other misc methods from public to protected
  - move some descendants methods from lower visibility to higher
  - fix use of protected KeyDown, Paint inside few ide units

git-svn-id: trunk@17564 -
2008-11-24 08:15:23 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
paul
35332b5d39 more safe finally block TCustomAnchoredDockManager.DockControl
git-svn-id: trunk@15144 -
2008-05-15 05:47:45 +00:00
marc
c81003eefa * Introduced TCustomBitmap as base class for all pixelbased imageclasses. Currently backward comatible (and equal to) TBitmap
* Added resource loading support to TPicture and Glyps to avoid image quality loss when converted to TBitmap
* Removed copy paste code for imagelist resource loading
* Moved some graphic classes to their own ini file

git-svn-id: trunk@14876 -
2008-04-17 23:43:11 +00:00
paul
820cc2f396 fix mem leak in docking code
git-svn-id: trunk@14496 -
2008-03-12 09:49:10 +00:00
mattias
29340e990e LCL: anchordocking: fixed auto undocking of last child
git-svn-id: trunk@14161 -
2008-02-16 18:33:56 +00:00
paul
e533a2bb89 dockheader: handle also CM_MOUSELEAVE message
git-svn-id: trunk@14131 -
2008-02-14 09:10:15 +00:00
paul
8c92b3ba66 docking: improve text drawing in TDockHeader
git-svn-id: trunk@14106 -
2008-02-12 09:09:31 +00:00
paul
2a41b470fd create array of dock images in TLazDockForm and TLazDockTree and use it in header drawing (it is better than create bitmap on every draw)
git-svn-id: trunk@14091 -
2008-02-11 15:01:33 +00:00
mattias
e08cf5abf5 LCL: anchordocking: TlazDockForm: fixed invalidate on MouseLeave
git-svn-id: trunk@14090 -
2008-02-11 14:36:46 +00:00
mattias
57ee3d33a0 LCL: anchordocking: fixed uninitialized records
git-svn-id: trunk@14089 -
2008-02-11 14:30:19 +00:00
mattias
84a2ec0155 LCL: anchordocking: updating TLazDockForm.Caption when switching page in nested TLazDockPages
git-svn-id: trunk@14088 -
2008-02-11 14:27:31 +00:00
paul
fc14dbf587 improve dock header redrawing
git-svn-id: trunk@14087 -
2008-02-11 13:56:59 +00:00
mattias
36f6495e18 LCL: anchordocking: updating TLazDockForm.Caption when adding controls to a nested TLazDockPage
git-svn-id: trunk@14086 -
2008-02-11 13:27:07 +00:00
mattias
9a67a4094d LCL: anchordocking: undock: setting some default bounds to reduce window jumping only if changing parent
git-svn-id: trunk@14085 -
2008-02-11 13:13:51 +00:00
mattias
68328b837b LCL: anchordocking: undock: setting some default bounds to reduce window jumping
git-svn-id: trunk@14084 -
2008-02-11 13:10:23 +00:00
mattias
41fa8addf2 LCL: anchordocking: combining spiral splitters: fixed enlarging splitter
git-svn-id: trunk@14083 -
2008-02-11 12:35:08 +00:00
mattias
54bf460d15 LCL: added TDockManager.AutoFreeByControl: boolean needed by shared docking managers
git-svn-id: trunk@14081 -
2008-02-11 11:51:29 +00:00
mattias
b5730a0075 LCL: anchordocking: auto undock if remaining is only one control
git-svn-id: trunk@14080 -
2008-02-11 11:15:58 +00:00
mattias
216d9689df LCL: anchordocking: TCustomAnchoredDockManager now sets DockManager and UseDockManager
git-svn-id: trunk@14076 -
2008-02-10 23:31:32 +00:00
mattias
28d926e861 LCL: anchordocking: fixed freeing TLazDockForm on undock
git-svn-id: trunk@14075 -
2008-02-10 23:29:07 +00:00
mattias
11e7b203ca LCL: anchordocking: ManualFloat now calls DoUnDockClientMsg if HostDockSIte=nil and DockManager set
git-svn-id: trunk@14074 -
2008-02-10 23:21:27 +00:00
paul
fa24c54a9c use '.Dock' instead of 'Parent :=' then BorderStyle will be preserved
git-svn-id: trunk@14064 -
2008-02-10 09:21:22 +00:00
paul
3ab568e9ad docking: split mouse down and mouse handling: mouse up - for buttons, mouse down - for header
git-svn-id: trunk@14063 -
2008-02-10 09:14:11 +00:00
paul
4f7164b77c docking:
- add special png images for docking (mdi buttons differ between widgetsets and not so informative)
- use toolbutton + image drawing instead of mdi button drawing
- track mouse on dock header (buttons become how and pressed)
- execute button actions on mouse-up instead of mouse-down

git-svn-id: trunk@14062 -
2008-02-10 08:52:06 +00:00
mattias
a51b0eced1 LCL: anchordocking: started using TCustomLazDockingManager as LCL docking manager
git-svn-id: trunk@14060 -
2008-02-10 00:19:14 +00:00
paul
6a8326732d dont draw dock header for invisible controls
git-svn-id: trunk@14048 -
2008-02-09 14:31:05 +00:00
paul
8762e825c2 docking: implement header click
git-svn-id: trunk@14047 -
2008-02-09 14:29:21 +00:00
paul
15151ee192 docking:
- refactor dock header part searching
- start handle mouse messages for dock header

git-svn-id: trunk@14034 -
2008-02-08 17:20:40 +00:00
mattias
1ca8d4b353 LCL: anchordocking: added owner for TlazDockForms, implemented DragOver for TlazDockForm
git-svn-id: trunk@14032 -
2008-02-08 15:06:19 +00:00
mattias
7e96f598d5 LCL: anchordocking: implemented BeginDrag when mouse down on header, not buttons
git-svn-id: trunk@14031 -
2008-02-08 14:00:39 +00:00
mattias
cdbaf61026 LCL: anchordocking: removed tlazdockform.fdockzone
git-svn-id: trunk@14028 -
2008-02-08 13:35:01 +00:00
paul
0230315a7c docking:
- workaround fpc linker bug (in ldockctrl)
- move things related to header drawing to separate class TDockHeader
- use 'Control.Dock' instead of 'Control.Parent :=' in anchor-docking (now anchordocking demo looks much better under win32)

git-svn-id: trunk@14025 -
2008-02-08 02:51:59 +00:00
mattias
0bd4b1c1ab LCL: anchordocking: implemented utility functions for headers
git-svn-id: trunk@14024 -
2008-02-07 21:20:59 +00:00
mattias
1337670e24 LCL: anchordocking: updating title on restore
git-svn-id: trunk@14022 -
2008-02-07 19:02:26 +00:00
paul
016f6c1c6e docking: fix crash
git-svn-id: trunk@14008 -
2008-02-07 00:07:46 +00:00
paul
6c623426f8 draw dock header with rotated font (in case of vertical header)
git-svn-id: trunk@14007 -
2008-02-06 23:57:08 +00:00
paul
0b69fd9a95 docking allocate space for dock header
git-svn-id: trunk@14006 -
2008-02-06 23:53:40 +00:00
mattias
cb9458c6c0 LCL: anchordocking: enlargecontrol: updating title
git-svn-id: trunk@14003 -
2008-02-06 14:38:21 +00:00