Commit Graph

13423 Commits

Author SHA1 Message Date
Maxim Ganetsky
dae82f367a LCL-Gtk2: Ensure that correct DestroyHandle flavor is called for TShellListView. Fixes crashes when freeing TShellListView. Issue #41238, patch by Željan and Bart. 2024-11-21 16:36:08 +03:00
Željan Rikalo
3851c98976 Qt6: Fixed bug in cbindings, updated cbindings version. 2024-11-20 23:47:15 +01:00
Željan Rikalo
f2f43ea7fa Qt5, Qt6: guard TQtWSWinControl.SetText from dangling pointers in same way as TQtWSWinControl.GetText 2024-11-20 23:37:53 +01:00
Željan Rikalo
83f1d01e6a Qt5: Fixed bug in cbindings, updated version to 1.2.16. 2024-11-20 22:50:41 +01:00
Željan Rikalo
0201dd32c9 Qt5, Qt6: small optimization, mark vBrush,vPen and vBackroundBrush as shared. 2024-11-20 22:49:25 +01:00
Željan Rikalo
107d8dbeae Qt5,Qt6: fixed restoring secondary minimized window. issue #40243 2024-11-20 08:31:14 +01:00
Maxim Ganetsky
9846c0c8f4 Revert "LCL-Gtk2: Workaround for Gtk2 themed painting issue when excluded cliprects were ignored sometimes."
This reverts commit f20a2c32e4.

Causes regressions with speedbutton highlight.
2024-11-20 00:43:07 +03:00
Željan Rikalo
7ffa106c64 Qt5, Qt6: set QtKey_Bar to VK_LCL_BACKSLASH. issue #40825 2024-11-19 20:52:46 +01:00
Željan Rikalo
4dc3c40696 Qt5, Qt6: Fixed bug with TListView.LargeImages and vsIcon style. issue #39511 2024-11-19 19:44:34 +01:00
Željan Rikalo
2e1792430b Qt5, Qt6: Small refactor for 'text/plain' handling in clipboard, patch by Alexey Torgashin. issue #41145 2024-11-19 18:39:37 +01:00
Maxim Ganetsky
f20a2c32e4 LCL-Gtk2: Workaround for Gtk2 themed painting issue when excluded cliprects were ignored sometimes.
Makes behavior more consistent with other widgetsets. Issue #41246,
patch by Željan Rikalo.
2024-11-19 16:43:21 +03:00
Željan Rikalo
ad73bdff39 Qt,Qt5,Qt6: implemented themed draw of tabbar base. 2024-11-18 10:26:58 +01:00
Juha
3185572fdf LCL-GTK2: Prevent a crash in OpenBSD, related to tooltips. Issue #41244, patch by Alfred Glänzer. 2024-11-16 10:19:37 +02:00
Juha
5f8eacc23d LCL-GTK2: Fix errors in TCombobox.Text. Issue #28840, patch by Maxim Ganetsky. 2024-11-15 14:34:03 +02:00
Željan Rikalo
a724e2b3a3 Qt6: removed wrong call to QFontMetricsF_horizontalAdvance():integer 2024-11-15 08:16:45 +01:00
Željan Rikalo
e53ab12bac Qt6: new version of C bindings due to added new classes and fixed wrong QFontMetricsF_horizontalAdvance() output. 2024-11-15 08:12:33 +01:00
Željan Rikalo
7bace9858e Qt6: various fixes in bindings. 2024-11-15 08:11:23 +01:00
Željan Rikalo
b915e78b9a Qt6: added QInputMethod and QKeyCombination classes to the C bindings. 2024-11-15 08:09:15 +01:00
Željan Rikalo
9ba7c6e286 Qt5, Qt6: fixed PopupParent = modal form, issue #41241 2024-11-14 13:48:14 +01:00
Maxim Ganetsky
b35ba030b3 LCL-Gtk3: Convert ampersands to underscores and back in captions as needed. Hints from Anton Kavalenka, issue #41220. 2024-11-11 22:46:51 +03:00
Željan Rikalo
c97c2774da Qt5,Qt6: do not send LM_CLICKED if button lost focus after mouse down. issue #41237 2024-11-11 18:07:26 +01:00
rich2014
1c81206a45 Cocoa: remove circle references between CocoaInt and CocoaWSCommon 2024-11-10 11:59:31 +08:00
rich2014
15be94c0ad Cocoa: remove duplicate calls to selectRowIndexesByProgram() in TCocoaTableListView 2024-11-08 23:15:17 +08:00
Željan Rikalo
d37c67876e Qt5, Qt6: small optimization for ExtTextOut when drawing char by char. 2024-11-08 13:08:42 +01:00
rich2014
ebf48ada11 Merge branch 'FixTScrollingWinControlAssumption' into 'main'
Cocoa: Fix code assumption that target is always TScrollingWinControl

