Commit Graph

24355 Commits

Author SHA1 Message Date
zeljan1
5df0a8f05a Qt5,Qt6: must check if handle is valid. 2025-02-15 09:29:17 +01:00
zeljan1
0a6df5f238 Qt6: disable Qt lib autocomplete of QComboBox, LCL does autocomplete. issue #41432 2025-02-14 23:18:06 +01:00
zeljan1
7bfc63d9ed Qt5, Qt6: must use MenuVisibleIndex to be in order. issue #41429 2025-02-14 23:06:14 +01:00
zeljan1
05ca3c6d83 Gtk3: fix for scrollbars not showing sometimes in SetScrollInfo() when overlay is enabled, cleanup. 2025-02-14 21:55:11 +01:00
zeljan1
4f835ede52 Qt5,Qt6: fixed order of menu items when hiding/destroying handle/adding again. issue #41429 2025-02-14 09:03:11 +01:00
zeljan1
2e4bce1533 Gtk3: fixed regression, forgot TGtk3Widget.EndUpdate. issue #41427 2025-02-13 15:08:43 +01:00
zeljan1
790e387825 Gtk3: do not invalidate whole area if rect is empty. 2025-02-13 09:03:23 +01:00
mattias
fb03756b41 replaced url http://wiki.freepascal.org with https 2025-02-13 08:49:48 +01:00
Martin
be89c477d9 LCL: fix TControlScrollBar needs update if owner's handle changes. Issue #40794 introduced in 4891f1f0e1 2025-02-13 01:49:57 +01:00
zeljan1
ac5f2c1c49 Gtk3: updated README. 2025-02-12 19:59:59 +01:00
zeljan1
93de351d2f Gtk3: implemented TGtk3Widgetset.SetWindowPos() 2025-02-12 17:32:00 +01:00
zeljan1
3ac22c5abe Gtk3: fixed transient window for borderless windows with popupparent. 2025-02-12 16:21:39 +01:00
zeljan1
bf7f5c51ee Gtk3: make fsStayOnTop work with LCL expectations. issue #41253 2025-02-12 11:23:32 +01:00
zeljan1
014ceebd7b Gtk3: forgot commit. 2025-02-12 11:22:14 +01:00
zeljan1
d33c56d5d4 Gtk3: implemented shaped window (toplevel). 2025-02-12 11:15:37 +01:00
zeljan1
c82b207c96 Gtk3: implemented SetAlphaBlend(). 2025-02-12 09:47:42 +01:00
zeljan1
5731b3c4cf Gtk3: Make TGtk3WidgetSet.GetKeyState() work for mouse buttons.Example at issue #41340 2025-02-12 09:22:14 +01:00
zeljan1
597fe6af9d Gtk3: debug for keypresses. 2025-02-11 21:39:14 +01:00
zeljan1
2feb873d51 Gtk3: more keys implemented, fixed square brackets keys.issue #41425 2025-02-11 21:11:34 +01:00
zeljan1
18d03966ff Gtk3: make keys work with synedit. 2025-02-11 19:51:01 +01:00
zeljan1
f83078ff61 Qt5,Qt6: do not set QGuiApplication_applicationDisplayName(), since Qt have another meaning about it. issue #41417 2025-02-11 15:53:22 +01:00
zeljan1
8605e5252d Qt5,Qt6: fixed layout of ListView vsIcon and vsSmallIcon. 2025-02-11 15:38:57 +01:00
zeljan1
683afd5cbb Qt5,Qt6: use floating point functions for primitives drawing on scaled displays. issue #41422 2025-02-11 14:44:05 +01:00
zeljan1
82f47a7b6f Gtk3: fixed loading smallimages in TistView.ViewStyle = vsSmallIcon 2025-02-11 09:58:54 +01:00
zeljan1
291a9fd3dd Qt5,Qt6: fixed distorted image creation from device (screenshoot) on HiDpi screens. 2025-02-11 09:40:54 +01:00
zeljan1
32c1370c50 Gtk3: fixed TGtk3DeviceContext.GetPixel() so it works on wayland too. Patch by Anton Kavalenka. issue #41413 2025-02-10 19:59:52 +01:00
n7800
bbb52ae727 LCL: Additional key constant aliases VK_LCL_* 2025-02-10 16:15:07 +00:00
zeljan1
04f57de851 Qt5,Qt6: proper set of application title.issue #41417. 2025-02-10 15:28:43 +01:00
zeljan1
c50ceb5e64 Gtk3: removed unnecessary check. 2025-02-09 23:09:44 +01:00
zeljan1
9d7bd8fdd8 Gtk3: give some more time to window to configure itself. Sometimes, some forms stay invisible because it need more time to refresh and configure. Related to the issue #41412 2025-02-09 22:48:22 +01:00
wp_xyz
8f5c0d7288 LCL/TreeView: Improved custom drawing. 2025-02-09 15:56:16 +01:00
zeljan1
19ed12106d Gtk3: fixed loading bitmap from device. 2025-02-09 15:45:25 +01:00
zeljan1
03b43038f3 Gtk3: rewritten TGtk3DeviceContext.getPixel() to return correct pixel e, especially when our surface is not an image. issue #41413 2025-02-09 13:16:21 +01:00
zeljan1
07d34d83e4 Gtk3: fixed TGtk3DeviceContext.getPixel(). Patch by Anton Kavalenka. issue #41413 2025-02-08 17:44:49 +01:00
zeljan1
8e5b458e0b Gtk3: fixed case when window geometry isn't updated yet, so form is malformed or completely block showing. issue #41412 2025-02-08 16:54:54 +01:00
zeljan1
07f655053d Gtk3: hide toplevels by default when handle is created , only LCL should show it. issue #41412 2025-02-07 21:41:12 +01:00
zeljan1
fd83de7f2a Gtk3: fixed rectangle draw. Patch by Anton Kavalenka. issue #41397 2025-02-07 20:42:02 +01:00
zeljan1
f14ddd7eea Gtk3: fixed ClientHeight does not equal to Height on wayland.Patch by Anton Kavalenka. issue #41345 2025-02-07 15:52:07 +01:00
zeljan1
eba745ba63 Qt5: set mouse capture automatically. Qt4 and Qt6 works correct without such patch. issue #41341 2025-02-07 14:47:57 +01:00
zeljan1
b0d17dbe66 Gtk3: cleanup, fixed memleaks. 2025-02-06 23:32:56 +01:00
zeljan1
8cece17ba8 Gtk3: Encapsulated PGdkCursor, fixed CreateCompatibleDC(). 2025-02-06 23:06:19 +01:00
zeljan1
42a3ff44e7 Gtk3: cleanup. 2025-02-06 20:56:33 +01:00
Juha
4a8f31afdb LCL-GTK2: Filter the messages in function PeekMessage. Issue #41407, patch by Artem Izmaylov. 2025-02-06 18:15:24 +02:00
Juha Manninen
14c4d4a030 Merge branch 'LCL/SelectInFolder/Windows' into 'main'
LCL: Improving SelectInFolder implementation on Windows

