Commit Graph

24357 Commits

Author SHA1 Message Date
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
Maxim Ganetsky
0d73603378 LCL: updated Russian translation 2025-01-20 17:15:53 +03:00
wp_xyz
e897d845ea LCL/TreeView: Avoid flicker when hot-tracking is active. Based on patch by @d7_2_laz, issue #41290. 2025-01-20 11:37:25 +01:00
zeljan1
baef5a1511 Gtk3: fixed ownerdraw combobox. 2025-01-19 21:38:31 +01:00
zeljan1
24bf163157 Gtk3: Implemented LCLGtkSpinButton to fix sizing of GtkSpinButton, especially autosize. 2025-01-19 20:22:04 +01:00
wp_xyz
14cab142ef LCL/ShellCtrls: Change internal format string for displaying GB file sizes in TShellListView. 2025-01-19 19:17:13 +01:00
zeljan1
834f380863 Gtk3: applied scrollbars size to client rect if overlay scrolling is enabled. 2025-01-19 17:52:15 +01:00
zeljan1
46023f7b4b Gtk3: removed hardcoded min_size values since they're problematic with environments with dpi > 96 2025-01-19 17:48:05 +01:00
zeljan1
7cd24ecf35 Gtk3: implemented OverlayScrolling property at the widgetset part to help extractint scrolling control client rect and scroll info. 2025-01-19 17:46:40 +01:00
wp_xyz
8e3b710abb LCL/ShellCtrl: ShellListView can display file size in GB. 2025-01-19 16:40:41 +01:00
wp_xyz
8c094c3349 LCL/ShellCtrls: For folders in TShellListView, show generic file type "Folder" and hide value in Size column. 2025-01-19 10:55:59 +01:00
zeljan1
75191de4f0 Gtk3: simplify TGtk3WidgetSet.ReleaseCapture(). 2025-01-19 01:28:43 +01:00
zeljan1
7a1413e616 Gtk3: implemented TGtk3WidgetSet.PaintRgn(). 2025-01-19 01:22:57 +01:00
zeljan1
98f5b86bb3 Gtk3: implemented TGtk3WidgetSet.OffsetRgn() 2025-01-19 01:09:26 +01:00
zeljan1
b329b331ff Gtk3: fixed TGtk3WidgetSet.GetRgnBox(). 2025-01-19 00:54:28 +01:00
zeljan1
560a692e29 Gtk3: optimize ScrollWindowEx(). 2025-01-19 00:44:49 +01:00
Werner Pamler
548a2cf2d1 Merge branch 'main' into 'main'
TShellListView Added FileSortType, OnSortCompare

