Commit Graph

274 Commits

Author SHA1 Message Date
paul
c42b65b456 gtk: fix memory leak (internal mask was never freed), cleanup
git-svn-id: trunk@19488 -
2009-04-18 16:16:06 +00:00
paul
44fa480f4a gtk2: implement image flipping in StretchMaskBlt (part of issue #0013059)
git-svn-id: trunk@19215 -
2009-04-04 12:52:39 +00:00
mattias
26b2693ef7 gtk1+2 intf: key handling: fixed handling result of DeliverMessage, bug #9638
git-svn-id: trunk@18577 -
2009-02-05 10:30:42 +00:00
mattias
777ba7c055 gtk2 intf: fixed stopping mouse up event
git-svn-id: trunk@18454 -
2009-01-27 00:55:54 +00:00
mattias
8889f04e1d clean up
git-svn-id: trunk@16100 -
2008-08-18 06:56:53 +00:00
paul
988a36252e gtk: return drawing of clInfoBk with styled box
git-svn-id: trunk@15985 -
2008-08-07 15:42:08 +00:00
mattias
5f699ac8b2 gtk2: implemented TCanvas.ClipRect during paint, improved hiding/drawing caret with double buffer
git-svn-id: trunk@15865 -
2008-07-25 14:42:09 +00:00
mattias
e5805aab68 gtk/gtk2 intf: combobox: toggle selection mode to support ItemIndex=-1, fixed ReadOnly, updating intf ItemIndex cache on Delete/Insert/Change, refactoring for WS classes, from Luiz
git-svn-id: trunk@15842 -
2008-07-23 08:17:39 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
mattias
b26fda5243 gtk+gtk2+win32 intf: TComboBox: fixed LM_CHANGED, LM_SELCHANGED events, now LM_CHANGED are sent, whenever the text changes, from Luiz
git-svn-id: trunk@15831 -
2008-07-21 21:29:07 +00:00
mattias
02181f508e gtk1: fixed regression: gtk list IndexOf locked the change vents
git-svn-id: trunk@15725 -
2008-07-09 15:00:23 +00:00
paul
db26dddf06 gtk1, gtk2: Add CreateIconIndirect implementation which returns pixbuf. Move CreateCursor code there and remove its declaration.
git-svn-id: trunk@15457 -
2008-06-18 09:14:27 +00:00
sekelsenmat
f098565cff Starts separating gtkproc for gtk2 in gtk2proc.
git-svn-id: trunk@14854 -
2008-04-17 01:55:53 +00:00
tombo
d8a2b452ec LCL file dropping under gtk: applied #0011105: Patch to fix file drag and drop problems from Colin Western
git-svn-id: trunk@14784 -
2008-04-08 13:31:23 +00:00
paul
67ebf94a2e lcl: remove LM_INSERTTEXT, LM_DELETETEXT (not used in LCL anymore and fixes #0010930)
git-svn-id: trunk@14461 -
2008-03-07 17:09:25 +00:00
paul
11de6af8b9 decapitalize all procedure and function keywords to make all looks the same
git-svn-id: trunk@14375 -
2008-03-03 08:06:26 +00:00
mattias
348cc7798a LCL: small cleanups
git-svn-id: trunk@14021 -
2008-02-07 18:52:11 +00:00
paul
e48133ad74 gtk: perform erasing background on non opaque controls
git-svn-id: trunk@13842 -
2008-01-23 10:21:20 +00:00
paul
e0b764dc96 gtk:
- move GtkSwitchPage from GtkCallbacks unit to GtkWsExtCtrls unit
- fix double call of OnChanging on manual page change (part of 8338)

git-svn-id: trunk@13745 -
2008-01-14 08:10:31 +00:00
paul
c8d52d15d6 gtk:
- remove FinishComponentCreate: code moved to appropriate ws classes
- remove HookSignals (same reason)

git-svn-id: trunk@13537 -
2007-12-30 18:15:53 +00:00
paul
9d15123d91 - gtk: move dialogs related stuff to gtkwsdialogs and gtk2wsdialogs
- gtk complete moving CreateComponent code to appropriate classes
- lcl remove CreateComponent method since there is no more need in it

git-svn-id: trunk@13478 -
2007-12-27 09:51:27 +00:00
paul
44d1b9c7a8 lcl messages:
1) move LM_CREATE and LM_DESROY to windows base (fix crash of progress bar after enabling user messages on windows issue #0010458)
2) move LCL LM_ messages far from LM_USER base to prevent collisions with popular user messages like WM_USER, WM_USER+1, ...
3) remove 2 unneeded gtk messages: LM_EXPOSEEVENT, LM_MOVECURSOR and few totally unneeded messages
4) move WM_LCL_SOCK_ASYNC away from WM_USER