See merge request freepascal.org/lazarus/lazarus!378
2024-11-08 11:01:12 +00:00
David Jenkins
f09e844111 Cocoa: Fix code assumption that target is always TScrollingWinControl 2024-11-08 11:01:11 +00:00
Željan Rikalo
54ba042fb2 Gtk2: better recognition of wayland session, do not create dummy frame. 2024-11-08 12:00:28 +01:00
rich2014
0120a8437d Cocoa: fix the missing unit @ 52dc179
but the unit circular reference is reintroduced
2024-11-08 01:11:51 +08:00
David Jenkins
52dc179724 Cocoa: TCocoaWidgetSet.IsWindow should return true for any widget handle and not just TCocoaWindowContent. 2024-11-07 16:47:38 +00:00
rich2014
253c6b1be6 Cocoa: Fixed the issue of calling reloadData in NSTableView triggering OnChange
TListView / TListBox / TCheckListBox
2024-11-08 00:37:49 +08:00
Maxim Ganetsky
7cfcb81528 LCL-Gtk2: Call SetExceptionMask for all CPUs, not only for x86 (thus unify it with other widgetsets). Fixes crashes on AArch64, issue #41188. 2024-11-06 15:35:08 +03:00
rich2014
8a371c283e Cocoa: add event handler to TCocoaConfigApplication, see also !351 2024-11-02 23:13:44 +08:00
David Jenkins
504b330788 Cocoa: Add function to create multi resolution image from an image list. Change TLCLListViewCallback.GetImageFromIndex to use that function 2024-11-01 16:01:55 +00:00
David Jenkins
5d44cb36d6 Cocoa: Rework pattern drawing to avoid calling DrawBitmapPattern and TCocoaBrush.drawPattern after items have been released. 2024-11-01 15:30:47 +00:00
David Jenkins
1b4edd6f41 Cocoa: Add some fixed pitch font checking for the font selector and gdiobjects 2024-11-01 14:39:45 +00:00
David Jenkins
518d08bf18 Cocoa: Pick default fonts directly and not by changing a base value 2024-11-01 13:36:27 +00:00
rich2014
34fbc70c67 Cocoa: improve ComboBox with OwnerDraw (especially TColorBox in Dark) 2024-11-01 18:55:11 +08:00
David Jenkins
33deac51ea Cocoa: Add TCocoaThemeServices.DrawText functionality 2024-11-01 10:06:17 +00:00
rich2014
06c50ab4cc Cocoa: fix leaks in TCocoaCollectionItemView 2024-10-31 21:47:40 +08:00
rich2014
87eb63bc18 Cocoa: add a convenient function to get the NSView corresponding to the NSToolBarItem 2024-10-31 21:29:53 +08:00
rich2014
8f2d7ca2b5 Cocoa: support dynamic menu in Modern Form Style Tool Bar 2024-10-31 21:22:38 +08:00
rich2014
db6685cd02 Cocoa: support keyboard in TCustomComboBox (TCocoaReadOnlyComboBox) 2024-10-30 00:25:44 +08:00
rich2014
a29409bdad Cocoa: simplify popup menu tracking mechanism in TCustomComboBox (TCocoaReadOnlyComboBox) 2024-10-29 22:59:08 +08:00
rich2014
21803721f8 Cocoa: in TCustomComboBox (TCocoaReadOnlyComboBox) with OwnerDraw, fix the issue that popupButton are covered 2024-10-28 23:55:46 +08:00
rich2014
3b1a924a6d Cocoa: fix the width of the drop-down menu is not updated after the size of TCustomComboBox (TCocoaReadOnlyComboBox) is dynamically updated 2024-10-28 22:57:07 +08:00
mattias
6aa633b9c9 lcl: updated makefile 2024-10-25 19:59:10 +02:00
mattias
8da445d514 lcl: cocoa: fixed calling overload 2024-10-25 10:47:22 +02:00
David Jenkins
a3a16bf5b3 Cocoa: cleans up some sloppiness with the way LCLCOCOA creates/interacts with NSTimer... 2024-10-24 13:32:39 +00:00
mattias
4cb56ddc5c lcl: consistent -g -gl 2024-10-24 12:30:13 +02:00
David Jenkins
038a93c1fd Cocoa: Add version of TCocoaContext.TextOut() with float instead of Integer position params 2024-10-24 00:36:38 +00:00