See merge request freepascal.org/lazarus/lazarus!432
2025-02-06 09:54:45 +00:00
zeljan1
aec061aae2 Gtk3: fixed memleak in TGtk3DeviceContext.GetPixel() 2025-02-06 10:33:02 +01:00
n7800
90b91071fb LCL: Improving SelectInFolder implementation on Windows 2025-02-06 09:23:52 +00:00
Juha
4ce84e7af4 LCL: Improve a comment for function SelectInFolder. Directories are shown in different ways in different systems. 2025-02-06 10:05:36 +02:00
zeljan1
78085ec24c Gtk3: fixed mem leak. 2025-02-05 22:15:11 +01:00
zeljan1
670719349b Gtk3: fixed few memleaks found by valgrind. 2025-02-05 21:56:45 +01:00
zeljan1
76147c8a4e Gtk3: implemented LargeImages in TCustomListView.ViewStyle = vsIcon, fixed memleak. 2025-02-05 19:41:43 +01:00
zeljan1
d88398cd3a Gtk3: better handling of TCustomListView.ShowColumnHeader when ViewStyle=vsReport. 2025-02-05 16:06:16 +01:00
zeljan1
8a902339bf Gtk3: fixed TCustomListView setting clDefault color, fixed ItemDisplayRect. 2025-02-05 14:05:17 +01:00
zeljan1
0a2ec46c51 Gtk3: implemented checkable TCustomListView. 2025-02-05 13:20:08 +01:00
zeljan1
01058cca8d Gtk3: removed TGtk3WSCustomListView.GetFocused, it isn't used by LCL at all anymore. 2025-02-05 11:30:57 +01:00
zeljan1
cd67b9603c Gtk3: implemented TGtk3ListView.ShowRow(), partially implemented TGtk3WSComCtrls.ItemShow 2025-02-05 10:25:34 +01:00
zeljan1
26a8fe1765 Gtk3: fixed TGtk3ListView.setColor, implemented ItemGetPosition, recreate handle when ViewStyle of list is changed. 2025-02-05 10:01:09 +01:00
zeljan1
8839d5656a Gtk3: make TListView setFont() and setColor() work. 2025-02-04 19:38:24 +01:00
zeljan1
1a2bdc04d9 Gtk3: fixed moveTo() when handling pen with width > 1. issue #41405 2025-02-04 13:55:21 +01:00
zeljan1
548f2b0657 Gtk3: rewritten TGtk3Caret so it works under wayland too. issue #41395 2025-02-04 08:28:10 +01:00
JuhaManninen
498fd13c98 LCL-Win32: Simplify function SelectInFolder. 2025-02-03 20:49:50 +02:00
zeljan1
d931804a51 Qt6: do not allow THintWindow to grab focus under wayland. 2025-02-03 18:40:18 +01:00
zeljan1
8077d8dae0 Gtk3: fixed GetWindowRect() so it return proper values on x11 and wayland. 2025-02-03 16:56:46 +01:00
wp_xyz
654245a39e LCL/ImageList: Fix update of images after reloading. Issue #41386, based on patch by Massimo Magnano. 2025-02-03 12:45:20 +01:00
zeljan1
3a07a26d47 Gtk3: improved caret. issue #41395 2025-02-02 17:19:01 +01:00
wp_xyz
4e939b31dd Replace locally implement operator overload for method comparison by already available SameMethod. Proposed by n7800 in MR !431 2025-02-02 12:09:48 +01:00
Juha
d8227cc4c4 LCL: Eliminate a variable in function DoOpen for Mac. 2025-02-02 10:23:41 +02:00
Juha
4164e5b669 LCL: Fix quote char in OpenDocument and SelectInFolder for Linux. 2025-02-02 10:08:30 +02:00
rich2014
94951a82fd Cocoa: #41309 fix the issue in TCocoaWSCustomForm for TCustomForm.PaintTo() 2025-02-02 10:48:37 +08:00
rich2014
b855e211b6 LCL/Cocoa: Implement SelectInFolder for macOS. 2025-02-02 10:44:51 +08:00
zeljan1
0d5e804de9 Gtk3: hopefully fixed color swapped images (r & b channels). 2025-02-02 01:02:06 +01:00
Juha
efa53c774a LCL: Implement SelectInFolder for Windows. 2025-02-02 01:27:39 +02:00
Juha
28ba5306c3 LCL: Add a new function SelectInFolder in LclIntf. Use it in source editor's StatusBar. 2025-02-01 18:28:44 +02:00
zeljan1
6d7ce926a7 Gtk3: Make dock header button appear. Patch by Anton Kavalenka, issue #40346 2025-02-01 14:29:24 +01:00
zeljan1
b5a0144feb Gtk3: Removed usage of cairo_save() and cairo_restore() inside TGtk3DeviceContext, it can be called only via TGtk3WidgetSet.SaveDC() and RestoreDC(), so we have now significant speed improvement by this commit, also it fixes various problems with masked bitmaps. Issue #41393, issue #41344, issue #41383 2025-02-01 14:22:51 +01:00
zeljan1
941419e8a9 Gtk3: fix button autosized width, must use LCL size. issue #41390 2025-02-01 13:56:24 +01:00
zeljan1
c0b1b7c5bc Gtk3: avoid pango asserts with invalid utf8 strings in TGtk3WidgetSet.GetTextExtentPoint() 2025-02-01 13:53:41 +01:00
wp_xyz
d11d9793b2 LCL/ShellTreeView: Fix error when clicking a non-default root node in sorted ShellTreeView. Issue #41373. 2025-02-01 12:46:38 +01:00
zeljan1
3cc1bc02fb Qt4: fixed build after removing of deprecated stuff 2025-02-01 11:45:12 +01:00
Juha
28578a1e6a LCL-Win32: Keep TTrayIcon helper window hidden. Issue #41279, patch by Red_prig (Pavel). 2025-02-01 02:37:46 +02:00
Maxim Ganetsky
e62036a5be Revert "LCL-GTK3: Make fsStayOntop work, Issue #41253, patch by Anton Kavalenka."
This reverts commit 46fad95a74
2025-01-31 21:35:41 +00:00
zeljan1
c6868517d5 Gtk3: fixed memleak in drawText() 2025-01-31 21:29:26 +01:00
zeljan1
37dd466b00 Gtk3: fixed drawing pixmap with mask.issue #41383 2025-01-31 21:10:02 +01:00
zeljan1
aae76e11e3 Gtk3: we actually must paint LCLObject.Color on GtkFixed, or use css. issue #41391 2025-01-31 20:05:58 +01:00
zeljan1
0bb0a0625a Gtk3: fixed StretchMaskBlt(). issue #41384 2025-01-31 18:56:15 +01:00
zeljan1
1d5796a663 Gtk3: do not use set_no_show_all() for windows and notebooks. 2025-01-31 18:34:34 +01:00
zeljan1
95786ee691 Gtk3: fixed issue when hide mapped container. issue #41387 2025-01-31 18:26:07 +01:00
Juha
46fad95a74 LCL-GTK3: Make fsStayOntop work, Issue #41253, patch by Anton Kavalenka. 2025-01-31 19:10:36 +02:00
Juha
5bcc39179c LCL: Fix TTreeNode.GetTextPath. Issue #41356, patch by Don Siders. 2025-01-31 15:39:25 +02:00
Juha
b3833f5594 LCL: Fix a comment about a deprecated variable, remove deprecated enum. Issue #41366. 2025-01-31 14:28:12 +02:00
Juha
476da882fa Delete some deprecated functions. Inspired by issue #41363. 2025-01-31 13:50:35 +02:00
zeljan1
0cde3a5c07 Gtk3: fixed TGtk3DeviceContext.drawText(), param for fill background.issue #41381 2025-01-31 10:18:20 +01:00
Juha
9f5be67e36 LCL: Update TCombobox.ItemIndex when AutoCompleteing. Issue #41358, patch by Iluha Companets. 2025-01-31 02:20:42 +02:00
Juha
82bf2bb2fa LCL-GTK3: Improve drawing graph primitives. Issue #41382, patch by Alexey Torgashin. 2025-01-31 01:23:46 +02:00
Juha
bc8578231c LCL: Use OwnerForm.Monitor when Position = poOwnerFormCenter. Issue #41377, patch by Artem Izmaylov. 2025-01-31 00:19:31 +02:00
zeljan1
7deaf87eb8 Gtk3: fixed lines painting. Patch by Anton Kavalenka. issue #41354 2025-01-30 21:04:52 +01:00
Abou Al Montacir
250b273497 Fixed method parameter type.
This was a bug in GIR file that was fixed in GIR v1.52.2 or newer.
Older versions were buggy.
2025-01-30 19:43:06 +01:00
zeljan1
f31e2eaaa5 Gtk3: change gList binding to be OO like other stuff. Patch by Anton Kavalenka. issue #41376 2025-01-30 10:20:42 +01:00
zeljan1
49faf7719e Gtk3: ellipsize text of combo.style=dropdownlist 2025-01-30 10:12:54 +01:00
zeljan1
c0a475897d Gtk3: added helper proc ListProperties() for debugging and implementation purposes. 2025-01-30 10:01:26 +01:00
zeljan1
572cc8bbf4 Gtk3: fixed memleak and list usage. Patch by Anton Kavalenka, modified by me. issue #41375 2025-01-29 19:03:53 +01:00
zeljan1
37bb0cb225 Gtk3: fixed crash of comboBox, added check to avoid infinte loop when setting allocation, simplified code. 2025-01-29 12:20:07 +01:00
zeljan1
77acd9acdb Gtk3: we should not free style object, it is owned by widget. mantis #41371 2025-01-29 08:45:09 +01:00
wp_xyz
d941c2cddb LCL/ImageList, TCustomImageListResolution: Change visibility of some fields and methods. Merge request !429 by Massimo Magnano. 2025-01-29 00:53:46 +01:00
zeljan1
67ff91cf1f Gtk3: fixed mem leak when using gtk_widget_get_style(). Patch by Anton Kavalenka. issue #41371 2025-01-28 23:01:30 +01:00
zeljan1
e454516c68 Gtk3: fixed mem leak with PPangoFontDescription. Patch by Anton Kavalenka. issue #41372 2025-01-28 22:58:16 +01:00
zeljan1
fc756a2d08 Gtk3: fixed mem leak in TGtk3WidgetSet.RectVisible(). Patch by Anton Kavalenka. issue #41369 2025-01-28 22:52:20 +01:00
zeljan1
ec59292d9e Gtk3: Fixed PGtkComboBoxPrivate layout, fixed items painting and sizing of combobox according to the new updated private class. 2025-01-28 22:42:50 +01:00
David Jenkins
2f8bee262c Cocoa: add callback for application specific Extended keys and non-US keyboards handling. 2025-01-28 12:08:46 +00:00
Martin
9b4c81b56b IDE, DockedFormEditor: Check for csDesignInstance, instead of csDesigning to determine if a form/frame is the top-parent in the designer. (To disable autosizing for them). Issue #41368 2025-01-27 13:09:05 +01:00
mattias
54e532cdbe lcl: fixed typo 2025-01-27 11:37:21 +01:00
zeljan1
fd1bd28085 Gtk3: fixed result of TGtk3WidgetSet.ShowScrollBar 2025-01-26 15:54:26 +01:00
zeljan1
522fb6cbd8 Gtk3: paired cairo_save() & cairo_restore() in TGtk3DeviceContext so we can see if there's mismatch. 2025-01-26 15:50:33 +01:00
zeljan1
5f2e152d27 LCL: fixed enum member comments. Patch by Alexey Torgashin. issue #41364 2025-01-26 15:24:19 +01:00
zeljan1
680cab3fa0 LCL: fixed explanation of csAcceptsControls, it is widely used in LCL at runtime, so it is not related to designer only. 2025-01-26 12:50:17 +01:00
zeljan1
cc4e6da36b Gtk3: implemented listview ItemDisplayRect 2025-01-25 23:15:00 +01:00
zeljan1
470c7fe34c Gtk3: cleanup. 2025-01-25 22:01:54 +01:00
zeljan1
1a7bfbe92c Gtk3: reduce compiler hints. 2025-01-25 22:00:28 +01:00
zeljan1
375aee0658 Gtk3: set background color. Patch by Anton Kavalenka. issue #41348 2025-01-25 21:59:24 +01:00
zeljan1
5eded0d07e Gtk3: fixed loop with paint, stalled code. 2025-01-25 21:31:21 +01:00
zeljan1
16be2ec0a6 Gtk3: update scroll event, some code leaved inside debug define. 2025-01-25 20:07:04 +01:00
zeljan1
938a777f5a Gtk3: fixed scrolling and proper painting of TCustomControl, reduce number of unnecessary events. 2025-01-25 19:27:22 +01:00
zeljan1
cf18117fd2 Gtk3: added Gtk3IsAdjustment() 2025-01-25 15:59:23 +01:00
zeljan1
df90538fc2 Gtk3: ScrollWindowEx() use queue_draw_area instead of move_region. We don't want to move children until it's explicitly set in flags. 2025-01-25 09:58:48 +01:00
Željan Rikalo
7c69859cf3 Gtk3: fixed building gtk3 ws on older distros, newer code is ifdefed with -dUSEGTK3LATESTBINDINGS if someone need latest glib2,gio2,gmodule2 and gobject2 bindings. Commented code is not used at all for lazarus gtk3. 2025-01-24 17:18:03 +01:00
zeljan1
7dfce26b3a Gtk3: do not queue draw widget area if rect have invalid width or height. 2025-01-23 22:54:54 +01:00
Juha
9c1268e600 LCL: Do not clear Checked state of an Action when linked to TSpeedButton and the button gets disabled. Issue #41352, patch by Peter. 2025-01-23 20:22:29 +02:00
Bart
80b7b1fa95 GTK3: implements TColorDialog.AlphaChannel and TColorDialogOption.cdPreventFullOpen. Patch by Anton Kavalenka. Part of Issue #22717. 2025-01-23 18:40:14 +01:00
zeljan1
38292ecb71 Qt5: bypass window manager for hint windows, fixes raising of hint window in system tray on some window managers eg xfwm4. 2025-01-23 17:25:44 +01:00
zeljan1
b498943168 Qt6: on darwin Qt must think that we use 96dpi, not 72. 2025-01-23 13:45:09 +01:00
zeljan1
a48730d17a Gtk3: fixed doubled resize events for TCustomForm, fixed TCustomForm getClientRect. 2025-01-23 11:19:26 +01:00
zeljan1
0661301110 Gtk3: cleanup. 2025-01-23 09:17:39 +01:00
zeljan1
a2153c9bcb Gtk3: TToolbar should be TCustomControl, also this is first commit maded with lazarus-gtk3 ide :), just few secs after those changes it crashed :)))) 2025-01-22 23:30:34 +01:00
zeljan1
52468145b6 Gtk3: fixed TCustomTabControl/TCustomPage sizing, fixed bug where Widget property getter initialized widget if it's destroyed. 2025-01-22 23:07:57 +01:00
zeljan1
6668cb44c4 Gtk3: fixed wrong value set to natural height of lclgtk* controls. 2025-01-22 21:50:29 +01:00
zeljan1
4374f2360f Gtk3: added G_OBJECT_TYPE_NAME(), same name as gtk3 macro have. Needed for debugging. 2025-01-22 18:26:22 +01:00
zeljan1
be473cfce5 Qt5,Qt6: fixed hintwindow grab focus with xfce window manager. 2025-01-22 13:38:18 +01:00
zeljan1
54e4530082 Gtk3: fixed invalid size from TGtk3WidgetSet.GetClientRect. issue #41343 2025-01-22 13:17:27 +01:00
zeljan1
7f92b9f77a Gtk3: fixed range error when assigning brush color in device context. 2025-01-22 10:31:24 +01:00
zeljan1
372fc3b29c Gtk3: safe guard against duplicate signal assignment. 2025-01-21 16:18:01 +01:00
zeljan1
0fbd8536a5 Gtk3: fixed result of Gtk3TranslateScrollStyle 2025-01-21 15:48:45 +01:00
zeljan1
4c92117a9a Gtk3: more debug, check if widget is realized in SetBounds. 2025-01-21 14:26:51 +01:00
zeljan1
c52971d599 Gtk3: check if GetCapture works ok. 2025-01-21 13:37:23 +01:00
zeljan1
86bba40f39 Gtk3: fixed gtk3 forms behaviour. 2025-01-21 13:34:56 +01:00
zeljan1
fe08ba3b2f Gtk3: fixed fillRect() overload without brush. issue #41342 2025-01-21 09:51:11 +01:00
zeljan1
ae834f5ddf Gtk3: fixed pen cairo_move_to(). issue #41339 2025-01-21 08:37:32 +01:00
Maxim Ganetsky
a1944b5b50 Translations: LCL Corsican translation update by Patriccollu, merge request !427 2025-01-21 00:44:24 +03:00
zeljan1
9d0d6b229a Gtk3: TCustomControl should start without scrollbars by any meaning, so it uses correct size setted up by lcl. Scrollbar sizes are loaded dynamically now. issue #41338 2025-01-20 21:36:24 +01:00
zeljan1
46142a240f Gtk3: fixed compilation with define gtk3debugsize. 2025-01-20 20:43:27 +01:00
zeljan1
984b837034 LCL: added gtk3lclframe.inc to the package. 2025-01-20 19:40:32 +01:00
zeljan1
fd3a20f5c9 Gtk3: Fixed sizing of group box and relatives checkgroup and radiogroup, fixed radiobutton gtk asserts because of HiddenRadioButton 2025-01-20 19:23:41 +01:00