Commit Graph

721 Commits

Author SHA1 Message Date
paul
83c67a0a1b gtk: a more safer code for dashes allocation
git-svn-id: trunk@22156 -
2009-10-13 22:12:28 +00:00
mattias
a564288864 gtk intf: TGtkWidgetSet.CreateBitmap: gdk_pixbuf_render_pixmap_and_mask creates the pixmap and mask itself
git-svn-id: trunk@21791 -
2009-09-20 22:26:59 +00:00
mattias
90d57b132f gtk intf: TGtkWidgetSet.CreateBrushIndirect: gdk_pixbuf_render_pixmap_and_mask creates the pixmap and mask itself
git-svn-id: trunk@21790 -
2009-09-20 22:18:46 +00:00
mattias
f75643d1fa gtk intf: TGTKWidgetSet.CreateIconIndirect: gdk_pixbuf_render_pixmap_and_mask creates the pixmap and mask itself
git-svn-id: trunk@21789 -
2009-09-20 22:17:41 +00:00
mattias
de15642a37 gtk intf: fixed unsafe property access
git-svn-id: trunk@21775 -
2009-09-19 23:11:38 +00:00
paul
330a5d389d gtk1: introduce GDK_WINDOW_GET_MINIMIZED (based on extremely bugged version of GDK_WINDOW_MINIMIZE), fix IsIconic
git-svn-id: trunk@21724 -
2009-09-16 03:45:02 +00:00
paul
72b7bf8ca6 lcl: add IsIconic, IsZommed win32 compatibility functions
git-svn-id: trunk@21711 -
2009-09-15 09:34:41 +00:00
paul
3c12d6c41b designer: woraround gtk2 bug with drawing text on GDK_INCLUDE_INFERIOR graphic context
git-svn-id: trunk@21641 -
2009-09-10 01:43:48 +00:00
paul
c023781b29 gtk1: fix compilation
git-svn-id: trunk@21629 -
2009-09-08 22:00:22 +00:00
paul
dca985f3e8 gtk: fix Frame3D drawing on the designer canvas
git-svn-id: trunk@21623 -
2009-09-08 13:39:43 +00:00
vincents
18ea81f368 gtk interfaces: use GetCurrentThreadID to compare with MainThreadId, GetThreadID somehow returns a different value, fixes issue #14335)
git-svn-id: trunk@21622 -
2009-09-08 12:21:54 +00:00
paul
e91e5145cb gtk: formatting
git-svn-id: trunk@21610 -
2009-09-08 08:26:51 +00:00
paul
91915ea85b gtk: simplify DestroyWindowFromPointCB and other minor corrections to WindowFromPoint
git-svn-id: trunk@21598 -
2009-09-07 09:45:07 +00:00
paul
bbba97d4a7 gtk: improve TGtkWidgetset.WindowFromPoint (fixes issue #0014511)
git-svn-id: trunk@21590 -
2009-09-06 13:38:03 +00:00
paul
907df92e81 gtk: more safer code in WindowFromPoint (fixes #0014497)
git-svn-id: trunk@21569 -
2009-09-04 13:49:41 +00:00
mattias
56223815cd gtk1+2 intf: SetScrollInfo: 0 <= nPage <= nMax-nMin+1, nMin <= nPos <= nMax - Max(nPage-1,0)
git-svn-id: trunk@21504 -
2009-08-31 19:49:31 +00:00
mattias
5a2c69fa37 gtk1 intf: fixed compilation
git-svn-id: trunk@21220 -
2009-08-14 09:21:16 +00:00
mattias
7dbec45e6d gtk2 intf: fixed slow down when mouse outside bug #11740, fixed crash when WindowFromPoint widget destroyed
git-svn-id: trunk@21213 -
2009-08-13 06:53:35 +00:00
marc
6185c6ab60 * reverted r21200 #16af7e11b4, the removed functionality is essential when running lcl apps remote
git-svn-id: trunk@21207 -
2009-08-12 21:43:56 +00:00
mattias
16af7e11b4 gtk intf: removed cache for windowfrompoint, it crashes if widget was destroyed
git-svn-id: trunk@21200 -
2009-08-12 15:10:44 +00:00
paul
11d686ee19 gtk2: improve EnableGtkThreading code
git-svn-id: trunk@20717 -
2009-06-23 03:45:06 +00:00
paul
859e98e674 lcl: formatting
git-svn-id: trunk@20422 -
2009-06-05 08:13:38 +00:00
paul
7b940b78ca gtk: draw Frame3d in a compatible with other widgetsets way (fixes bug #0013776)
git-svn-id: trunk@20110 -
2009-05-22 01:28:25 +00:00
paul
d066b57145 gtk: fix Frame3D painting
git-svn-id: trunk@20105 -
2009-05-21 12:42:07 +00:00
paul
9067fc5cdb gtk: move FillRect to TGtkDeviceContext, add argument SkipRop. Use SkipRop = True for winapi FillRect, use SkipRop = False for Polygon (fixes the last problem in issue #0013746)
git-svn-id: trunk@20034 -
2009-05-19 03:30:21 +00:00
paul
5951b71b2a gtk: formatting
git-svn-id: trunk@20032 -
2009-05-19 03:15:21 +00:00
paul
ef226daf23 gtk: skip ROP2 for FillRect (partly fixes issue #0013746)
git-svn-id: trunk@20031 -
2009-05-19 01:57:18 +00:00
paul
7dcf00f903 gtk: formatting
git-svn-id: trunk@20030 -
2009-05-19 01:54:41 +00:00
martin
fd3a03f494 Gtk widget => changed from ifdef gtk2 => ifNdef gtk1
git-svn-id: trunk@20007 -
2009-05-17 11:29:53 +00:00
martin
9a731134fb Gtk2: improving ScrollWindowEx (for SynEdit / issue #7717 )
git-svn-id: trunk@19999 -
2009-05-17 01:34:00 +00:00
paul
cf9bf7c039 gtk: improve MouseFromPoint return in case of using cache
git-svn-id: trunk@19973 -
2009-05-15 13:43:37 +00:00
paul
d6ebb0255e gtk: cache WindowFromPoint results to reduce slowleness (fixes issue #0013698)
git-svn-id: trunk@19967 -
2009-05-15 02:09:22 +00:00
paul
3cd340fe31 lcl: formatting
git-svn-id: trunk@19966 -
2009-05-15 01:57:42 +00:00
paul
b07d481b8d gtk: calculate width and height the same way for Ellipse as for Rectangle (fixes bug #0013666)
git-svn-id: trunk@19838 -
2009-05-07 09:08:07 +00:00
paul
e43c119502 gtk: use GtkFrame isntead of GtkViewPort for gtk1 TPanel implementation widget
git-svn-id: trunk@19715 -
2009-04-30 18:29:17 +00:00
paul
a6bc789bed gtk: fix compilation and some crashes after recent alpha support
git-svn-id: trunk@19506 -
2009-04-19 10:52:12 +00:00
paul
49a493794c gtk, gtk2: initial support for native alpha bitmaps (using pixbuf as storage) tested on windows only
git-svn-id: trunk@19503 -
2009-04-19 09:46:08 +00:00
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
263fa6c078 gtk, gtk2: return workarea for monitor under X
git-svn-id: trunk@19266 -
2009-04-07 06:33:27 +00:00
paul
a75bb49700 lcl: make sure HMONITOR <> 0 for valid monitors
git-svn-id: trunk@19263 -
2009-04-07 04:58:55 +00:00
paul
ddf2b15e66 gtk: implement TMonitor support
git-svn-id: trunk@19260 -
2009-04-07 01:37:50 +00:00
paul
d95ab32577 gtk, qt: don't draw a Ellipse if Width or Height = 0
git-svn-id: trunk@18866 -
2009-03-02 03:44:16 +00:00
paul
980be4b83e gtk, qt: don't draw a rectangle if Width or Height = 0 (bug #0010980)
git-svn-id: trunk@18864 -
2009-03-02 03:19:19 +00:00
paul
2580f132b8 correct few asterisk position in the header
git-svn-id: trunk@18850 -
2009-03-01 05:15:17 +00:00
paul
aa768c5872 gtk: simplify Frame3D
git-svn-id: trunk@18817 -
2009-02-24 06:41:38 +00:00
paul
dfc003e02b formatting
git-svn-id: trunk@18804 -
2009-02-23 08:33:27 +00:00
paul
31c01a588a gtk: don't move invisible windows to foreground (fixed bug #0013188)
git-svn-id: trunk@18745 -
2009-02-18 10:18:14 +00:00
paul
4a235bd95f gtk: implement DT_VCENTER, DT_BOTTOM flags for DrawText. Based on patch of Luiz Americo (issue #0008565)
git-svn-id: trunk@18702 -
2009-02-16 02:20:39 +00:00
martin
bc26d214a2 GTK1: Include "chr-cell" Fonts, into search for fixed pitch (Bug #12482)
git-svn-id: trunk@18536 -
2009-02-02 18:44:04 +00:00
mattias
204d1aa9b5 LCL: not focusing THintWindow on show
git-svn-id: trunk@18474 -
2009-01-28 15:39:55 +00:00
paul
7f8bec55bf gtk: another attempt to fix focus of controls on another forms (bug #0013004). Now without endless flickering.
git-svn-id: trunk@18455 -
2009-01-27 03:29:02 +00:00
paul
5dd6a577d0 gtk: temporary disable solution for SetFocus because of problems with IDE
git-svn-id: trunk@18453 -
2009-01-26 23:04:16 +00:00
paul
2518505d5a gtk: fix focus of controls on another forms based on patch of Fabrizio Fellini (bug #0013004)
git-svn-id: trunk@18449 -
2009-01-26 10:02:58 +00:00
paul
274cb5df0a gtk: fix code which set scrollbar visible if bRedraw = True in the SetScrollInfo
git-svn-id: trunk@18103 -
2009-01-04 16:44:56 +00:00
paul
a3e167cc37 gtk: don't crash on polygon when pen is clear, brush is not clear and winding fill mode is used (#0012759)
git-svn-id: trunk@17721 -
2008-12-08 07:23:13 +00:00
paul
1394f53c75 gtk, gtk2: fix visibility warnings and some other
git-svn-id: trunk@17620 -
2008-11-28 04:08:16 +00:00
mattias
7ed7f3098d gtk intf: fixed Application.Deactivate
git-svn-id: trunk@17589 -
2008-11-25 20:07:16 +00:00
mattias
d778c5fb8e gtk2: fixed reading gtk width/height by manually updating allocation.width/height
git-svn-id: trunk@17449 -
2008-11-19 17:12:26 +00:00
paul
25ad5bdfac gtk: don't modify selected pen on line, polyline painting
git-svn-id: trunk@17293 -
2008-11-09 12:51:19 +00:00
vincents
66ef33f52b reverted revison 17284: useful parts can be committed in seperate commits
git-svn-id: trunk@17287 -
2008-11-08 19:39:33 +00:00
jesus
b38dc6e63f updated localize script to handle only those dirs not handled by i18n feature, commented wake up gtk dbg ouput
git-svn-id: trunk@17284 -
2008-11-08 18:55:15 +00:00
tombo
c5e876817b LCL:
* SetScrollInfo - return new position
* SetScrollPos - return previous position

git-svn-id: trunk@17173 -
2008-11-01 17:24:46 +00:00
paul
8436b0266e gtk: fix bug in GetObject for ExtCreatePen
git-svn-id: trunk@17159 -
2008-10-30 23:19:53 +00:00
paul
1eebfd9824 gtk: implement GetObject for Pens made by ExtCreatePen
git-svn-id: trunk@17158 -
2008-10-30 15:22:25 +00:00
paul
7e1fb92a72 gtk, gtk2: implement ExtCreatePen
git-svn-id: trunk@17128 -
2008-10-24 15:10:58 +00:00
paul
116b83b78c gtk:
- don't compare GC with nil (it will create you a new GC on the fly) but use HasGC
- minor formatting

git-svn-id: trunk@16824 -
2008-10-01 09:13:07 +00:00
paul
05e23ab608 qt: if nil is passed to GetObject return needed Size
qt, gtk: forget that GetObject.Result = SizeOf structure

git-svn-id: trunk@16806 -
2008-09-30 05:45:19 +00:00
paul
d31a48a9d4 gtk, gtk2: implement GetObject for HPEN
git-svn-id: trunk@16805 -
2008-09-30 05:23:04 +00:00
paul
d8ca7e8a1b cleanup
git-svn-id: trunk@16784 -
2008-09-29 06:35:28 +00:00
paul
d0f9e88743 gtk, gtk2: PolyLine must skip last point draw to be delphi/win32 compatible
git-svn-id: trunk@16689 -
2008-09-23 23:29:10 +00:00
paul
eee75551b6 gtk: don't try to draw Text if Rect is empty
git-svn-id: trunk@16665 -
2008-09-21 13:32:30 +00:00
mattias
d8ca4194ff gtk2 intf: enabling gtk threading when thread manager is set
git-svn-id: trunk@16475 -
2008-09-07 23:16:18 +00:00
mattias
8acfc91bed gtk1+2 intf: added comment about wake up gtk main loop from another threa
git-svn-id: trunk@16329 -
2008-08-31 11:28:31 +00:00
mattias
5e37b07ce5 gtk1+2 intf: made FMessageQueue thread safe
git-svn-id: trunk@16328 -
2008-08-31 11:18:41 +00:00
mattias
4b50534529 gtk intf: added safety check
git-svn-id: trunk@16310 -
2008-08-30 19:26:18 +00:00
mattias
67ebb5aa2d gtk2: fixed compilation for fpc 2.2.2
git-svn-id: trunk@16156 -
2008-08-20 08:50:21 +00:00
mattias
b340abac03 gtk1: fixed GetCursorPos
git-svn-id: trunk@16103 -
2008-08-18 07:38:30 +00:00
mattias
8889f04e1d clean up
git-svn-id: trunk@16100 -
2008-08-18 06:56:53 +00:00
mattias
c81aab571f fixed uninitialized function results
git-svn-id: trunk@16088 -
2008-08-16 20:51:45 +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
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
paul
92fb8c2d5e gtk: add default values for SM_CXICON and friends
git-svn-id: trunk@15736 -
2008-07-10 13:57:39 +00:00
paul
dabde77f8b lcl (from me and Marc):
- create bitmaps for icon in with icon description instead of alpha bitmaps (fixes #0011514, #0011539)
- add support for gtk mono cursors
- fix gtk2 shifts on pixbufs (gtk2 bug)
- misc graphic fixes

git-svn-id: trunk@15557 -
2008-06-24 03:45:36 +00:00
mattias
96e855ad53 LCL: TControlScrollBar: implemented hiding scrollbar, bug #11491
git-svn-id: trunk@15470 -
2008-06-19 10:41:09 +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
mattias
e3520a6d50 gtk intf: reduced warnings/notes - use -dVerboseLCLTodos and -dVerboseGtkTodos to see them
git-svn-id: trunk@15422 -
2008-06-14 12:04:46 +00:00
paul
1cd9bfb7a0 TextRect: pass DT_EXPANDTABS to DrawText if Style.ExpandTabs is true
DrawText: qt, gtk - add support for DT_EXPANDTABS
TCustomLabel: draw with ExpandTabs = true (issue #0011050)

git-svn-id: trunk@14702 -
2008-04-01 02:34:47 +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
paul
40c9844f59 GetKeyState:
- gtk1, gtk2: implement pressed state for mouse buttons
- qt: return state for X mouse buttons

git-svn-id: trunk@14294 -
2008-02-28 06:07:29 +00:00
paul
083521d007 gtk:
- fix GetKeyState (only keys state at moment)
- gtk drag/dock for windows

git-svn-id: trunk@14277 -
2008-02-27 12:54:30 +00:00
mattias
11d6ac41f5 translations: fixed spelling mistake, fixed crash when rst file not found, updated german translation from Joerg Braun
git-svn-id: trunk@14245 -
2008-02-25 14:36:59 +00:00
sekelsenmat
fc312ff2bb Removes the obsolete CListBox under gtk and qt.
git-svn-id: trunk@14176 -
2008-02-18 07:02:01 +00:00
mattias
348cc7798a LCL: small cleanups
git-svn-id: trunk@14021 -
2008-02-07 18:52:11 +00:00
mattias
377ac8850f gtk intf: preventing deleting stock font object
git-svn-id: trunk@13998 -
2008-02-06 12:51:53 +00:00
paul
77989dc1e0 gtk2: draw text with rotation
- rearrange extras
- introduced TGtk2DeviceContext.DrawTextWithColor (mostly from 0009665 with modifications)
- use DrawTextWithColor in TextOut and ExtTextOut

git-svn-id: trunk@13987 -
2008-02-06 06:13:00 +00:00
paul
dff1565eb1 gtk2:
- enable GetObject for HFont
- use MulDiv in font size calculation instead of *, div (as in font.inc) (Grzegorz Zakrzewski)
- use PixelsPerInchY instead of PixelsPerInchX (Grzegorz Zakrzewski)
- minor formatting

git-svn-id: trunk@13985 -
2008-02-06 04:37:06 +00:00
paul
b66fdb0bab gtk: remove LM_INTERNALPAINT and related things
git-svn-id: trunk@13848 -
2008-01-24 01:37:40 +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
bdb8aa451e gtk:
- added some missed function to extra
- correct GetWindowRect

git-svn-id: trunk@13665 -
2008-01-08 09:33:43 +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