Commit Graph

23418 Commits

Author SHA1 Message Date
Abou Al Montacir
aabe67dfd9 GTK3: Fixed handling of scroll event.
Scrolling was not correctly handled due to error in the logic of
handling the scrolling event.

This fix is related to #21067.
2024-02-10 19:58:44 +01:00
Maxim Ganetsky
d538fbd4f7 LCL-Gtk2: fixed window move/resize issues with Fly/Openbox window managers, patch by Artem Izmaylov, issue #40752 2024-02-09 17:05:23 +03:00
Željan Rikalo
d6b7ffd24c LCL: fix RectVisible so it works correct if WindowOrg was moved. Patch by Artem Izmaylov 2024-02-09 11:51:12 +01:00
Juha
c285b58aa3 LCL: Remove UTF8CompareLatinTextFast calls. 2024-02-09 01:20:36 +02:00
Juha
db95c28df7 LCL: Optimize getting a list of font names and eliminating duplicates in TScreen. 2024-02-08 21:18:39 +02:00
Abou Al Montacir
e5ba0c58f1 GTK3: Fixed access violation issue in Gtk3Page.
The widget was freed and assigned nil pointer before it was unreferenced
which may lead to occasional access violation on application shutdown.

This fix is related to #40713.
2024-02-08 13:00:58 +01:00
Željan Rikalo
db0a10f032 Qt5,Qt6: track dangling pointer inside mouse release event if LCLObject is freed. 2024-02-08 12:25:33 +01:00
Abou Al Montacir
b44cf28194 GTK3: Enabled resizing notebook children after insertion.
This allows fixing some problems but it is probably just a workaround.

This fix is related to #40713.
2024-02-07 21:54:51 +01:00
rich2014
558e9d1a58 Cocoa: Fixed Key Modifiers handling in TCocoaApplication.nextEventMatchingMask_untilDate_inMode_dequeue() 2024-02-07 16:14:09 +08:00
rich2014
f2ebd044c9 Cocoa: Fixed MouseDragged Event handling in TLCLCommonCallback.MouseMove() 2024-02-07 14:30:56 +08:00
Željan Rikalo
67868afe81 Qt6: Proper cast of result for -Sy. 2024-02-05 17:07:09 +01:00
Željan Rikalo
d0b70cc7d4 Qt6: fixed usage of TQtObjectDump.InheritsQtClass by using ansistring instead of widestring as function param, so we have proper conversion to PAnsiChar. 2024-02-05 16:25:26 +01:00
Željan Rikalo
eb8b251b89 Qt5: fixed usage of TQtObjectDump.InheritsQtClass by using ansistring instead of widestring as function param, so we have proper conversion to PAnsiCharwq. 2024-02-05 16:17:14 +01:00
rich2014
97154ac68c Cocoa: Fix compilation. 2024-02-04 22:09:58 +08:00
David Jenkins
c40823e236 Cocoa: Fix #40636: TCocoaContext.SetFont() does not update TCocoaFont reference count. 2024-02-04 22:05:38 +08:00
rich2014
21fc3631d5 Fix #40737: make TMethodNameTable/TMethodNameTableEntry compatible with FPC 3.3.1
The change follows
170c05592b

Patch by Dean Mustakinov, issue #40737.
2024-02-04 21:54:10 +08:00
Juha
02ddfe3ecd LCL-QT5: Support -Sy. 2024-02-04 13:23:58 +02:00
Željan Rikalo
a8490d8060 Qt,Qt5,Qt6: fixed wrong key mapping. issue #40740 2024-02-04 10:12:05 +01:00
Juha
1e544fb5b9 Designer: Repaint after changing "BorderSpacing" in AnchorEditor or in OI. Issue #40746, by n7800 and myself. 2024-02-03 11:10:03 +02:00
rich2014
2e28bd8b6d Revert "Designer/LCL: Correctly align TMethodNameTable/TMethodNameTableEntry on platforms that require it (e.g. AARCH64)."
This reverts commit 8253bd9f8f.
2024-02-03 09:05:43 +08:00
Željan Rikalo
45f4cd65d9 Qt5: allow compilation with -dQT_NATIVE_DIALOGS 2024-02-01 19:16:31 +01:00
Abou Al Montacir
8da1763be3 GTK3: Enable showing hot key in page control widgets caption.
We store the raw caption in the `Text` field and convert ampersands
(`&`) to underscores (`_`) before using `set_markup_with_mnemonic` to
update the label text while honoring the hot key definition.

NB: The underscore will be drawn only if user hits `alt` key which is
a Gnome/Gtk3 feature.

This fix is related to #40713.
2024-01-31 11:53:05 +01:00
wp_xyz
eb5db964c6 LCL/ShellCtrls: Improve TShellTreeView.UpdateView when a folder has been created in an empty folder. 2024-01-30 17:49:57 +01:00
Maxim Ganetsky
8253bd9f8f Designer/LCL: Correctly align TMethodNameTable/TMethodNameTableEntry on platforms that require it (e.g. AARCH64).
The change follows
170c05592b

Fixes crash on IDE start on AARCH64 platforms when FPC 3.3.1 is used.