git-svn-id: trunk@13415 -
2007-12-22 18:51:06 +00:00
paul
b45bfc8cb3 - menu item icon drawing with effect for gtk1/2
- cleanup of win32 menu drawing

git-svn-id: trunk@12989 -
2007-11-23 18:34:55 +00:00
mattias
8f7f9fbebb gtk2 intf: GtkNoWindowFixed: removed gdkwindows for groupboxes and notebooks
git-svn-id: trunk@12976 -
2007-11-23 00:37:28 +00:00
marc
28578c3a91 * Started with object based GDI
* More splitup of gtk1/gtk2 code
* Fixed restore of GC after linedrawing
* Enabled desktop grabbing for gtk1

git-svn-id: trunk@12975 -
2007-11-23 00:07:45 +00:00
paul
d0cdd9d471 remove old imagelist code
git-svn-id: trunk@12972 -
2007-11-22 08:32:35 +00:00
paul
7309af00e9 gtk2: playing around transparent GtkFixed (no window + eventbox)
git-svn-id: trunk@12933 -
2007-11-20 03:21:36 +00:00
mattias
09342edb8f gtk intf: fixed GetClientRect for notebook
git-svn-id: trunk@12694 -
2007-11-02 10:58:55 +00:00
marc
9313297b28 * Fixed rowstride rounding
* Fixed bitmap endianes on bigendian displays
* Fixed pixbuf alpha loading on bigendian displays
(fixes #9740)

git-svn-id: trunk@12587 -
2007-10-26 00:08:10 +00:00
andrew
e628172571 Applied patch from Ales Katona for bug #9885 which fixes gtk2 Combobox OnSelect
git-svn-id: trunk@12395 -
2007-10-09 16:35:38 +00:00
sekelsenmat
ea7c9a28a9 Moved the minimum necessary types and constants from commctrl to lcltype to allow compilation of gtk, gtk2, carbon and qt.
git-svn-id: trunk@12321 -
2007-10-04 19:39:15 +00:00
mattias
4f8d2a8022 IDE: added package option Provides - needed by KOL, gtk intf: reduced warnings, fixed wrong type cast calling gdk_text_extends (crashing Label.OptimalFill=true and miscalculation of width)
git-svn-id: trunk@12080 -
2007-09-19 17:58:52 +00:00
marc
04b4e27b62 * Implemented basic alpha support
* Implemented LCL side of imagelist
* restructured rawimage to more OO

Merged revisions 11289-11617 via svnmerge from 
http://svn.freepascal.org/svn/lazarus/branches/marc-lcl

........
  r11289 | marc | 2007-06-06 22:50:05 +0200 (Wed, 06 Jun 2007) | 1 line
  
  private branch for bitmap rework
........
  r11290 | marc | 2007-06-06 23:30:09 +0200 (Wed, 06 Jun 2007) | 2 lines
  
  * Initial linux and win32 implementation
........
  r11291 | paul | 2007-06-07 03:20:11 +0200 (Thu, 07 Jun 2007) | 3 lines
  
  - fix compilation with fpc 2.3.1
  - remove unneded code for converting cursor mask
  - enabled loading of standard windows status icons instead of LCL
........
  r11292 | paul | 2007-06-07 11:03:27 +0200 (Thu, 07 Jun 2007) | 1 line
  
  - some bugs with mask and alpha
........
  r11299 | marc | 2007-06-08 00:59:26 +0200 (Fri, 08 Jun 2007) | 2 lines
  
  * force alpha channel when PNG has alpha
........
  r11302 | paul | 2007-06-09 04:45:12 +0200 (Sat, 09 Jun 2007) | 1 line
  
  - fix black rectangles instead of manu item images
........
  r11303 | paul | 2007-06-09 04:46:14 +0200 (Sat, 09 Jun 2007) | 1 line
  
  formatting
........
  r11309 | marc | 2007-06-11 02:25:07 +0200 (Mon, 11 Jun 2007) | 3 lines
  
  * Added alpha premultiply
  * Published Colorbox selection property
........
  r11310 | paul | 2007-06-11 19:10:18 +0200 (Mon, 11 Jun 2007) | 1 line
  
  misc
........
  r11312 | marc | 2007-06-12 01:44:03 +0200 (Tue, 12 Jun 2007) | 2 lines
  
  * start with carbon
........
  r11313 | paul | 2007-06-12 14:02:48 +0200 (Tue, 12 Jun 2007) | 1 line
  
  - BitBtn glyph transparency
........
  r11315 | paul | 2007-06-13 05:20:40 +0200 (Wed, 13 Jun 2007) | 1 line
  
  - problems with internal bitmap saving/loading (is was 24bpp when 32bpp needed)
........
  r11319 | paul | 2007-06-14 06:32:04 +0200 (Thu, 14 Jun 2007) | 1 line
  
  - More LCL way of painting images through ThemeServices
........
  r11320 | paul | 2007-06-14 06:32:56 +0200 (Thu, 14 Jun 2007) | 1 line
  
  - ability to override bitbtn glyph to nothing
........
  r11321 | paul | 2007-06-14 06:34:49 +0200 (Thu, 14 Jun 2007) | 1 line
  
  painting headercontrol images through ThemeServices
........
  r11325 | paul | 2007-06-17 10:14:27 +0200 (Sun, 17 Jun 2007) | 1 line
  
  fixing painting of 32bpp bitmaps with no Alpha
........
  r11326 | paul | 2007-06-17 10:16:00 +0200 (Sun, 17 Jun 2007) | 1 line
  
  missed file
........
  r11337 | paul | 2007-06-20 03:44:47 +0200 (Wed, 20 Jun 2007) | 3 lines
  
  - revert previous commit
  - create 24bpp bitmaps by default
........
  r11342 | marc | 2007-06-21 01:47:30 +0200 (Thu, 21 Jun 2007) | 3 lines
  
  * Added Alpha support on Carbon
  * Simplified win32 rawimage_fromdevice
........
  r11343 | paul | 2007-06-21 04:36:28 +0200 (Thu, 21 Jun 2007) | 1 line
  
  - adopt gtk2 code
........
  r11344 | paul | 2007-06-21 04:41:41 +0200 (Thu, 21 Jun 2007) | 1 line
  
  make gtk2 work
........
  r11353 | paul | 2007-06-22 10:12:19 +0200 (Fri, 22 Jun 2007) | 1 line
  
  - default WS imagelist implementation
........
  r11358 | marc | 2007-06-23 13:29:06 +0200 (Sat, 23 Jun 2007) | 2 lines
  
  * Implemented MaskBlit
........
  r11359 | paul | 2007-06-23 20:02:52 +0200 (Sat, 23 Jun 2007) | 1 line
  
  draw new imagelist bitmap on widget canvas
........
  r11371 | marc | 2007-06-25 23:50:13 +0200 (Mon, 25 Jun 2007) | 2 lines
  
  * Rawimage rework
........
  r11372 | marc | 2007-06-25 23:51:00 +0200 (Mon, 25 Jun 2007) | 2 lines
  
  + Added header
........
  r11373 | marc | 2007-06-26 00:05:55 +0200 (Tue, 26 Jun 2007) | 2 lines
  
  * Swapped RGBA <-> ARGB defualt format since most widgetsets use ARGB
........
  r11374 | marc | 2007-06-26 00:09:36 +0200 (Tue, 26 Jun 2007) | 2 lines
  
  * added
........
  r11462 | marc | 2007-07-12 00:16:02 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  + added header
........
  r11463 | marc | 2007-07-12 00:18:49 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  * Added alpha/masked strechblt support
........
  r11464 | marc | 2007-07-12 00:21:27 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  * create DIBSection instead of DIBitmap
........
  r11502 | marc | 2007-07-14 00:23:42 +0200 (Sat, 14 Jul 2007) | 2 lines
  
  * Fixed transparentcolor after loading bitmap
........
  r11505 | marc | 2007-07-14 15:10:56 +0200 (Sat, 14 Jul 2007) | 2 lines
  
  - Removed ARGB dataconversion, internal format is by default the same now
........
  r11531 | marc | 2007-07-17 01:23:34 +0200 (Tue, 17 Jul 2007) | 2 lines
  
  * changed TRawImage into object
........
  r11533 | paul | 2007-07-17 05:10:31 +0200 (Tue, 17 Jul 2007) | 3 lines
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init
  - change imagelist defines to use old imagelist (new is crashes ide)
  - change TWin32ThemeServices to use old imagelist
........
  r11534 | paul | 2007-07-17 05:19:02 +0200 (Tue, 17 Jul 2007) | 3 lines
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init in Qt widgetset
  - change TRawImageDescription.IsEqual and TRawImage.IsEqual
........
  r11535 | paul | 2007-07-17 05:23:53 +0200 (Tue, 17 Jul 2007) | 1 line
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init in wince widgetset
........
  r11554 | marc | 2007-07-18 00:10:11 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed compilation on 2.0.4
........
  r11555 | marc | 2007-07-18 00:10:44 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed compilation
........
  r11556 | marc | 2007-07-18 00:11:43 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed fillchar on TRawImage object
........
  r11572 | marc | 2007-07-19 01:41:35 +0200 (Thu, 19 Jul 2007) | 2 lines
  
  * fixed crash when object has vmt
........
  r11573 | marc | 2007-07-19 01:42:14 +0200 (Thu, 19 Jul 2007) | 2 lines
  
  * Made TRawimage compatible with record again
........
  r11580 | marc | 2007-07-20 01:33:20 +0200 (Fri, 20 Jul 2007) | 2 lines
  
  * enabled newimagelist
........
  r11581 | marc | 2007-07-20 01:33:48 +0200 (Fri, 20 Jul 2007) | 2 lines
  
  * fixed font
........

git-svn-id: trunk@11861 -
2007-08-25 01:49:40 +00:00
mattias
576644f062 memcheck: updated for fpc 2.3.1
git-svn-id: trunk@11846 -
2007-08-22 21:31:28 +00:00
vincents
8025a708bc gtk widgetset: remove use of NoGdkPixbufLib define
git-svn-id: trunk@11750 -
2007-08-06 18:48:29 +00:00
mattias
63a8c982ad gtk intf: fixed crash on paste for 64 bit
git-svn-id: trunk@11697 -
2007-07-31 23:13:06 +00:00
mattias
2d3019ded3 gtk: fixed pasting from other apps: reason was an uninitialized stack value
git-svn-id: trunk@11693 -
2007-07-31 17:17:14 +00:00
mattias
95f4b69572 gtk2 intf: using a gtk_im_multicontext_new to use the gtk input method handling - e.g. dead keys for UTF8KeyPress
git-svn-id: trunk@11687 -
2007-07-31 13:49:36 +00:00
tombo
e480c8112a GTK: replaced FileInFilenameMasks with MatchesMaskList
git-svn-id: trunk@11593 -
2007-07-22 14:19:32 +00:00
mattias
8f7f42ab15 gtk2 intf: disabled hiding forms from taskbar, because you loose many comfort functions in many window managers
git-svn-id: trunk@11552 -
2007-07-17 21:25:41 +00:00
mattias
a07810628b gtk1 intf: workaround for gtk bug: if there is a theme engine, ignore area parameter of draw events, fix for bug #1152
git-svn-id: trunk@11440 -
2007-07-07 10:21:18 +00:00
tombo
bdecf2b5b9 Gtk1/2 intf: implemented OnDropFiles event
git-svn-id: trunk@11401 -
2007-06-29 11:32:45 +00:00
mattias
537db4ddcf gtk2 intf: implemented mouse wheel up/down messages
git-svn-id: trunk@11261 -
2007-06-01 23:17:26 +00:00
mattias
0d0427f294 gtk2 intf: moved menuitem handle creation code from CreateComponent, gtk2 intf: handling menu underscore shortcuts of Application.MainForm
git-svn-id: trunk@11255 -
2007-06-01 16:55:15 +00:00
mattias
20a3fd2a24 gtk2 intf: moving a widget without resizing now sets the allocation.x/y
git-svn-id: trunk@11246 -
2007-05-31 23:43:23 +00:00
mattias
1eff85d939 gtk2 intf: improved resizing code to not need the caching trick
git-svn-id: trunk@11212 -
2007-05-29 00:30:26 +00:00
mattias
78509220c9 LCL: TSpeedButton: if mouse capture lost then update state, fixed state when invoking Click which triggers ShowModal
git-svn-id: trunk@11211 -
2007-05-28 12:12:51 +00:00
mattias
d45e62cd1b gtk2 intf: disabled removing callbacks, added GetDefaultClientRect for TPage and TNoteBook
git-svn-id: trunk@11189 -
2007-05-23 23:24:14 +00:00
mattias
759a269ca6 gtk intf: resize messages for fixed/client widgets are now kept back and sent for main widgets
git-svn-id: trunk@11184 -
2007-05-23 17:32:10 +00:00
mattias
f1ddc29682 LCL: added BeginAlign/EndAlign in TWinControl.Loaded to reduce overhead, gtk2 intf: added GetDefaultClientRect for TGroupBox, doing some resizes now immediately
git-svn-id: trunk@11160 -
2007-05-17 21:43:48 +00:00