See merge request freepascal.org/lazarus/lazarus!421
2025-01-18 23:23:55 +00:00
zeljan1
0c0b6882c0 Gtk3: Fixed button sizing/autosizing by introducing LCLGtkButton class, fixed SetScrollInfo, fixed GetClientRect for all scrollable widgets. 2025-01-18 23:33:42 +01:00
zeljan1
b230dabbd3 Gtk3: removed unused code. 2025-01-17 22:57:59 +01:00
zeljan1
a8cbc7ff3c Gtk3: if bRedraw param of setScrollInfo = true, update widget. 2025-01-17 22:33:35 +01:00
zeljan1
f7049dfe01 Gtk3: gtk3int, add LazLogger after LCLProc. 2025-01-17 22:29:08 +01:00
zeljan1
6022d3d881 Gtk3: connect proper methods to value-changed of scrollbars. 2025-01-17 21:42:18 +01:00
zeljan1
f35e1cc8ec Gtk3: Create TMainMenu handle (menubar) on demand, needed when TMainMenu is created dynamically at runtime, eg Lazarus IDE. 2025-01-17 19:59:43 +01:00
zeljan1
fd05614958 Gtk3: use TLMessage instead of TLMMouse. 2025-01-17 19:32:59 +01:00
zeljan1
11d421735f Gtk3: fixed TGtk3Button OnClick 2025-01-17 18:47:10 +01:00
zeljan1
acd16b6b41 Gtk3: use new LCLGtkComboBox and LCLGtkEntry classes, reorganized code, now all pure gtk3 callbacks are static class methods. 2025-01-17 18:29:33 +01:00
zeljan1
c880fb149e Gtk3: less hints. 2025-01-17 18:25:34 +01:00
zeljan1
0f12e6894a Gtk3: overrided GtkComboBox and GtkEntry, needed for proper sizing and autosizing of those controls. 2025-01-17 18:25:00 +01:00
zeljan1
62c808ee25 Gtk3: use LazLogger for debugging. 2025-01-17 18:22:51 +01:00
zeljan1
5c0a927279 Gtk3: use LazLogger for debugging. 2025-01-17 18:18:36 +01:00
mattias
232bb74dd3 lcl: clean up 2025-01-16 15:33:12 +01:00
mattias
eab78cf044 lcl: gtk2: fixed close popup menu, issue #41315 2025-01-16 15:33:12 +01:00
zeljan1
4c39c0d55f Gtk3: added more system metrics. 2025-01-16 13:25:22 +01:00
zeljan1
1f5b7cdd2f Gtk3: implemented system metrics SM_CYMENU, SM_CXMENUSIZE, SM_CYMENUSIZE, SM_CXMENUCHECK, SM_CYMENUCHECK, SM_CXHSCROLL, SM_CYHSCROLL, SM_CXVSCROLL and SM_CYVSCROLL. 2025-01-16 13:00:01 +01:00
zeljan1
efd17f0d68 Gtk3: use LazLogger. 2025-01-16 07:36:30 +01:00
zeljan1
318f3825b7 Gtk3: fixed crash in TGtk3ScrolledWin. 2025-01-15 22:33:07 +01:00
zeljan1
b90ac329b3 Gtk3: implemented basic TGtk3WidgetSet.ScrollWindowEx. 2025-01-15 22:25:41 +01:00
zeljan1
f0e7cbe936 Gtk3: added helper functions to convert cairo rect to TRect and vice versa. 2025-01-15 22:24:01 +01:00
zeljan1
2592b7e842 Gtk3: apply ScrollX & ScrollY to cairo and mouse pos. 2025-01-15 21:56:47 +01:00
zeljan1
7cff16a42a Gtk3: fixed moving by mouse selected widget in designer. 2025-01-15 17:09:14 +01:00
Massimo Magnano
b6b298978f TShellListView Added FileSortType, OnSortCompare 2025-01-15 16:16:58 +01:00
zeljan1
69b940b0c3 Gtk3: fixed build ws with define GTK3DEBUGEVENTS. 2025-01-15 13:47:02 +01:00
zeljan1
cae5c79b47 Gtk3: reduce paint triggering at design time. 2025-01-15 13:36:28 +01:00
zeljan1
54f6671b01 Gtk3: IsDesignerDC should return false for gtk because it can paint outside of paint event. 2025-01-15 13:30:19 +01:00
zeljan1
3b3556640e Gtk3: fixed crash - wrong cast. 2025-01-14 23:39:49 +01:00
zeljan1
f3573ad638 Gtk3: implemented cairo based TGtk3WidgetSet.DrawGrid(). 2025-01-14 23:33:54 +01:00
zeljan1
d7aa102b72 Gtk3: fixed ExtTextOut, if OPAQUE in params we must call fillRect with BkColor brush before text is drawn. 2025-01-14 21:35:28 +01:00
zeljan1
6e243ea04b Gtk3: fixed drawing text in case when BkMode = OPAQUE, but currentBrush.style = BS_NULL 2025-01-14 19:40:16 +01:00
zeljan1
67c1be1fc6 Gtk3: fixed various brush bugs. 2025-01-14 17:56:14 +01:00
zeljan1
6e2d780497 Gtk3: fix fillRect() if currentBrush.style = BS_NULL. 2025-01-14 14:06:19 +01:00
zeljan1
b8df3cbaa3 Gtk3: we must save and restore BkMode when brush fill with opaque color is enabled. 2025-01-14 13:24:52 +01:00
zeljan1
0cb1196d34 Gtk3: fixed crash with pattern brush. 2025-01-14 12:12:53 +01:00
zeljan1
e0ae1a927a Gtk3: cleanup. 2025-01-14 12:00:32 +01:00
zeljan1
0cf93bfab9 Gtk3: cleanup 2025-01-14 11:48:34 +01:00
zeljan1
7bd95e5168 Gtk3: stop enter/leave notify events while designing because it calls repaints. 2025-01-14 11:41:51 +01:00
zeljan1
8a8026c0c8 Gtk3: better check if cairo is valid. 2025-01-14 11:24:16 +01:00
zeljan1
f59489a32a Gtk3: create DC from window if possible. 2025-01-14 10:25:44 +01:00
zeljan1
4f51192d03 Gtk3: implemented GetDCOriginRelativeToWindow. 2025-01-14 10:01:33 +01:00
zeljan1
f7215ec61b Gtk3: fixed GetDC() 2025-01-14 09:55:14 +01:00
zeljan1
31fd0ce4f3 Gtk3: remove GetDesignerDC from gtk3winapih 2025-01-14 09:46:48 +01:00
zeljan1
9bfea88622 Gtk3: create designer if we are design form. 2025-01-14 09:45:34 +01:00
zeljan1
8882e05fe1 Gtk3: implemented GetDesignerDC, IsDesignerDC and ReleaseDesignerDC 2025-01-14 09:44:09 +01:00
zeljan1
6d849e6312 Gtk3: started TGtk3DesignWidget. 2025-01-14 09:43:12 +01:00
zeljan1
4ac3ce43b4 Gtk3: fixed cairo surface when we call constructor with widget without window, fixed memleak. 2025-01-14 09:40:50 +01:00
mattias
fe0820345d lcl: gtk2: debug caret 2025-01-13 19:27:56 +01:00
zeljan1
dd89f481b4 Gtk3: fixed TGtk3Caret crash. 2025-01-13 17:18:24 +01:00
Željan Rikalo
d50b1f2b9b Qt5, Qt6: fixed setting scale factor on normal monitors without scaling. issue #41330 2025-01-12 18:13:11 +01:00
zeljan1
395b854b3c Qt5: fixed themed text draw of selected treeview item. 2025-01-12 15:28:36 +01:00
zeljan1
1a62d278d6 Gtk3: use same technique for R2_NOTXORPEN. 2025-01-11 23:26:50 +01:00
zeljan1
0562c5f1ec Gtk3: implemented useable CAIRO_OPERATOR_XOR, so it works same as under gtk2,qt5 and win32. 2025-01-11 22:30:35 +01:00
zeljan1
eb4a532191 Gtk3: implemented raster ops for TGtk3DeviceContext. 2025-01-11 17:24:00 +01:00
zeljan1
796a0abbd7 Qt5,Qt6: added check if vRegion is valid. 2025-01-11 16:51:48 +01:00
zeljan1
7d5a2c3edb Qt5, Qt6: major speed improvement for TQtMemo (TMemo) when loading items inside Memo.Lines.BeginUpdate/Memo.Lines.EndUpdate, speed is almost at gtk2 loading. Significant improvement of TQtMemo insertLine(),appendLine() and setLineText(). 2025-01-11 16:47:10 +01:00
zeljan1
4273bd84c5 Qt5, Qt6: dramatically improved TMemo.Lines.Delete(). 2025-01-10 22:58:31 +01:00
mattias
163caebf0b lcl: gtk2: moved singleton MenuWidget to TGtk2WidgetSet, do not interfere with gtk2 focus evtns fixing AppActive with Alt-Tab and switching to another workspace 2025-01-10 17:06:46 +01:00
zeljan1
8ac0fa2e95 Gtk3: fixed selecting and returning proper color from TColorDialog. 2025-01-10 16:19:02 +01:00
mattias
e8fc8fb0ca lcl: gtk2: fixed regression app deactivate on popup menu 2025-01-10 13:21:49 +01:00
zeljan1
966b895003 Gtk3: implemented TGtk3ListBox.GetScrollWidth(), TGtk3WSCustomListBox.GetScrollWidth() 2025-01-09 22:38:34 +01:00
zeljan1
b0a562be0d Gtk3: do not append scrollbars offset to the TGtk3ListBox.GetItemRect(), implemented TGtk3ListBox.GetIndexAtXY(), TGtk3WSCustomListBox.GetIndexAtXY() 2025-01-09 22:32:57 +01:00
zeljan1
1d07d268ed Gtk3: implemented TGtk3WSCustomListBox.GetItemRect. 2025-01-09 22:14:24 +01:00
zeljan1
5497c5a166 Gtk3: implemented TGtk3ListBox.getItemRect(). 2025-01-09 22:13:40 +01:00
zeljan1
51a8bb1b80 Gtk3: safer way to free allocated data. 2025-01-09 21:27:21 +01:00
zeljan1
a11eaff2fc Gtk3: fixed memleak with TGtk3Listbox list. 2025-01-09 20:48:25 +01:00
zeljan1
9eb9286e45 Gtk3: fixed memleak with caret. 2025-01-09 17:55:50 +01:00
zeljan1
5c8701db50 Gtk3: gtk3caret, removed writeln() 2025-01-09 17:33:10 +01:00
zeljan1
28abf26e85 Gtk3: improved caret painting, use TGtk3Widget context if available 2025-01-09 17:30:37 +01:00
zeljan1
ac3b0817b8 Gtk3: caret must be destroyed if handle already have one in TGtk3Widgetset.CreateCaret(). 2025-01-09 17:29:42 +01:00
zeljan1
3d347460a2 Gtk3: do not stop event if we are not real focus widget. Now TCustomControl gets VK_RETURN so eg TSynEdit can add new line. 2025-01-09 16:02:07 +01:00
zeljan1
3f1f1134c3 Gtk3: fixed arrow keys handling. 2025-01-09 15:30:13 +01:00
zeljan1
4aac54de10 Gtk3: implemented basic caret. 2025-01-09 15:03:14 +01:00
zeljan1
2f94ecea69 LCL: renamed param. 2025-01-09 09:41:38 +01:00
zeljan1
6d55565da2 Gtk3: renamed deviceScaleRatio to canvasScaleFactor. 2025-01-09 09:34:22 +01:00
zeljan1
34844aa934 LCL: SetDeviceScaleRatio renamed to SetCanvasScaleFactor. 2025-01-09 09:21:59 +01:00
zeljan1
6c47517822 Qt5: removed old qt4 workaround for buggy application activate/deactivate. 2025-01-09 09:08:58 +01:00
zeljan1
13ef93cd67 Gtk3: create toplevel list only in debug mode. 2025-01-08 22:22:18 +01:00
zeljan1
1aa4abc1e4 Gtk3: stop mass flooding in console from gtk_style_context_set_path().That call is unecessary in this context. 2025-01-08 21:45:50 +01:00
zeljan1
a7a64de5bf Gtk3: proper unscale in StretchBlt 2025-01-08 21:42:38 +01:00
n7800
ae3b05a6bd LCL: Do not set "Text" property to the name of the component when adding TCustomControlFilterEdit descendants in the Designer. Merge request !418. 2025-01-08 20:55:56 +02:00
zeljan1
a39d8996ff Gtk3: implemented SetDeviceScaleRatio. 2025-01-08 19:52:21 +01:00