Patch by Dean Mustakinov, issue #40737.
2024-01-30 17:45:57 +03:00
Juha
f2a32ca78e LCL: Allow access to buttons in CheckGroup and RadioGroup. Issue #40738, patch by Dean Mustakinov. 2024-01-30 12:00:03 +02:00
Željan Rikalo
1dbfb8fee2 Qt,Qt5,Qt6: do not clear editable combobox edit text if items are cleared. issue #40734 2024-01-29 20:08:05 +01:00
wp_xyz
9035cf4f5d LCL/ShellCtrls: Change TShellListView/TShellTreeView.ReadOnly to be true by default. 2024-01-29 14:45:34 +01:00
Juha
7a0af825b3 LCL: Minor optimization in function TextToShortCutGeneric. 2024-01-28 14:16:04 +02:00
Maxim Ganetsky
77daff816e LCL: Correctly align fields of TCMHintShow, TCMHintShowPause records on 64-bit platforms. Related to issue issue #40701. 2024-01-27 03:05:51 +03:00
Maxim Ganetsky
9ae59e2b8d LCL: Correctly align fileds of TCMControlChange, TCMChanged, TCMControlListChange, TCMCancelMode records on 64-bit platforms.
Patch by Artem Izmaylov, issue #40701.
2024-01-26 20:30:45 +03:00
rich2014
221b2ceff0 Cocoa: dynamically set the spacing of TListView with icons 2024-01-26 21:53:21 +08:00
rich2014
5296536769 Cocoa: TListView.IntfCustomDraw() supported, Icons of Components List in IDE Options supported 2024-01-26 21:49:45 +08:00
Maxim Ganetsky
ac1d49467b LCL-Gtk2: Fixed coordinates in MouseMove/MouseDown events (regression after e916d8bc16).
Patch by Alexander (Rouse_) Bagel, issue #40726.
2024-01-25 19:08:54 +03:00
Maxim Ganetsky
6a1aea3ed2 LCL-Gtk2: Refactoring to provide ability to safely access MKeyCodeInfo array independent of LCL.
Patch by Alexander (Rouse_) Bagel, issue #40727.
2024-01-25 17:59:49 +03:00
Abou Al Montacir
1019007853 GTK3: Fixed selected item text returned by ComboBox Text property.
We need to use `GtkEntry` for comboboxes with `has_entry = True` and
set the `column_id` property.

Closes #40706
2024-01-24 19:40:50 +01:00
Željan Rikalo
27bc023a87 Qt,Qt5,Qt6: fixed buggy mouse capture with TSpinEdit, TFloatSpinEdit. issue #40725 2024-01-24 18:12:05 +01:00
Željan Rikalo
6a563571ef Gtk2: forgot commit intfbaselcl.inc. issue #40721 2024-01-24 18:10:12 +01:00
Željan Rikalo
92e31d445e Gtk2: Implemented AllocateHwnd and DeallocateHwnd. Patch by Alexander (Rouse_) Bagel. issue #40721 2024-01-24 18:00:33 +01:00
Bart
9f02bfab4a TShellTreeView: ifdef some code which only applies to windows (desktop). Reported by rens groenewegen. 2024-01-23 23:31:30 +01:00
Bart
b3ccc3d69a TShellTreeView: fix bug in SetPath if AValue was an absolute path but still had '..' in it. 2024-01-23 23:24:16 +01:00
rich2014
af1035188c Cocoa: Fix the issue where ListBox/ListView may be incorrectly set to a huge height
1. NSTableView.fittingSize returns the full height, not the visible height
2. the issue can be observed in IDE Options - Component Palette
2024-01-24 00:19:11 +08:00
rich2014
54d7f414ce Cocoa: Fix the issue of scroll bar not working in Form
since macOS 10.7, NSScrollerStyleOverlay is used by default, and the scroll bar needs to be set before the DocumentView size changes.
2024-01-24 00:13:03 +08:00
Patriccollu
d4ac96f265 Update Corsican translation for LCL on 2024-01 2024-01-20 16:39:55 +00:00
rich2014
aaf67bbf31 Cocoa: fix #40702, beeps by Cursor keys 2024-01-20 21:31:09 +08:00
Maxim Ganetsky
e8d6b1c29e LCL: regenerated translations and updated Russian translation 2024-01-20 05:14:31 +03:00
Maxim Ganetsky
e4b407fd21 IDE: Use UTF8WrapText for wrapping Lazarus help descriptions, improved help output formatting 2024-01-20 05:06:35 +03:00
Maxim Ganetsky
f0eb9b849d IDE, LCL: Lazarus help output refactoring by n7800, issue #40690:
1. The text has been slightly corrected and made more uniform.
2. The parameters are sorted in some logical order, starting with the more "global" ones. A long list of values for debugging is located at the end. Now all parameters are visible at once, without scrolling.
3. Indentations fixed.
4. The list of values for the --skip-checks parameter is listed in a column, similar to the values for the --debug-enable parameter. This is easier to read and does not create a very long line, which is visible in the screenshot.
5. The "LCL Interface specific options:" header is displayed only if such parameters exist.
6. Changed max line length to a more standard 80.
7. Help output has been moved in a nested function.
8. Removed unused code.
2024-01-20 05:04:42 +03:00
rich2014
0fc75da8cb Cocoa: add support for LM_DESTROY in DestroyHandle() 2024-01-19 22:25:45 +08:00
rich2014
de565120e0 Cocoa: fix #40581, avoid sending KillFocus messages repeatedly when closing window 2024-01-19 22:25:44 +08:00
rich2014
88d32c5c97 Cocoa: fix #40581, send KillFocus Message when Closing Window or Terminating App 2024-01-19 22:25:44 +08:00